Exemplo n.º 1
0
function article_date()
{
    if (article_time() !== '') {
        return date(Config::get('metadata.date_format'), article_time());
    }
    return '';
}
Exemplo n.º 2
0
        ?>
" 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 
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>
Exemplo n.º 4
0
<?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 
Exemplo n.º 5
0
        ?>
			<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 
    }
Exemplo n.º 6
0
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 
Exemplo n.º 7
0
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>
Exemplo n.º 8
0
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);
Exemplo n.º 9
0
        $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