[ Index ] |
|
Code source de b2evolution 2.1.0-beta |
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-2007 by Francois PLANQUE - {@link http://fplanque.net/} 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,v 1.2 2007/09/03 20:07:50 blueyed Exp $ 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' ) ); 39 $Form->global_icon( T_('Cancel editing!'), 'close', regenerate_url( 'action' ) ); 40 41 $Form->begin_form( 'fform', T_('Skin properties') ); 42 43 $Form->hidden_ctrl(); 44 $Form->hidden( 'action', 'update' ); 45 $Form->hidden( 'skin_ID', $edited_Skin->ID ); 46 47 $Form->begin_fieldset( T_('Skin properties') ); 48 49 Skin::disp_skinshot( $edited_Skin->folder ); 50 51 $Form->text_input( 'skin_name', $edited_Skin->name, 32, T_('Skin name'), T_('As seen by blog owners'), array( 'required'=>true ) ); 52 53 $Form->radio( 'skin_type', 54 $edited_Skin->type, 55 array( 56 array( 'normal', T_( 'Normal' ), T_( 'Normal skin for general browsing' ) ), 57 array( 'feed', T_( 'XML Feed' ), T_( 'Special system skin for XML feeds like RSS and Atom' ) ), 58 ), 59 T_( 'Skin type' ), 60 true // separate lines 61 ); 62 63 if( $skin_containers = $edited_Skin->get_containers() ) 64 { 65 $container_ul = '<ul><li>'.implode( '</li><li>', $skin_containers ).'</li></ul>'; 66 } 67 else 68 { 69 $container_ul = '-'; 70 } 71 $Form->info( T_('Containers'), $container_ul ); 72 73 $Form->end_fieldset(); 74 75 $Form->end_form( array( array( 'submit', 'submit', T_('Update'), 'SaveButton' ), 76 array( 'reset', '', T_('Reset'), 'ResetButton' ) ) ); 77 78 79 /* 80 * $Log: _skin.form.php,v $ 81 * Revision 1.2 2007/09/03 20:07:50 blueyed 82 * Fixed display of empty container lists in "Skins install" detail form 83 * 84 * Revision 1.1 2007/06/25 11:01:36 fplanque 85 * MODULES (refactored MVC) 86 * 87 * Revision 1.3 2007/04/26 00:11:05 fplanque 88 * (c) 2007 89 * 90 * Revision 1.2 2007/01/07 23:38:20 fplanque 91 * discovery of skin containers 92 * 93 * Revision 1.1 2007/01/07 05:32:11 fplanque 94 * added some more DB skin handling (install+uninstall+edit properties ok) 95 * still useless though :P 96 * next step: discover containers in installed skins 97 */ 98 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |