mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Added jumbotron home and full to Bootstrap3 template
This commit is contained in:
@@ -117,11 +117,8 @@ function tablestyle($caption, $text, $mode='')
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$commonHead = '
|
||||||
|
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||||
// $LAYOUT is a combined $HEADER and $FOOTER, automatically split at the point of "{...}"
|
|
||||||
$LAYOUT['jumbotron'] = '
|
|
||||||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="navbar-header">
|
<div class="navbar-header">
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||||
@@ -130,24 +127,11 @@ $LAYOUT['jumbotron'] = '
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="#">{SITENAME}</a>
|
<a class="navbar-brand" href="{SITEURL}">{SITENAME}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse">
|
<div class="navbar-collapse collapse">
|
||||||
{NAVIGATION=main}
|
{NAVIGATION=main}
|
||||||
{BOOTSTRAP_USERNAV}
|
{BOOTSTRAP_USERNAV}
|
||||||
|
|
||||||
<!--
|
|
||||||
<form class="navbar-form navbar-right" role="form">
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" placeholder="Email" class="form-control">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="password" placeholder="Password" class="form-control">
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-success">Sign in</button>
|
|
||||||
</form>
|
|
||||||
-->
|
|
||||||
|
|
||||||
</div><!--/.navbar-collapse -->
|
</div><!--/.navbar-collapse -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -155,13 +139,32 @@ $LAYOUT['jumbotron'] = '
|
|||||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
<!-- Main jumbotron for a primary marketing message or call to action -->
|
||||||
{SETSTYLE=jumbotron}
|
{SETSTYLE=jumbotron}
|
||||||
{WMESSAGE}
|
{WMESSAGE}
|
||||||
{SETSTYLE=default}
|
|
||||||
<div class="container">
|
';
|
||||||
{ALERTS}
|
|
||||||
|
$commonFoot = ' <hr>
|
||||||
|
|
||||||
|
<footer>
|
||||||
|
{SITEDISCLAIMER}
|
||||||
|
</footer>
|
||||||
|
</div> <!-- /container -->
|
||||||
|
';
|
||||||
|
|
||||||
|
|
||||||
|
// $LAYOUT is a combined $HEADER and $FOOTER, automatically split at the point of "{---}"
|
||||||
|
|
||||||
|
//TODO make $LAYOUT['_header_'] && $LAYOUT['_footer_']; and auto attach to main layout.
|
||||||
|
|
||||||
|
$LAYOUT['jumbotron_home'] =
|
||||||
|
|
||||||
|
$commonHead . '
|
||||||
|
|
||||||
|
{SETSTYLE=default}
|
||||||
|
<div class="container">
|
||||||
|
{ALERTS}
|
||||||
|
|
||||||
{---}
|
{---}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<!-- Example row of columns -->
|
<!-- Example row of columns -->
|
||||||
@@ -172,14 +175,26 @@ $LAYOUT['jumbotron'] = '
|
|||||||
{CMENU=jumbotron-menu-3}
|
{CMENU=jumbotron-menu-3}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
'.$commonFoot;
|
||||||
|
|
||||||
<footer>
|
|
||||||
{SITEDISCLAIMER}
|
|
||||||
</footer>
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
';
|
|
||||||
|
$LAYOUT['jumbotron_full'] =
|
||||||
|
|
||||||
|
$commonHead . '
|
||||||
|
|
||||||
|
{SETSTYLE=default}
|
||||||
|
<div class="container">
|
||||||
|
{ALERTS}
|
||||||
|
|
||||||
|
{---}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="container">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
'.$commonFoot;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -15,8 +15,9 @@
|
|||||||
<css file="style.css" name="Default" />
|
<css file="style.css" name="Default" />
|
||||||
</stylesheets>
|
</stylesheets>
|
||||||
<layouts>
|
<layouts>
|
||||||
<layout name='jumbotron' title='Jumbotron' default='true'>
|
<layout name='jumbotron_home' title='Jumbotron (home)' default='false'>
|
||||||
<custompages>FRONTPAGE</custompages>
|
<custompages>FRONTPAGE</custompages>
|
||||||
</layout>
|
</layout>
|
||||||
|
<layout name='jumbotron_full' title='Jumbotron (full-width)' default='true' />
|
||||||
</layouts>
|
</layouts>
|
||||||
</e107Theme>
|
</e107Theme>
|
Reference in New Issue
Block a user