Esempio n. 1
0
<?php 
if ('' != $thumb && 'false' != $show_thumb) {
    ?>
	<div class="post-thumbnail">
		<?php 
    print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
    ?>
		<div class="post-description">
			<h1><?php 
    the_title();
    ?>
</h1>
		<?php 
    if ($single_postinfo && !is_page()) {
        echo '<p class="meta-info">';
        et_postinfo_meta($single_postinfo, et_get_option('explorable_date_format', 'M j, Y'), esc_html__('0 comments', 'Explorable'), esc_html__('1 comment', 'Explorable'), '% ' . esc_html__('comments', 'Explorable'));
        echo '</p>';
    }
    ?>
		</div> <!-- .post-description -->
	<?php 
    if (($author_avatar = get_avatar(get_the_author_meta('ID'), 61)) && 'on' == et_get_option('explorable_show_avatar_on_posts', 'on') && '' != $author_avatar && !is_page()) {
        ?>
		<?php 
        echo '<span class="et-avatar">' . $author_avatar . '</span>';
        ?>
	<?php 
    }
    ?>
	</div> <!-- .post-thumbnail -->
<?php 
Esempio n. 2
0
 function et_vertex_post_meta()
 {
     $postinfo = is_single() ? et_get_option('vertex_postinfo2') : et_get_option('vertex_postinfo1');
     if ($postinfo) {
         if (!is_single()) {
             echo '<p class="meta-info">';
         }
         et_postinfo_meta($postinfo, et_get_option('vertex_date_format', 'M j, Y'), esc_html__('0 comments', 'Vertex'), esc_html__('1 comment', 'Vertex'), '% ' . esc_html__('comments', 'Vertex'));
         if (!is_single()) {
             echo '</p>';
         }
     }
 }
Esempio n. 3
0
 function et_divi_post_meta()
 {
     $postinfo = is_single() ? et_get_option('divi_postinfo2') : et_get_option('divi_postinfo1');
     if ($postinfo) {
         echo '<p class="post-meta">';
         et_postinfo_meta($postinfo, et_get_option('divi_date_format', 'M j, Y'), esc_html__('0 comments', 'Divi'), esc_html__('1 comment', 'Divi'), '% ' . esc_html__('comments', 'Divi'));
         echo '</p>';
     }
 }
Esempio n. 4
0
"><?php 
the_title();
?>
</a></h2>
<?php 
$index_postinfo = et_get_option('fusion_postinfo1');
$thumb = '';
$width = (int) apply_filters('et_blog_image_width', 623);
$height = (int) apply_filters('et_blog_image_height', 200);
$classtext = '';
$titletext = get_the_title();
$thumbnail = get_thumbnail($width, $height, $classtext, $titletext, $titletext, false, 'Indeximage');
$thumb = $thumbnail["thumb"];
if ($index_postinfo) {
    echo '<p class="meta-info">';
    et_postinfo_meta($index_postinfo, et_get_option('fusion_date_format', 'M j, Y'), esc_html__('0 comments', 'Fusion'), esc_html__('1 comment', 'Fusion'), '% ' . esc_html__('comments', 'Fusion'));
    echo '</p>';
}
?>

<?php 
if ('on' == et_get_option('fusion_thumbnails_index', 'on') && '' != $thumb) {
    ?>
	<div class="entry-thumbnail">
		<a href="<?php 
    the_permalink();
    ?>
">
			<?php 
    print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
    ?>
Esempio n. 5
0
		<?php 
} else {
    ?>
		<h2 class="title"><a href="<?php 
    the_permalink();
    ?>
"><?php 
    the_title();
    ?>
</a></h2>
		<?php 
}
?>

		<?php 
et_postinfo_meta();
?>

		<div class="entry-content clearfix">
		<?php 
if (is_single()) {
    the_content();
    wp_link_pages(array('before' => '<p><strong>' . esc_attr__('Pages', 'Serene') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
    the_tags('<ul class="et-tags clearfix"><li>', '</li><li>', '</li></ul>');
    edit_post_link(esc_attr__('Edit this post', 'Serene'));
} else {
    if (false === ($show_content = get_theme_mod('show_content')) || '' === $show_content) {
        the_excerpt();
    } else {
        the_content();
    }
Esempio n. 6
0
 function et_fable_post_meta()
 {
     $postinfo = is_single() ? et_get_option('fable_postinfo1') : et_get_option('fable_postinfo2');
     if ($postinfo) {
         echo '<p class="meta-info">';
         et_postinfo_meta($postinfo, et_get_option('fable_date_format', 'M j, Y'), esc_html__('0 comments', 'Fable'), esc_html__('1 comment', 'Fable'), '% ' . esc_html__('comments', 'Fable'));
         echo '</p>';
     }
 }
Esempio n. 7
0
</a></h2>
	<?php 
} else {
    ?>
		<h1 class="title"><?php 
    the_title();
    ?>
</h1>
	<?php 
}
?>

	<?php 
if ($postinfo && !is_page() && (!is_post_type_archive('gallery') && !is_tax('gallery_category'))) {
    echo '<p class="meta-info">';
    et_postinfo_meta($postinfo, et_get_option('harmony_date_format', 'M j, Y'), esc_html__('0 comments', 'Harmony'), esc_html__('1 comment', 'Harmony'), '% ' . esc_html__('comments', 'Harmony'));
    echo '</p>';
}
if (is_post_type_archive('gallery') || is_tax('gallery_category')) {
    $et_gallery_date = get_post_meta(get_the_ID(), '_et_gallery_date', true);
    if ('' != $et_gallery_date) {
        echo '<p class="meta-info">' . sprintf(__('Gallery Date: %1$s', 'Harmony'), esc_html(date_i18n(et_get_option('harmony_date_format', 'M j, Y'), $et_gallery_date))) . '</p>';
    }
}
?>

	<?php 
if ('' != $thumb && 'false' != $show_thumb) {
    ?>
		<div class="post-thumbnail">
		<?php 
Esempio n. 8
0
<?php

if (!is_single() && ($index_postinfo = get_option('gleam_postinfo1')) && $index_postinfo) {
    ?>
	<p class="meta">
		<?php 
    et_postinfo_meta($index_postinfo, get_option('gleam_date_format'), esc_html__('0 comments', 'Gleam'), esc_html__('1 comment', 'Gleam'), '% ' . esc_html__('comments', 'Gleam'));
    ?>
	</p>
<?php 
} elseif (is_single() && get_option('gleam_postinfo2')) {
    ?>
	<p class="meta-info">
		<?php 
    et_postinfo_meta(get_option('gleam_postinfo2'), get_option('gleam_date_format'), esc_html__('0 comments', 'Gleam'), esc_html__('1 comment', 'Gleam'), '% ' . esc_html__('comments', 'Gleam'));
    ?>
	</p>
<?php 
}
Esempio n. 9
0
<?php

if (!is_single() && get_option('feather_postinfo1')) {
    ?>
	<p class="meta-info"><?php 
    et_postinfo_meta(get_option('feather_postinfo1'), get_option('feather_date_format'), esc_html__('0 comments', 'Feather'), esc_html__('1 comment', 'Feather'), '% ' . esc_html__('comments', 'Feather'));
    ?>
</p>
<?php 
} elseif (is_single() && get_option('feather_postinfo2')) {
    ?>
	<p class="meta-info">
		<?php 
    global $query_string;
    $new_query = new WP_Query($query_string);
    while ($new_query->have_posts()) {
        $new_query->the_post();
    }
    ?>
			<?php 
    et_postinfo_meta(get_option('feather_postinfo2'), get_option('feather_date_format'), esc_html__('0 comments', 'Feather'), esc_html__('1 comment', 'Feather'), '% ' . esc_html__('comments', 'Feather'));
    ?>
		<?php 
    wp_reset_postdata();
    ?>
	</p>
<?php 
}
Esempio n. 10
0
            ?>
			<div class="post-thumbnail">
				<?php 
            print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext, $width, $height, $classtext);
            ?>
			</div> 	<!-- end .post-thumbnail -->
		<?php 
        }
        ?>

		<div class="post-content">
			<?php 
        $index_postinfo = et_get_option('flexible_postinfo2');
        if ($index_postinfo) {
            echo '<p class="meta-info">';
            et_postinfo_meta($index_postinfo, et_get_option('flexible_date_format'), esc_html__('0 comments', 'Flexible'), esc_html__('1 comment', 'Flexible'), '% ' . esc_html__('comments', 'Flexible'));
            echo '</p>';
        }
        ?>
			<?php 
        the_content();
        ?>
			<?php 
        wp_link_pages(array('before' => '<p><strong>' . esc_attr__('Pages', 'Flexible') . ':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
        ?>
			<?php 
        edit_post_link(esc_attr__('Edit this page', 'Flexible'));
        ?>
		</div> 	<!-- end .post-content -->
	</article> <!-- end .entry -->
Esempio n. 11
0
	<article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('entry-content clearfix');
        ?>
>
		<div class="main-title">
			<h1><?php 
        the_title();
        ?>
</h1>
		<?php 
        if ($single_postinfo) {
            echo '<p class="meta-info">';
            et_postinfo_meta($single_postinfo, et_get_option('origin_date_format'), esc_html__('0 comments', 'Origin'), esc_html__('1 comment', 'Origin'), '% ' . esc_html__('comments', 'Origin'));
            echo '</p>';
        }
        ?>
		</div> <!-- .main-title -->

	<?php 
        if ((has_post_thumbnail($post_id) || '' != get_post_meta($post_id, 'Thumbnail', true)) && 'on' == et_get_option('origin_thumbnails')) {
            ?>
		<div class="post-thumbnail">
		<?php 
            if (has_post_thumbnail($post_id)) {
                the_post_thumbnail('full');
            } else {
                printf('<img src="%1$s" alt="%2$s" />', esc_attr(get_post_meta($post_id, 'Thumbnail', true)), the_title_attribute(array('echo' => 0)));
            }
Esempio n. 12
0
}
?>
	<hgroup class="section-title">
		<h1><?php 
echo wp_kses($et_page_title, array('span' => array()));
?>
</h1>
	<?php 
if ($et_tagline != '') {
    ?>
		<h3><?php 
    echo wp_kses($et_tagline, array('span' => array()));
    ?>
</h3>
	<?php 
}
?>
	<?php 
if (is_single() && 'project' != get_post_type(get_the_ID())) {
    $single_postinfo = et_get_option('nimble_postinfo2');
    if ($single_postinfo && have_posts()) {
        the_post();
        echo '<p class="main_post_info">';
        et_postinfo_meta($single_postinfo, et_get_option('nimble_date_format'), esc_html__('0 comments', 'Nimble'), esc_html__('1 comment', 'Nimble'), '% ' . esc_html__('comments', 'Nimble'));
        echo '</p>';
        rewind_posts();
    }
}
?>
	</hgroup>
</div> <!-- end #page-name -->