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 | |
/** | |
* Return a custom field stored by the Advanced Custom Fields plugin | |
* | |
* @global $post | |
* @param str $key The key to look for | |
* @param mixed $id The post ID (int|str, defaults to $post->ID) | |
* @param mixed $default Value to return if get_field() returns nothing | |
* @return mixed | |
* @uses get_field() |
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
// jQuery Window FullScreen Plugin | |
// | |
// Author: Zeshan Ahmed | |
// Author URI: http://www.zeshanahmed.com/ | |
// | |
// = Replace .element_to_target with the your element selector | |
jQuery(document).ready(function($) { | |
var $win = $(window), | |
$element = $('.element_to_target'), |
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
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
uglify = require('gulp-uglify'), | |
header = require('gulp-header'), | |
filter = require('gulp-filter'), | |
concat = require('gulp-concat'), | |
browserSync = require('browser-sync'), | |
sass = require('gulp-sass'), | |
bodyParser = require('body-parser'), | |
express = require('express'), |
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
{ | |
// The tab key will cycle through the settings when first created | |
// Visit http://wbond.net/sublime_packages/sftp/settings for help | |
// sftp, ftp or ftps | |
"type": "ftp", | |
"save_before_upload": true, | |
"upload_on_save": true, | |
"sync_down_on_open": true, |
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
// | |
// Pause all audio players except the clicked one. | |
// Script by Zeshan Ahmed (http://www.zeshanahmed.com/) | |
// | |
jQuery(document).ready(function($) { | |
$('.mejs-playpause-button button').click(function() { | |
$('audio').not( $(this).closest('audio') ).each(function(){ | |
this.pause(); | |
this.currentTime = 0; |
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/_mixins.scss | |
// =========================================== | |
// | |
// Custom SCSS Mixins. | |
// | |
// Variables used from _variables.scss file | |
// copy/change the variables to reflect the | |
// changes in your project. | |
// =========================================== |
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
@mixin background-image-retina($file, $type, $width, $height) { | |
background-image: url($file + '.' + $type); | |
@media (-webkit-min-device-pixel-ratio: 2), (-moz-min-device-pixel-ratio: 2) { | |
& { | |
background-image: url($file + '@2x.' + $type); | |
-webkit-background-size: $width $height; | |
} | |
} | |
} |
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
/* SelecBox Styling */ | |
.sbHolder { | |
position: relative; | |
background: #fff; | |
cursor: default; | |
height: 48px; | |
float: left; | |
color: #9c9898; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; |