[ 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/inc/collections/views/ -> _coll_display.form.php (source)

   1  <?php
   2  /**

   3   * This file implements the UI view for the Blog display properties.

   4   *

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

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

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

   8   *

   9   * @package admin

  10   *

  11   * @version $Id: _coll_display.form.php,v 1.1 2007/06/25 10:59:34 fplanque Exp $

  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  /**

  16   * @var Blog

  17   */
  18  global $edited_Blog;
  19  
  20  global $tab, $blog;
  21  
  22  $Form = new Form();
  23  
  24  $Form->begin_form( 'fform' );
  25  
  26  $Form->hidden_ctrl();
  27  $Form->hidden( 'action', 'update' );
  28  $Form->hidden( 'tab', $tab );
  29  $Form->hidden( 'blog', $blog );
  30  
  31  $Form->begin_fieldset( T_('Description') );
  32      $Form->text( 'blog_tagline', $edited_Blog->get( 'tagline' ), 50, T_('Tagline'), T_('This is diplayed under the blog name on the blog template.'), 250 );
  33      $Form->textarea( 'blog_longdesc', $edited_Blog->get( 'longdesc' ), 5, T_('Long Description'), T_('This is displayed on the blog template.'), 50, 'large' );
  34  $Form->end_fieldset();
  35  
  36  $Form->begin_fieldset( T_('Content / Posts') );
  37      $Form->select_input_array( 'orderby', $edited_Blog->get_setting('orderby'), array(
  38                                                  'datestart' => T_('Date issued (Default)'),
  39                                                  //'datedeadline' => T_('Deadline'),

  40                                                  'title'     => T_('Title'),
  41                                                  'datecreated' => T_('Date created'),
  42                                                  'datemodified' => T_('Date last modified'),
  43                                                  'urltitle'     => T_('URL Title'),
  44                                                  'priority'     => T_('Priority'),
  45                                              ), T_('Order by'), T_('Default ordering of posts.') );
  46      $Form->select_input_array( 'orderdir', $edited_Blog->get_setting('orderdir'), array(
  47                                                  'ASC'  => T_('Ascending'),
  48                                                  'DESC' => T_('Descending'), ), T_('Direction') );
  49      $Form->radio( 'what_to_show', $edited_Blog->get_setting('what_to_show'),
  50                                  array(  array( 'days', T_('days') ),
  51                                                  array( 'posts', T_('posts') ),
  52                                              ), T_('Display unit'), false,  T_('Do you want to restrict on the number of days or the number of posts?') );
  53      $Form->text( 'posts_per_page', $edited_Blog->get_setting('posts_per_page'), 4, T_('Posts/Days per page'), T_('How many days or posts fo you want to display on the home page?'), 4 );
  54      $Form->radio( 'archive_mode',  $edited_Blog->get_setting('archive_mode'),
  55                              array(  array( 'monthly', T_('monthly') ),
  56                                              array( 'weekly', T_('weekly') ),
  57                                              array( 'daily', T_('daily') ),
  58                                              array( 'postbypost', T_('post by post') )
  59                                          ), T_('Archive grouping'), false,  T_('How do you want to browse the post archives? May also apply to permalinks.') );
  60  $Form->end_fieldset();
  61  
  62  $Form->begin_fieldset( T_('Link blog / Blogroll') );
  63      $BlogCache = & get_Cache( 'BlogCache' );
  64      $Form->select_object( 'blog_links_blog_ID', $edited_Blog->get( 'links_blog_ID' ), $BlogCache, T_('Default linkblog'), T_('Will be displayed next to this blog (if your skin supports this).'), true );
  65  $Form->end_fieldset();
  66  
  67  if( $current_User->check_perm( 'blog_admin', 'edit', false, $edited_Blog->ID ) )
  68  {    // Permission to edit advanced admin settings
  69  
  70      $Form->begin_fieldset( T_('Skin and style').' ['.T_('Admin').']' );
  71  
  72          $SkinCache = & get_Cache( 'SkinCache' );
  73          $SkinCache->load_all();
  74          $Form->select_input_object( 'blog_skin_ID', $edited_Blog->skin_ID, $SkinCache, T_('Skin') );
  75          $Form->checkbox( 'blog_allowblogcss', $edited_Blog->get( 'allowblogcss' ), T_('Allow customized blog CSS file'), T_('You will be able to customize the blog\'s skin stylesheet with a file named style.css in the blog\'s media file folder.') );
  76          $Form->checkbox( 'blog_allowusercss', $edited_Blog->get( 'allowusercss' ), T_('Allow user customized CSS file for this blog'), T_('Users will be able to customize the blog and skin stylesheets with a file named style.css in their personal file folder.') );
  77      $Form->end_fieldset();
  78  
  79  }
  80  
  81  $Form->buttons( array( array( 'submit', 'submit', T_('Save !'), 'SaveButton' ),
  82                                                      array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  83  
  84  $Form->end_form();
  85  
  86  /*

  87   * $Log: _coll_display.form.php,v $

  88   * Revision 1.1  2007/06/25 10:59:34  fplanque

  89   * MODULES (refactored MVC)

  90   *

  91   * Revision 1.14  2007/05/29 01:17:20  fplanque

  92   * advanced admin blog settings are now restricted by a special permission

  93   *

  94   * Revision 1.13  2007/05/27 00:34:40  fplanque

  95   * minor

  96   *

  97   * Revision 1.12  2007/05/13 22:53:31  fplanque

  98   * allow feeds restricted to post excerpts

  99   *

 100   * Revision 1.11  2007/05/08 00:54:31  fplanque

 101   * public blog list as a widget

 102   *

 103   * Revision 1.10  2007/04/26 00:11:05  fplanque

 104   * (c) 2007

 105   *

 106   * Revision 1.9  2007/01/23 09:25:40  fplanque

 107   * Configurable sort order.

 108   *

 109   * Revision 1.8  2007/01/08 02:11:55  fplanque

 110   * Blogs now make use of installed skins

 111   * next step: make use of widgets inside of skins

 112   *

 113   * Revision 1.7  2006/12/14 21:41:16  fplanque

 114   * Allow different number of items in feeds than on site

 115   *

 116   * Revision 1.6  2006/12/04 21:25:18  fplanque

 117   * removed user skin switching

 118   *

 119   * Revision 1.5  2006/12/04 19:41:11  fplanque

 120   * Each blog can now have its own "archive mode" settings

 121   *

 122   * Revision 1.4  2006/12/04 18:16:50  fplanque

 123   * Each blog can now have its own "number of page/days to display" settings

 124   *

 125   * Revision 1.3  2006/09/11 19:35:35  fplanque

 126   * minor

 127   *

 128   */
 129  ?>


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