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 | |
| /** | |
| * Section Title | |
| * | |
| */ | |
| function be_section_title() { | |
| $section_info = array( 'title' => '', 'subtitle' => '', 'title_url' => '', 'subtitle_url' => '' ); | |
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 | |
| /** | |
| * Template Name: Category Listing | |
| * | |
| * @package BE_Genesis_Child | |
| * @since 1.0.0 | |
| * @link https://github.com/billerickson/BE-Genesis-Child | |
| * @author Bill Erickson <[email protected]> | |
| * @copyright Copyright (c) 2011, Bill Erickson | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
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 Project Information After Content */ | |
| add_action ( 'genesis_sidebar', 'mmi_sing_project_side' ); | |
| function mmi_sing_project_side() { | |
| global $wp_query; | |
| $participants = $wp_query->post->ID; | |
| echo '<div class="mmi-sidebar">'; | |
| echo '<section class="widget">'; | |
| echo '<h4 class="widgettitle">Participate In This Project</h4>'; |
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
| <?php | |
| /* Template Name: Grid Archive */ | |
| /** | |
| * Category Loop | |
| * | |
| */ | |
| function be_category_loop() { | |
| global $post, $wp_query; | |
| $args = array( |
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 | |
| // Display artwork info in post, below post content | |
| add_filter('thematic_post', 'display_artwork_info'); | |
| function display_artwork_info() { | |
| global $artworkinfo_metabox; | |
| echo the_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
| <?php | |
| $key = get_post_meta($post->ID, 'your-key', true) ? get_post_meta($post->ID, 'your-key', true) : 'No Key, try again!'; | |
| echo $key; |
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 if(get_post_meta($post->ID, 'designed-by')){ | |
| ?><li class="designer">Designed by: <?php | |
| echo get_post_meta($post->ID, 'designed-by', $single = true); | |
| ?></li><?php | |
| } ?> |
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 | |
| if( get_post_meta( get_the_ID(), 'diww_sponsored', true ) == 'sponsored' ) { | |
| if( get_post_meta( get_the_ID(), 'diww_sponsored_type', true ) == 'giveaway' ) { | |
| $sponsored_content = '<p class="sponsored">This is a sponsored giveaway.</p>'; | |
| $sponsored_content .= $content; | |
| return $sponsored_content; | |
| } | |
| if( get_post_meta( get_the_ID(), 'diww_sponsored_type', true ) == 'review' ) { | |
| $sponsored_content = '<p class="sponsored">This is a sponsored review.</p>'; |
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 | |
| $contact_name = get_post_meta(get_the_ID(), 'secondary-contact-name', true); | |
| if(!empty($contact_name)): | |
| ?> | |
| <dt>Secondary contact</dt> | |
| <dd><?php echo apply_filters('the_content', $contact_name); ?></dd> | |
| <dd><?php echo apply_filters('the_content', get_post_meta(get_the_ID(), 'secondary-contact-phone', true)); ?></dd> |