mirror of
https://github.com/e107inc/e107.git
synced 2025-08-18 12:21:45 +02:00
Issue #435 - Initial Bootstrap3 theme added.
This commit is contained in:
@@ -189,7 +189,7 @@ class cpage_shortcodes extends e_shortcode
|
||||
$size = vartrue($options['size'], "");
|
||||
$inc = ($size) ? " btn-".$size : "";
|
||||
|
||||
return '<a class="cpage btn'.$inc.'" href="'.$url.'">'.$text.'</a>';
|
||||
return '<a class="cpage btn btn-default'.$inc.'" href="'.$url.'">'.$text.'</a>';
|
||||
}
|
||||
|
||||
|
||||
|
@@ -36,7 +36,6 @@ function wmessage_shortcode($parm)
|
||||
|
||||
if (strpos($front_url, 'http') === FALSE) $front_url = SITEURL.$front_url;
|
||||
|
||||
|
||||
if (deftrue('e_FRONTPAGE') || ($parm == 'force') || ((e_SELF == $front_url) && (($parm == 'ignore_query') || (e_QUERY == $front_qry))))
|
||||
{
|
||||
// Actually want to display a welcome message here
|
||||
|
@@ -576,6 +576,18 @@ echo "</head>\n";
|
||||
|
||||
// ---------- New in 2.0 -------------------------------------------------------
|
||||
|
||||
if(isset($LAYOUT) && is_array($LAYOUT)) // $LAYOUT is a combined $HEADER,$FOOTER.
|
||||
{
|
||||
foreach($LAYOUT as $key=>$template)
|
||||
{
|
||||
list($hd,$ft) = explode("{...}",$template);
|
||||
$HEADER[$key] = $hd;
|
||||
$FOOTER[$key] = $ft;
|
||||
}
|
||||
unset($hd,$ft);
|
||||
}
|
||||
|
||||
|
||||
$def = THEME_LAYOUT; // The active layout based on custompage matches.
|
||||
|
||||
// echo "DEF = ".$def."<br />";
|
||||
|
Reference in New Issue
Block a user