[ Index ]
 

Code source de b2evolution 2.1.0-beta

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/blogs/ -> default.php (source)

   1  <?php
   2  /**

   3   * This is the main public interface file!

   4   *

   5   * This file is NOT mandatory. You can delete it if you want.

   6   * You can also replace the contents of this file with contents similar to the contents

   7   * of a_stub.php, a_noskin.php, multiblogs.php, etc.

   8   *

   9   * b2evolution - {@link http://b2evolution.net/}

  10   * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

  11   * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/}

  12   *

  13   * @package evoskins

  14   * @subpackage noskin

  15   */
  16  
  17  /**

  18   * First thing: Do the minimal initializations required for b2evo:

  19   */
  20  require_once dirname(__FILE__).'/conf/_config.php';
  21  
  22  /**

  23   * Check this: we are requiring _main.inc.php INSTEAD of _blog_main.inc.php because we are not

  24   * trying to initialize any particular blog

  25   */
  26  require_once $inc_path.'_main.inc.php';
  27  
  28  header( 'Content-type: text/html; charset='.$io_charset );
  29  ?>
  30  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  31  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php locale_lang() ?>" lang="<?php locale_lang() ?>"><!-- InstanceBegin template="/Templates/evo_distrib_2.dwt" codeOutsideHTMLIsLocked="false" -->
  32  <head>
  33      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  34      <!-- InstanceBeginEditable name="doctitle" -->
  35      <title>b2evolution - Default Page</title>
  36      <!-- InstanceEndEditable -->
  37      <link href="rsc/css/evo_distrib_2.css" rel="stylesheet" type="text/css" />
  38      <!-- InstanceBeginEditable name="head" -->
  39      <base href="<?php echo $baseurl ?>" />
  40      <!-- InstanceEndEditable -->
  41      <!-- InstanceParam name="lang" type="text" value="&lt;?php locale_lang() ?&gt;" --> 
  42  </head>
  43  
  44  <body>
  45      <!-- InstanceBeginEditable name="BodyHead" -->
  46      <?php
  47      // ---------------------------- TOOLBAR INCLUDED HERE ----------------------------

  48      require $skins_path.'_toolbar.inc.php';
  49      // ------------------------------- END OF TOOLBAR --------------------------------

  50      ?>
  51      <!-- InstanceEndEditable -->
  52  
  53      <div class="wrapper1">
  54      <div class="wrapper2">
  55          <span class="version_top"><!-- InstanceBeginEditable name="Version" --><?php echo T_('Default page') ?><!-- InstanceEndEditable --></span>    
  56      
  57          <a href="http://b2evolution.net/" target="_blank"><img src="rsc/img/distrib/b2evolution-logo.gif" alt="b2evolution" width="237" height="92" /></a>
  58          
  59          <div class="menu_top"><!-- InstanceBeginEditable name="MenuTop" --> 
  60              <span class="floatright"><a href="<?php echo $baseurl ?>">Home</a> &bull; <a href="<?php echo $admin_url ?>">Admin</a> </span> 
  61              &nbsp;
  62          <!-- InstanceEndEditable --></div>
  63          
  64          <!-- InstanceBeginEditable name="Main" -->
  65          <?php
  66              /**

  67               * @var BlogCache

  68               */
  69              $BlogCache = & get_Cache('BlogCache');
  70              $BlogCache->load_all();
  71          ?>
  72  
  73          <div class="block1">
  74          <div class="block2">
  75          <div class="block3">
  76  
  77              <h1><?php echo T_('Welcome to b2evolution') ?></h1>
  78              
  79              <?php
  80                  messages( array(
  81                          'block_start' => '<div class="action_messages">',
  82                          'block_end'   => '</div>',
  83                      ) );
  84  
  85                  if( count( $BlogCache->cache ) == 0 )
  86                  {    // There is no blog on this system!
  87                      echo '<p><strong>'.T_('b2evolution is installed and ready but you haven\'t created any blog on this system yet.').'</strong></p>';
  88  
  89                      echo '<p><a href="'.$admin_url.'?ctrl=collections&amp;action=new">'.T_( 'Create a first blog' ).' &raquo;</a></p>';
  90                  }
  91                  else
  92                  {
  93                      echo '<p><strong>'.T_('You have successfully installed b2evolution.').'</strong></p>';
  94  
  95                      echo '<p>'.T_('You haven\'t set a default blog yet. Thus, you see this default page.').'</p>';
  96  
  97                  ?>
  98                  <p><a href="<?php echo $admin_url ?>?ctrl=settings&amp;tab=general"><?php echo T_( 'Set a default blog' ) ?> &raquo;</a></p>
  99  
 100          </div>
 101          </div>
 102          </div>
 103  
 104          <div class="block1">
 105          <div class="block2">
 106          <div class="block3">
 107  
 108      <h2><?php echo T_('Blogs on this system') ?></h2>
 109  
 110      <ul>
 111      <?php // --------------------------- BLOG LIST -----------------------------
 112          for( $l_Blog = & $BlogCache->get_first();
 113                      ! is_null( $l_Blog );
 114                       $l_Blog = & $BlogCache->get_next() )
 115          { # by uncommenting the following lines you can hide some blogs
 116              // if( $curr_blog_ID == 2 ) continue; // Hide blog 2...

 117              echo '<li><strong>';
 118              printf( T_('Blog #%d'), $l_Blog->ID );
 119              echo ': <a href="'.$l_Blog->gen_blogurl().'" title="'.$l_Blog->dget( 'shortdesc', 'htmlattr' ).'">';
 120              $l_Blog->disp( 'name' );
 121              echo '</a></strong>';
 122              echo '</li>';
 123          }
 124          // ---------------------------------- END OF BLOG LIST ---------------------------------

 125          ?>
 126      </ul>
 127  
 128          <?php
 129              echo '<p><a href="'.$admin_url.'?ctrl=collections&amp;action=new">'.T_( 'Add a new blog' ).' &raquo;</a></p>';
 130          ?>
 131          </div>
 132          </div>
 133          </div>
 134  
 135          <div class="block1">
 136          <div class="block2">
 137          <div class="block3">
 138  
 139       <h2><?php echo T_('Bonus templates &amp; features') ?></h2>
 140      <p class="note"><?php echo T_('These templates demonstrate more advanced uses of b2evolution. These do not make use of skins. The only way to change their look and feel is to edit their PHP template.') ?></p>
 141      <ul>
 142          <?php
 143              $first_Blog = & $BlogCache->get_by_ID( 1, false );
 144              if( !empty( $first_Blog ) )
 145              {
 146              ?>
 147                  <li><strong><a href="a_stub.php"><?php echo T_('Blog #1 called through a stub file') ?></a></strong> &nbsp; <span class="note">(a_stub.php)</span></li>
 148                  <li><strong><a href="a_noskin.php"><?php echo T_('Blog #1 called through a custom template (not a skin)') ?></a></strong> &nbsp; <span class="note">(a_noskin.php)</span></li>
 149                  <li><strong><a href="multiblogs.php"><?php echo T_('Multiple blogs displayed on the same page') ?></a></strong> &nbsp; <span class="note">(multiblogs.php)</span></li>
 150                  <li><strong><a href="sitemap_a.php"><?php echo T_('Blog #1 XML sitemap (called through a stub)') ?></a></strong> &nbsp; <span class="note">(sitemap_a.php)</span></li>
 151                  <li><strong><a href="sitemap_blogs.php"><?php echo T_('Blog #1 aggregated XML sitemap (called through a stub)') ?></a></strong> &nbsp; <span class="note">(sitemap_blogs.php)</span></li>
 152              <?php
 153              }
 154          ?>
 155          <li><strong><a href="summary.php"><?php echo T_('Summary of latest posts in all blogs') ?></a></strong> &nbsp; <span class="note">(summary.php)</span></li>
 156          <li><strong><a href="default.php"><?php echo T_('The page you\'re looking at') ?></a></strong> &nbsp; <span class="note">(default.php)</span></li>
 157          <li><strong><a href="contact.php"><?php echo T_('A standalone admin-contact page for your site') ?></a></strong> &nbsp; <span class="note">(contact.php)</span></li>
 158      </ul>
 159  
 160      <?php
 161      }
 162  ?>
 163  
 164  </div>
 165  </div>
 166  </div>
 167  <!-- InstanceEndEditable -->
 168      </div>
 169          
 170      <div class="body_fade_out">
 171          
 172      <div class="menu_bottom"><!-- InstanceBeginEditable name="MenuBottom" -->Powered by <a href="http://b2evolution.net/" target="_blank">b2evolution</a> &bull; <a href="http://manual.b2evolution.net/" target="_blank">Manual</a> &bull; <a href="http://forums.b2evolution.net/" target="_blank">Forums</a>
 173          <!-- InstanceEndEditable --></div>
 174      
 175      <div class="copyright"><!-- InstanceBeginEditable name="CopyrightTail" -->
 176          <a href="contact.php"><?php echo T_('Contact the admin') ?></a>
 177          <?php
 178              credits( array(
 179                      'list_start'  => ' &middot; ',
 180                      'list_end'    => ' ',
 181                      'separator'   => ' &middot; ',
 182                      'item_start'  => ' ',
 183                      'item_end'    => ' ',
 184                  ) );
 185          ?>
 186          <!-- InstanceEndEditable --></div>
 187          
 188      </div>
 189      </div>
 190  
 191      <!-- InstanceBeginEditable name="BodyFoot" -->
 192      <?php debug_info(); // output debug info if requested ?>

 193      <!-- InstanceEndEditable -->
 194  </body>
 195  <!-- InstanceEnd --></html>


Généré le : Thu Nov 29 23:58:50 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics