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

Recommend this page to a friend!
  Classes of Haseeb Ahmad Basil  >  PHP Skeleton Framework  >  examples/cms/app/blog/templates/posts.php  >  Download  
File: examples/cms/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: 5 years ago
Size: 389 bytes
 

Contents

Class file image Download
<h1>Posts</h1>
<p>This is a list of all posts</p>

<ul>
    <?php foreach($content as $article){
        echo
'<li>';
        echo
'<h4><a href="'. $article['permalink'] . '">' . $article['title'] . '</a></h4>';
        echo
'<p>' . date('F jS, Y', strtotime($article['date']) ) . '</p>';
        echo
'<p>' . $article['excerpt'] . '</p>';
        echo
'<p>' . $article['content'] . '</p>';
        echo
'</li>';
    }
?>
</ul>

For more information send a message to info at phpclasses dot org.