b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body