add files
This commit is contained in:
9
template-parts/ad/revive/ad.php
Normal file
9
template-parts/ad/revive/ad.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--[ad/revive/ad(zone => <?= $args["zone"] ?>)]-->
|
||||
<?php
|
||||
|
||||
$show_on_mobile = is_null($args["show_on_mobile"]) ? false : $args["show_on_mobile"];
|
||||
|
||||
?>
|
||||
<?= get_banner_by_zone_id($args["zone"], $show_on_mobile) ?>
|
||||
|
||||
<!--[/ad/revive/ad(zone => <?= $args["zone"] ?>)]-->
|
||||
30
template-parts/ad/revive/sticky-mobile.php
Normal file
30
template-parts/ad/revive/sticky-mobile.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<!--[ad/revive/sticky-mobile]-->
|
||||
|
||||
<?php
|
||||
|
||||
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 13, "show_on_mobile" => true ]);
|
||||
|
||||
?>
|
||||
|
||||
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
|
||||
|
||||
<div class="container-fluid clearfix position-relative text-center pt-0 pb-3">
|
||||
|
||||
<div class="position-relative mx-auto" style="max-width:1040px">
|
||||
|
||||
<?= $html ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php else: ?>
|
||||
|
||||
<?php get_template_part("template-parts/ad/ad-app") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!--[/ad/revive/sticky-mobile]-->
|
||||
|
||||
|
||||
24
template-parts/ad/revive/top-mobile.php
Normal file
24
template-parts/ad/revive/top-mobile.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--[ad/revive/top-mobile]-->
|
||||
|
||||
<?php
|
||||
|
||||
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 11, "show_on_mobile" => true ]);
|
||||
|
||||
?>
|
||||
|
||||
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
|
||||
|
||||
<div class="container-fluid clearfix position-relative text-center pt-0 pb-3">
|
||||
|
||||
<div class="position-relative mx-auto" style="max-width:1040px">
|
||||
|
||||
<?= $html ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!--[/ad/revive/top-mobile]-->
|
||||
24
template-parts/ad/revive/top.php
Normal file
24
template-parts/ad/revive/top.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<!--[ad/revive/top]-->
|
||||
|
||||
<?php
|
||||
|
||||
$html = load_template_part("template-parts/ad/revive/ad", "", [ "zone" => 11, "show_on_mobile" => false ]);
|
||||
|
||||
?>
|
||||
|
||||
<?php if( mb_strlen( $html ) !== 0 && substr_count( $html, "<img") > 1 ) : ?>
|
||||
|
||||
<div class="container-fluid clearfix position-relative text-center pt-0">
|
||||
|
||||
<div class="position-relative mx-auto" style="max-width:1040px">
|
||||
|
||||
<?= $html ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<!--[/ad/revive/top]-->
|
||||
Reference in New Issue
Block a user