No longer kept up to date.
Please see Sridhar's fork.
| <?php | |
| /** | |
| * Simple Grid helper functions. | |
| * | |
| * @package SimpleGrid | |
| * @subpackage Genesis | |
| * @copyright Copyright (c) 2014, Flagship, LLC | |
| * @license GPL-2.0+ | |
| * @since 1.0.0 | |
| */ |
| <?php | |
| add_action( 'genesis_before_content', 'wpbacon_podcast_date_info' ); | |
| /** | |
| * Displays information about the podcast's air date including the date, time, | |
| * and whether or not it's already aired. | |
| * | |
| * @since 2.0.0 | |
| */ | |
| function wpbacon_podcast_date_info() { |
No longer kept up to date.
Please see Sridhar's fork.
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Enqueue sticky menu script | |
| add_action( 'wp_enqueue_scripts', 'sp_enqueue_script' ); | |
| function sp_enqueue_script() { | |
| wp_enqueue_script( 'sample-sticky-menu', get_bloginfo( 'stylesheet_directory' ) . '/js/sticky-menu.js', array( 'jquery' ), '1.0.0' ); | |
| } | |
| //* Reposition the secondary navigation menu |
| <?php | |
| /** Add Project Information After Content */ | |
| add_action ( 'genesis_sidebar', 'mmi_sing_project_side' ); | |
| function mmi_sing_project_side() { | |
| echo '<div class="mmi-sidebar">'; | |
| echo '<section class="widget">'; | |
| echo '<h4 class="widgettitle">Participate In This Project</h4>'; | |
| $participants = get_post_meta(get_the_ID(), 'participants_needed', false); |
| <?php | |
| add_filter( 'genesis_post_info', 'custom_post_info' ); | |
| function custom_post_info( $post_info ) { | |
| $u_time = get_the_time( 'U' ); | |
| $u_modified_time = get_the_modified_time( 'U' ); | |
| if ( $u_modified_time >= $u_time + 86400 ) { | |
| $post_date = get_the_modified_time( 'F jS, Y' ); | |
| } |
| /* General */ | |
| .archive .audiotheme { | |
| margin-bottom: 40px; | |
| padding: 40px 40px 20px 40px; | |
| background: #fff; | |
| } | |
| .audiotheme .audiotheme-archive-title { | |
| margin-bottom: 1.6rem; |
| <?php | |
| //* Do NOT include the opening php tag | |
| // Add support for 4-column footer widgets | |
| add_theme_support( 'genesis-footer-widgets', 4 ); |
| <?php | |
| //* Do NOT include this comment or the opening php tag above | |
| //* Wrap first word of widget title into a span tag | |
| add_filter ( 'widget_title', 'b3m_add_span_widgets' ); | |
| function b3m_add_span_widgets( $old_title ) { | |
| $title = explode( " ", $old_title, 2 ); | |
| if ( isset( $title[0] ) && isset( $title[1] ) ) { |