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/}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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="description" content="
<?php $Blog->disp( 'shortdesc', 'htmlattr' ); ?>" />
<meta name="keywords" content="
<?php $Blog->disp( 'keywords', 'htmlattr' ); ?>" />
<meta name="generator" content="b2evolution
<?php echo
$b2_version ?>" /> <!-- Please leave this for stats -->
<link rel="alternate" type="text/xml" title="RDF" href="
<?php $Blog->disp( 'rdf_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="
<?php $Blog->disp( 'rss_url', 'raw' ) ?>" />
<link rel="alternate" type="text/xml" title="RSS 2.0" href="
<?php $Blog->disp( 'rss2_url', 'raw' ) ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="
<?php $Blog->disp( 'atom_url', 'raw' ) ?>" />
<link rel="pingback" href="
<?php $Blog->disp( 'pingback_url', 'raw' ) ?>" />
<link title="Ciel bleu" media="screen" href="cielbleu.css" type="text/css" rel="stylesheet" />
<a title="Sauter la navigation et la recherche" href="
<?php echo
$ReqURI ?>#main">Skip to content</a>
| <a title="Aller directement au menu de navigation" href="
<?php echo
$ReqURI ?>#menu">Skip to menu</a>
| <a title="Aller directement au formulaire de recherche" href="
<?php echo
$ReqURI ?>#searchform">Skip to search</a>
<h1><a href="
<?php $Blog->disp( 'blogurl', 'raw' ) ?>">
<?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>
<div id="tagline">
<?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
<?php // ------------------------------------- START OF POSTS ------------------------------------
if( isset
($MainList) ) $MainList->display_if_empty(); // Display message if no post
if( isset
($MainList) ) while( $Item =
$MainList->get_item() )
<div class="bPost" lang="
<?php $Item->lang() ?>">
<?php $Item->anchor(); ?>
<h2>
<?php $Item->title(); ?></h2>
<h3><a href="
<?php $Item->permalink() ?>" title="Permalink">
<?php $Item->issue_date() ?> <?php $Item->issue_time() ?></a></h3>
<h4>
<?php $Item->categories() ?></h4>
<?php $Item->content(); ?>
<?php $Item->feedback_link( 'feedbacks' ) // Link to comments ?>
<?php $Item->edit_link( ' • ' ) // Link to backoffice for editing ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
<div class="contenuinteraction">
* this includes the trackback url, comments, trackbacks, pingbacks and a form to add a new comment
$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' );
<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>
<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
// this includes the last comments if requested:
require
( dirname(__FILE__
).
'/_lastcomments.php' );
// 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. ------------------- ?>
<h4>
<?php $Blog->disp( 'name', 'htmlbody' ) ?> :</h4>
<?php $Blog->disp('longdesc', 'htmlbody') ?>
<li><a href="
<?php $Blog->disp( 'staticurl', 'raw' ) ?>"><strong>
<?php echo
T_('Recently') ?></strong></a>
<?php echo
T_('(cached)') ?></li>
<li><a href="
<?php $Blog->disp( 'dynurl', 'raw' ) ?>"><strong>
<?php echo
T_('Recently') ?></strong></a>
<?php echo
T_('(no cache)') ?></li>
<li><a href="
<?php $Blog->disp( 'lastcommentsurl', 'raw' ) ?>"><strong>
<?php echo
T_('Last comments') ?></strong></a></li>
<?php // --------------------------- BLOG LIST INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_bloglist.php' );
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
<h4>Categories :</h4>
<!-- ========== START OF CATEGORIES ========== -->
<?php require
( dirname(__FILE__
).
'/_categories.php'); ?>
<input type="submit" value="
<?php echo
T_('Get selection') ?>" />
<input type="reset" value="
<?php echo
T_('Reset form') ?>" />
<!-- ========== END OF CATEGORIES ========== -->
<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), '', '', 'get', 'searchform' ) ?>
<input id="rechercher" size="15" name="s" />
<input type="submit" value="envoyer" name="submit" />
<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), '', '', 'get', 'switcher' ) ?>
<fieldset><label for=set><h4>
<?php echo
T_('Choose a skin') ?> :</h4></label>
<select id=set name="skin">
<?php // ---------------------------------- START OF SKIN LIST ----------------------------------
} // --------------------------------- END OF SKIN LIST --------------------------------- ?>
<input type="submit" value="Ok" />
<h4>
<?php echo
T_('Archives') ?> :</h4>
<?php require
( dirname(__FILE__
).
'/_archives.php' ); ?>
<h4>
<?php echo
T_('Misc') ?></h4>
<li><a href="
<?php $Blog->disp( 'rss_url', 'raw' ) ?>">RSS 0.92 (Userland)</a></li>
<li><a href="
<?php $Blog->disp( 'rdf_url', 'raw' ) ?>">RSS 1.0 (RDF)</a></li>
<li><a href="
<?php $Blog->disp( 'rss2_url', 'raw' ) ?>">RSS 2.0 (Userland)</a></li>
<li><a href="
<?php $Blog->disp( 'atom_url', 'raw' ) ?>">Atom 0.3</a></li>
<li><a href="http://validator.w3.org/check/referer">XHTML valide</a>
Powered by <a href="http://b2evolution.net/" title="b2evolution home"><img src="../../img/b2evolution_button.png" alt="b2evolution" width="80" height="15" class="logo" /></a>
This site works better with web standards! Original skin design courtesy of <a href="http://standblog.com/">Tristan NITOT</a>.
log_hit(); // log the hit on this page