Ejemplo n.º 1
0
    $index = 0;
    ?>
					<?php 
    while (have_posts()) {
        the_post();
        ?>
						<?php 
        if (0 != $index) {
            ?>
							<hr>
						<?php 
        }
        $index++;
        ?>
						<?php 
        ct_get_template('loop-blog.php', '/templates');
        ?>
					<?php 
    }
    ?>
				<?php 
} else {
    ?>
					<?php 
    esc_html_e('No posts found', 'citytours');
    ?>
				<?php 
}
?>
			</div><!-- end box_style_1 -->
			<hr>
Ejemplo n.º 2
0
<?php

global $post_list, $current_view, $post_id;
if (empty($post_list)) {
    echo '<h5 class="empty-list">' . esc_html__('No available tours', 'citytours') . '</h5>';
} else {
    foreach ($post_list as $post_obj) {
        $post_id = $post_obj['hotel_id'];
        ct_get_template('loop-' . $current_view . '.php', '/templates/hotel/');
    }
}
Ejemplo n.º 3
0
}
?>
">
				<?php 
if (empty($wishlist)) {
    if (is_user_logged_in()) {
        echo '<h5 class="empty-list">' . esc_html__('Your wishlist is empty.', 'citytours') . '</h5>';
    } else {
        echo '<h5 class="empty-list">' . esc_html__('You need to login to check your wishlist', 'citytours') . '</h5>';
    }
} else {
    foreach ($wishlist as $post_id) {
        global $post_id;
        $post_type = get_post_type($post_id);
        if (!empty($post_type)) {
            ct_get_template('loop-' . $current_view . '.php', '/templates/' . get_post_type($post_id) . '/');
        }
    }
}
?>
			</div><!-- hotel-list -->

			<hr>
		</div><!-- End col lg 9 -->
	</div><!-- End row -->
</div><!-- End container -->
<script>
jQuery(document).ready(function(){
	jQuery('input').iCheck({
	   checkboxClass: 'icheckbox_square-grey',
	   radioClass: 'iradio_square-grey'
Ejemplo n.º 4
0
" class="bt_filters" title="<?php 
esc_html_e('List View', 'citytours');
?>
"><i class="icon-list"></i></a>
					</div>
				</div>
			</div><!--End tools -->

			<div class="tour-list <?php 
if ($current_view == 'grid') {
    echo 'row';
}
?>
">
				<?php 
ct_get_template('tour-list.php', '/templates/tour/');
?>
			</div><!-- End row -->

			<hr>

				<div class="text-center">
					<?php 
unset($_GET['page']);
$pagenum_link = strtok($_SERVER["REQUEST_URI"], '?') . '%_%';
$total = ceil($count / $per_page);
$args = array('base' => $pagenum_link, 'total' => $total, 'format' => '?page=%#%', 'current' => $page, 'show_all' => false, 'prev_next' => true, 'prev_text' => esc_html__('Previous', 'citytours'), 'next_text' => esc_html__('Next', 'citytours'), 'end_size' => 1, 'mid_size' => 2, 'type' => 'list', 'add_args' => $_GET);
echo paginate_links($args);
?>
				</div><!-- end pagination-->
				
Ejemplo n.º 5
0
 function shortcode_blog($atts, $content = null)
 {
     global $cat;
     $variables = array('cat' => '');
     extract(shortcode_atts($variables, $atts));
     ob_start();
     ct_get_template('content-blog.php', '/templates');
     $output = ob_get_contents();
     ob_end_clean();
     return $output;
 }
Ejemplo n.º 6
0
" class="bt_filters" title="<?php 
esc_html_e('List View', 'citytours');
?>
"><i class="icon-list"></i></a>
					</div>
				</div>
			</div><!--End tools -->

			<div class="hotel-list <?php 
if ($current_view == 'grid') {
    echo 'row';
}
?>
">
				<?php 
ct_get_template('hotel-list.php', '/templates/hotel/');
?>
			</div><!-- hotel-list -->

			<hr>

				<div class="text-center">
					<?php 
unset($_GET['page']);
$pagenum_link = strtok($_SERVER["REQUEST_URI"], '?') . '%_%';
$total = ceil($count / $per_page);
$args = array('base' => $pagenum_link, 'total' => $total, 'format' => '?page=%#%', 'current' => $page, 'show_all' => false, 'prev_next' => true, 'prev_text' => esc_html__('Previous', 'citytours'), 'next_text' => esc_html__('Next', 'citytours'), 'end_size' => 1, 'mid_size' => 2, 'type' => 'list', 'add_args' => $_GET);
echo paginate_links($args);
?>
				</div><!-- end pagination-->
				
Ejemplo n.º 7
0
<?php

global $post_list, $current_view, $post_id;
if (empty($post_list)) {
    echo '<h5 class="empty-list">' . esc_html__('No available tours', 'citytours') . '</h5>';
} else {
    foreach ($post_list as $post_obj) {
        $post_id = $post_obj['tour_id'];
        ct_get_template('loop-' . $current_view . '.php', '/templates/tour/');
    }
}