b2evolution PHP Cross Reference Blogging Systems

Source: /inc/collections/views/_coll_type.form.php - 65 lines - 2097 bytes - Text - Print

Description: This file implements the UI view for the blog type. b2evolution - {@link http://b2evolution.net/} Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}

   1  <?php
   2  /**

   3   * This file implements the UI view for the blog type.

   4   *

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

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

   7   * @copyright (c)2003-2014 by Francois Planque - {@link http://fplanque.com/}

   8   * Parts of this file are copyright (c)2004-2005 by Daniel HAHLER - {@link http://thequod.de/contact}.

   9   *

  10   * {@internal Open Source relicensing agreement:

  11   * Daniel HAHLER grants Francois PLANQUE the right to license

  12   * Daniel HAHLER's contributions to this file and the b2evolution project

  13   * under any OSI approved OSS license (http://www.opensource.org/licenses/).

  14   * }}

  15   *

  16   * @package admin

  17   * {@internal Below is a list of authors who have contributed to design/coding of this file: }}

  18   * @author fplanque: Francois PLANQUE.

  19   *

  20   * @version $Id: _coll_type.form.php 2139 2012-10-15 06:21:30Z yura $

  21   */
  22  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  23  
  24  /**

  25   * @var Blog

  26   */
  27  global $edited_Blog;
  28  
  29  
  30  global $action, $next_action, $blogtemplate, $blog, $tab, $admin_url;
  31  
  32  $Form = new Form();
  33  
  34  $Form->begin_form( 'fform' );
  35  
  36  $Form->add_crumb( 'collection' );
  37  $Form->hidden_ctrl();
  38  $Form->hidden( 'action', 'update_type' );
  39  $Form->hidden( 'tab', $tab );
  40  $Form->hidden( 'blog', $blog );
  41  
  42  
  43  $Form->begin_fieldset( T_('Collection type').get_manual_link('collection-type') );
  44  
  45      $collection_kinds = get_collection_kinds();
  46      $radio_options = array();
  47      foreach( $collection_kinds as $kind_value => $kind )
  48      {
  49          $radio_options[] = array( $kind_value, $kind['name'], $kind['desc'] );
  50      }
  51      $Form->radio( 'type', $edited_Blog->get( 'type' ), $radio_options, T_('Type'), true );
  52  
  53      $Form->checkbox_input( 'reset', 0, T_('Reset'), array(
  54              'input_suffix' => ' '.T_('Reset all parameters as for a new blog.'),
  55              'note' => T_('(Only keep blog name, owner, URL, categories and content).')
  56          ) );
  57  
  58  $Form->end_fieldset();
  59  
  60  
  61  $Form->buttons( array( array( 'submit', 'submit', T_('Save changes!'), 'SaveButton' ) ) );
  62  
  63  $Form->end_form();
  64  
  65  ?>

title

Description

title

Description

title

Description

title

title

Body