1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00
php-e107/e107_plugins/featurebox/templates/featurebox_template.php
2013-03-08 02:22:47 -08:00

155 lines
5.2 KiB
PHP

<?php
/*
* Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
* $Id$
*
* Featurebox core item templates
*/
global $sc_style;
// e107 v2.x Defaults.
$FEATUREBOX_TEMPLATE['bootstrap_carousel_left'] = '
<!-- slide -->
<div class="{FEATUREBOX_ACTIVE} item slide{FEATUREBOX_COUNTER}">
<div class="row">
<div class="span6">
{FEATUREBOX_IMAGE}
</div>
<div class="span4">
<h1>
{FEATUREBOX_TITLE}
</h1>
{FEATUREBOX_TEXT}
</div>
</div>
</div>
<!-- -->
';
$FEATUREBOX_TEMPLATE['bootstrap_carousel_right'] = '
<div class="{FEATUREBOX_ACTIVE} item slide{FEATUREBOX_COUNTER}">
<div class="row">
<div class="span4 animated fadeInUpBig">
<h1>{FEATUREBOX_TITLE}</h1>
{FEATUREBOX_TEXT}
</div>
<div class="span6 animated fadeInDownBig">
{FEATUREBOX_IMAGE}
</div>
</div>
</div>
';
$FEATUREBOX_TEMPLATE['bootstrap_carousel_image'] = '
<div class="item slide3 animated fadeInUpBig">
{FEATUREBOX_IMAGE}
</div>
';
// ----------------------------
$sc_style['FEATUREBOX_IMAGE|image_left']['pre'] = '<img class="f-left" src="';
$sc_style['FEATUREBOX_IMAGE|image_left']['post'] = '" alt="" />';
$FEATUREBOX_TEMPLATE['default'] = '<!-- Feature box Item -->
<div class="featurebox-item" >
<h3>{FEATUREBOX_TITLE|default}</h3>
{FEATUREBOX_TEXT|default}
</div>
';
$FEATUREBOX_TEMPLATE['image_left'] = '
<div class="featurebox-item">
{FEATUREBOX_IMAGE|image_left=src}<h3>{FEATUREBOX_TITLE|image_left}</h3>{FEATUREBOX_TEXT|image_left}
<div class="clear"><!-- --></div>
</div>
';
$sc_style['FEATUREBOX_IMAGE|image_right']['pre'] = '<img class="f-right" src="';
$sc_style['FEATUREBOX_IMAGE|image_right']['post'] = '" alt="" />';
$FEATUREBOX_TEMPLATE['image_right'] = '
<div class="featurebox-item">
{FEATUREBOX_IMAGE|image_right=src}<h3>{FEATUREBOX_TITLE|image_right}</h3>{FEATUREBOX_TEXT|image_right}
<div class="clear"><!-- --></div>
</div>
';
$FEATUREBOX_TEMPLATE['camera'] = '
<div class="featurebox-item" data-thumb="{FEATUREBOX_THUMB=src}" data-src="{FEATUREBOX_IMAGE|camera=src}" data-link="{FEATUREBOX_URL}">
<div class="featurebox-text camera_effected" style="position:absolute">
<div class="featurebox-title">{FEATUREBOX_TITLE|camera}</div>
<div class="featurebox-text">{FEATUREBOX_TEXT|camera}</div>
</div>
</div>
';
$FEATUREBOX_TEMPLATE['camera_caption'] = '
<div class="featurebox-item" data-thumb="{FEATUREBOX_THUMB=src}" data-src="{FEATUREBOX_IMAGE|camera=src}" data-link="{FEATUREBOX_URL}">
<div class="camera_caption fadeFromBottom">
<h3>{FEATUREBOX_TITLE|camera}</h3>
{FEATUREBOX_TEXT|camera}
</div>
</div>
';
$FEATUREBOX_TEMPLATE['accordion'] = '
<h3 class="featurebox-title-accordion"><a href="#">{FEATUREBOX_TITLE|accordion}</a></h3>
<div class="featurebox-text-accordion" >
{FEATUREBOX_IMAGE|accordion}
{FEATUREBOX_TEXT|accordion}
<div class="clear"><!-- --></div>
</div>
';
$FEATUREBOX_TEMPLATE['tabs'] = '
<div class="featurebox-text-tabs" >
{FEATUREBOX_IMAGE|accordion}
{FEATUREBOX_TEXT|accordion}
<div class="clear"><!-- --></div>
</div>
';
$FEATUREBOX_INFO = array(
'bootstrap_carousel_default' => array('title' => 'Bootstrap', 'description' => 'Title and Description'),
'bootstrap_carousel_image' => array('title' => 'Bootstrap Carousel (Image-Only)', 'description' => 'Image Only'),
'bootstrap_carousel_left' => array('title' => 'Bootstrap Carousel (Image-left)', 'description' => 'Image aligned left with title and text on the right'),
'bootstrap_carousel_right' => array('title' => 'Bootstrap Carousel (Image-right)', 'description' => 'Image aligned right with title and text on the left'),
'default' => array('title' => 'Generic', 'description' => 'Title and description - no image'),
'image_left' => array('title' => 'Generic - (Image-left)' , 'description' => 'Left floated image'),
'image_right' => array('title' => 'Generic - (Image-right)', 'description' => 'Right floated image'),
'camera' => array('title' => 'Camera item', 'description' => 'For use with the "camera" category'),
'camera_caption' => array('title' => 'Camera item with caption', 'description' => 'For use with the "camera" category'),
'accordion' => array('title' => 'Accordion Item', 'description' => 'For use with accordion'),
'tabs' => array('title' => 'Tab Item', 'description' => 'For use with tabs')
);
?>