diff --git a/e107_handlers/theme_handler.php b/e107_handlers/theme_handler.php
index 0b0e91e51..311180247 100644
--- a/e107_handlers/theme_handler.php
+++ b/e107_handlers/theme_handler.php
@@ -157,9 +157,12 @@ class e_theme
// If no scope set, we load library on both areas.
if(empty($library['scope']) || $library['scope'] === 'all')
{
- if($library['name'] === 'bootstrap' && varset($library['version']) == 4) // quick fix.
+ if($library['name'] === 'bootstrap' && !empty($library['version']))
{
- $library['name'] .= (string) $library['version'];
+ if(intval($library['version']) > 3) // quick fix.
+ {
+ $library['name'] .= (string) $library['version'];
+ }
e107::getParser()->setBootstrap($library['version']);
@@ -168,9 +171,12 @@ class e_theme
define('BOOTSTRAP', (int) $library['version']);
}
}
- elseif($library['name'] === 'fontawesome' && !empty($library['version'])) // quick fix.
+ elseif($library['name'] === 'fontawesome' && !empty($library['version']))
{
- $library['name'] .= (string) $library['version'];
+ if(intval($library['version']) > 4) // quick fix.
+ {
+ $library['name'] .= (string) $library['version'];
+ }
e107::getParser()->setFontAwesome($library['version']);
diff --git a/e107_themes/bootstrap3/theme.php b/e107_themes/bootstrap3/theme.php
index 0d9fbdf74..bd558d589 100644
--- a/e107_themes/bootstrap3/theme.php
+++ b/e107_themes/bootstrap3/theme.php
@@ -16,8 +16,7 @@ if(!defined('e107_INIT'))
exit;
}
-define("BOOTSTRAP", 3);
-define("FONTAWESOME", 4);
+
define('VIEWPORT', "width=device-width, initial-scale=1.0");
// CDN provider for Bootswatch.
@@ -56,7 +55,13 @@ define('OTHERNEWS2_LIMIT', 3); // Limit to 3.
define('COMMENTOFFSTRING', '');
define('PRE_EXTENDEDSTRING', '
');
-
+
+
+
+
+
+
+
class bootstrap3_theme
{
@@ -66,111 +71,108 @@ class bootstrap3_theme
* @param string $id : id of the current render
* @param array $info : current style and other menu data.
*/
-
- function tablestyle($caption, $text, $id='', $info=array())
- {
- // global $style; // no longer needed.
-
- $style = $info['setStyle'];
-
- echo "\n\n";
-
- $type = $style;
- if(empty($caption))
- {
- $type = 'box';
- }
-
- if($style == 'navdoc' || $style == 'none')
- {
- echo $text;
- return;
- }
-
- /*
- if($id == 'wm') // Example - If rendered from 'welcome message'
- {
-
- }
-
- if($id == 'featurebox') // Example - If rendered from 'featurebox'
- {
-
- }
- */
-
-
- if($style == 'jumbotron')
- {
- echo '
• | @@ -196,4 +198,3 @@ $NEWSCAT_ITEM = "\n\n\n\n\n\n\n\n |