本文整理汇总了PHP中the_modified_time函数的典型用法代码示例。如果您正苦于以下问题:PHP the_modified_time函数的具体用法?PHP the_modified_time怎么用?PHP the_modified_time使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_modified_time函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: bfa_parse_date_modified_callback
function bfa_parse_date_modified_callback($matches)
{
ob_start();
the_modified_time($matches[2]);
$date_modified = ob_get_contents();
ob_end_clean();
return $date_modified;
}
示例2: widget
function widget($args, $instance)
{
global $post, $wpdb;
if (!is_front_page()) {
$cat_ID = get_query_var('cat');
$top_dow_apps = new WP_Query(array('post_type' => 'apps', 'posts_per_page' => 5, 'order' => 'DSC', 'cat' => $cat_ID));
?>
<div class="sidebar-widget">
<h3 class="widget-head">Top Downloads</h3>
<ul class = "sb-tabs-wrap" >
<?php
while ($top_dow_apps->have_posts()) {
$top_dow_apps->the_post();
?>
<li>
<div class="sb-post-thumbnail">
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">
<?php
the_post_thumbnail(array(80, 80), array('alt' => get_the_title()));
?>
</a>
</div>
<div class="sb-post-list-title">
<h4><a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
"><?php
the_title();
?>
</a></h4>
<div class="sb-post-meta">
<p><?php
the_modified_time('F jS, Y');
?>
</p>
</div>
<div class="sb-post-meta">
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">Learn More</a>
</div>
</div>
</li>
<?php
}
wp_reset_query();
?>
</ul>
</div>
<div class=" clearfix" > </div>
<?php
}
?>
<?php
if (is_front_page()) {
?>
<div class="sidebar-widget">
<h3 class="widget-head">Top Downloads</h3>
<ul class = "sb-tabs-wrap" >
<?php
$top_dow_apps = new WP_Query(array('post_type' => 'apps', 'posts_per_page' => 5, 'order' => 'DSC', 'cat' => 18, 21));
?>
<?php
while ($top_dow_apps->have_posts()) {
$top_dow_apps->the_post();
?>
<li>
//.........这里部分代码省略.........
示例3: the_modified_time
<?php
}
?>
</div><!-- .event-main-content -->
<?php
}
?>
</div><!-- .event-table -->
<div class="event-timestamp">
<p>Updated: <?php
the_modified_time('n/j/Y');
?>
at <?php
the_modified_time('g:i a');
?>
EST</p>
</div>
</div>
<div class="clearfix"> </div>
<?php
if (get_the_content()) {
?>
<div class="event-content"><?php
the_content();
?>
</div>
<?php
}
?>
示例4: the_title
}
if (get_post_meta($post->ID, 'pyre_project_desc_title', true) == 'no') {
$project_desc_title_style = 'display:none;';
}
?>
<div class="project-content">
<span class="entry-title" ><?php
the_title();
?>
</span>
<span class="vcard" style="display: none;"><span class="fn"><?php
the_author_posts_link();
?>
</span></span>
<span class="updated" style="display: none;"><?php
the_modified_time('c');
?>
</span>
<div class="project-description post-content" style="<?php
echo $project_desc_style;
?>
">
<?php
if (!post_password_required($post->ID)) {
?>
<div class="title"><h2><?php
echo __('Job Description', 'evolve');
?>
</h2><div class="title-sep-container"><div class="title-sep"></div></div></div>
<?php
示例5: xt_post_date
function xt_post_date()
{
$format = get_option('date_format');
?>
<time datetime="<?php
the_time('c');
?>
" itemprop="datePublished"><?php
the_time($format);
?>
</time>
<meta itemprop="dateModified" content="<?php
the_modified_time('c');
?>
">
<?php
}
示例6: post_class
?>
" <?php
post_class('cf');
?>
role="article" itemscope itemtype="http://schema.org/AudioObject">
<header class="article-header">
<h1 class="entry-title single-title" itemprop="name"><?php
the_title();
?>
</h1>
<p class="byline entry-meta vcard">
<i class="fa fa-thumb-tack"></i> <?php
the_modified_time(__('j F Y', 'bonestheme'));
?>
</p>
</header> <?php
// end article header
?>
<section class="entry-content cf" itemprop="description">
<?php
// the content (pretty self explanatory huh)
the_content();
/*
* Link Pages is used in case you have posts that are set to break into
* multiple pages. You can remove this if you don't plan on doing that.
*
示例7: the_ID
<article id="post-<?php
the_ID();
?>
" <?php
post_class('cf');
?>
role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="article-header">
<!-- <h1 class="page-title"><?php
the_title();
?>
</h1> -->
<p class="byline vcard">Last updated: <?php
the_modified_time(get_option('date_format'));
?>
</p>
</header>
<section class="entry-content cf coming-soon" itemprop="articleBody">
<div class="page-content coming-soon m-all t-all d-all">
<!-- <div class="section share-page">
<h2><span>Share this page</span></h2>
<?php
//if(function_exists('add_social_button_in_content')) echo add_social_button_in_content();
?>
</div>-->
<!-- <div class="clock-wrapper">
<div class="flip-counter clock"></div>
示例8: the_field
the_field('tech-list');
?>
" title="">【返回专题索引页】</a>
<span id="view-next"><a href="<?php
the_field('tech-next');
?>
" title="">下一节 »</a></span>
</div>
<div id="book2-content-right"><?php
the_field('tech-content');
?>
</div>
</div>
<div id="book-meta"><?php
the_modified_time('Y年n月j日');
?>
- By <?php
the_author();
?>
</div>
</article><!-- #post -->
<?php
}
// end of the loop.
?>
</div>
<div id="clear"></div>
</div><!-- #content -->
示例9: in_array
@if(is_array(get_field('show_date_updated','option')) && in_array(get_post_type(get_the_id()), get_field('show_date_updated','option')))
<li>
<strong><?php
_e("Last updated", 'municipio');
?>
:</strong>
<time datetime="<?php
echo the_modified_time('Y-m-d H:i');
?>
">
<?php
the_modified_time('j F Y');
?>
kl. <?php
the_modified_time('H:i');
?>
</time>
</li>
@endif
@endif
@else
@if (is_array(get_field('show_date_published','option')) && in_array(get_post_type(get_the_id()), get_field('show_date_published','option')))
<li>
<strong><?php
_e("Published", 'municipio');
?>
:</strong>
<time datetime="<?php
示例10: the_post_thumbnail
<figure>
<?php
the_post_thumbnail('article-thumb', array('class' => 'center-block img-responsive', 'alt' => trim(strip_tags(get_post_meta(get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true)))));
?>
</figure>
</div>
<?php
}
?>
<div itemprop="text"><?php
the_excerpt();
?>
</div>
<p class="label label-info"><?php
_e('Last edit:', 'ItalyStrap');
?>
<time datetime="<?php
the_modified_time('Y-m-d');
?>
" itemprop="dateModified"><?php
the_modified_time('d F Y');
?>
</time></p>
<span class="clearfix"></span>
</section>
<?php
echo italystrap_ttr_wc();
?>
<span class="clearfix"></span>
</article>
<hr>
示例11: array
<!-- news -->
<?php
$args = array('post_type' => 'post', 'posts_per_page' => 10, 'tax_query' => array(array('taxonomy' => 'category', 'field' => 'slug', 'terms' => array('新闻文章'))));
$loop = new WP_Query($args);
if ($loop->have_posts()) {
while ($loop->have_posts()) {
$loop->the_post();
?>
<div><a href="<?php
the_permalink();
?>
"><?php
the_title();
?>
</a> <?php
the_modified_time('Y-m-d');
?>
</div>
<div><?php
the_excerpt();
?>
</div>
<?php
//wc_get_template_part( 'content', 'product' );
}
} else {
echo __('No news found');
}
?>
<!-- close news-->
<!-- products-->
示例12: the_modified_time
?>
</div>
<div class="gallery fulltext">
<?php
//Aktuelle Tweets von StudentenPACK
?>
<a class="twitter-timeline" width="480" data-dnt="true" href="https://twitter.com/StudentenPACK" data-widget-id="328640548414038017">Tweets by @StudentenPACK</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
<?php
//Aktuelle Tweets aus der Liste "Campus Lübeck"
?>
<a class="twitter-timeline" width="480" data-dnt="true" href="https://twitter.com/StudentenPACK/campus-l%C3%BCbeck" data-widget-id="328641330924371970">Tweets from @StudentenPACK/campus-l%C3%BCbeck</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</div>
<p class="page_modified">Seite bearbeitet: <?php
the_modified_time('j. M Y H:i');
?>
</p>
<?php
}
} else {
?>
<!-- olol, alles weg, gnihihi! -->
<?php
}
?>
</div>
</div>
示例13: wpi_widget_post_summary
/**
* Post summary, active at single & page
*/
function wpi_widget_post_summary()
{
global $post, $commentdata;
$section = is_at();
$name = 'about-articles';
$title = $section == 'single' ? 'About this articles' : 'About';
wpi_widget_start($title, $name);
$title = apply_filters('the_title', $post->post_title);
$link = _t('a', WPI_BLOG_NAME, array('href' => apply_filters(wpiFilter::FILTER_LINKS, WPI_URL_SLASHIT), 'title' => WPI_BLOG_NAME, 'rel' => 'home'));
$hdate = apply_filters('postdate', $post->post_date);
$date = _t('span', get_the_time(__('l M jS, Y', WPI_META)), array('class' => 'published-date', 'title' => $hdate));
$output = sprintf(__('<big>Y</big>ou’re currently reading “
<strong class="fw-">%1s</strong>”.
This entry appeared in %2s on %3s.', WPI_META), $title, $link, $date);
t('p', $output, array('class' => 'meta-title'));
?>
<p class="meta-published-date">
It was last updated at <span class="date"><?php
the_modified_time('H:i a');
?>
</span> on <span class="date"><?php
the_modified_time('M jS o');
?>
</span> approximately <sup>≅</sup> <span class="last-updated hdate"><?php
echo wpi_get_relative_date($post->post_modified);
?>
</span>.</p>
<?php
do_action('widget_single_summary_after');
wpi_widget_end();
}
示例14: the_post
<?php
if (have_posts()) {
the_post();
?>
<div class="post" id="post-<?php
the_ID();
?>
">
<h2 class="title"><?php
the_title();
?>
</h2>
<div class="meta">
<div class="info"><?php
_e('Update: ', 'blocks2');
the_modified_time(__('M jS, Y', 'blocks2'));
?>
</div>
<div class="comments">
<?php
if ($user_ID) {
?>
<a href="<?php
echo get_settings('siteurl');
?>
/wp-admin/link-add.php"><?php
_e('Add link', 'blocks');
?>
</a> |
<a href="<?php
示例15: the_title
" title="<?php
the_title();
?>
" alt="<?php
the_title();
?>
" width="1125px" height="200px" /></div>
<!--插件标签-->
<div id="addon-meta">
<span id="cloudid-box"><span id="yylmacro-meta-cloudid" class="yylmacro-meta">下载次数:</span><span id="cloudid"><?php
the_views($display = true, $prefix = '', $postfix = '', $always = false);
?>
</span></span>
<span class="yylmacro-meta">更新日期</span> <?php
the_modified_time('Ymd');
?>
<span class="yylmacro-meta">插件作者</span> <?php
the_field('addon_author');
?>
<span class="yylmacro-meta">插件版本</span> <?php
the_field('addon_version');
?>
<span class="yylmacro-meta">官方主页</span> <a href="<?php
the_field('addon_authorlink');
?>
" target="_blank">点击访问</a>
<div id="addon-down"><a href="<?php
the_field('addon_down');
?>
" title="" target="_blank"></a></div>