This file contains hidden or 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
<div class="c-gallery"> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png" title="I'm a caption in the title attribute of the a tag"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
<p>I'm an image link that opens a image lightbox gallery</p> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png" title="I'm another caption in the title attribute of the a tag"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png" title="I'm yet another caption in the title attribute of the a tag"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> |
This file contains hidden or 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
<div class="c-gallery"> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
<p>I'm an image link that opens a image lightbox gallery</p> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> |
This file contains hidden or 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
<div class="c-gallery"> | |
<a rel="gallery-1" class="swipebox" href="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
</a> | |
<a rel="gallery-1" class="swipebox" href="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png"> | |
<img src="http://local.wordpress-trunk.dev/wp-content/uploads/2014/01/air_conditioner.png" alt="image"> | |
</a> |
This file contains hidden or 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
/** | |
* Some hackery to have WordPress match postname to any of our public post types | |
* All of our public post types can have /post-name/ as the slug, so they better be unique across all posts | |
* Typically core only accounts for posts and pages where the slug is /post-name/ | |
*/ | |
function vipx_parse_request_tricksy( $query ) { | |
// Only noop the main query | |
if ( ! $query->is_main_query() ) | |
return; |
This file contains hidden or 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
%cfix { | |
&:before, | |
&:after { | |
content:""; | |
display: table; | |
} | |
&:after { | |
clear:both; | |
} | |
& { |
This file contains hidden or 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() { | |
var currentSize = "kitty"; // null var so its never the current size to start | |
$(window).resize(function() { | |
var size = window.getComputedStyle(document.body, ':after').getPropertyValue('content'); | |
var $menu = $('.nav-collapse'); | |
/* Ridiculous thing to deal with inconsistent returning of |
This file contains hidden or 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
add_action( 'woocommerce_before_cart', 'apply_matched_coupons' ); | |
function apply_matched_coupons() { | |
global $woocommerce; | |
$get1 = 'getonech'; // your coupon code here | |
$get2 = 'gettwoch'; // your coupon code here | |
$get3 = 'getthreech'; // your coupon code here | |
$get4 = 'getfourch'; // your coupon code here | |
$get5 = 'getfivech'; // your coupon code here |
This file contains hidden or 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
add_filter( 'pre_get_posts', 'my_get_posts' ); | |
function my_get_posts( $query ) { | |
if ( is_category() && $query->is_main_query() ) | |
$query->set( 'post_type', array( 'post', 'page', 'fonts' ) ); | |
return $query; | |
} |