本文整理汇总了PHP中article_time函数的典型用法代码示例。如果您正苦于以下问题:PHP article_time函数的具体用法?PHP article_time怎么用?PHP article_time使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了article_time函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: article_date
function article_date()
{
if (article_time() !== '') {
return date(Config::get('metadata.date_format'), article_time());
}
return '';
}
示例2: article_title
?>
" title="<?php
echo article_title();
?>
"><?php
echo article_title();
?>
</a>
</h2>
<footer>
Posted <time datetime="<?php
echo date(DATE_W3C, article_time());
?>
"><?php
echo relative_time(article_time());
?>
</time> by <?php
echo article_author('real_name');
?>
.
</footer>
</article>
<hr>
</li>
<?php
}
?>
</ul>
<?php
示例3: theme_include
theme_include('header');
?>
<div class="box">
<section class="content wrap" id="article-<?php
echo article_id();
?>
">
<h1><?php
echo article_title();
?>
</h1>
<small class="muted">
<time datetime="<?php
echo date(DATE_W3C, article_time());
?>
"><?php
echo article_date();
?>
</time>
</small>
<article>
<?php
echo article_markdown();
?>
</article>
</section>
</div>
示例4: defined
<?php
defined('IN_CMS') or die('No direct access allowed.');
$home = is_postspage();
$url = isset($url) && !$home ? $url : article_url();
$title = isset($title) && !$home ? $title : article_title();
$time = isset($time) && !$home ? $time : article_time();
$excerpt = isset($excerpt) && !$home ? $excerpt : trim(article_description());
$excerpt = $excerpt == "" ? false : $excerpt;
$content = isset($content) && !$home ? $content : article_html();
$image = isset($image) && !$home ? $image : article_custom_field('img', false);
$isArticle = isset($isArticle) && $isArticle;
$uurl = urlencode(full_url());
$utitle = urlencode($title);
$tags = array("theme_url" => theme_url());
foreach ($tags as $s => $r) {
$content = str_replace("{" . $s . "}", $r, $content);
}
?>
<li class="<?php
if (isset($first) && $first) {
echo "showContent";
}
if (!$time) {
echo " noFooter";
}
echo is_single() ? " single" : " multiple";
?>
">
<header tabindex="-1">
<!--<a href="<?php
示例5: article_url
?>
<article>
<header>
<h1><a href="<?php
echo article_url();
?>
"><?php
echo article_title();
?>
</a></h1>
<div class="meta">
<time datetime="<?php
echo date(DATE_W3C, article_time());
?>
"><?php
echo date('M j, Y - g:i a', article_time());
?>
</time>
</div>
</header>
<?php
echo split_content(article_markdown());
?>
<p><a href="<?php
echo article_url();
?>
" rel="article">Read More</a></p>
</article>
<?php
}
示例6: theme_include
theme_include('header');
?>
<section class="article header">
<div class="row">
<div class="medium-12 columns">
<h1><?php
echo article_title();
?>
</h1>
<p>By <?php
echo article_author();
?>
at <?php
echo date('Y-m-d', article_time());
?>
</p>
</div>
</div>
</section>
<section class="article content">
<div class="row">
<div class="medium-12 columns">
<h2><?php
echo article_title();
?>
</h2>
<article>
<?php
示例7: article_id
include "langVars.php";
?>
<div
class="articleContainer col-lg-8 col-lg-offset-2 col-md-8 col-md-offset-2 col-sm-10 col-sm-offset-1 col-xs-12 col-sm-offset-0">
<section class="content wrap" id="article-<?php
echo article_id();
?>
">
<h1 class=""><?php
echo article_title();
?>
</h1>
<?php
echo "<time class='date' datetime=" . date(DATE_W3C, article_time()) . ">" . utf8_encode(strftime('%d %B %Y', article_time())) . "</time>";
?>
<article>
<?php
echo article_markdown();
?>
</article>
<div class="articleAuthorTextRules">
<?php
echo "auteur : " . article_author();
?>
</div>
</section>
示例8: article_custom_field
echo article_custom_field('featured-image', '/themes/balzac/img/soft-trees.jpg');
?>
);"></div>
<article class="wrap post">
<header class="post-header">
<hgroup>
<h1><?php
echo article_title();
?>
</h1>
<p class="date"><time datetime="<?php
echo date(DATE_W3C, article_time());
?>
"><?php
echo date('F jS, Y', article_time());
?>
</time></p>
<p class="intro"><?php
echo article_description();
?>
</p>
</hgroup>
</header>
<?php
echo article_markdown();
?>
<a href="http://twitter.com/share?url=<?php
echo full_url() . substr(article_url(), 1);
示例9: comment_name
$i++;
?>
<li>
<header>
<h2 data-id="<?php
echo $i;
?>
"><?php
echo comment_name();
?>
</h2>
<time datetime="<?php
echo date(DATE_W3C, article_time());
?>
"><?php
echo date('d-m-Y H:i', article_time());
?>
</time>
</header>
<p><?php
echo comment_text();
?>
</p>
</li>
<?php
}
?>
</ul>
</section>
<?php