1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
|
<?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/}
*
* @package evoskins
* @subpackage basic
*/
if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />
<title><?php
$Blog->disp('name', 'htmlhead');
single_cat_title( ' - ', 'htmlhead' );
single_month_title( ' - ', 'htmlhead' );
single_post_title( ' - ', 'htmlhead' );
arcdir_title( ' - ', 'htmlhead' );
profile_title( ' - ', 'htmlhead' );
?>
</title>
<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 -->
</head>
<body>
<?php
/**
* --------------------------- 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:' ), ' ';
for( skin_list_start(); skin_list_next(); )
{ ?>
[<a href="<?php skin_change_url() ?>"><?php skin_list_iteminfo( 'name', 'htmlbody' ) ?></a>]
<?php
}
} // ------------------------------ END OF SKIN LIST ------------------------------ ?>
<hr>
<div align="center">
<h1><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
<p><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></p>
</div>
<hr>
<small><?php $Blog->disp( 'longdesc', 'htmlbody' ); ?></small>
<hr>
<h2><?php
single_cat_title();
single_month_title();
single_post_title();
arcdir_title();
profile_title();
?></h2>
<?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();
$Item->anchor();
locale_temp_switch( $Item->locale ); // Temporarily switch to post locale
?>
<h3>
<?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 $Item->title(); ?>
<?php locale_flag( $Item->locale, 'h10px', '', 'middle' ); // Display flag for post locale ?>
</h3>
<blockquote>
<small>
<?php
echo T_('Categories'), ': ';
$Item->categories();
echo ', ';
$Item->wordcount();
echo ' ', T_('words');
?>
</small>
<div>
<?php $Item->content( '#', '#', T_('Read more...') ); ?>
<?php link_pages() ?>
</div>
<small>
<?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>
</small>
</blockquote>
<?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. -----------------
locale_restore_previous(); // Restore previous locale (Blog locale)
?>
<?php } // --------------------------------- END OF POSTS ----------------------------------- ?>
<?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
switch( $disp )
{
case 'arcdir':
// this includes the archive directory if requested
require( dirname(__FILE__).'/_arcdir.php');
break;
case 'profile':
// this includes the profile form if requested
require( dirname(__FILE__).'/_profile.php');
break;
}
// ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
<hr>
<div align="center">
<strong>
<?php posts_nav_link(); ?>
::
<a href="<?php $Blog->disp( 'arcdirurl', 'raw' ) ?>"><?php echo T_('Archives') ?></a>
</strong>
<p><?php
user_login_link( ' [', '] ' );
user_register_link( ' [', '] ' );
user_admin_link( ' [', '] ' );
user_profile_link( ' [', '] ' );
user_logout_link( ' [', '] ' );
?></p>
</div>
<hr>
<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>
<?php
log_hit(); // log the hit on this page
debug_info(); // output debug info if requested
?>
</body>
</html>
|