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
// Source References | |
// - SO: https://stackoverflow.com/a/14344290/538696 | |
// - picssel.com: http://www.picssel.com/playground/jquery/fancybox/jquery.fancybox-1.3.4_patch.zip | |
// - GH: https://github.com/nvidoni/fancybox/issues/2#issuecomment-255766623 | |
/* | |
* FancyBox - jQuery Plugin | |
* Simple and fancy lightbox alternative | |
* | |
* Examples and documentation at: http://fancybox.net | |
* |
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
{ | |
"@import directive": { | |
"prefix": "@import", | |
"body": [ | |
"@import " | |
], | |
"description": "import scss/sass partial" | |
}, | |
"@include directive": { | |
"prefix": "@include", |
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
page-hero: | |
headline: |- | |
<span>Even A SMALL amount of retained blood can cause serious complications.</span> | |
<strong>1 in 5 patients develop Retained Blood Syndrome (RBS) after heart surgery.</strong> | |
image: "assets/img/hero-rbs-home.jpg" | |
button-text: LEARN MORE ABOUT RBS |
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
// ---- | |
// Sass (v3.4.21) | |
// Compass (v1.0.3) | |
// ---- | |
// Three Columns with one that is wider than the others | |
$module: 'unequal-columns'; | |
.#{$module} { | |
// Module Variables: contexts from a PSD design file |
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
<?php | |
if ( !function_exists( 'get_home_path' ) ) | |
require_once( dirname(__FILE__) . '/../../../wp-admin/includes/file.php' ); | |
add_action( 'admin_init', array(&$this, 'has_acf') ); | |
public function has_acf() { | |
if ( is_admin() && current_user_can( 'activate_plugins' ) && !is_plugin_active( 'advanced-custom-fields-pro/acf.php' ) ) { | |
add_action( 'admin_notices', array(&$this, 'acf_not_activated_notice') ); |
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
<?php | |
/** | |
* Updates the v= query string for | |
* theme's default stylesheet for | |
* browser cache busting etc. | |
*/ | |
function theme_wp_default_styles_version($styles) { | |
// use date versioning or semantic versioning |
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
/* Attribution: http://wordpress.stackexchange.com/a/37768/35516 */ | |
.entry-content img, | |
.comment-content img, | |
.widget img { | |
max-width: 97.5%; /* Fluid images for posts, comments, and widgets */ | |
} | |
img[class*="align"], | |
img[class*="wp-image-"] { | |
height: auto; /* Make sure images with WordPress-added height and width >attributes are scaled correctly */ | |
} |
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
<!-- START SLIDE FUNCTIONALITY --> | |
<script type src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="/storage/js/slides.jquery.js"></script> | |
<script> | |
$(function () { | |
$('#slides').slides({ | |
preload: true, | |
preloadImage: '/storage/js/loading.jpg', | |
autoHeight: true, | |
autoHeightSpeed: 350, |
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
<!-- START SLIDE FUNCTIONALITY --> | |
<script src="http://code.jquery.com/jquery-latest.min.js"></script> | |
<script src="/storage/js/slides.jquery.js"></script> | |
<script> | |
$(function () { | |
$('#slides').slides({ | |
preload: true, | |
preloadImage: '/storage/js/loading.jpg', | |
autoHeight: true, | |
autoHeightSpeed: 350, |
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
<nav class="site-nav"> | |
<ul class="main-menu"> | |
<li class="main-menu__item main-menu__item_home"> | |
<a class="main-menu__anchor" href="#">HOME</a> | |
</li> | |
<li class="main-menu__item main-menu__item_products"> | |
<a class="main-menu__anchor" href="#">PRODUCTS</a> | |
</li> | |
<li class="main-menu__item main-menu__item_about"> | |
<a class="main-menu__anchor" href="#">ABOUT</a> |
NewerOlder