Source for file default.php
Documentation is available at default.php
* This is the main public interface file!
* This file is NOT mandatory. You can delete it if you want.
* You can also replace the contents of this file with contents similar to the contents
* of a_stub.php, a_noskin.php, multiblogs.php, etc.
* 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/}
* Check this: we are requiring _main.php INSTEAD of _blog_main.php because we are not
* trying to initialize any particular blog
require_once dirname(__FILE__
).
'/b2evocore/_main.php';
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<base href="
<?php echo
$baseurl ?>/" />
<meta http-equiv="Content-Type" content="text/html; charset=
<?php locale_charset() ?>" />
<title>
<?php echo
T_('Default page for b2evolution') ?></title>
<link href="rsc/b2evo.css" rel="stylesheet" type="text/css" />
<h1><a href="http://b2evolution.net/" title="b2evolution: Home"><img src="img/b2evolution_logo.png" alt="b2evolution" width="472" height="102" /></a></h1>
<div id="tagline">
<?php echo
T_('Multilingual multiuser multi-blog engine.') ?></div>
<h1>
<?php echo
T_('Welcome to b2evolution') ?></h1>
<p>
<?php echo
T_('This is the default homepage for b2evolution. It will be displayed as long as you don\'t select a default blog in the general settings.') ?></p>
<h2>
<?php echo
T_('Individual blogs on this system') ?>:</h2>
<?php // --------------------------- BLOG LIST -----------------------------
{ # by uncommenting the following lines you can hide some blogs
if( $curr_blog_ID ==
1 ) continue; // Hide blog 1...
// if( $curr_blog_ID == 2 ) continue; // Hide blog 2...
printf( T_('Blog #%d'), $curr_blog_ID );
echo
'</a></strong> (';
// ---------------------------------- END OF BLOG LIST --------------------------------- ?>
if( $Blog_all->get( 'stub' ) !=
'' )
{ // Only display if the stub is set:
<li><strong>
<?php echo
T_('Blog #1') ?>: <a href="
<?php $Blog_all->disp( 'blogurl', 'raw' ); ?>">
<?php echo
T_('This is a special blog that aggregates all messages from all other blogs!') ?></a></strong> (
<?php $Blog_all->disp( 'stub', 'raw' ); ?>)</li>
<p>
<?php echo
T_('Please note: the above list (as well as the menu) is automatically generated and includes only the blogs that have a "stub url name". You can set this in the blog configuration in the back-office.') ?></p>
<h2>
<?php echo
T_('More demos') ?>:</h2>
<li><strong>
<?php echo
T_('Custom template') ?>: <a href="multiblogs.php">
<?php echo
T_('Multiple blogs displayed on the same page') ?></a></strong> (multiblogs.php)</li>
<li><strong>
<?php echo
T_('Custom template') ?>: <a href="summary.php">
<?php echo
T_('Summary of last posts in all blogs') ?></a></strong> (summary.php)</li>
<li><strong>
<?php echo
T_('Custom template') ?>: <a href="default.php">
<?php echo
T_('The page you\'re looking at') ?></a></strong> (default.php)</li>
<p>
<?php echo
T_('Please note: those demos do not make use of evoSkins, even if you enabled them during install. The only way to change their look and feel is to edit their PHP template. But once, again, rememner these are just demos destined to inspire you for your own templates ;)') ?></p>
<h2>
<?php echo
T_('Administration') ?>:</h2>
<li><strong><a href="
<?php echo
$admin_url ?>">
<?php echo
T_('Go to backoffice!') ?></a></strong></li>
<a href="http://b2evolution.net/">
<?php echo
T_('Official website') ?></a> · <a href="http://b2evolution.net/about/license.html">
<?php echo
T_('GNU GPL license') ?></a>
<?php debug_info(); // output debug info if requested ?>