0byt3m1n1
Path:
/
data
/
applications
/
aps
/
b2evolution
/
4.1.5b-1
/
standard
/
htdocs
/
skins
/
intense
/
[
Home
]
File: _skin.class.php
<?php /** * 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/} * * @package skins * @subpackage intense * * @version $Id: _skin.class.php 9 2011-10-24 22:32:00Z fplanque $ */ if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); /** * Specific code for this skin. * * ATTENTION: if you make a new skin you have to change the class name below accordingly */ class intense_Skin extends Skin { /** * Get default name for the skin. * Note: the admin can customize it. */ function get_default_name() { return 'Intense'; } /** * Get default type for the skin. */ function get_default_type() { return 'normal'; } /** * Get definitions for editable params * * @see Plugin::GetDefaultSettings() * @param local params like 'for_editing' => true */ function get_param_definitions( $params ) { $r = array_merge( array( 'head_image' => array( 'label' => T_('Header Image'), 'note' => T_('0 for random header image; 1,2,3,4 for custom header image.'), 'defaultvalue' => 0, 'valid_pattern' => array( 'pattern'=>'~^([0-4]{1})?$~', 'error'=>T_('Invalid Header Image.') ), ), 'colorbox' => array( 'label' => T_('Colorbox Image Zoom'), 'note' => T_('Check to enable javascript zooming on images (using the colorbox script)'), 'defaultvalue' => 1, 'type' => 'checkbox', ), ), parent::get_param_definitions( $params ) ); return $r; } /** * Get ready for displaying the skin. * * This may register some CSS or JS... */ function display_init() { // call parent: parent::display_init(); if($this->get_setting("colorbox")) { require_js_helper( 'colorbox' ); } } } ?>