<?php /** * Shows the byline of a post/page in a single line. This file should not be loaded by itself, but should instead be included using get_template_part or locate_template. * Users can override this in a child theme. * * @since 3.8.9 * @package Suffusion * @subpackage Custom */ global $post, $suf_page_show_comment, $suf_page_show_posted_by, $suf_page_meta_position; $format = suffusion_get_page_template(); if ($format == 'standard') { $format = ''; } else { $format = $format . '_'; } $show_posted_by = 'suf_page_show_posted_by'; $show_comment = 'suf_page_show_comment'; global ${$show_posted_by}, ${$show_comment}; $post_show_posted_by = ${$show_posted_by}; $post_show_comment = ${$show_comment}; if ($post_show_posted_by != 'hide' || $post_show_comment != 'hide') { ?> <div class='postdata line'> <?php if ($post_show_posted_by != 'hide') { suffusion_print_author_byline(); } if (is_singular() && $post_show_comment != 'hide') { if ('open' == $post->comment_status) {
function suffusion_print_line_byline($position) { global $post, $suf_page_meta_position; if (!is_singular() && $post->post_type != 'page' || is_singular() && !is_page()) { $original_format = suffusion_get_post_format(); if ($original_format == 'standard') { $format = ''; } else { $format = $original_format . '_'; } $meta_position = 'suf_post_' . $format . 'meta_position'; global ${$meta_position}; $post_meta_position = apply_filters('suffusion_byline_position', ${$meta_position}); if ($post_meta_position == $position) { get_template_part('custom/byline-line', $original_format); } } if ($suf_page_meta_position == $position && (is_page() || !is_singular() && $post->post_type == 'page')) { get_template_part('custom/byline-line-page', suffusion_get_page_template()); } }