Пример #1
0
    // Search form
    if (1 === $show_search) {
        get_search_form();
    }
    ?>
			<?php 
    // Social links
    ttfmake_maybe_show_social_links('header');
    ?>
			<?php 
    // Header text; shown only if there is no header menu
    if ((!empty($header_text) || ttfmake_is_preview()) && empty($header_bar_menu)) {
        ?>
				<span class="header-text">
				<?php 
        echo ttfmake_sanitize_text($header_text);
        ?>
				</span>
			<?php 
    }
    ?>
			<?php 
    echo $header_bar_menu;
    ?>
		</div>
	</div>
	<?php 
}
?>
	<div class="site-header-main">
		<div class="container">
Пример #2
0
            }
            ?>
				<?php 
            if ('' !== $item['description']) {
                ?>
				<div class="builder-gallery-description">
					<?php 
                ttfmake_get_builder_save()->the_builder_content($item['description']);
                ?>
				</div>
				<?php 
            } elseif (has_excerpt($item['image-id'])) {
                ?>
				<div class="builder-gallery-description">
					<?php 
                echo ttfmake_sanitize_text(get_post($item['image-id'])->post_excerpt);
                ?>
				</div>
				<?php 
            }
            ?>
			</div>
			<?php 
        }
        ?>
		</div>
		<?php 
    }
}
?>
	</div>
Пример #3
0
/**
 * Allow toggling of the footer credit.
 *
 * @since 1.2.3.
 *
 * @param bool    $show    Whether or not to show the footer credit.
 */
$footer_credit = apply_filters('make_show_footer_credit', true);
?>

<?php 
if ($footer_text || ttfmake_is_preview()) {
    ?>
<div class="footer-text">
	<?php 
    echo ttfmake_sanitize_text($footer_text);
    ?>
</div>
<?php 
}
?>

<?php 
if (true === $footer_credit) {
    ?>
<div class="site-info">
	<span class="theme-name">Make: A WordPress template</span>
	<span class="theme-by"><?php 
    _ex('by', 'attribution', 'make');
    ?>
</span>
Пример #4
0
    if (!is_singular()) {
        ?>
<a href="<?php 
        the_permalink();
        ?>
" rel="bookmark"><?php 
    }
    ?>
		<?php 
    echo $thumbnail_html;
    ?>
	<?php 
    if (!is_singular()) {
        ?>
</a><?php 
    }
    ?>
	<?php 
    if (is_singular() && has_excerpt($thumbnail_id)) {
        ?>
	<figcaption class="entry-thumbnail-caption">
		<?php 
        echo ttfmake_sanitize_text(get_post($thumbnail_id)->post_excerpt);
        ?>
	</figcaption>
	<?php 
    }
    ?>
</figure>
<?php 
}
Пример #5
0
<div class="entry-author">
	<?php 
    if ('avatar' === $author_option) {
        ?>
	<div class="entry-author-avatar">
		<?php 
        printf('<a class="vcard" href="%1$s">%2$s</a>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), get_avatar(get_the_author_meta('ID')));
        ?>
	</div>
	<?php 
    }
    ?>
	<div class="entry-author-byline">
		<?php 
    printf(_x('by %s', 'author byline', 'make'), sprintf('<a class="vcard fn" href="%1$s">%2$s</a>', esc_url(get_author_posts_url(get_the_author_meta('ID'))), esc_html(get_the_author_meta('display_name'))));
    ?>
	</div>
	<?php 
    if (is_singular() && ($author_bio = get_the_author_meta('description'))) {
        ?>
	<div class="entry-author-bio">
		<?php 
        echo wpautop(ttfmake_sanitize_text($author_bio));
        ?>
	</div>
	<?php 
    }
    ?>
</div>
<?php 
}