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
%cfix { | |
&:before, | |
&:after { | |
content:""; | |
display: table; | |
} | |
&:after { | |
clear:both; | |
} | |
& { |
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
/** | |
* 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 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 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 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
// scroll to div | |
$(function($){ | |
$('a.nav').click(function() { | |
var $this = $(this), | |
_href = $this.attr('href'), | |
dest = $(_href).offset().top; | |
$("html:not(:animated),body:not(:animated)").animate({ scrollTop: dest}, 400 ); | |
return false; | |
}); | |
}); |
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
/** | |
* Checks if a particular user has a role. | |
* Returns true if a match was found. | |
* | |
* @param string $role Role name. | |
* @param int $user_id (Optional) The ID of a user. Defaults to the current user. | |
* @return bool | |
*/ | |
function appthemes_check_user_role( $role, $user_id = null ) { | |
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
/** | |
* Module Dependencies | |
*/ | |
var map = require('map-stream'); | |
var Duo = require('../../'); | |
var gulp = require('gulp'); | |
/** | |
* Default |
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
var duo = require('duo'); // https://github.com/duojs/duo | |
var map = require('map-stream'); // https://github.com/dominictarr/map-stream | |
var paths = { | |
build: { | |
src: { | |
jsApp: ['./src/js/main.js'], | |
jsClient: ['./src/js/client.js'] | |
}, |
OlderNewer