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
/** | |
* Fade Labels | |
* | |
* @version 1.0.0 | |
* @author Brian DiChiara | |
* @website http://briandichiara.com | |
*/ | |
(function ( $ ) { | |
$.fn.fadeLabel = function( options ){ |
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 | |
// ... | |
// @ line 137 | |
# see https://github.com/tybruffy/ACF-Reusable-Field-Group/blob/master/acf-reusable_field_group-v5.php#L137 | |
function render_field( $field ) { | |
global $post; | |
$current_id = $post->ID; ### $post is not defined/availabe on a Settings page |
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
Yeah | |
Yo, why you tryin' to hurt me girl | |
Don'tcha know I'm Bruce Willis. | |
Yeah | |
Yo, why you tryin' to hurt me girl | |
Don'tcha know I'm Bruce, Bruce |
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
// Load plugins | |
var gulp = require('gulp'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cache = require('gulp-cache'), | |
compass = require('gulp-compass'), | |
concat = require('gulp-concat'), | |
imagemin = require('gulp-imagemin'), | |
jshint = require('gulp-jshint'), | |
imagemin = require('gulp-imagemin'), | |
livereload = require('gulp-livereload'), |
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 | |
add_filter( 'the_posts', 'mytheme_inject_sticky_posts', 10, 2 ); | |
function mytheme_inject_sticky_posts( $posts, $q ){ | |
// Don't do this in the admin or on page 1, WP already does it for page 1 | |
if( is_admin() || $q->get( 'paged' ) <= 1 ) | |
return $posts; | |
// get the sticky posts array |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
# BEGIN Use uploads directory from Live Site | |
RewriteBase /wp-content/uploads/ | |
RewriteCond %{HTTP_HOST} !^www\.livedomain\.com | |
RewriteCond %{HTTP_HOST} !^livedomain\.com | |
RewriteCond %{REQUEST_URI} ^/wp-content/uploads/ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{THE_REQUEST} /([^?\ ]+) | |
RewriteRule (.*) index.php/%1 [L] | |
</IfModule> | |
<IfModule !mod_rewrite.c> | |
ErrorDocument 404 /index.php | |
</IfModule> |
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 | |
function uri($segment=NULL, $qs=false){ | |
$uri = $_SERVER['REQUEST_URI']; | |
if(!$qs || $segment !== NULL){ | |
if(strpos($uri, '?')){ | |
list($uri, $query) = explode('?', $uri); | |
} | |
if($segment !== NULL){ | |
if(is_string($segment)){ | |
if($segment != 'last'){ |
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 | |
// Lines 706-721 of system/libraries/Session.php | |
function _unserialize($data) | |
{ | |
$data = @unserialize(strip_slashes($data)); | |
if (is_array($data)) | |
{ | |
foreach ($data as $key => $val) | |
{ |
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 | |
function _remap($method) | |
{ | |
if (method_exists($this, $method)){ | |
$this->$method($this->uri->segment(3)); | |
} else { | |
$this->index($method); | |
} | |
} |