Example #1
0
>
	
	<?php 
    do_action('graphene_before_post');
    ?>
	
	<div class="entry clearfix">                
		
        <?php 
    /* Add a print button only for single pages/posts 
     * and if the theme option is enabled.
     */
    if ($graphene_settings['print_button']) {
        ?>
			<?php 
        graphene_print_button($post_type);
        ?>
		<?php 
    }
    ?>
		
		<?php 
    /* Add an email post icon if the WP-Email plugin is installed and activated */
    if (function_exists('wp_email') && is_singular()) {
        echo '<p class="email wp-email-button">';
        email_link();
        echo '</p>';
    }
    ?>
        
		<?php 
Example #2
0
		
        <?php 
    /* Show the post author's gravatar if enabled */
    if ($graphene_settings['show_post_avatar']) {
        echo '<div class="post-avatar-wrap gutter-left">' . get_avatar(get_the_author_meta('user_email'), 45) . '</div>';
    }
    ?>
        
        <?php 
    /* Add a print button only for single pages/posts 
     * and if enabled in the theme option.
     */
    if ($graphene_settings['print_button'] && is_singular()) {
        ?>
			<?php 
        graphene_print_button();
        ?>
		<?php 
    }
    ?>
		
		<?php 
    /* Add an email post icon if the WP-Email plugin is installed and activated */
    if (function_exists('wp_email') && is_singular()) {
        echo '<p class="email wp-email-button">';
        email_link();
        echo '</p>';
    }
    ?>
        
		<?php