b2evolution PHP Cross Reference Blogging Systems

Source: /skins/intense/_skin.class.php - 104 lines - 2876 bytes - Summary - Text - Print

Description: This file implements a class derived of the generic Skin class in order to provide custom code for the skin in this folder. This file is part of the b2evolution project - {@link http://b2evolution.net/}

   1  <?php
   2  /**
   3   * This file implements a class derived of the generic Skin class in order to provide custom code for
   4   * the skin in this folder.
   5   *
   6   * This file is part of the b2evolution project - {@link http://b2evolution.net/}
   7   *
   8   * @package skins
   9   * @subpackage intense
  10   *
  11   * @version $Id: _skin.class.php 1214 2012-04-12 10:24:02Z yura $
  12   */
  13  if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
  14  
  15  /**
  16   * Specific code for this skin.
  17   *
  18   * ATTENTION: if you make a new skin you have to change the class name below accordingly
  19   */
  20  class intense_Skin extends Skin
  21  {
  22      /**
  23       * Get default name for the skin.
  24       * Note: the admin can customize it.
  25       */
  26  	function get_default_name()
  27      {
  28          return 'Intense';
  29      }
  30  
  31      /**
  32       * Get default type for the skin.
  33       */
  34  	function get_default_type()
  35      {
  36          return 'normal';
  37      }
  38  
  39      /**
  40       * Get definitions for editable params
  41       *
  42       * @see Plugin::GetDefaultSettings()
  43       * @param local params like 'for_editing' => true
  44       */
  45  	function get_param_definitions( $params )
  46      {
  47          $r = array_merge( array(
  48                  'head_image' => array(
  49                      'label' => T_('Header Image'),
  50                      'note' => T_('0 for random header image; 1,2,3,4 for custom header image.'),
  51                      'defaultvalue' => 0,
  52                      'valid_pattern' => array( 'pattern'=>'~^([0-4]{1})?$~',
  53                                                                          'error'=>T_('Invalid Header Image.') ),
  54                  ),
  55                  'colorbox' => array(
  56                      'label' => T_('Colorbox Image Zoom'),
  57                      'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'),
  58                      'defaultvalue' => 1,
  59                      'type'    =>    'checkbox',
  60                  ),
  61                  'gender_colored' => array(
  62                      'label' => T_('Display gender'),
  63                      'note' => T_('Use colored usernames to differentiate men & women.'),
  64                      'defaultvalue' => 0,
  65                      'type' => 'checkbox',
  66                  ),
  67                  'bubbletip' => array(
  68                      'label' => T_('Username bubble tips'),
  69                      'note' => T_('Check to enable bubble tips on usernames'),
  70                      'defaultvalue' => 0,
  71                      'type' => 'checkbox',
  72                  ),
  73              ), parent::get_param_definitions( $params )    );
  74  
  75          return $r;
  76      }
  77  
  78      /**
  79       * Get ready for displaying the skin.
  80       *
  81       * This may register some CSS or JS...
  82       */
  83  	function display_init()
  84      {
  85          // call parent:
  86          parent::display_init();
  87  
  88          require_css( 'basic_styles.css', 'blog' ); // the REAL basic styles
  89          require_css( 'basic.css', 'blog' ); // Basic styles
  90          require_css( 'img.css', 'blog' ); // Standard image styles
  91          require_css( 'blog_base.css', 'blog' ); // Default styles for the blog navigation
  92          require_css( 'item_base.css', 'blog' ); // Default styles for the post CONTENT
  93          require_css( 'forms.css', 'blog' ); // Default form styles
  94          require_css( 'comments.css', 'blog' ); // Default comment styles
  95          add_headline( '<!--[if IE]><link rel="stylesheet" type="text/css" href="ie.css" /><![endif]-->' );
  96  
  97          if($this->get_setting("colorbox")) 
  98          {
  99              require_js_helper( 'colorbox', 'blog' );
 100          }
 101      }
 102  }
 103  
 104  ?>

title

Description

title

Description

title

Description

title

title

Body