b2evolution PHP Cross Reference Blogging Systems

Source: /inc/skins/views/_skin.form.php - 82 lines - 2946 bytes - Text - Print

Description: This file implements the Skin properties form. This file is part of the evoCore framework - {@link http://evocore.net/} See also {@link http://sourceforge.net/projects/evocms/}.

   1  <?php
   2  /**
   3   * This file implements the Skin properties form.
   4   *
   5   * This file is part of the evoCore framework - {@link http://evocore.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   * {@internal License choice
  11   * - If you have received this file as part of a package, please find the license.txt file in
  12   *   the same folder or the closest folder above for complete license terms.
  13   * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/)
  14   *   then you must choose one of the following licenses before using the file:
  15   *   - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php
  16   *   - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php
  17   * }}
  18   *
  19   * {@internal Open Source relicensing agreement:
  20   * }}
  21   *
  22   * @package admin
  23   *
  24   * @author fplanque: Francois PLANQUE.
  25   *
  26   * @version $Id: _skin.form.php 6136 2014-03-08 07:59:48Z manuel $
  27   */
  28  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  29  
  30  /**
  31   * @var Skin
  32   */
  33  global $edited_Skin;
  34  
  35  
  36  $Form = new Form( NULL, 'skin_checkchanges' );
  37  
  38  $Form->global_icon( T_('Uninstall this skin!'), 'delete', regenerate_url( 'action', 'action=delete&amp;'.url_crumb('skin') ) );
  39  $Form->global_icon( T_('Cancel editing!'), 'close', regenerate_url( 'action' ) );
  40  
  41  $Form->begin_form( 'fform', T_('Skin properties') );
  42  
  43      $Form->add_crumb( 'skin' );
  44      $Form->hidden_ctrl();
  45      $Form->hidden( 'action', 'update' );
  46      $Form->hidden( 'skin_ID', $edited_Skin->ID );
  47  
  48      $Form->begin_fieldset( T_('Skin properties') );
  49  
  50          Skin::disp_skinshot( $edited_Skin->folder, $edited_Skin->name );
  51  
  52          $Form->text_input( 'skin_name', $edited_Skin->name, 32, T_('Skin name'), T_('As seen by blog owners'), array( 'required'=>true ) );
  53  
  54          $Form->radio( 'skin_type',
  55                                      $edited_Skin->type,
  56                                       array(
  57                                                      array( 'normal', T_( 'Normal' ), T_( 'Normal skin for general browsing' ) ),
  58                                                      array( 'mobile', T_( 'Mobile' ), T_( 'Mobile skin for mobile phones browsers' ) ),
  59                                                      array( 'tablet', T_( 'Tablet' ), T_( 'Tablet skin for tablet browsers' ) ),
  60                                                      array( 'feed', T_( 'XML Feed' ), T_( 'Special system skin for XML feeds like RSS and Atom' ) ),
  61                                                      array( 'sitemap', T_( 'XML Sitemap' ), T_( 'Special system skin for XML sitemaps' ) ),
  62                                                  ),
  63                                          T_( 'Skin type' ),
  64                                          true // separate lines
  65                                   );
  66  
  67          if( $skin_containers = $edited_Skin->get_containers() )
  68          {
  69              $container_ul = '<ul><li>'.implode( '</li><li>', $skin_containers ).'</li></ul>';
  70          }
  71          else
  72          {
  73              $container_ul = '-';
  74          }
  75          $Form->info( T_('Containers'), $container_ul );
  76  
  77      $Form->end_fieldset();
  78  
  79  $Form->end_form( array( array( 'submit', 'submit', T_('Update'), 'SaveButton' ),
  80                                                      array( 'reset', '', T_('Reset'), 'ResetButton' ) ) );
  81  
  82  ?>

title

Description

title

Description

title

Description

title

title

Body