b2evolution

Multilingual multiuser multiblog engine

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

Source for file _blogs_general.form.php

Documentation is available at _blogs_general.form.php

  1. <?php
  2.     /**
  3.      * Displays blog properties form
  4.      *
  5.      * b2evolution - {@link http://b2evolution.net/}
  6.      * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
  7.      * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
  8.      *
  9.      * @package admin
  10.      */
  11.     if!defined('DB_USER') ) die'Please, do not access this page directly.' );
  12. ?>
  13. <form action="b2blogs.php" class="fform" method="post">
  14.     <input type="hidden" name="action" value="<?php echo $next_action ?>" />
  15.     <input type="hidden" name="blog" value="<?php echo $blog?>" />
  16.  
  17.     <fieldset>
  18.         <legend><?php echo T_('General parameters'?></legend>
  19.         <?php
  20.             form_text'blog_name'$blog_name50T_('Full Name')T_('Will be displayed on top of the blog.') );
  21.             form_text'blog_shortname'$blog_shortname12T_('Short Name')T_('Will be used in selection menus and throughout the admin interface.') );
  22.             form_select'blog_locale'$blog_locale'locale_options'T_('Main Locale')T_('Determines the language of the navigation links on the blog.') );
  23.         ?>
  24.     </fieldset>
  25.     
  26.     <fieldset>
  27.         <legend><?php echo T_('Access parameters'?></legend>
  28.     
  29.         <?php
  30.             if$Settings->get('default_blog_ID'&& ($Settings->get('default_blog_ID'!= $blog) )
  31.             {
  32.                 if$default_Blog $BlogCache->get_by_ID($Settings->get('default_blog_ID')false) )
  33.         // Default blog exists
  34.                   $defblog $default_Blog->dget('shortname');
  35.         }
  36.             }
  37.             form_radio'blog_access_type'$blog_access_type,
  38.                     array(  array'default'T_('Default blog on index.php')$baseurl.'/index.php'.
  39.                                                     isset($defblog'  ['/* TRANS: current default blog */ 
  40.                                                     T_('Current default is:').' '.$defblog.']' '' ) ),
  41.                                     array'index.php'T_('Other blog through index.php')
  42.                                                     $baseurl.'/index.php'.
  43.                                                     ($Settings->get('links_extrapath')) '/'.$blog_stub '?blog='.$blog) ),
  44.                                     array'stub'T_('Other blog through stub file (Advanced)')$baseurl.'/'.$blog_stub.' &nbsp; '.T_('You MUST create a stub file for this to work.') ),
  45.                                 )T_('Preferred access type')true );
  46.         ?>
  47.         
  48.         <fieldset>
  49.             <div class="label"><label for="blog_siteurl"><?php echo T_('Blog Folder URL'?>: </label></div>
  50.             <div class="input"><code><?php echo $baseurl ?></code><input type="text" name="blog_siteurl" id="blog_siteurl" size="40" maxlength="120" value="<?php echo format_to_output($blog_siteurl'formvalue'?>"/>
  51.             <span class="notes"><?php echo T_('No trailing slash. (If you don\'t know, leave this field empty.)'?></span></div>
  52.         </fieldset>
  53.     
  54.     
  55.         <?php
  56.             form_text'blog_stub'$blog_stub20T_('URL blog name / Stub name')T_('Used in URLs to identify this blog. This should be the stub filename if you use stub file access.')30 );
  57.         ?>
  58.     </fieldset>
  59.                 
  60.     <fieldset>
  61.         <legend><?php echo T_('Default display options'?></legend>
  62.         <?php
  63.             form_select'blog_default_skin'$blog_default_skin'skin_options'T_('Default skin'T_('This is the default skin that will be used to display this blog.') );
  64.  
  65.             form_checkbox'blog_force_skin'1-$blog_force_skinT_('Allow skin switching')T_('Users will be able to select another skin to view the blog (and their prefered skin will be saved in a cookie).') );
  66.  
  67.             form_checkbox'blog_disp_bloglist'$blog_disp_bloglistT_('Display public blog list')T_('Check this if you want to display the list of all blogs on your blog page (if your skin supports this).') );
  68.  
  69.             form_checkbox'blog_in_bloglist'$blog_in_bloglistT_('Include in public blog list')T_('Check this if you want to this blog to be displayed in the list of all public blogs.') );
  70.         
  71.             form_select_object'blog_linkblog'$blog_linkblog$BlogCacheT_('Default linkblog')T_('Will be displayed next to this blog (if your skin supports this).')true );
  72.         ?>
  73.     </fieldset>
  74.  
  75.     <fieldset>
  76.         <legend><?php echo T_('Description'?></legend>
  77.         <?php
  78.             form_text'blog_tagline'$blog_tagline50T_('Tagline')T_('This is diplayed under the blog name on the blog template.')250 );
  79.  
  80.             form_textarea'blog_longdesc'$blog_longdesc8T_('Long Description')T_('This is displayed on the blog template.')50'large' );
  81.  
  82.             form_text'blog_description'$blog_description60T_('Short Description')T_('This is is used in meta tag description and RSS feeds. NO HTML!')250'large' );
  83.  
  84.             form_text'blog_keywords'$blog_keywords60T_('Keywords')T_('This is is used in meta tag keywords. NO HTML!')250'large' );
  85.  
  86.             form_textarea'blog_notes'$blog_notes8T_('Notes')T_('Additional info.')50'large' );
  87.  
  88.         ?>
  89.     </fieldset>
  90.  
  91.     <?php form_submit()?>    
  92.  
  93. </form>

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