b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body