本文整理汇总了PHP中et_postinfo_meta函数的典型用法代码示例。如果您正苦于以下问题:PHP et_postinfo_meta函数的具体用法?PHP et_postinfo_meta怎么用?PHP et_postinfo_meta使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了et_postinfo_meta函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: print_thumbnail
<?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
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:content.php
示例2: et_vertex_post_meta
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>';
}
}
}
开发者ID:iinspiration,项目名称:theme,代码行数:13,代码来源:functions.php
示例3: et_divi_post_meta
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>';
}
}
开发者ID:ahmedghazi,项目名称:tpls,代码行数:9,代码来源:functions.php
示例4: the_title
"><?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);
?>
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:entry.php
示例5: the_permalink
<?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();
}
开发者ID:vladootz,项目名称:demo-theme,代码行数:31,代码来源:content.php
示例6: et_fable_post_meta
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>';
}
}
开发者ID:iinspiration,项目名称:theme,代码行数:9,代码来源:functions.php
示例7: the_title
</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
开发者ID:iinspiration,项目名称:theme,代码行数:31,代码来源:content.php
示例8: et_postinfo_meta
<?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
}
开发者ID:iinspiration,项目名称:theme,代码行数:19,代码来源:postinfo.php
示例9: et_postinfo_meta
<?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
}
开发者ID:iinspiration,项目名称:theme,代码行数:28,代码来源:postinfo.php
示例10: print_thumbnail
?>
<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 -->
开发者ID:AttyC,项目名称:elizafilby,代码行数:30,代码来源:loop-single.php
示例11: the_ID
<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)));
}
开发者ID:cabelotaina,项目名称:redelivre,代码行数:31,代码来源:loop-single.php
示例12: wp_kses
}
?>
<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 -->
开发者ID:natduffy,项目名称:wp-sandbox,代码行数:31,代码来源:top_info.php
注:本文中的et_postinfo_meta函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论