b2evolution

Multilingual multiuser multiblog engine

b2evolution Technical Documentation (0.9.x) [ class tree: evoskins ] [ index: evoskins ] [ all elements ]

Source for file _main.php

Documentation is available at _main.php

  1. <?php
  2.     /**
  3.      * This is the main template. It displays the blog.
  4.      *
  5.      * However this file is not meant to be called directly.
  6.      * It is meant to be called automagically by b2evolution.
  7.      * To display a blog, you should call a stub file instead, for example:
  8.      * /blogs/index.php or /blogs/blog_b.php
  9.      *
  10.      * b2evolution - {@link http://b2evolution.net/}
  11.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  12.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  13.      *
  14.      * @package evoskins
  15.      * @subpackage wpc
  16.      */
  17.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  18. ?>
  19. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  20. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang(?>" lang="<?php locale_lang(?>">
  21. <head>
  22. <meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset(?>" />
  23. <title><?php
  24.     $Blog->disp('name''htmlhead');
  25.     single_cat_title' - ''htmlhead' );
  26.     single_month_title' - ''htmlhead' );
  27.     single_post_title' - ''htmlhead' );
  28.     arcdir_title' - ''htmlhead' );
  29.     last_comments_title' - ''htmlhead' );
  30. ?>
  31. </title>
  32. <base href="<?php skinbase()// Base URL for this skin. You need this to fix relative links! ?>" />
  33. <meta name="description" content="<?php $Blog->disp'shortdesc''htmlattr' )?>" />
  34. <meta name="keywords" content="<?php $Blog->disp'keywords''htmlattr' )?>" />
  35. <meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
  36. <link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp'rdf_url''raw' ?>" />
  37. <link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp'rss_url''raw' ?>" />
  38. <link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp'rss2_url''raw' ?>" />
  39. <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp'atom_url''raw' ?>" />
  40. <link rel="pingback" href="<?php $Blog->disp'pingback_url''raw' ?>" />
  41.  
  42. <style type="text/css">
  43.     @import url(../../rsc/img.css);    /* Import standard image styles */
  44.     @import url(../../rsc/blog_elements.css);    /* Import standard blog elements styles */
  45.     @import url(style.css);
  46. </style>
  47.  
  48. </head>
  49. <body>
  50. <div id="rap">
  51. <h1 id="header"><a href="<?php bloginfo('url')?>"><?php $Blog->disp'name''htmlbody' ?></a></h1>
  52.  
  53. <!-- =================================== START OF MAIN AREA =================================== -->
  54.  
  55. <div id="content">
  56.  
  57. <?php // ------------------------------------ START OF POSTS ----------------------------------------
  58.     ifisset($MainList) ) $MainList->display_if_empty()// Display message if no post
  59.  
  60.     ifisset($MainList) ) while$Item $MainList->get_item() )
  61.     {
  62.         $MainList->date_if_changed();
  63.     ?>
  64.  
  65. <div class="post" lang="<?php $Item->lang(?>">
  66.         <?php
  67.             locale_temp_switch$Item->locale )// Temporarily switch to post locale
  68.             $Item->anchor()// Anchor for permalinks to refer to
  69.         ?>
  70.      <h3 class="storytitle"><a href="<?php $Item->permalink(?>" rel="bookmark" title="<?php echo T_('Permanent link to full entry'?>"><?php $Item->title()?></a></h3>
  71.     <div class="meta"><?php echo T_('Filed under:')?> <?php $Item->categories()?> &#8212; <?php $Item->Author->prefered_name(?> @ <?php $Item->issue_time(?>
  72.         <?php $Item->edit_link''''T_('Edit This') ) // Link to backoffice for editing ?>
  73.     </div>
  74.     
  75.     <div class="storycontent">
  76.             <?php $Item->content()?>
  77.     </div>
  78.     
  79.     <div class="feedback">
  80.             <?php link_pages(?>
  81.             <?php $Item->feedback_link'comments' // Link to comments ?>
  82.             <?php $Item->feedback_link'trackbacks'' &bull; ' // Link to trackbacks ?>
  83.             <?php $Item->feedback_link'pingbacks'' &bull; ' // Link to trackbacks ?>
  84.     </div>
  85.  
  86.     <?php $Item->trackback_rdf(// trackback autodiscovery information ?>
  87.  
  88.     <?php 
  89.     /**
  90.      * ------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. -------------
  91.      */
  92.     $disp_comments 1;                    // Display the comments if requested
  93.     $disp_comment_form 1;            // Display the comments form if comments requested
  94.     $disp_trackbacks 1;                // Display the trackbacks if requested
  95.  
  96.     $disp_trackback_url 1;        // Display the trackbal URL if trackbacks requested
  97.     $disp_pingbacks 1;                // Display the pingbacks if requested
  98.     requiredirname(__FILE__).'/_feedback.php' );
  99.     // ---------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------
  100.  
  101.     locale_restore_previous();    // Restore previous locale (Blog locale)
  102.     ?>
  103. </div>
  104.  
  105. <?php // ---------------------------------- END OF POSTS ------------------------------------ ?>
  106.  
  107. </div>
  108.  
  109.  
  110. <!-- =================================== START OF SIDEBAR =================================== -->
  111.  
  112. <div id="menu">
  113.  
  114. <ul>
  115.  
  116.     <?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
  117.         requiredirname(__FILE__).'/_linkblog.php' );
  118.         // -------------------------------- END OF LINKBLOG ---------------------------------- ?>
  119.  
  120.  <li id="categories"><?php echo T_('Categories')?>:
  121.     <?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
  122.         requiredirname(__FILE__).'/_categories.php' );
  123.         // -------------------------------- END OF CATEGORIES ---------------------------------- ?>
  124.  </li>
  125.  
  126.  <li id="search">
  127.    <label for="s"><?php echo T_('Search'?>:</label>    
  128.     <?php form_formstart$Blog->dget'blogurl''raw' )'''searchform' ?>
  129.     <div>
  130.         <input type="text" name="s" id="s" size="15" value="<?php echo htmlspecialchars($s?>" /><br />
  131.         <input type="submit" name="submit" value="<?php echo T_('Search'?>" />
  132.     </div>
  133.     </form>
  134.  </li>
  135.  
  136.     <li><?php echo T_('Archives'?>:
  137.         <ul>
  138.             <?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
  139.                 requiredirname(__FILE__).'/_archives.php' );
  140.                 // -------------------------------- END OF ARCHIVES ---------------------------------- ?>
  141.         </ul>
  142.     </li>
  143.  
  144.     <li id="calendar">
  145.     <?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
  146.         requiredirname(__FILE__).'/_calendar.php' );
  147.         // -------------------------------- END OF CALENDAR ---------------------------------- ?>
  148.     </li>
  149.  
  150.  
  151.     <?php if$Blog->get('force_skin') )
  152.     {    // We skin switching is allowed for this blog: ?>
  153.     <li><?php echo T_('Choose skin'?>:
  154.         <ul>
  155.             <?php // ------------------------------- START OF SKIN LIST -------------------------------
  156.             forskin_list_start()skin_list_next()?>
  157.                 <li><a href="<?php skin_change_url(?>"><?php skin_list_iteminfo'name''htmlbody' ?></a></li>
  158.             <?php // ------------------------------ END OF SKIN LIST ------------------------------ ?>
  159.         </ul>
  160.     </li>
  161.     <?php ?>
  162.     
  163.     <li id="other"><?php echo T_('Other')?>:
  164.     <ul>
  165.         <?php
  166.             user_login_link'<li>''</li>' );
  167.             user_register_link'<li>''</li>' );
  168.             user_admin_link'<li>''</li>' );
  169.             user_logout_link'<li>''</li>' );
  170.         ?>
  171.     </ul>
  172.  </li>
  173.  
  174.  
  175.  <li id="meta"><?php echo T_('Meta')?>:
  176.      <ul>
  177.         <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>
  178.         <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>
  179.         <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>
  180.         <li><a href="http://b2evolution.net/" title="<?php echo T_('Powered by b2evolution; multilingual multiuser multi-blog engine.')?>">b2evolution</a></li>
  181.     </ul>
  182.  </li>
  183.  
  184. </ul>
  185.  
  186. </div>
  187.  
  188. </div>
  189.  
  190. <p class="credit"><cite>powered by &nbsp;<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 />
  191. <?php echo T_('This skin features a CSS file originally designed for WordPress (See design credits in style.css).'?><br />
  192. <?php echo T_('Original design credits for this skin:'?> <a href="http://mezzoblue.com">Dave Shea</a> &amp; <a href="http://photomatt.net">Matthew Mullenweg</a><br />
  193. <?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.'?>
  194. </p>
  195.  
  196. <?php
  197.     log_hit();    // log the hit on this page
  198.     debug_info()// output debug info if requested
  199. ?>
  200.  
  201. </body>
  202.  
  203. </html>

Documentation generated on Tue, 20 May 2008 01:55:31 +0200 by phpDocumentor 1.4.2