From f9d4b0d291335cf3af325c0c181ac847d683ef20 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 11 Dec 2012 21:21:25 -0800 Subject: [PATCH] More bootstrap work. --- e107_plugins/poll/poll_class.php | 2 +- e107_themes/bootstrap/theme.php | 35 +++++++++++++++++-- e107_themes/templates/fpw_template.php | 2 +- e107_themes/templates/search_template.php | 2 +- e107_themes/templates/signup_template.php | 2 +- .../templates/usersettings_template.php | 2 +- 6 files changed, 37 insertions(+), 8 deletions(-) diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php index 6e8b775e9..a913d0cc8 100644 --- a/e107_plugins/poll/poll_class.php +++ b/e107_plugins/poll/poll_class.php @@ -404,7 +404,7 @@ class poll } $count ++; } - $SUBMITBUTTON = ""; + $SUBMITBUTTON = ""; if (('preview' == $type || $preview == TRUE) && strpos(e_SELF, "viewtopic") === FALSE) { $SUBMITBUTTON = "[".POLLAN_30."]"; diff --git a/e107_themes/bootstrap/theme.php b/e107_themes/bootstrap/theme.php index ccc4f7bf4..d570ab182 100644 --- a/e107_themes/bootstrap/theme.php +++ b/e107_themes/bootstrap/theme.php @@ -15,8 +15,10 @@ $no_core_css = TRUE; define("STANDARDS_MODE",TRUE); // TODO - JS/CSS handling via JSManager -function theme_head() { - +function theme_head() +{ + return; + $theme_pref = e107::getThemePref(); $ret = ''; @@ -46,7 +48,7 @@ function theme_head() { return $ret; } -function tablestyle($caption, $text, $mod) +function tablestyle($caption, $text, $mode) { global $style; @@ -56,6 +58,19 @@ function tablestyle($caption, $text, $mod) $type = 'box'; } + if($mode == 'wm') + { + + echo '
+

'.$caption.'

+

'.$text.'

+

Learn more »

+
'; + + return; + } + + switch($type) { //FIXME Use Bootstrap css. ie. span4 etc. @@ -68,6 +83,15 @@ function tablestyle($caption, $text, $mod) '; break; + case 'span4' : + echo ' +
+

'.$caption.'

+

'.$text.'

+
+ '; + break; + case 'box': echo '
@@ -115,11 +139,16 @@ $HEADER['default'] = '
+ {SETSTYLE=menu} + {MENU=1}
'; $FOOTER['default'] = ' + {SETSTYLE=span4} + {MENU=2}
diff --git a/e107_themes/templates/fpw_template.php b/e107_themes/templates/fpw_template.php index aa1ac0786..8f78fac87 100644 --- a/e107_themes/templates/fpw_template.php +++ b/e107_themes/templates/fpw_template.php @@ -51,7 +51,7 @@ if(!isset($FPW_TABLE)) $FPW_TABLE .=" - + diff --git a/e107_themes/templates/search_template.php b/e107_themes/templates/search_template.php index bca2e9999..9d9542ccf 100644 --- a/e107_themes/templates/search_template.php +++ b/e107_themes/templates/search_template.php @@ -12,7 +12,7 @@ if (!defined('SEARCH_SHORTCODE_REF')) { if (!isset($SEARCH_SHORTCODE)) { $SEARCH_SHORTCODE = " - "; + "; /* // Image Version Example $SEARCH_SHORTCODE = " diff --git a/e107_themes/templates/signup_template.php b/e107_themes/templates/signup_template.php index 65999a522..ca4890e5b 100755 --- a/e107_themes/templates/signup_template.php +++ b/e107_themes/templates/signup_template.php @@ -236,7 +236,7 @@ if(!defined($SIGNUP_BODY)) {SIGNUP_IMAGECODE} - +
diff --git a/e107_themes/templates/usersettings_template.php b/e107_themes/templates/usersettings_template.php index efd99bfdd..5b8bb72c5 100755 --- a/e107_themes/templates/usersettings_template.php +++ b/e107_themes/templates/usersettings_template.php @@ -166,7 +166,7 @@ $USERSETTINGS_EDIT = " {SIGNATURE_HELP} - +