Ejemplo n.º 1
0
    /**
     * Outputs post author info for display on bottom of single posts
     *
     * @since Independent Publisher 1.0
     */
    function independent_publisher_posted_author_bottom_card()
    {
        do_action('independent_publisher_before_post_author_bottom_card');
        global $pageBodyID;
        if (true || $pageBodyID != "newsletter") {
            ?>

		<div class="post-author-bottom">
			<div class="post-author-card">
				<a class="site-logo" href="<?php 
            echo get_author_posts_url(get_the_author_meta('ID'));
            ?>
">
					<?php 
            echo get_avatar(get_the_author_meta('ID'), 100);
            ?>
				</a>

				<div class="post-author-info">
					<h1 class="site-title">
						<?php 
            independent_publisher_posted_author();
            ?>
					</h1>
					<?php 
            /* ODDI CUSTOM: add twitter handle to bio */
            $twitterHandle = get_the_author_meta('twitterHandle');
            $website = get_the_author_meta('user_url');
            if ($website && $website != '') {
                $website = '<br/><a href="' . $website . '">' . $website . '</a>';
            }
            if ($twitterHandle && $twitterHandle != '') {
                $twitterHandle = str_replace("@", "", $twitterHandle);
                echo '<div id="authorContact"><a href="//www.twitter.com/' . $twitterHandle . '">@' . $twitterHandle . '</a> ' . $website . '</div>';
            }
            ?>

					<h2 class="site-description"><?php 
            the_author_meta('description');
            ?>
</h2>


				</div>
				<div class="post-published-date">
					<h2 class="site-published"><?php 
            _e('Published', 'independent-publisher');
            ?>
</h2>
					<h2 class="site-published-date"><?php 
            independent_publisher_posted_on_date();
            ?>
</h2>
					<?php 
            /* Show last updated date if the post was modified AND
            			Show Updated Date on Single Posts option is enabled AND
            				'independent_publisher_hide_updated_date' Custom Field is not present on this post */
            ?>
					<?php 
            if (get_the_modified_date() !== get_the_date() && independent_publisher_show_updated_date_on_single() && !get_post_meta(get_the_ID(), 'independent_publisher_hide_updated_date', TRUE)) {
                ?>
						<h2 class="site-published"><?php 
                _e('Updated', 'independent-publisher');
                ?>
</h2>
						<h2 class="site-published-date"><?php 
                independent_publisher_post_updated_date();
                ?>
</h2>
					<?php 
            }
            ?>

					<?php 
            do_action('independent_publisher_after_post_published_date');
            ?>

				</div>
			</div>
		</div>
		<!-- .post-author-bottom -->
		<?php 
        }
        do_action('independent_publisher_after_post_author_bottom_card');
    }
    /**
     * Outputs post author info for display on bottom of single posts
     *
     * @since Independent Publisher 1.0
     */
    function independent_publisher_posted_author_bottom_card()
    {
        do_action('independent_publisher_before_post_author_bottom_card');
        ?>
		<div class="post-author-bottom">
			<div class="post-author-card">
				<a class="site-logo" href="<?php 
        echo get_author_posts_url(get_the_author_meta('ID'));
        ?>
">
					<?php 
        echo get_avatar(get_the_author_meta('ID'), 100);
        ?>
				</a>

				<div class="post-author-info">
					<h1 class="site-title">
						<?php 
        independent_publisher_posted_author();
        ?>
					</h1>

					<h2 class="site-description"><?php 
        the_author_meta('description');
        ?>
</h2>
				</div>
				<div class="post-published-date">
					<h2 class="site-published"><?php 
        _e('Published', 'independent-publisher');
        ?>
</h2>
					<h2 class="site-published-date"><?php 
        independent_publisher_posted_on_date();
        ?>
</h2>
					<?php 
        /* Show last updated date if the post was modified AND
        			Show Updated Date on Single Posts option is enabled AND
        				'independent_publisher_hide_updated_date' Custom Field is not present on this post */
        ?>
					<?php 
        if (get_the_modified_date() !== get_the_date() && independent_publisher_show_updated_date_on_single() && !get_post_meta(get_the_ID(), 'independent_publisher_hide_updated_date', TRUE)) {
            ?>
						<h2 class="site-published"><?php 
            _e('Updated', 'independent-publisher');
            ?>
</h2>
						<h2 class="site-published-date"><?php 
            independent_publisher_post_updated_date();
            ?>
</h2>
					<?php 
        }
        ?>

					<?php 
        do_action('independent_publisher_after_post_published_date');
        ?>

				</div>
			</div>
		</div>
		<!-- .post-author-bottom -->
		<?php 
        do_action('independent_publisher_after_post_author_bottom_card');
    }
Ejemplo n.º 3
0
    ?>
</em></h3>
		<?php 
    /* Show last updated date if the post was modified AND
    			Show Updated Date on Single Posts option is enabled AND
    				'independent_publisher_hide_updated_date' Custom Field is not present on this post */
    ?>
		<?php 
    if (get_the_modified_date() !== get_the_date() && independent_publisher_show_updated_date_on_single() && !get_post_meta(get_the_ID(), 'independent_publisher_hide_updated_date', TRUE)) {
        ?>
			<h3 class="entry-title-meta"><?php 
        _e('Updated', 'independent-publisher');
        ?>
</h3>
			<h3 class="entry-title-meta"><?php 
        independent_publisher_post_updated_date();
        ?>
</h3>
		<?php 
    }
    ?>
    
    <h3 class="entry-title-meta" style="padding-bottom: 10px;">Tags <em><?php 
    echo independent_publisher_post_categories(', ', false);
    ?>
</em></h3>
		</div>
		
		<?php 
    if (has_tag()) {
        echo '<h3 style="padding-top: 5px;" class="entry-title-meta">Teil der Story <em>' . independent_publisher_post_tags('', true) . '</em></h3>';