mirror of
https://github.com/e107inc/e107.git
synced 2025-07-27 01:40:22 +02:00
featurebox tabs in action (blank & jayya themes)
This commit is contained in:
@@ -11,20 +11,19 @@ class theme__blank implements e_theme_config
|
||||
|
||||
$theme_pref = array();
|
||||
$theme_pref['example'] = $_POST['_blank_example'];
|
||||
$theme_pref['example2'] = $_POST['_blank_example2'];
|
||||
$theme_pref['fb_tabs_cols'] = intval($_POST['fb_tabs_cols']);
|
||||
|
||||
$pref->set('sitetheme_pref', $theme_pref);
|
||||
|
||||
return $pref->dataHasChanged();
|
||||
}
|
||||
|
||||
function config()
|
||||
{
|
||||
$var[0]['caption'] = "Sample configuration field";
|
||||
$var[0]['html'] = "<input type='text' name='_blank_example' value='".e107::getThemePref('example')."' />";
|
||||
$var[0]['html'] = "<input type='text' name='_blank_example' value='".e107::getThemePref('example', 'default')."' />";
|
||||
|
||||
$var[1]['caption'] = "Another Example";
|
||||
$var[1]['html'] = "<input type='text' name='_blank_example2' value='".e107::getThemePref('example2')."' />";
|
||||
$var[1]['caption'] = "Featurebox Tab Category - number of items per tab";
|
||||
$var[1]['html'] = "<input type='text' name='fb_tabs_cols' value='".e107::getThemePref('fb_tabs_cols', 1)."' />";
|
||||
return $var;
|
||||
}
|
||||
|
||||
|
@@ -125,6 +125,11 @@ div.e-autocomplete ul li {
|
||||
}
|
||||
div.e-autocomplete ul li span.informal { font-weight: normal; font-size: 9px}
|
||||
|
||||
/******** Tabs JS */
|
||||
ul.e-tabs { border-bottom: 1px solid #DDDDDD; height: 31px; }
|
||||
ul.e-tabs li { border: 1px solid #DDDDDD; display: block; float: left; line-height: 30px; padding: 0px 7px; margin-right: 3px; background-color: #F9F9F9 }
|
||||
.admintabs ul.e-tabs li.active { border-bottom: 1px solid #FFFFFF; background-color: #FFFFFF}
|
||||
|
||||
/********** Misc */
|
||||
.e-pointer { cursor: pointer; } /* Pointer Hand */
|
||||
.expand-container { padding: 10px; } /* Block with expandable items */
|
||||
|
@@ -78,8 +78,9 @@ $FEATUREBOX_CATEGORY_TEMPLATE['dynamic']['js_inline'] = 'new Featurebox("feature
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
$FEATUREBOX_CATEGORY_TEMPLATE['__INFO__'] = array(
|
||||
'default' => array('title' => 'Blank Theme Default - show by category limit'),
|
||||
'dynamic' => array('title' => 'Blank Theme Dynamic (AJAX) loading'),
|
||||
$FEATUREBOX_CATEGORY_INFO = array(
|
||||
'default' => array('title' => 'Default (Blank Theme)', 'description' => 'Flat - show by category limit'),
|
||||
'dynamic' => array('title' => 'Dynamic (Blank Theme)', 'description' => 'Load items on click (AJAX)'),
|
||||
);
|
||||
|
||||
?>
|
@@ -2,20 +2,19 @@
|
||||
if ( ! defined('e107_INIT')) { exit(); }
|
||||
include_lan(e_THEME."_blank/languages/".e_LANGUAGE.".php");
|
||||
|
||||
$THEME_CORE_JSLIB = array(
|
||||
'jslib/core/decorate.js' => 'all',
|
||||
'jslib/core/tabs.js' => 'admin'
|
||||
);
|
||||
// TODO theme.xml - add them to jslib/php source
|
||||
e107::getJs()->requireCoreLib('core/decorate.js')
|
||||
->requireCoreLib('core/tabs.js');
|
||||
|
||||
$register_sc[]='FS_ADMIN_ALT_NAV';
|
||||
//$register_sc[]='FS_ADMIN_ALT_NAV';
|
||||
$no_core_css = TRUE;
|
||||
|
||||
define("STANDARDS_MODE",TRUE);
|
||||
|
||||
|
||||
// TODO - JS/CSS handling via JSManager
|
||||
function theme_head() {
|
||||
|
||||
global $theme_pref;
|
||||
$theme_pref = e107::getThemePref();
|
||||
|
||||
$ret = '';
|
||||
$ret .= '
|
||||
@@ -32,16 +31,11 @@ function theme_head() {
|
||||
<script type='text/javascript'>
|
||||
/**
|
||||
* Decorate all tables having e-list class
|
||||
* TODO: add 'adminlist' class to all list core tables, allow theme decorate.
|
||||
*/
|
||||
e107.runOnLoad( function() {
|
||||
\$\$('table.adminlist').each(function(element) {
|
||||
e107Utils.Decorate.table(element, {tr_td: 'first last'});
|
||||
\$\$('table.e-list').each(function(element) {
|
||||
e107Utils.Decorate.table(element, { tr_td: 'first last' });
|
||||
});
|
||||
\$\$('div.admintabs').each(function(element) {
|
||||
new e107Widgets.Tabs(element);
|
||||
});
|
||||
|
||||
}, document, true);
|
||||
|
||||
</script>";
|
||||
@@ -60,7 +54,8 @@ function theme_head() {
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function tablestyle($caption, $text, $mod) {
|
||||
function tablestyle($caption, $text, $mod)
|
||||
{
|
||||
global $style;
|
||||
|
||||
$type = $style;
|
||||
@@ -133,6 +128,7 @@ $HEADER['default'] = '
|
||||
{FEATUREBOX|dynamic=notablestyle}
|
||||
';
|
||||
$FOOTER['default'] = '
|
||||
{FEATUREBOX|tabs=notablestyle&cols='.e107::getThemePref('fb_tabs_cols', 1).'}
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
@@ -9,8 +9,8 @@
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_themes/jayya/theme.php,v $
|
||||
* $Revision: 1.13 $
|
||||
* $Date: 2009-12-10 22:46:46 $
|
||||
* $Revision: 1.14 $
|
||||
* $Date: 2009-12-12 16:36:42 $
|
||||
* $Author: secretr $
|
||||
*/
|
||||
|
||||
@@ -79,8 +79,8 @@ $HEADER['3_column'] = "<table class='page_container'>
|
||||
";
|
||||
|
||||
$FOOTER['3_column'] = "<br />
|
||||
{FEATUREBOX|tabs=notablestyle}
|
||||
</td>
|
||||
|
||||
<td class='right_menu'>
|
||||
<table class='menus_container'><tr><td>
|
||||
{SETSTYLE=rightmenu}
|
||||
|
Reference in New Issue
Block a user