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
/* ============================================================================= | |
WordPress WYSIWYG Editor Styles | |
========================================================================== */ | |
.entry-content img { | |
margin: 0 0 1.5em 0; | |
max-width: 100%; | |
height: auto; | |
} | |
.alignleft, img.alignleft { |
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
#301 Redirect Local Images to Live | |
RedirectMatch 301 ^/wp-content/uploads/(.*) http://livewebsite.com/wp-content/uploads/$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
( function( $ ) { | |
// Create a jQuery Object. | |
$.fn.myObject = function() { | |
var $target = this; // Store the target element in this variable (jQuery stuff). | |
// Our stuff. | |
var application = { | |
/** |
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
// check if element is in viewport | |
// if so, then add/remove class | |
// http://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport/7557433#7557433 | |
(function($) { | |
// function to check if element is in viewport | |
function inViewport(element) { | |
if (typeof jQuery === "function" && element instanceof jQuery) { | |
element = element[0]; |
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
<snippet> | |
<content><![CDATA[ | |
->add_field( array( | |
'name' => __( '${1:Field Name}', '${2:textdomain}' ), | |
'id' => \$prefix . '${3:field_id}', | |
'type' => '${4:cmb2_field_type}', | |
'desc' => __( '${5:Description of the field.}', '${2:textdomain}' ), | |
${6:'options' =>} ${7:${8:array of options or callback function},} | |
${9:'attributes' =>} ${10:${11:array of attributes},} | |
${12:'default' =>} ${13:'${14:default_value}',} |
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
/** | |
* fixMSWord | |
* | |
* Replace ascii chars with utf8. Note there are ascii characters that don't | |
* correctly map and will be replaced by spaces. | |
* | |
* Updated 7-15-2015 by Jay Wood to encode lower end items into HTML entity counterparts. | |
* | |
* @author Robin Cafolla,Jay Wood | |
* @date 2013-03-22 |
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 | |
// Include tlc lib | |
require_once WPMU_PLUGIN_DIR . '/wp-tlc-transients/tlc-transients.php'; | |
/** | |
* Use in place of `get_posts` | |
* | |
* @param array $args Array of get_posts arguments | |
* @param integer $time Amount of time before cache expires |
NewerOlder