diff --git a/e107_themes/_blank/_blank_config.php b/e107_themes/_blank/_blank_config.php
index 465895d84..40ad11055 100644
--- a/e107_themes/_blank/_blank_config.php
+++ b/e107_themes/_blank/_blank_config.php
@@ -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'] = "";
+ $var[0]['html'] = "";
- $var[1]['caption'] = "Another Example";
- $var[1]['html'] = "";
+ $var[1]['caption'] = "Featurebox Tab Category - number of items per tab";
+ $var[1]['html'] = "";
return $var;
}
diff --git a/e107_themes/_blank/style.css b/e107_themes/_blank/style.css
index 14af41a29..fd659a3bb 100644
--- a/e107_themes/_blank/style.css
+++ b/e107_themes/_blank/style.css
@@ -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 */
diff --git a/e107_themes/_blank/templates/featurebox/featurebox_category_template.php b/e107_themes/_blank/templates/featurebox/featurebox_category_template.php
index 4301c3f14..4597065ec 100644
--- a/e107_themes/_blank/templates/featurebox/featurebox_category_template.php
+++ b/e107_themes/_blank/templates/featurebox/featurebox_category_template.php
@@ -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)'),
);
+
?>
\ No newline at end of file
diff --git a/e107_themes/_blank/theme.php b/e107_themes/_blank/theme.php
index e4107f854..8a87e9233 100644
--- a/e107_themes/_blank/theme.php
+++ b/e107_themes/_blank/theme.php
@@ -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() {
";
@@ -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).'}
diff --git a/e107_themes/jayya/theme.php b/e107_themes/jayya/theme.php
index 65492786f..95e552b6f 100644
--- a/e107_themes/jayya/theme.php
+++ b/e107_themes/jayya/theme.php
@@ -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'] = "
";
$FOOTER['3_column'] = "
+{FEATUREBOX|tabs=notablestyle}
-