Exemplo n.º 1
0
                if ($posts_amount < $pag_max && $posts_amount >= $pag_min) {
                    ArticleGenerator::newArticle($articlesdir, $article, $getblog);
                }
            } else {
                ArticleGenerator::newArticle($articlesdir, $article, $getblog);
            }
        }
        $posts_amount++;
    }
    if ($pagination) {
        include './res/php/Pagination.php';
    }
} elseif (isset($getarticle)) {
    // ARTICLE VIEW
    // generate the requested article
    ArticleGenerator::newArticle($articlesdir, $getarticle . ".md", $getblog);
    include './res/php/Disqus.php';
    // include disques
} else {
    // SOMETHING STRANGE: THIS SHOULDN'T HAPPEN
    echo "Some error occured, please go back.";
}
?>
    <div class="footer">
        <?php 
echo $blogfooter;
//print the blog footer
?>
    </div>
    <?php 
// show the fab if it's enabled
Exemplo n.º 2
0
                                   value="<?php 
    $tags = "";
    foreach (ArticleGenerator::getTags($directory, $article) as $tag) {
        $tags = $tags . ', ' . $tag;
    }
    $tags = substr($tags, 2);
    echo $tags;
    ?>
"
                                   class="itextfield" name="tags"
                                   id="tags"/></p>

            <p>Text:</p>
            <textarea class="itextarea" name="text" id="text">
                <?php 
    echo ArticleGenerator::getText($directory, $article);
    ?>
            </textarea>
            <br><br>
            <a class="button" id="save_changes">SAVE CHANGES</a>
        </section>
        <section class="card">
            <div class="headline">Back</div>
            <p>
                Go back to the RCC home. All changes will be lost.
            </p>
            <a class="button" href="../">BACK</a>
        </section>
        <?php 
} else {
    ?>