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.' );
<!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' ) ?>" />
@import url(../../rsc/img.css); /* Import standard image styles */
@import url(../../rsc/blog_elements.css); /* Import standard blog elements styles */
<h1 id="header"><a href="
<?php bloginfo('url'); ?>">
<?php $Blog->disp( 'name', 'htmlbody' ) ?></a></h1>
<!-- =================================== START OF MAIN AREA =================================== -->
<?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();
<div class="post" lang="
<?php $Item->lang() ?>">
$Item->anchor(); // Anchor for permalinks to refer to
<h3 class="storytitle"><a href="
<?php $Item->permalink() ?>" rel="bookmark" title="
<?php echo
T_('Permanent link to full entry') ?>">
<?php $Item->title(); ?></a></h3>
<div class="meta">
<?php echo
T_('Filed under:'); ?> <?php $Item->categories(); ?> —
<?php $Item->Author->prefered_name() ?> @
<?php $Item->issue_time() ?>
<?php $Item->edit_link( '', '', T_('Edit This') ) // Link to backoffice for editing ?>
<div class="storycontent">
<?php $Item->content(); ?>
<?php $Item->feedback_link( 'comments' ) // Link to comments ?>
<?php $Item->feedback_link( 'trackbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->feedback_link( 'pingbacks', ' • ' ) // Link to trackbacks ?>
<?php $Item->trackback_rdf() // trackback autodiscovery information ?>
* ------------- 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 ------------------------------------ ?>
<!-- =================================== START OF SIDEBAR =================================== -->
<?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_linkblog.php' );
// -------------------------------- END OF LINKBLOG ---------------------------------- ?>
<li id="categories">
<?php echo
T_('Categories'); ?>:
<?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_categories.php' );
// -------------------------------- END OF CATEGORIES ---------------------------------- ?>
<label for="s">
<?php echo
T_('Search') ?>:</label>
<?php form_formstart( $Blog->dget( 'blogurl', 'raw' ), '', 'searchform' ) ?>
<input type="text" name="s" id="s" size="15" value="
<?php echo
htmlspecialchars($s) ?>" /><br />
<input type="submit" name="submit" value="
<?php echo
T_('Search') ?>" />
<li>
<?php echo
T_('Archives') ?>:
<?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_archives.php' );
// -------------------------------- END OF ARCHIVES ---------------------------------- ?>
<?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
require
( dirname(__FILE__
).
'/_calendar.php' );
// -------------------------------- END OF CALENDAR ---------------------------------- ?>
<?php if( ! $Blog->get('force_skin') )
{ // We skin switching is allowed for this blog: ?>
<li>
<?php echo
T_('Choose skin') ?>:
<?php // ------------------------------- START OF SKIN LIST -------------------------------
<?php } // ------------------------------ END OF SKIN LIST ------------------------------ ?>
<li id="other">
<?php echo
T_('Other'); ?>:
<li id="meta">
<?php echo
T_('Meta'); ?>:
<li><a href="
<?php $Blog->disp( 'rss2_url', 'raw' ); ?>" title="
<?php echo
T_('Syndicate this site using RSS'); ?>">
<?php echo
T_('<abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
<li><a href="
<?php $Blog->disp( 'comments_rss2_url', 'raw' ) ?>" title="
<?php echo
T_('The latest comments to all posts in RSS'); ?>">
<?php echo
T_('Comments <abbr title="Really Simple Syndication">RSS</abbr> 2.0'); ?></a></li>
<li><a href="http://validator.w3.org/check/referer" title="
<?php echo
T_('This page validates as XHTML 1.0 Transitional'); ?>">
<?php echo
T_('Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr>'); ?></a></li>
<li><a href="http://b2evolution.net/" title="
<?php echo
T_('Powered by b2evolution; multilingual multiuser multi-blog engine.'); ?>">b2evolution</a></li>
<p class="credit"><cite>powered by <a href="http://b2evolution.net/" title="
<?php echo
T_('Powered by b2evolution; multilingual multiuser multi-blog engine.'); ?>"><img src="../../img/b2evolution_button.png" alt="b2evolution" width="80" height="15" class="middle" /></a></cite><br />
<?php echo
T_('This skin features a CSS file originally designed for WordPress (See design credits in style.css).') ?><br />
<?php echo
T_('Original design credits for this skin:') ?> <a href="http://mezzoblue.com">Dave Shea</a> & <a href="http://photomatt.net">Matthew Mullenweg</a><br />
<?php echo
T_('In order to ensure maximum compatibility with WP CSS files, most b2evolution features that do not exist in WP are hidden from this generic wpc_* skin.') ?>
log_hit(); // log the hit on this page