本文整理汇总了PHP中the_modified_time函数的典型用法代码示例。如果您正苦于以下问题:PHP the_modified_time函数的具体用法?PHP the_modified_time怎么用?PHP the_modified_time使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了the_modified_time函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:aagivecamp,项目名称:FlintRiver,代码行数:8,代码来源:bfa_postinfo.php
示例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>
//.........这里部分代码省略.........
开发者ID:KirBozhko,项目名称:apk4fun.loc,代码行数:101,代码来源:top-downloads.php
示例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
}
?>
开发者ID:VanessaGarcia-Freelance,项目名称:CrowdsLine,代码行数:31,代码来源:section-leaderboard-contest.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
开发者ID:berniecultess,项目名称:infirev,代码行数:31,代码来源:single-evolve_portfolio.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
}
开发者ID:venturepact,项目名称:blog,代码行数:17,代码来源:template.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.
*
开发者ID:hderaps,项目名称:ihaTemp,代码行数:31,代码来源:format-audio.php
示例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>
开发者ID:Valid,项目名称:voteforbernie.org,代码行数:30,代码来源:debate-page.php
示例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 -->
开发者ID:deepziyu,项目名称:JX3PVE,代码行数:31,代码来源:tech-book1.php
示例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
开发者ID:helsingborg-stad,项目名称:Municipio,代码行数:30,代码来源:timestamps.blade.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>
开发者ID:AndrGelmini,项目名称:ItalyStrap,代码行数:31,代码来源:content-archive.php
示例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-->
开发者ID:yjhcfzx,项目名称:test_woo,代码行数:31,代码来源:index.php
示例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>
开发者ID:TVLuke,项目名称:wordpress,代码行数:31,代码来源:page-social-media.php
示例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();
}
开发者ID:Creativebq,项目名称:wp-istalker,代码行数:34,代码来源:widgets.php
示例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
开发者ID:rubyerme,项目名称:rubyerme.github.com,代码行数:30,代码来源:links.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>
开发者ID:deepziyu,项目名称:JX3PVE,代码行数:31,代码来源:top-pve.php
示例16: dw_the_modified_time
function dw_the_modified_time($d, $query = false)
{
global $wp_query;
if (!$query) {
$query = $wp_query->query;
}
$query['posts_per_page'] = 1;
$query['order'] = 'DESC';
$query['orderby'] = 'modified';
$posts = new WP_Query($query);
if ($posts->have_posts()) {
while ($posts->have_posts()) {
$posts->the_post();
the_modified_time($d);
}
}
}
开发者ID:aromis,项目名称:dw-focus,代码行数:17,代码来源:functions.php
示例17: switch
switch ($column_name) {
case 'id':
?>
<th scope="row" style="text-align: center"><?php
echo $id;
?>
</th>
<?php
break;
case 'modified':
?>
<td><?php
if ('0000-00-00 00:00:00' == $post->post_modified) {
_e('Never');
} else {
the_modified_time(__('Y-m-d \\<\\b\\r \\/\\> g:i:s a'));
}
?>
</td>
<?php
break;
case 'date':
?>
<td><?php
if ('0000-00-00 00:00:00' == $post->post_date) {
_e('Unpublished');
} else {
the_time(__('Y-m-d \\<\\b\\r \\/\\> g:i:s a'));
}
?>
</td>
开发者ID:64kbytes,项目名称:stayinba,代码行数:31,代码来源:edit-post-rows.php
示例18: get_the_category_list
$categories_list = get_the_category_list(__(', ', 'eighties'));
if ($categories_list && eighties_categorized_blog()) {
?>
<span class="entry-meta entry-meta-categories"><?php
echo $categories_list;
?>
</span>
<?php
}
?>
<?php
the_title('<h1 class="entry-title">', '</h1>');
?>
<p class="entry-meta entry-meta-time">
<i class="fa fa-clock-o"></i><time class="updated" datetime="<?php
echo the_modified_time('Y-m-d H:i:s');
?>
"><?php
echo eighties_get_time_difference(get_the_date('Y-m-d H:i:s'));
?>
</time>
by
<span class="vcard author">
<span class="post-author author"><?php
echo the_author_posts_link();
?>
</span>
</span>
</p>
</header><!-- .entry-header -->
开发者ID:yannickloriot,项目名称:wp_theme_yannickloriot,代码行数:30,代码来源:content-single.php
示例19: get_day_link
}
?>
<?php
if (isset($theme_options['post_modified_date'])) {
?>
<div class="post-date"><i class="time icon"></i>atualizado em <a href="<?php
print get_day_link(get_the_modified_time('Y'), get_the_modified_time('m'), get_the_modified_time('d'));
?>
" title="<?php
the_modified_time('j \\d\\e F \\d\\e Y');
?>
"><time datetime="<?php
the_modified_time('Y-m-d\\TH:i:s+00:00');
?>
"><?php
the_modified_time('j \\d\\e F \\d\\e Y');
?>
</time></a></div><?php
}
?>
<?php
if (isset($theme_options['post_tag']) && has_tag()) {
?>
<div class="post-tag"><i class="tags icon"></i><?php
the_tags(' ', ', ');
?>
</div><?php
}
?>
<?php
if (isset($theme_options['post_category'])) {
开发者ID:CoordCulturaDigital-Minc,项目名称:cdigital2014,代码行数:31,代码来源:single.php
示例20: while
<?php
if (have_posts()) {
while (have_posts()) {
the_post();
?>
<div class="post" id="post-<?php
the_ID();
?>
">
<h1 class='compact-top'><?php
the_title();
?>
</h1>
<!-- <p class="postdate"><?php
the_modified_time('l, j F Y');
?>
</p>-->
<div class="entry">
<?php
the_content('<p class="serif">Read the rest of this page »</p>');
?>
<?php
wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
?>
</div>
</div>
<?php
开发者ID:joycetipping,项目名称:cherry,代码行数:31,代码来源:page.php
注:本文中的the_modified_time函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论