mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 22:25:31 +02:00
PHP8 Warning removal.
This commit is contained in:
@@ -184,29 +184,29 @@ li .hero-list-text {
|
||||
#carousel-hero h2 { font-size: 1.2em}
|
||||
|
||||
/* CAROUSEL FADE */
|
||||
.carousel-fade .carousel-inner .item {
|
||||
#carousel-hero.carousel-fade .carousel-inner .item {
|
||||
-webkit-transition-property: opacity;
|
||||
transition-property: opacity; }
|
||||
|
||||
.carousel-fade .carousel-inner .item,
|
||||
.carousel-fade .carousel-inner .active.left,
|
||||
.carousel-fade .carousel-inner .active.right {
|
||||
#carousel-hero.carousel-fade .carousel-inner .item,
|
||||
#carousel-hero.carousel-fade .carousel-inner .active.left,
|
||||
#carousel-hero.carousel-fade .carousel-inner .active.right {
|
||||
opacity: 0; }
|
||||
|
||||
.carousel-fade .carousel-inner .active,
|
||||
.carousel-fade .carousel-inner .next.left,
|
||||
.carousel-fade .carousel-inner .prev.right {
|
||||
#carousel-hero.carousel-fade .carousel-inner .active,
|
||||
#carousel-hero.carousel-fade .carousel-inner .next.left,
|
||||
#carousel-hero.carousel-fade .carousel-inner .prev.right {
|
||||
opacity: 1; }
|
||||
|
||||
.carousel-fade .carousel-inner .next,
|
||||
.carousel-fade .carousel-inner .prev,
|
||||
.carousel-fade .carousel-inner .active.left,
|
||||
.carousel-fade .carousel-inner .active.right {
|
||||
#carousel-hero.carousel-fade .carousel-inner .next,
|
||||
#carousel-hero.carousel-fade .carousel-inner .prev,
|
||||
#carousel-hero.carousel-fade .carousel-inner .active.left,
|
||||
#carousel-hero.carousel-fade .carousel-inner .active.right {
|
||||
left: 0;
|
||||
-webkit-transform: translate3d(0, 0, 0);
|
||||
transform: translate3d(0, 0, 0); }
|
||||
|
||||
.carousel-fade .carousel-control {
|
||||
#carousel-hero.carousel-fade .carousel-control {
|
||||
z-index: 2; }
|
||||
|
||||
/* ANIMATION */
|
||||
|
@@ -13,5 +13,13 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
$text = e107::getParser()->parseTemplate("{HERO}", true);
|
||||
e107::getRender()->tablerender(null, $text, 'hero-menu');
|
||||
if(deftrue('e_FRONTPAGE'))
|
||||
{
|
||||
$text = e107::getParser()->parseTemplate("{HERO}", true);
|
||||
e107::getRender()->tablerender(null, $text, 'hero-menu');
|
||||
}
|
||||
elseif(ADMIN)
|
||||
{
|
||||
$text = "<div class='alert alert-danger'>Hero only runs on the frontpage of your site.</div>";
|
||||
e107::getRender()->tablerender(null, $text,'hero-menu');
|
||||
}
|
||||
|
@@ -25,7 +25,7 @@ $HERO_TEMPLATE['default']['footer'] = '</div><div class="carousel-controls">
|
||||
<!-- Indicators -->
|
||||
{HERO_CAROUSEL_INDICATORS: target=carousel-hero&class=animated fadeInUpBig}
|
||||
|
||||
</ol>-->
|
||||
</ol>
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
|
Reference in New Issue
Block a user