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
/** For local development only **/ | |
define('CONCATENATE_SCRIPTS', false); |
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
jQuery(document).ready(function($){ | |
// do something | |
}); |
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
// figure out which model this is | |
$model = $rifle->get_title(); | |
$is_birthday = preg_match("/50/", $model) == 1 || preg_match("/60/", $model) == 1; | |
$is_occasion_big_boy = preg_match('/occasion/', $model) == 1 && preg_match('/big/', $model) == 1; | |
$is_occasion_golden_boy = preg_match('/occasion/', $model) == 1 && preg_match('/golden/', $model) == 1; | |
$is_personal_serial = preg_match('/serial/', $model) == 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/****** STYLESHEET HEADER *****/ | |
/* Not needed, only for clarification that you are using the correct theme */ | |
/* | |
Theme Name: Genesis Sample | |
Description: This is the sample theme created for the Genesis Framework. | |
Author: StudioPress | |
Author URI: http://www.studiopress.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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
/** | |
* Plugin: jquery.zRSSFeed | |
* | |
* Version: 1.0.1 | |
* (c) Copyright 2010, Zazar Ltd | |
* | |
* Description: jQuery plugin for display of RSS feeds via Google Feed API | |
* (Based on original plugin jGFeed by jQuery HowTo) |
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
/** My custom plugin CSS | |
* | |
* This file should be in plugins/myplugins, additionally | |
* you should include the add-to-functions.php code to your | |
* functions.php file to initialize this stylesheet after | |
* your plugin styles are set, making it easier to | |
* edit plugin styles. | |
**/ | |
/** Your custom plugin style overrides below... **/ |
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 | |
/* Equal height columns for various pages */ | |
/* | |
add_action( 'genesis_after', 'fp_equal_height' ); | |
function fp_equal_height() { | |
?> | |
<script> | |
equalheight = function(container){ | |
var currentTallest = 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
// Force IE & Chrome to display content with the most up to date rendering engine | |
add_action( 'genesis_meta', 'fp_force_edge_rendering' ); | |
function fp_force_edge_rendering() { | |
echo '<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=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
/** | |
* This file adds the Home Page to the Parallax Pro Theme. | |
* | |
* @author Brad Dalton | |
* @package Parallax | |
* @subpackage Customizations | |
*/ | |
add_action( 'genesis_meta', 'parallax_home_genesis_meta' ); | |
/** |
OlderNewer