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 bluesky
  16.      */
  17. ?>
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  19. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang(?>" lang="<?php locale_lang(?>">
  20. <head>
  21.     <meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset(?>" />
  22.     <title><?php
  23.         $Blog->disp('name''htmlhead');
  24.         single_cat_title' - ''htmlhead' );
  25.         single_month_title' - ''htmlhead' );
  26.         single_post_title' - ''htmlhead' );
  27.         arcdir_title' - ''htmlhead' );
  28.         last_comments_title' - ''htmlhead' );
  29.         profile_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.     <link title="Ciel bleu" media="screen" href="cielbleu.css" type="text/css" rel="stylesheet" />
  42. </head>
  43. <body id=standblog>
  44.  
  45. <p id=prelude>
  46. <a title="Sauter la navigation et la recherche" href="<?php echo $ReqURI ?>#main">Skip to content</a>
  47. | <a title="Aller directement au menu de navigation" href="<?php echo $ReqURI ?>#menu">Skip to menu</a>
  48. | <a title="Aller directement au formulaire de recherche" href="<?php echo $ReqURI ?>#searchform">Skip to search</a>
  49. </p>
  50.  
  51. <h1><a href="<?php $Blog->disp'blogurl''raw' ?>"><?php $Blog->disp'name''htmlbody' ?></a></h1>
  52. <div id="tagline"><?php $Blog->disp'tagline''htmlbody' ?></div>
  53.  
  54. <div id=main>
  55. <h2><?php
  56.     single_cat_title();
  57.     arcdir_title();
  58.     profile_title();
  59. ?></h2>
  60.  
  61. <p class="center"><strong><?php posts_nav_link()?></strong></p>
  62.  
  63. <?php    // ------------------------------------- START OF POSTS ------------------------------------
  64.     ifisset($MainList) ) $MainList->display_if_empty();    // Display message if no post
  65.  
  66.     ifisset($MainList) ) while$Item $MainList->get_item() )
  67. {
  68. ?>
  69.  
  70. <div class="bPost" lang="<?php $Item->lang(?>">
  71. <?php $Item->anchor()?>
  72. <h2><?php $Item->title()?></h2>
  73. <div class=infos>
  74. <h3><a href="<?php $Item->permalink(?>" title="Permalink"><?php $Item->issue_date(?> <?php $Item->issue_time(?></a></h3>
  75. &nbsp; 
  76. <h4><?php $Item->categories(?></h4>
  77. </div>
  78. <div class=article>
  79.     <?php $Item->content()?>
  80.     <?php link_pages(?>
  81. </div>
  82. <div class=interaction>
  83.     <?php $Item->feedback_link'feedbacks' // Link to comments ?>
  84.             <?php $Item->edit_link' &bull; ' // Link to backoffice for editing ?>
  85.     <?php $Item->trackback_rdf(// trackback autodiscovery information ?>
  86. </div>
  87.  
  88. <div class="contenuinteraction">
  89. <?php
  90.         /**
  91.          * this includes the trackback url, comments, trackbacks, pingbacks and a form to add a new comment
  92.          */
  93.         $disp_comments 1;                    // Display the comments if requested
  94.         $disp_comment_form 1;            // Display the comments form if comments requested
  95.         $disp_trackbacks 1;                // Display the trackbacks if requested
  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. ?>
  100. </div>
  101.  
  102. </div>
  103.  
  104. <?php // ---------------------------------- END OF POSTS ------------------------------------ ?> 
  105.  
  106. <?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
  107.     switch$disp )
  108.     {
  109.         case 'comments':
  110.             // this includes the last comments if requested:
  111.             requiredirname(__FILE__).'/_lastcomments.php' );
  112.             break;
  113.  
  114.         case 'arcdir':
  115.             // this includes the archive directory if requested
  116.             requiredirname(__FILE__).'/_arcdir.php');
  117.             break;
  118.  
  119.         case 'profile':
  120.             // this includes the profile form if requested
  121.             requiredirname(__FILE__).'/_profile.php');
  122.             break;
  123.     }
  124. // ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
  125.  
  126. <p class="center"><strong><?php posts_nav_link()?></strong></p>
  127.  
  128. </div>
  129. <div id=menu>
  130.  
  131. <h4><?php $Blog->disp'name''htmlbody' ?>&nbsp;:</h4>
  132. <?php $Blog->disp('longdesc''htmlbody'?>
  133. <ul>
  134.     <li><a href="<?php $Blog->disp'staticurl''raw' ?>"><strong><?php echo T_('Recently'?></strong></a><?php echo T_('(cached)'?></li>
  135.     <li><a href="<?php $Blog->disp'dynurl''raw' ?>"><strong><?php echo T_('Recently'?></strong></a><?php echo T_('(no cache)'?></li>
  136. </ul>
  137. <ul>
  138.     <li><a href="<?php $Blog->disp'lastcommentsurl''raw' ?>"><strong><?php echo T_('Last comments'?></strong></a></li>
  139. </ul>
  140.  
  141.  
  142. <?php // --------------------------- BLOG LIST INCLUDED HERE -----------------------------
  143.     requiredirname(__FILE__).'/_bloglist.php' )
  144.     // ---------------------------------- END OF BLOG LIST --------------------------------- ?>
  145.  
  146. <div id=categories>
  147. <h4>Categories&nbsp;:</h4>
  148. <!-- ========== START OF CATEGORIES ========== -->
  149. <?php form_formstart$Blog->dget'blogurl''raw' ) ) ?>
  150. <?php    requiredirname(__FILE__).'/_categories.php')?>
  151. <input type="submit" value="<?php echo T_('Get selection'?>" />
  152. <input type="reset" value="<?php echo T_('Reset form'?>" />
  153. </form>
  154. <!-- ========== END OF CATEGORIES ========== -->
  155. </div>
  156.  
  157. <h4>Search&nbsp;:</h4>
  158. <?php form_formstart$Blog->dget'blogurl''raw' )'''''get''searchform' ?>
  159.     <input id="rechercher" size="15" name="s" />
  160.     <input type="submit" value="envoyer" name="submit" />
  161. </form>
  162.  
  163.  
  164. <?php form_formstart$Blog->dget'blogurl''raw' )'''''get''switcher' ?>
  165.     <fieldset><label for=set><h4><?php echo T_('Choose a skin'?>&nbsp;:</h4></label> 
  166.     <select id=set name="skin">
  167.         <?php // ---------------------------------- START OF SKIN LIST ----------------------------------
  168.         forskin_list_start()skin_list_next()
  169.         
  170.             echo '<option value="';
  171.             skin_list_iteminfo'name' );
  172.             echo '"';
  173.             ifskin_list_iteminfo'name',false == $skin echo ' selected="selected" ';
  174.             echo '>';
  175.             skin_list_iteminfo'name' );
  176.             echo "</option>\n";
  177.         // --------------------------------- END OF SKIN LIST --------------------------------- ?>
  178.     </select>
  179.     <input type="submit" value="Ok" /> 
  180.     </fieldset>
  181. </form>
  182.  
  183.  
  184. <h4><?php echo T_('Archives'?>&nbsp;:</h4>
  185. <ul>
  186.     <?php    requiredirname(__FILE__).'/_archives.php' )?>
  187. </ul>
  188.  
  189.  
  190. <h4><?php echo T_('Misc'?></h4>
  191. <ul>
  192.     <?php 
  193.         // Administrative links:
  194.         user_login_link'<li>''</li>' )
  195.         user_register_link'<li>''</li>' )
  196.         user_admin_link'<li>''</li>' )
  197.         user_profile_link'<li>''</li>' )
  198.         user_logout_link'<li>''</li>' )
  199.     ?>
  200.   <li><a href="<?php $Blog->disp'rss_url''raw' ?>">RSS 0.92 (Userland)</a></li>
  201.     <li><a href="<?php $Blog->disp'rdf_url''raw' ?>">RSS 1.0 (RDF)</a></li>
  202.     <li><a href="<?php $Blog->disp'rss2_url''raw' ?>">RSS 2.0 (Userland)</a></li>
  203.     <li><a href="<?php $Blog->disp'atom_url''raw' ?>">Atom 0.3</a></li>
  204.   <li><a href="http://validator.w3.org/check/referer">XHTML valide</a> 
  205. </li>
  206. </ul>
  207.  
  208. 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>
  209.  
  210. </div>
  211.  
  212. <p class="baseline">
  213. This site works better with web standards! Original skin design courtesy of <a href="http://standblog.com/">Tristan NITOT</a>.
  214. <?php 
  215.     log_hit();    // log the hit on this page
  216.     debug_info();    // output debug info if requested
  217. ?>
  218. </p>
  219. </body>
  220. </html>

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