1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 13:21:54 +02:00

Renamed bootstrap flag e_BOOTSTRAP to BOOTSTRAP. Set e_BOOTSTRAP as path of bootstrap folder.

This commit is contained in:
Cameron
2013-06-17 16:03:33 -07:00
parent d10dbc443a
commit a0aec4b210
25 changed files with 51 additions and 44 deletions

View File

@@ -216,7 +216,7 @@ if (!isset($FORUM_MAIN_START))
include(e_PLUGIN.'forum/templates/forum_template.php');
if(is_array($FORUM_TEMPLATE) && (e_BOOTSTRAP === true)) // new v2.x format.
if(is_array($FORUM_TEMPLATE) && (BOOTSTRAP === true)) // new v2.x format.
{
$FORUM_MAIN_START = $FORUM_TEMPLATE['main-start'];

View File

@@ -514,7 +514,7 @@ if (!vartrue($FORUMPOST))
}
}
if(isset($FORUMPOST_TEMPLATE) && (e_BOOTSTRAP === true))
if(isset($FORUMPOST_TEMPLATE) && (BOOTSTRAP === true))
{
$FORUMPOST = $FORUMPOST_TEMPLATE['form'];
$FORUMPOST_REPLY = $FORUMPOST_TEMPLATE['form'];

View File

@@ -88,7 +88,7 @@ if (!vartrue($FORUM_VIEW_START))
}
if(is_array($FORUM_VIEWFORUM_TEMPLATE) && (e_BOOTSTRAP === true)) // New v2.x bootstrap Template.
if(is_array($FORUM_VIEWFORUM_TEMPLATE) && (BOOTSTRAP === true)) // New v2.x bootstrap Template.
{
$FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start'];
@@ -187,7 +187,7 @@ if($forum->checkPerm($forumId, 'post'))
$fVars->NEWTHREADBUTTONX = newthreadjump(e107::getUrl()->create('forum/thread/new', array('id' => $forumId))); // "<a class='btn btn-primary' href='".."'>New Thread</a>";
}
if(e_BOOTSTRAP !== true)
if(BOOTSTRAP !== true)
{
$fVars->NEWTHREADBUTTONX = $fVars->NEWTHREADBUTTON;
}
@@ -578,7 +578,7 @@ function parse_thread($thread_info)
$_TEMPLATE = "<tr id='thread-{$threadId}'>".substr($_TEMPLATE,4);
}
if(e_BOOTSTRAP !== true)
if(BOOTSTRAP !== true)
{
$tVars->REPLIESX = $tVars->REPLIES;
$tVars->VIEWSX = $tVars->VIEWS;

View File

@@ -180,7 +180,7 @@ if (!vartrue($FORUMSTART))
// New in v2.x
if(is_array($FORUM_VIEWTOPIC_TEMPLATE) && (e_BOOTSTRAP === true))
if(is_array($FORUM_VIEWTOPIC_TEMPLATE) && (BOOTSTRAP === true))
{
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];

View File

@@ -144,7 +144,7 @@ class plugin_forum_view_shortcodes extends e_shortcode
if(count($images) )
{
return (deftrue('e_BOOTSTRAP')) ? "<ul class='thumbnails'><li>".implode("</li><li>",$images)."</li></ul>" : implode("<br />",$images);
return (deftrue('BOOTSTRAP')) ? "<ul class='thumbnails'><li>".implode("</li><li>",$images)."</li></ul>" : implode("<br />",$images);
}