mirror of
https://github.com/e107inc/e107.git
synced 2025-09-02 10:53:29 +02:00
Bootstrap3 styling fixes and embedded featurebox layout added.
This commit is contained in:
@@ -51,4 +51,34 @@ body {
|
||||
margin-bottom: 10px;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* CUSTOMIZE THE CAROUSEL
|
||||
-------------------------------------------------- */
|
||||
|
||||
/* Carousel base class */
|
||||
.carousel {
|
||||
height: 500px;
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
/* Since positioning the image, we need to help out the caption */
|
||||
.carousel-caption {
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
/* Declare heights because of positioning of img element */
|
||||
.carousel .item {
|
||||
height: 500px;
|
||||
background-color: #777;
|
||||
}
|
||||
.carousel-inner > .item > img {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
min-width: 100%;
|
||||
height: 500px;
|
||||
}
|
@@ -30,7 +30,7 @@ function tablestyle($caption, $text, $mode='')
|
||||
$type = 'box';
|
||||
}
|
||||
|
||||
if($style == 'navdoc')
|
||||
if($style == 'navdoc' || $mode == 'featurebox')
|
||||
{
|
||||
echo $text;
|
||||
return;
|
||||
@@ -101,9 +101,7 @@ $LAYOUT['_header_'] = '
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
||||
{SETSTYLE=jumbotron}
|
||||
{WMESSAGE}
|
||||
|
||||
|
||||
';
|
||||
|
||||
@@ -121,7 +119,11 @@ $LAYOUT['_footer_'] = ' <hr>
|
||||
// $LAYOUT is a combined $HEADER and $FOOTER, automatically split at the point of "{---}"
|
||||
|
||||
$LAYOUT['jumbotron_home'] = '
|
||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
||||
{SETSTYLE=jumbotron}
|
||||
|
||||
{WMESSAGE=force}
|
||||
|
||||
{SETSTYLE=default}
|
||||
<div class="container">
|
||||
{ALERTS}
|
||||
@@ -141,6 +143,31 @@ $LAYOUT['jumbotron_home'] = '
|
||||
';
|
||||
|
||||
|
||||
$LAYOUT['jumbotron_carousel'] = '
|
||||
<!-- Main jumbotron for a primary marketing message or call to action -->
|
||||
{SETSTYLE=jumbotron}
|
||||
|
||||
{WMESSAGE=hide}
|
||||
|
||||
{FEATUREBOX}
|
||||
|
||||
{SETSTYLE=default}
|
||||
<div class="container">
|
||||
{ALERTS}
|
||||
|
||||
{---}
|
||||
|
||||
</div>
|
||||
<div class="container">
|
||||
<!-- Example row of columns -->
|
||||
<div class="row">
|
||||
{SETSTYLE=col-md-4}
|
||||
{CMENU=jumbotron-menu-1}
|
||||
{CMENU=jumbotron-menu-2}
|
||||
{CMENU=jumbotron-menu-3}
|
||||
</div>
|
||||
|
||||
';
|
||||
|
||||
$LAYOUT['jumbotron_full'] = '
|
||||
|
||||
|
@@ -18,8 +18,9 @@
|
||||
<layout name='jumbotron_home' title='Jumbotron (home)' default='false'>
|
||||
<custompages>FRONTPAGE</custompages>
|
||||
</layout>
|
||||
<layout name='jumbotron_full' title='Jumbotron (full-width)' default='true' />
|
||||
<layout name='jumbotron_sidebar_right' title='Jumbotron (sidebar-right)' >
|
||||
<layout name='jumbotron_carousel' title='Jumbotron (home with carousel)' />
|
||||
<layout name='jumbotron_full' title='Jumbotron (full-width)' />
|
||||
<layout name='jumbotron_sidebar_right' title='Jumbotron (sidebar-right)' default='true' >
|
||||
<custompages>/news</custompages>
|
||||
<menuPresets>
|
||||
<area id='1'>
|
||||
|
Reference in New Issue
Block a user