PHP Classes

File: examples/blog/app/blog/templates/posts.php

Recommend this page to a friend!
  Packages of Haseeb Ahmad Basil   PHP Skeleton Framework   examples/blog/app/blog/templates/posts.php   Download  
File: examples/blog/app/blog/templates/posts.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Skeleton Framework
Extensive Web application development framework
Author: By
Last change:
Date: 10 years ago
Size: 515 bytes
 

Contents

Class file image Download

<h3>This is a list of all posts</h3>


    <?php foreach($content as $article){
        echo '<div class="post">';
        echo '<h2 class="post_title"><a href="blog/posts/'. $article['post_id'] . '">' . $article['title'] . '</a></h2>';
        echo '<p class="post_meta">On ' .  $article['post_date'] . ' by ' . $article['username'] . '</p>';
        echo '<p>' .  $article['excerpt'] . '</p>';
        echo '<p>' .  $article['content'] . '</p>';
        echo '<p class="comment_meta">' . $article['nocomms'] . ' comments</p>';
        echo '</div>';
    } ?>