Source for file _main.php
Documentation is available at _main.php
* This is the main template. It displays the blog.
* However this file is not meant to be called directly.
* It is meant to be called automagically by b2evolution.
* To display a blog, you should call a stub file instead, for example:
* /blogs/index.php or /blogs/blog_b.php
* b2evolution - {@link http://b2evolution.net/}
* Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
* @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
<meta http-equiv="Content-Type" content="text/html; charset=
<?php locale_charset() ?>" />
$Blog->disp('name', 'htmlhead');
<base href="
<?php skinbase(); // Base URL for this skin. You need this to fix relative links! ?>" />
<meta name="generator" content="b2evolution
<?php echo
$b2_version ?>" /> <!-- Please leave this for stats -->
* --------------------------- BLOG LIST INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_bloglist.php' );
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
<?php // ------------------------------- START OF SKIN LIST -------------------------------
if( ! $Blog->get('force_skin') )
{ // Skin switching is allowed for this blog:
echo
T_( 'Select skin:' ), ' ';
} // ------------------------------ END OF SKIN LIST ------------------------------ ?>
<h1>
<?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
<p>
<?php $Blog->disp( 'tagline', 'htmlbody' ) ?></p>
<small>
<?php $Blog->disp( 'longdesc', 'htmlbody' ); ?></small>
<?php // ---------------------------------- START OF POSTS --------------------------------------
if( isset
($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset
($MainList) ) while( $Item =
$MainList->get_item() )
$MainList->date_if_changed();
<?php $Item->issue_time(); ?>
<a href="
<?php $Item->permalink() ?>" title="
<?php echo
T_('Permanent link to full entry') ?>"><img src="img/icon_minipost.gif" alt="Permalink" width="12" height="9" border="0" align="middle" /></a>
<?php locale_flag( $Item->locale, 'h10px', '', 'middle' ); // Display flag for post locale ?>
echo
T_('Categories'), ': ';
<?php $Item->content( '#', '#', T_('Read more...') ); ?>
<?php $Item->feedback_link( 'feedbacks', '', ' • ' ) // Link to comments, trackback... ?>
<?php $Item->edit_link( '', ' • ' ) // Link to backoffice for editing ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
<a href="
<?php $Item->permalink() ?>" title="
<?php echo
T_('Permanent link to full entry') ?>">
<?php echo
T_('Permalink') ?></a>
<?php // ------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. --------------
$disp_comments =
1; // Display the comments if requested
$disp_comment_form =
1; // Display the comments form if comments requested
$disp_trackbacks =
1; // Display the trackbacks if requested
$disp_trackback_url =
1; // Display the trackbal URL if trackbacks requested
$disp_pingbacks =
1; // Display the pingbacks if requested
require
( dirname(__FILE__
).
'/_feedback.php' );
// ----------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. -----------------
<?php } // --------------------------------- END OF POSTS ----------------------------------- ?>
<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
// this includes the archive directory if requested
require
( dirname(__FILE__
).
'/_arcdir.php');
// this includes the profile form if requested
require
( dirname(__FILE__
).
'/_profile.php');
// ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
<a href="
<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>">
<?php echo
T_('Archives') ?></a>
<div align="center">Powered by <a href="http://b2evolution.net/" title="b2evolution home"><img src="../../img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" align="middle" /></a> <!-- Please help us promote b2evolution and leave this link on your blog. --></div>
log_hit(); // log the hit on this page