Пример #1
0
?>

<?php 
if (is_singular()) {
    ?>

	<article id="post-<?php 
    the_ID();
    ?>
" <?php 
    post_class('grve-single-post');
    ?>
 itemscope itemType="http://schema.org/BlogPosting">
		<div id="grve-post-content">
			<?php 
    grve_print_post_header_title('content');
    ?>
			<?php 
    grve_print_post_single_meta();
    ?>
			<div itemprop="articleBody">
				<?php 
    the_content();
    ?>
			</div>
		</div>
	</article>

<?php 
} else {
    $grve_post_class = grve_get_post_class('grve-label-post');
Пример #2
0
$post_style = grve_option('post_style', 'default');
if ('simple' == $post_style) {
    $grve_post_area_class = 'grve-simple-style';
}
?>
	<div id="grve-main-content" class="<?php 
echo esc_attr($grve_post_area_class);
?>
">
		<?php 
the_post();
?>

		<?php 
if ('simple' != $post_style) {
    grve_print_post_header_title();
}
if ('default' == $post_style) {
    ?>

		<!-- Fields Bar -->
		<div id="grve-meta-bar" class="grve-fields-bar">
			<ul class="grve-meta-elements">
				<li class="grve-field-date"><span class="grve-icon-date"></span><?php 
    echo get_the_date();
    ?>
</li>
				<?php 
    if (grve_visibility('post_author_visibility')) {
        ?>
				<li><a href="#grve-about-author"><span class="grve-icon-user"></span><?php