0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
b2evolution
/
4.1.5b-1
/
standard
/
htdocs
/
skins
/
colourise
/
[
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 colourise * * @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 colourise_Skin extends Skin { /** * Get default name for the skin. * Note: the admin can customize it. */ function get_default_name() { return 'Colourise'; } /** * Get default type for the skin. */ function get_default_type() { return 'normal'; } /** * Get ready for displaying the skin. * * This may register some CSS or JS... */ function display_init() { // call parent: parent::display_init(); // Colorbox (a lightweight Lightbox alternative) allows to zoom on images and do slideshows with groups of images: if ($this->get_setting("colorbox")) { require_js_helper( 'colorbox' ); } } /** * Get definitions for editable params * * @see Plugin::GetDefaultSettings() * @param local params like 'for_editing' => true */ function get_param_definitions( $params ) { $r = array_merge( array( '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; } } /* * $Log: _skin.class.php,v $ */ ?>