Exemplo n.º 1
0
?>

<div id="container">
  <div id="contents" class="<?php 
echo $catslug;
?>
">
    <?php 
while (have_posts()) {
    the_post();
    ?>
    <?php 
    get_breadcrumbs();
    ?>
    <?php 
    if (in_category('hotels') || is_post_type_hotels()) {
        ?>
    <!-- ヴィラ -->
    <?php 
        get_template_part('content-single-villa');
        ?>
    <?php 
    } elseif (in_category('spa')) {
        ?>
    <!-- スパ -->
    <?php 
        get_template_part('content-single-spa');
        ?>
    <?php 
    } elseif (in_category('optional')) {
        ?>
Exemplo n.º 2
0
function is_single_hotel()
{
    return in_category('hotels') && is_single() || is_post_type_hotels() || checkCatHotels();
}
Exemplo n.º 3
0
<?php 
} elseif (in_category('bali-news') || in_category('hotel-news')) {
    if (is_single()) {
        ?>
<script type="text/javascript">
location.replace('/');
</script>
<meta http-equiv="Refresh" content="0; URL=/" />
<?php 
    }
}
?>

<?php 
//if(is_single('padma-resort-bali-at-legian')):
if (in_category('hotels') && is_single() || is_post_type_hotels()) {
    if ($paged >= 2 || $page >= 2) {
    } else {
        ?>
<script type="text/javascript" src="/js/villa-single.js"></script>
<?php 
    }
}
?>

<?php 
if (is_single_hotel()) {
} else {
    ?>
<script language="javascript" type="text/javascript" src="/js/jquery.page-scroller.js"></script>
<?php