b2evolution

Multilingual multiuser multiblog engine

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

Source for file a_noskin.php

Documentation is available at a_noskin.php

  1. <?php
  2. /**
  3.  * This file will display a blog, WITHOUT using skins.
  4.  *
  5.  * This file will set some display parameters and then display the blog in a template.
  6.  *
  7.  * Note: You only need to use this file for advanced use/customization of b2evolution.
  8.  * Most of the time, calling your blog through index.php with a skin will be enough.
  9.  * You should try to customize a skin before thrying to use this fle.
  10.  *
  11.  * Same display without using skins: a_stub.php
  12.  *
  13.  * b2evolution - {@link http://b2evolution.net/}
  14.  * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  15.  * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  16.  *
  17.  * @package evoskins
  18.  * @subpackage noskin
  19.  */
  20.  
  21. # First, select which blog you want to display here!
  22. # You can find these numbers in the back-office under the Blogs section.
  23. # You can also create new blogs over there. If you do, you may duplicate this file for the new blog.
  24. $blog 2;        // 2 is for "demo blog A" or your upgraded blog (depends on your install)
  25.  
  26. # Tell b2evolution you don't want to use evoSkins for this template:
  27. $skin '';
  28.  
  29. # This setting retricts posts to those published, thus hiding drafts.
  30. # You should not have to change this.
  31. $show_statuses array();
  32.  
  33. # You could *force* a specific link blog here with this setting: (otherwise, default will be used)
  34. # $linkblog = 4;
  35.  
  36. # This is the list of categories to restrict the linkblog to (cats will be displayed recursively)
  37. # Example: $linkblog_cat = '4,6,7';
  38. $linkblog_cat '';
  39.  
  40. # This is the array if categories to restrict the linkblog to (non recursive)
  41. # Example: $linkblog_catsel = array( 4, 6, 7 );
  42. $linkblog_catsel array);
  43.  
  44. # Here you can set a limit before which posts will be ignored
  45. # You can use a unix timestamp value or 'now' which will hide all posts in the past
  46. $timestamp_min '';
  47.  
  48. # Here you can set a limit after which posts will be ignored
  49. # You can use a unix timestamp value or 'now' which will hide all posts in the future
  50. $timestamp_max 'now';
  51.  
  52. # Additionnaly, you can set other values (see URL params in the manual)...
  53. # $order = 'ASC'; // This for example would display the blog in chronological order...
  54.  
  55. /**
  56.  * Let b2evolution handle the query string and load the blog data:
  57.  */
  58. require(dirname(__FILE__).'/b2evocore/_blog_main.php');
  59.  
  60.  
  61. # Now, below you'll find the main template...
  62.  
  63. ?>
  64. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  65. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang(?>" lang="<?php locale_lang(?>"><!-- InstanceBegin template="/Templates/Standard.dwt" codeOutsideHTMLIsLocked="false" -->
  66. <head>
  67. <!-- InstanceBeginEditable name="doctitle" -->
  68. <meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset(?>" />
  69.     <title><?php
  70.         $Blog->disp('name''htmlhead');
  71.         single_cat_title' - ''htmlhead' );
  72.         single_month_title' - ''htmlhead' );
  73.         single_post_title' - ''htmlhead' );
  74.         arcdir_title' - ''htmlhead' );
  75.         last_comments_title' - ''htmlhead' );
  76.         profile_title' - ''htmlhead' );
  77.     ?></title>
  78. <!-- InstanceEndEditable --> 
  79. <!-- InstanceBeginEditable name="head" -->
  80. <base href="<?php skinbase()// You're not using any skin here but this won't hurt. However it will be very helpfull to have this here when you make the switch to a skin! ?>" />
  81. <meta name="description" content="<?php $Blog->disp'shortdesc''htmlattr' )?>" />
  82. <meta name="keywords" content="<?php $Blog->disp'keywords''htmlattr' )?>" />
  83. <meta name="generator" content="b2evolution <?php echo $b2_version ?>" /> <!-- Please leave this for stats -->
  84. <link rel="alternate" type="text/xml" title="RDF" href="<?php $Blog->disp'rdf_url''raw' ?>" />
  85. <link rel="alternate" type="text/xml" title="RSS .92" href="<?php $Blog->disp'rss_url''raw' ?>" />
  86. <link rel="alternate" type="text/xml" title="RSS 2.0" href="<?php $Blog->disp'rss2_url''raw' ?>" />
  87. <link rel="alternate" type="application/atom+xml" title="Atom" href="<?php $Blog->disp'atom_url''raw' ?>" />
  88. <link rel="pingback" href="<?php $Blog->disp'pingback_url''raw' ?>" />
  89. <!-- InstanceEndEditable --> 
  90. <link rel="stylesheet" href="rsc/fp02.css" type="text/css" />
  91. </head>
  92. <body>
  93. <div class="pageHeader">
  94. <div class="pageHeaderContent">
  95.  
  96. <!-- InstanceBeginEditable name="NavBar2" -->
  97. <?php // --------------------------- BLOG LIST INCLUDED HERE -----------------------------
  98.     # this is what will start and end your blog links
  99.     $blog_list_start '<div class="NavBar">';
  100.     $blog_list_end '</div>';
  101.     # this is what will separate your blog links
  102.     $blog_item_start '';
  103.     $blog_item_end '';
  104.     # This is the class of for the selected blog link:
  105.     $blog_selected_link_class 'NavButton2Curr';
  106.     # This is the class of for the other blog links:
  107.     $blog_other_link_class 'NavButton2';
  108.     # This is additionnal markup before and after the selected blog name
  109.     $blog_selected_name_before '<span class="small"><img src="'$img_url.'/down_small.gif" width="14" height="12" alt="['.T_('Selected').']" title="" class="top" />';
  110.     $blog_selected_name_after '</span>';
  111.     # This is additionnal markup before and after the other blog names
  112.     $blog_other_name_before '<span class="small">';
  113.     $blog_other_name_after '</span>';
  114.     // Include the bloglist
  115.     requireget_path('skins').'/_bloglist.php');
  116.     // ---------------------------------- END OF BLOG LIST --------------------------------- ?>
  117. <!-- InstanceEndEditable -->
  118.  
  119. <div class="NavBar">
  120. <div id="Logo">&nbsp;</div>
  121. <div class="pageTitle">
  122. <h1 id="pageTitle"><!-- InstanceBeginEditable name="PageTitle" --><?php $Blog->disp'name''htmlbody' ?><!-- InstanceEndEditable --></h1>
  123. </div>
  124. </div>
  125.  
  126. <div class="pageHeaderEnd"></div>
  127.       
  128. </div>
  129. </div>
  130.  
  131.  
  132. <div class="pageSubTitle"><!-- InstanceBeginEditable name="SubTitle" --><?php $Blog->disp'tagline''htmlbody' ?><!-- InstanceEndEditable --></div>
  133.  
  134.  
  135. <div class="main"><!-- InstanceBeginEditable name="Main" -->
  136. <div class="bPosts">
  137. <h2><?php
  138.     single_cat_title();
  139.     arcdir_title();
  140.     profile_title();
  141. ?></h2>
  142.  
  143. <!-- =================================== START OF MAIN AREA =================================== -->
  144.  
  145. <?php // ------------------------------------ START OF POSTS ----------------------------------------
  146.     ifisset($MainList) ) $MainList->display_if_empty()// Display message if no post
  147.  
  148.     ifisset($MainList) ) while$Item $MainList->get_item() )
  149.     {
  150.     $MainList->date_if_changed();
  151.     ?>
  152.     <div class="bPost" lang="<?php $Item->lang(?>">
  153.         <?php $Item->anchor()?>
  154.         <div class="bSmallHead">
  155.         <a href="<?php $Item->permalink(?>" title="Permanent link to full entry"><img src="img/icon_minipost.gif" alt="Permalink" width="12" height="9" class="middle" /></a>
  156.         <?php $Item->issue_time();    echo ', 'T_('Categories')': ';    $Item->categories(?>
  157.         </div>
  158.         <h3 class="bTitle"><?php $Item->title()?></h3>
  159.         <div class="bText">
  160.             <?php $Item->content()?>
  161.             <?php link_pages(?>
  162.         </div>
  163.         <div class="bSmallPrint">
  164.             <?php $Item->feedback_link'comments'''' &bull; ' // Link to comments ?>
  165.             <?php $Item->feedback_link'trackbacks'''' &bull; ' // Link to trackbacks ?>
  166.             <?php $Item->feedback_link'pingbacks'''' &bull; ' // Link to trackbacks ?>
  167.  
  168.             <?php $Item->trackback_rdf(// trackback autodiscovery information ?>
  169.  
  170.             <a href="<?php $Item->permalink(?>" title="<?php echo T_('Permanent link to full entry'?>"><?php echo T_('Permalink'?></a>
  171.         </div>
  172.         <?php // ---------------- START OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ----------------
  173.         $disp_comments 1;                    // Display the comments if requested
  174.         $disp_comment_form 1;            // Display the comments form if comments requested
  175.         $disp_trackbacks 1;                // Display the trackbacks if requested
  176.         $disp_trackback_url 1;        // Display the trackbal URL if trackbacks requested
  177.         $disp_pingbacks 1;                // Display the pingbacks if requested
  178.         requireget_path('skins').'/_feedback.php');
  179.         // ------------------- END OF INCLUDE FOR COMMENTS, TRACKBACK, PINGBACK, ETC. ------------------- ?>
  180.     </div>
  181. <?php // ---------------------------------- END OF POSTS ------------------------------------ ?>
  182.  
  183.     <p class="center"><strong><?php posts_nav_link()?></strong></p>
  184.  
  185. <?php // ---------------- START OF INCLUDES FOR LAST COMMENTS, STATS ETC. ----------------
  186.     switch$disp )
  187.     {
  188.         case 'comments':
  189.             // this includes the last comments if requested:
  190.             requireget_path('skins').'/_lastcomments.php' );
  191.             break;
  192.  
  193.         case 'arcdir':
  194.             // this includes the archive directory if requested
  195.             requireget_path('skins').'/_arcdir.php');
  196.             break;
  197.  
  198.         case 'profile':
  199.             // this includes the profile form if requested
  200.             requireget_path('skins').'/_profile.php');
  201.             break;
  202.     }
  203. // ------------------- END OF INCLUDES FOR LAST COMMENTS, STATS ETC. ------------------- ?>
  204. </div>
  205.  
  206. <!-- =================================== START OF SIDEBAR =================================== -->
  207.  
  208. <div class="bSideBar">
  209.  
  210.     <div class="bSideItem">
  211.         <h3><?php $Blog->disp'name''htmlbody' ?></h3>
  212.         <p><?php $Blog->disp'longdesc''htmlbody' )?></p>
  213.         <p class="center"><strong><?php posts_nav_link()?></strong></p>
  214.         <!--?php next_post(); // activate this if you want a link to the next post in single page mode ?-->
  215.         <!--?php previous_post(); // activate this if you want a link to the previous post in single page mode ?-->
  216.         <ul>
  217.             <li><a href="<?php $Blog->disp'staticurl''raw' ?>"><strong><?php echo T_('Recently'?></strong></a> <span class="dimmed"><?php echo T_('(cached)'?></span></li>
  218.             <li><a href="<?php $Blog->disp'dynurl''raw' ?>"><strong><?php echo T_('Recently'?></strong></a> <span class="dimmed"><?php echo T_('(no cache)'?></span></li>
  219.         </ul>
  220.         <?php // -------------------------- CALENDAR INCLUDED HERE -----------------------------
  221.             requireget_path('skins').'/_calendar.php');
  222.             // -------------------------------- END OF CALENDAR ---------------------------------- ?>
  223.         <ul>
  224.             <li><a href="<?php $Blog->disp'lastcommentsurl''raw' ?>"><strong><?php echo T_('Last comments'?></strong></a></li>
  225.         </ul>
  226.     </div>
  227.  
  228.     <div class="bSideItem">
  229.         <h3 class="sideItemTitle"><?php echo T_('Search'?></h3>
  230.         <?php form_formstart$Blog->dget'blogurl''raw' )'search''searchform' ?>
  231.                 <input type="text" name="s" size="30" value="<?php echo htmlspecialchars($s?>" class="s1" />
  232.                 <input type="radio" name="sentence" value="AND" id="sentAND" <?php if$sentence=='AND' echo 'checked="checked" ' ?>/><label for="sentAND"><?php echo T_('All Words'?></label>
  233.                 <input type="radio" name="sentence" value="OR" id="sentOR" <?php if$sentence=='OR' echo 'checked="checked" ' ?>/><label for="sentOR"><?php echo T_('Some Word'?></label>
  234.                 <input type="radio" name="sentence" value="sentence" id="sentence" <?php if$sentence=='sentence' echo 'checked="checked" ' ?>/><label for="sentence"><?php echo T_('Entire phrase'?></label>
  235.             <input type="submit" name="submit" value="<?php echo T_('Search'?>" />
  236.             <input type="reset" value="<?php echo T_('Reset form'?>" />
  237.         </form>
  238.     </div>
  239.  
  240.     <div class="bSideItem">
  241.         <h3><?php echo T_('Categories'?></h3>
  242.         <?php form_formstart$Blog->dget'blogurl''raw' ) ) ?>
  243.         <?php // -------------------------- CATEGORIES INCLUDED HERE -----------------------------
  244.             requireget_path('skins').'/_categories.php');
  245.             // -------------------------------- END OF CATEGORIES ---------------------------------- ?>
  246.         <br />
  247.         <input type="submit" value="<?php echo T_('Get selection'?>" />
  248.         <input type="reset" value="<?php echo T_('Reset form'?>" />
  249.         </form>
  250.     </div>
  251.  
  252.     <div class="bSideItem">
  253.         <h3><?php echo T_('Archives'?></h3>
  254.         <ul>
  255.             <?php // -------------------------- ARCHIVES INCLUDED HERE -----------------------------
  256.                 requireget_path('skins').'/_archives.php');
  257.                 // -------------------------------- END OF ARCHIVES ---------------------------------- ?>
  258.                 <li><a href="<?php $Blog->disp'arcdirurl''raw' ?>"><?php echo T_('more...'?></a></li>
  259.         </ul>
  260.     </div>
  261.  
  262.  
  263.     <?php // -------------------------- LINKBLOG INCLUDED HERE -----------------------------
  264.         requireget_path('skins').'/_linkblog.php' );
  265.         // -------------------------------- END OF LINKBLOG ---------------------------------- ?>
  266.  
  267.  
  268.     <div class="bSideItem">
  269.         <h3><?php echo T_('Misc'?></h3>
  270.         <ul>
  271.             <?php
  272.                 // Administrative links:
  273.                 user_login_link'<li>''</li>' );
  274.                 user_register_link'<li>''</li>' );
  275.                 user_admin_link'<li>''</li>' );
  276.                 user_profile_link'<li>''</li>' );
  277.                 user_logout_link'<li>''</li>' );
  278.             ?>
  279.         </ul>
  280.     </div>
  281.  
  282.     <div class="bSideItem">
  283.         <h3><?php echo T_('Syndicate this blog'?> <img src="<?php echo $img_url ?>/xml.gif" alt="XML" width="36" height="14" class="middle" /></h3>
  284.  
  285.  
  286.             <ul>
  287.                 <li><a href="<?php $Blog->disp'rss_url''raw' ?>">RSS 0.92 (Userland)</a></li>
  288.                 <li><a href="<?php $Blog->disp'rdf_url''raw' ?>">RSS 1.0 (RDF)</a></li>
  289.                 <li><a href="<?php $Blog->disp'rss2_url''raw' ?>">RSS 2.0 (Userland)</a></li>
  290.                 <li><a href="<?php $Blog->disp'atom_url''raw' ?>">Atom 0.3</a></li>
  291.             </ul>
  292.             <a href="http://fplanque.net/Blog/itTrends/2004/01/10/rss_rdf_and_atom_in_a_nutshell" title="External - English">What is RSS?</a>
  293.  
  294.     </div>
  295.  
  296.     <p class="center">powered by<br />
  297.     <a href="http://b2evolution.net/" title="b2evolution home"><img src="<?php echo $img_url ?>/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a></p>
  298.  
  299. </div>
  300. <!-- InstanceEndEditable --></div>
  301. <table cellspacing="3" class="wide">
  302.   <tr> 
  303.   <td class="cartouche">Original page design by <a href="http://fplanque.net/">Fran&ccedil;ois PLANQUE</a> </td>
  304.     
  305.     <td class="cartouche" align="right"> <a href="http://b2evolution.net/" title="b2evolution home"><img src="img/b2evolution_button.png" alt="b2evolution" width="80" height="15" border="0" class="middle" /></a></td>
  306.   </tr>
  307. </table>
  308. <p class="baseline">
  309.  
  310.     <a href="http://validator.w3.org/check/referer"><img style="border:0;width:88px;height:31px" src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" class="middle" /></a> 
  311.   
  312.     <a href="http://jigsaw.w3.org/css-validator/"><img style="border:0;width:88px;height:31px" src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" class="middle" /></a>
  313.     
  314.     <?php ifisset($Blog) ) 
  315.     ?>
  316.     
  317.     <a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp'rss2_url''raw' ?>"><img src="img/valid-rss.png" alt="Valid RSS!" style="border:0;width:88px;height:31px" class="middle" /></a>
  318.  
  319.     <a href="http://feedvalidator.org/check.cgi?url=<?php $Blog->disp'atom_url''raw' ?>"><img src="img/valid-atom.png" alt="Valid Atom!" style="border:0;width:88px;height:31px" class="middle" /></a>
  320.     
  321.     <?php ?>
  322.     
  323.     &nbsp;<!-- InstanceBeginEditable name="Baseline" -->
  324. <?php
  325.     log_hit();    // log the hit on this page
  326.     debug_info()// output debug info if requested
  327. ?>
  328. <!-- InstanceEndEditable --></p>
  329. </body>
  330. <!-- InstanceEnd --></html>

Documentation generated on Tue, 20 May 2008 01:51:10 +0200 by phpDocumentor 1.4.2