Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once( "core.php" );
- $site->SetPageTitle( "Home" );
- require_once( 'top.php' );
- echo( $site->GetPageContent( 2 ) );
- $news = $site->GetMostRecentNews( 5 );
- ?>
- <h3>News</h3>
- <?php
- if ( is_array( $news ) === false )
- {
- echo $news;
- }
- else
- {
- foreach( $news as $key => $article )
- {
- $date = "Posted on ";
- $date .= date( "l, F j", $article[ 'date' ] );
- $date .= '<sup>' . date( "S", $article[ 'date' ] ) . '</sup> ';
- $date .= date( "Y", $article[ 'date' ] );
- $date .= " at ";
- $date .= date( "g:i A (", $article[ 'date' ] );
- $date .= "GMT";
- $date .= date( " P)", $article[ 'date' ] );
- //var_dump( $date );
- ?>
- <p>
- <strong> <?php echo( stripslashes( $article[ 'name' ] ) ); ?> </strong><br/>
- <?php echo( stripslashes( $article[ 'content' ] ) ); ?> <br/>
- <span class="post-date"> <?php echo( $date ); ?> </span>
- </p> <?php
- } ?>
- <p><a href="#">Archive</a></p> <?php
- }
- require_once( 'bottom.php' );
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement