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
| /**** Truly Force Layout without allowing the User to Override the preferred/recommended layout ****/ | |
| // Force Full Width Layout | |
| add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' ); | |
| // Force Content-Sidebar Layout | |
| add_filter( 'genesis_site_layout', '__genesis_return_content_sidebar' ); | |
| // Force Sidebar-Content Layout | |
| add_filter( 'genesis_site_layout', '__genesis_return_sidebar_content' ); |
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
| /* | |
| * Meta Box Admin Script | |
| * | |
| * @author Travis Smith | |
| * @version 1.0.0 | |
| */ | |
| /* | |
| * Hides meta box based on page template selected. | |
| * |
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 | |
| /* | |
| Plugin Name: Soliloquy Start/Expiration Addon | |
| Plugin URI: http://wpsmith.net/ | |
| Description: Soliloquy is the best responsive jQuery slider plugin for WordPress. This makes it better by adding start/expiration dates. | |
| Author: Travis Smith | |
| Author URI: http://wpsmith.net/ | |
| Version: 1.0.0 | |
| License: GNU General Public License v2.0 or later |
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_action( 'template_redirect', 'wps_debug' ); | |
| function wps_debug() { | |
| global $wp_query; | |
| if( isset( $_GET['debug'] ) ) { | |
| echo '<pre>'; print_r( $wp_query ); echo '</pre>'; | |
| } | |
| } |
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 | |
| /** | |
| * Promotions API | |
| * | |
| * Plugin api for manipulating promotions. | |
| * | |
| * @author Travis Smith | |
| * @version 1.0 | |
| * @copyright Ingenesis Limited, June 30, 2011 |
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 | |
| /** | |
| * Visual Subtitle plugin | |
| * | |
| * Allows part of a post title to be styled as a subtitle. The subtitle is still | |
| * within the title level 1 or 2 heading, but is wrapped in a span to be styled | |
| * differently. | |
| * | |
| * @package Visual Subtitle | |
| * @author Gary Jones |
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 | |
| // Remove Visual_Subtitle filter | |
| remove_filter( 'the_title', array( Visual_Subtitle::$instance, 'filter' ) ); | |
| add_action( 'genesis_after_post_title', 'wps_subtitle' ); | |
| /** | |
| * Adds the subtitle to genesis_after_post_title. | |
| * No need to rebuild admin portion since WP doesn't recognize it anyways. | |
| */ | |
| function wps_subtitle() { |
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
| .soliloquy-container .flex-control-thumbs { | |
| margin: 5px 0 0; | |
| position: static; | |
| } | |
| .soliloquy-container .flex-control-thumbs li { | |
| width: 25%; | |
| float: left; | |
| list-style-type: none; | |
| margin: 0; | |
| } |
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
| add_filter( 'lazyload_images_placeholder_image', 'wps_lazyload_placeholder_image' ); | |
| /** | |
| * Filter the default image src/URL. | |
| * | |
| * @param $image string Default Image URL/src. | |
| * @return string New default Image URL/src. | |
| */ | |
| function wps_lazyload_placeholder_image( $image ) { | |
| return 'http://url/to/image'; | |
| } |
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
| add_action( 'admin_init', 'wps_hide_editor' ); | |
| /** | |
| * Remove the editor for a specific post. | |
| * | |
| * @return null Returns early for non-admin and other admin pages. | |
| */ | |
| function wps_hide_editor() { | |
| $post_id = isset( $_GET['post'] ) ? $_GET['post'] : $_POST['post_ID'] ; | |
| if( ! isset( $post_id ) || ! is_admin() ) return; |