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 | |
/** | |
* Remove classes from body_class() | |
* | |
* @param array $wp_classes | |
* @return array | |
*/ | |
function ja_remove_body_classes( $wp_classes ) { | |
// The classes you wish to remove |
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($){ | |
$('.home-multimedia-flexslider').flexslider({ | |
animation: "slide", | |
animationLoop: false, | |
slideshow: false, | |
maxItems: 3, | |
itemWidth: 195, | |
itemMargin: 0, | |
end: function(slider) { |
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
// Create the dropdown base | |
$("<select />").appendTo("nav"); | |
// Create default option "Go to..." | |
$("<option />", { | |
"selected": "selected", | |
"value" : "", | |
"text" : "Go to..." | |
}).appendTo("nav select"); | |
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
/** | |
* Dynamically create a select element for the mobile navigation. | |
* | |
* @author Thomas Griffin | |
* @param obj $nav The main navigation object | |
* @param obj $ The main jQuery object | |
*/ | |
function ResponsiveNav(nav, $){ | |
/** Clone the nav, set the ID and use a concat var to store our data */ | |
var nav_clone = $(nav).clone(); |
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 feeds | |
* | |
* @return string die | |
*/ | |
function ja_disable_feed() { | |
wp_die( 'No feed available, please visit our <a href="'. get_bloginfo('url') .'">homepage</a>!' ); | |
} |
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 | |
/** | |
* Change text for the post excerpt | |
* | |
* @since 1.0.0 | |
* @param string $translated_text | |
* @param string $text | |
* @param string $domain | |
* @return string | |
*/ |
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 | |
/** | |
* Reverse order of intragram images. Show newest images first. | |
* | |
* @since 1.0.0 | |
* @param array $cached_data | |
* @param int $id | |
* @param array $data | |
* @return array | |
*/ |
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 | |
/** | |
* Automatically select the correct image size when creating a new slideshow. | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_soliloquy_default_image_size() { | |
if ( class_exists( 'Tgmsp', false ) ) { | |
if ( Tgmsp::is_soliloquy_add_edit_screen() ) { |
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 | |
/** | |
* Template Name: Latest Genesis Version | |
* | |
* This file returns the version of Genesis that this site runs, which we | |
* assume is typically the latest. | |
*/ | |
echo PARENT_THEME_VERSION; |
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 | |
/** | |
* Remove Premise menu items related to the Landing Page functionality | |
* | |
* @since 1.0.0 | |
*/ | |
function ja_remove_premise_menus(){ | |
remove_menu_page( 'edit.php?post_type=landing_page' ); | |
remove_submenu_page( 'premise-main', 'premise-styles' ); | |
remove_submenu_page( 'premise-main', 'premise-style-settings' ); |