b2evolution PHP Cross Reference Blogging Systems

Source: /skins/colourise/_skin.class.php - 102 lines - 2625 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 colourise
  10   *
  11   * @version $Id: _skin.class.php 3328 2013-03-26 11:44:11Z 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 colourise_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 'Colourise';
  29      }
  30  
  31  
  32    /**
  33       * Get default type for the skin.
  34       */
  35  	function get_default_type()
  36      {
  37          return 'normal';
  38      }
  39  
  40  
  41      /**
  42       * Get ready for displaying the skin.
  43       *
  44       * This may register some CSS or JS...
  45       */
  46  	function display_init()
  47      {
  48          // call parent:
  49          parent::display_init();
  50  
  51          // Add CSS:
  52          require_css( 'basic_styles.css', 'blog' ); // the REAL basic styles
  53          require_css( 'basic.css', 'blog' ); // Basic styles
  54          require_css( 'img.css', 'blog' ); // Standard image styles
  55          require_css( 'blog_base.css', 'blog' ); // Default styles for the blog navigation
  56          require_css( 'item_base.css', 'blog' ); // Default styles for the post CONTENT
  57          require_css( 'forms.css', 'blog' ); // Default form styles
  58          require_css( 'comments.css', 'blog' ); // Default comment styles
  59  
  60          // Colorbox (a lightweight Lightbox alternative) allows to zoom on images and do slideshows with groups of images:
  61          if ($this->get_setting("colorbox")) 
  62          {
  63              require_js_helper( 'colorbox', 'blog' );
  64          }
  65      }
  66      
  67      
  68      /**
  69       * Get definitions for editable params
  70       *
  71       * @see Plugin::GetDefaultSettings()
  72       * @param local params like 'for_editing' => true
  73       */
  74  	function get_param_definitions( $params )
  75      {
  76          $r = array_merge( array(
  77                  'colorbox' => array(
  78                      'label' => T_('Colorbox Image Zoom'),
  79                      'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'),
  80                      'defaultvalue' => 1,
  81                      'type'    =>    'checkbox',
  82                  ),
  83                  'gender_colored' => array(
  84                      'label' => T_('Display gender'),
  85                      'note' => T_('Use colored usernames to differentiate men & women.'),
  86                      'defaultvalue' => 0,
  87                      'type' => 'checkbox',
  88                  ),
  89                  'bubbletip' => array(
  90                      'label' => T_('Username bubble tips'),
  91                      'note' => T_('Check to enable bubble tips on usernames'),
  92                      'defaultvalue' => 0,
  93                      'type' => 'checkbox',
  94                  ),
  95              ), parent::get_param_definitions( $params )    );
  96  
  97          return $r;
  98      }
  99  
 100  }
 101  
 102  ?>

title

Description

title

Description

title

Description

title

title

Body