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 | |
/** Display Social Buttons on single post page */ | |
add_action( 'genesis_before_post_content', 'add_social_buttons' ); | |
add_action( 'genesis_after_post_content', 'add_social_buttons' ); | |
function add_social_buttons() { | |
if ( is_single() ) { | |
?> | |
<!-- AddThis Button BEGIN --> |
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($){ | |
// Show/hide the main navigation | |
$('.menu-toggle').click(function() { | |
var target = $(this).parent().children('.nav-primary'); | |
$(target).slideToggle('fast', function() { | |
return false; | |
// Animation complete. | |
}); | |
}); |
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 | |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly | |
add_action( 'wp_enqueue_scripts', 'prefix_enqueue_mobile_js' ); | |
/** | |
* Add a script which depends on jQuery | |
* to enable a responsive menu toggle. | |
* | |
* @author FAT Media | |
* @link http://youneedfat.com/genesis-responsive-design-menu/ |
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
/* | |
Mobile Menu for Genesis 1.x | |
Version: 1.0.0 | |
License: GPL-2.0+ | |
License URI: http://www.opensource.org/licenses/gpl-license.php | |
*/ | |
/* Primary Navigation | |
--------------------------------------------- */ |
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 | |
//* Require Child Theme Functions | |
require_once( CHILD_DIR . '/lib/theme-js.php' ); | |
add_action( 'genesis_header_right', 'prefix_mobile_menu_toggle', 5 ); | |
/** | |
* Add a mobile menu toggle element | |
* to expand and collapse a mobile menu. | |
* | |
* @author FAT Media |
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 | |
// Display taxonomy terms ordered from child to parent | |
function csi_ordered_tax( $terms ) { | |
// if terms is not array or its empty don't proceed | |
if ( ! is_array( $terms ) || empty( $terms ) ) { | |
return false; | |
} | |
foreach ( $terms as $term ) { | |
// if the term have a parent, set the child term as attribute in parent term |
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
{ | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Bright.tmTheme", | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
OlderNewer