b2evolution PHP Cross Reference Blogging Systems

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

title

Description

title

Description

title

Description

title

title

Body