add files
This commit is contained in:
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]-->
|
||||
|
||||
|
||||
Reference in New Issue
Block a user