wp_blog/wp-content/themes/nuzi/slider.php

31 lines
926 B
PHP
Raw Normal View History

2020-01-02 23:15:16 +07:00
<?php
if (is_page()) {
if (get_metabox("header_type") == "slider") {
?>
<section id="slider">
<?php echo do_shortcode(get_metabox("slider_id")); ?>
</section>
<?php
} elseif (get_metabox("header_type") == "image") {
$image = post_image_show();
if ($image) {
?>
<section id="featured-image">
<?php echo $image; ?>
</section>
<?php
}
} elseif (get_metabox("header_type") == "map") {
if (get_metabox("googlemap") != "") {
?>
<section id="google-map">
<?php echo do_shortcode(htmlspecialchars_decode(get_metabox("googlemap"))); ?>
</section>
<?php
}
} elseif (get_metabox("header_type") != "none") {
get_template_part('page', 'title');
}
} else {
get_template_part('page', 'title');
}?>