b2evolution PHP Cross Reference Blogging Systems

Source: /inc/skins/views/_coll_sel_skin.view.php - 46 lines - 1249 bytes - Text - Print

Description: This file implements the UI view for the skin selection when creating a blog.

   1  <?php
   2  /**
   3   * This file implements the UI view for the skin selection when creating a blog.
   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   * @package admin
  13   *
  14   * @version $Id: _coll_sel_skin.view.php 6136 2014-03-08 07:59:48Z manuel $
  15   */
  16  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  17  
  18  global $kind;
  19  
  20  echo '<h2>'.sprintf( T_('New %s'), get_collection_kinds($kind) ).':</h2>';
  21  
  22  echo '<h3>'.T_('Pick a skin:').'</h3>';
  23  
  24  $SkinCache = & get_SkinCache();
  25  $SkinCache->load_all();
  26  
  27  // TODO: this is like touching private parts :>
  28  foreach( $SkinCache->cache as $Skin )
  29  {
  30      if( $Skin->type != 'normal' )
  31      {    // This skin cannot be used here...
  32          continue;
  33      }
  34  
  35      $disp_params = array(
  36          'function' => 'pick',
  37          'select_url' => '?ctrl=collections&amp;action=new-name&amp;kind='.$kind.'&amp;skin_ID='.$Skin->ID
  38      );
  39  
  40      // Display skinshot:
  41      Skin::disp_skinshot( $Skin->folder, $Skin->name, $disp_params );
  42  }
  43  
  44  echo '<div class="clear"></div>';
  45  
  46  ?>

title

Description

title

Description

title

Description

title

title

Body