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
@each $font-face in | |
"MyFont-Regular", | |
"MyFont-Bold", | |
"MyFont-Medium" { | |
@font-face { | |
font-family: $font-face; | |
font-style: normal; font-weight: normal; | |
src: font-url('#{$font-face}.eot'); | |
src: font-url('#{$font-face}.eot?#iefix') format('embedded-opentype'), |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller. fixes from Paul Irish and Tino Zijdel | |
// MIT license | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; |
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 UTIL = (function (parent, $) { | |
var my = parent.ajax = parent.ajax || {}; | |
my.get = function (url, params, callback) { | |
// ok, so I'm cheating a bit :) | |
return $.getJSON(url, params, callback); | |
}; | |
// etc... |
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 | |
/** | |
* Disable Emojis | |
* | |
* @package Package | |
* @subpackage Package/SubPackage | |
* @copyright Copyright (c) 2014, Your Name | |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License | |
* @since 0.0.1 | |
* @author Your Name <email@domain.com> |
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
//reference to: http://code.tutsplus.com/tutorials/javascript-how-to-embed-private-members-into-an-object--cms-24287 | |
var createProperty = function (obj, prop) { | |
var currentValue = obj[prop]; | |
Object.defineProperty(obj, prop, { | |
get: function () { return currentValue; }, | |
set: function (value) { | |
currentValue = value; | |
}, | |
enumerable: true, | |
configurable: true |
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
if( ! defined('ABSPATH') ) { | |
header( 'Status: 403 Forbidden' ); | |
header( 'HTTP/1.1 403 Forbidden' ); | |
exit; | |
} | |
//OR | |
if ( ! defined('ABSPATH') ) { die('-1'); } |
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 | |
//set custom sizes | |
if ( function_exists( 'add_image_size' ) ) { | |
add_image_size( 'category-thumb', 300, 9999 ); //300 pixels wide (and unlimited height) | |
add_image_size( 'homepage-thumb', 220, 180, true ); //(cropped) | |
} | |
//rename custom sizes for the Dashboard, with translation | |
add_filter('image_size_names_choose', 'PREFIXIT_image_sizes'); | |
function PREFIXIT_image_sizes($sizes) { |
NewerOlder