Ejemplo n.º 1
0
        echo ucfirst($article->title);
        ?>
                                </h2>
                                <h5>
                                    <span style="font-size:15px" class="glyphicon glyphicon-list-alt" aria-hidden="true"></span> <?php 
        echo ucfirst($article->category);
        ?>
                                </h5>
                                <h3 class="post-subtitle">
                                    <?php 
        echo ucfirst($article->getExtrait());
        ?>
                                </h3>
                            </a>
                            <p class="post-meta">Posté le <?php 
        echo $article->getDate();
        ?>
</p>
                        </div>
                    <?php 
    }
} else {
    $query = $article::getArticlesYears();
    if ($query == null) {
        echo "Aucun article trouvé...";
    }
    foreach ($query as $article) {
        ?>
                        <div class="post-preview post-preview2" style="padding-top:0;padding-bottom:25px" onclick="location.href='index.php?page=archive&year=<?php 
        echo $article->date_year;
        ?>
Ejemplo n.º 2
0
    <!-- Navigation -->
    <?php 
require_once "../template/header.php";
?>

    <!-- Post Content -->
    <article>
        <div class="container">
            <div class="row">
                <div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
                    <h1 style="font-size:25px;"><?php 
echo $article->title;
?>
</h1>
                    <?php 
echo $translator['POSTED_ON'] . " " . $article->getDate();
?>
                    <p><?php 
echo $article->getContent();
?>
</p>
                    <ul class="pager">
                        <li class="previous">
                            <a href="index.php?page=welcome">&larr; <?php 
echo $translator['GOHOME'];
?>
</a>
                        </li>

                        <li class="next">
                            <?php