b2evolution PHP Cross Reference Blogging Systems

Source: /inc/collections/views/_coll_other.form.php - 94 lines - 3911 bytes - Text - Print

Description: This file implements the UI view for the Collection features other properties. This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}. See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the UI view for the Collection features other properties.
   4   *
   5   * This file is part of the b2evolution/evocms project - {@link http://b2evolution.net/}.
   6   * See also {@link http://sourceforge.net/projects/evocms/}.
   7   *
   8   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}.
   9   *
  10   * @license http://b2evolution.net/about/license.html GNU General Public License (GPL)
  11   *
  12   * {@internal Open Source relicensing agreement:
  13   * }}
  14   *
  15   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}
  16   *
  17   * @package admin
  18   *
  19   * @version $Id: _coll_other.form.php 6136 2014-03-08 07:59:48Z manuel $
  20   */
  21  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  22  
  23  /**
  24   * @var Blog
  25   */
  26  global $edited_Blog;
  27  
  28  
  29  $Form = new Form( NULL, 'coll_other_checkchanges' );
  30  
  31  $Form->begin_form( 'fform' );
  32  
  33  $Form->add_crumb( 'collection' );
  34  $Form->hidden_ctrl();
  35  $Form->hidden( 'action', 'update' );
  36  $Form->hidden( 'tab', 'other' );
  37  $Form->hidden( 'blog', $edited_Blog->ID );
  38  
  39  
  40  $Form->begin_fieldset( T_('Sitemaps') );
  41      $Form->checkbox( 'enable_sitemaps', $edited_Blog->get_setting( 'enable_sitemaps' ),
  42                          T_( 'Enable sitemaps' ), T_( 'Check to allow usage of skins with the "sitemap" type.' ) );
  43  $Form->end_fieldset();
  44  
  45  
  46  $Form->begin_fieldset( T_('Subscriptions') );
  47      $Form->checkbox( 'allow_subscriptions', $edited_Blog->get_setting( 'allow_subscriptions' ), T_('Email subscriptions'), T_('Allow users to subscribe and receive email notifications for each new post and/or comment.') );
  48      $Form->checkbox( 'allow_item_subscriptions', $edited_Blog->get_setting( 'allow_item_subscriptions' ), '', T_( 'Allow users to subscribe and receive email notifications for comments on a specific post.' ) );
  49      // TODO: checkbox 'Enable RSS/Atom feeds'
  50      // TODO2: which feeds (skins)?
  51  $Form->end_fieldset();
  52  
  53  $Form->begin_fieldset( T_('List of public blogs') );
  54      $Form->checkbox( 'blog_in_bloglist', $edited_Blog->get( 'in_bloglist' ), T_('Include in public blog list'), T_('Check this if you want this blog to be advertised in the list of all public blogs on this system.') );
  55  $Form->end_fieldset();
  56  
  57  if( isset($GLOBALS['files_Module']) )
  58  {
  59      load_funcs( 'files/model/_image.funcs.php' );
  60      $params['force_keys_as_values'] = true;
  61      
  62      $Form->begin_fieldset( T_('User directory') );
  63              $Form->select_input_array( 'image_size_user_list', $edited_Blog->get_setting( 'image_size_user_list' ), get_available_thumb_sizes(), T_('Profile picture size'), '', $params );
  64      $Form->end_fieldset();
  65          
  66      $Form->begin_fieldset( T_('Messaging') );
  67              $Form->select_input_array( 'image_size_messaging', $edited_Blog->get_setting( 'image_size_messaging' ), get_available_thumb_sizes(), T_('Profile picture size'), '', $params );
  68      $Form->end_fieldset();
  69  
  70  }
  71  
  72  
  73  $Form->begin_fieldset( T_('Archives') );
  74      $Form->radio( 'archive_mode',  $edited_Blog->get_setting('archive_mode'),
  75                              array(  array( 'monthly', T_('monthly') ),
  76                                              array( 'weekly', T_('weekly') ),
  77                                              array( 'daily', T_('daily') ),
  78                                              array( 'postbypost', T_('post by post') )
  79                                          ), T_('Archive grouping'), false,  T_('How do you want to browse the post archives? May also apply to permalinks.') );
  80  
  81      // TODO: Hide if archive_mode != 'postbypost' (JS)
  82      // fp> there should probably be no post by post mode since we do have other ways to list posts now
  83      // fp> TODO: this is display param and should go to plugin/widget
  84      $Form->radio( 'archives_sort_order',  $edited_Blog->get_setting('archives_sort_order'),
  85                              array(  array( 'date', T_('date') ),
  86                                              array( 'title', T_('title') ),
  87                                          ), T_('Archive sorting'), false,  T_('How to sort your archives? (only in post by post mode)') );
  88  $Form->end_fieldset();
  89  
  90  $Form->end_form( array(
  91      array( 'submit', 'submit', T_('Save !'), 'SaveButton' ),
  92      array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  93  
  94  ?>

title

Description

title

Description

title

Description

title

title

Body