mirror of
https://github.com/e107inc/e107.git
synced 2025-08-28 00:30:09 +02:00
featurebox front-end - more from the same commit
This commit is contained in:
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
// avoid PHP warnings
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE = array();
|
||||
|
||||
/*
|
||||
* Default Template
|
||||
* Example call: {FEATUREBOX} or {FEATUREBOX|default}
|
||||
*/
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['list_start'] = '
|
||||
<div class="box featurebox">
|
||||
<h2 class="title">{FEATUREBOX_CATEGORY_ICON}{FEATUREBOX_CATEGORY_TITLE}</h2>
|
||||
<div class="body">
|
||||
';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['list_end'] = '
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
// no column support
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['col_start'] = '';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['col_end'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['item_start'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['item_end'] = '';
|
||||
|
||||
// empty item - used with col templates, no shortcodes just basic markup
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['item_empty'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['item_separator'] = '<div class="clear"><!-- --></div>';
|
||||
|
||||
|
||||
/*
|
||||
* Dynamic Template
|
||||
* Example call: {FEATUREBOX|dynamic}
|
||||
*/
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['list_start'] = '
|
||||
<div class="box featurebox">
|
||||
<h2>{FEATUREBOX_CATEGORY_ICON}{FEATUREBOX_CATEGORY_TITLE}</h2>
|
||||
<div class="body">
|
||||
';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['list_end'] = '
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
// no column support
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['col_start'] = '';
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['col_end'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['item_start'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['item_end'] = '';
|
||||
|
||||
// empty item - used with col templates, no shortcodes just basic markup
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['default']['item_empty'] = '';
|
||||
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['item_separator'] = '<div class="clear"><!-- --></div>';
|
||||
|
||||
/**
|
||||
* Template information.
|
||||
* Allowed keys:
|
||||
* - title: Dropdown title (language constants are accepted e.g. 'MY_LAN')
|
||||
* - [optional] description: Template description (language constants are accepted e.g. 'MY_LAN') - UNDER CONSTRUCTION
|
||||
* - [optional] image: Template image preview (path constants are accepted e.g. '{e_PLUGIN}myplug/images/mytemplate_preview.png') - UNDER CONSTRUCTION
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['__INFO__'] = array(
|
||||
'default' => array('title' => 'Default - show by category limit'),
|
||||
'dynamic' => array('title' => 'Dynamic (AJAX) loading'),
|
||||
);
|
||||
?>
|
@@ -25,7 +25,7 @@ $FEATUREBOX_TEMPLATE['image_right'] = '
|
||||
';
|
||||
|
||||
$FEATUREBOX_TEMPLATE['__INFO__'] = array(
|
||||
'deafult' => array('title' => 'Default - no image'),
|
||||
'default' => array('title' => 'Default - no image'),
|
||||
'image_right' => array('title' => 'Image to right'),
|
||||
'image_left' => array('title' => 'Image to left'),
|
||||
);
|
||||
|
Reference in New Issue
Block a user