This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_cart_item_name', 'krbu_event_title', 10, 3 ); | |
function krbu_event_title($title, $values, $cart_item_key) { | |
$ticket_meta = get_post_meta($values['product_id']); | |
$event_id = absint($ticket_meta['_tribe_wooticket_for_event'][0]); | |
$venue_id = tribe_get_venue_id($event_id); | |
if ($event_id) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'git' | |
module Jekyll | |
class GitActivityTag < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- SPLIT_STR MySQL Function | |
-- from http://blog.fedecarg.com/2009/02/22/mysql-split-string-function/ | |
CREATE FUNCTION SPLIT_STR( | |
x VARCHAR(255), | |
delim VARCHAR(12), | |
pos INT | |
) | |
RETURNS VARCHAR(255) | |
RETURN REPLACE(SUBSTRING(SUBSTRING_INDEX(x, delim, pos), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php return array ( | |
'db' => | |
array ( | |
'username' => 'root', | |
'password' => 'root', | |
'host' => 'localhost', | |
'port' => '3306', | |
'dbname' => 'shopware', | |
), | |
'mail' => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d, script) { | |
var js, | |
fjs = d.getElementsByTagName(script)[0]; | |
function load(url, id) { | |
if(d.getElementById(id)) {return;} | |
js = d.createElement(script); | |
js.async = true; | |
js.src = url; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin background-2x($background, $file: 'png'){ | |
$image: #{$background+"."+$file}; | |
$image2x: #{$background+"@2x."+$file}; | |
background: url($image) no-repeat; | |
@media (min--moz-device-pixel-ratio: 1.3), | |
(-o-min-device-pixel-ratio: 2.6/2), | |
(-webkit-min-device-pixel-ratio: 1.3), | |
(min-device-pixel-ratio: 1.3), | |
(min-resolution: 1.3dppx){ |