96 lines
4.2 KiB
PHP
Executable File
96 lines
4.2 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<?php wp_head(); ?>
|
|
|
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
function loading_show(){
|
|
$('#loading').html("<img src='<?php echo get_stylesheet_directory_uri(); ?>/images/loading.gif'/>").fadeIn('fast');
|
|
}
|
|
function loading_hide(){
|
|
$('#loading').fadeOut('fast');
|
|
}
|
|
function loadData(page){
|
|
loading_show();
|
|
$.ajax
|
|
({
|
|
type: "POST",
|
|
url: "<?php echo get_stylesheet_directory_uri() . '/load_data.php'; ?>",
|
|
data: "page="+page,
|
|
success: function(msg)
|
|
{
|
|
$("#container").ajaxComplete(function(event, request, settings)
|
|
{
|
|
loading_hide();
|
|
$("#container").html(msg);
|
|
});
|
|
}
|
|
});
|
|
}
|
|
loadData(1); // For first time page load default results
|
|
$('#container .pagination li.active').live('click',function(){
|
|
var page = $(this).attr('p');
|
|
loadData(page);
|
|
|
|
});
|
|
$('#go_btn').live('click',function(){
|
|
var page = parseInt($('.goto').val());
|
|
var no_of_pages = parseInt($('.total').attr('a'));
|
|
if(page != 0 && page <= no_of_pages){
|
|
loadData(page);
|
|
}else{
|
|
alert('Enter a PAGE between 1 and '+no_of_pages);
|
|
$('.goto').val("").focus();
|
|
return false;
|
|
}
|
|
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body <?php body_class(); ?>>
|
|
<header id="head">
|
|
<div class="top-area">
|
|
<div class="container">
|
|
<div class="head-details">
|
|
<?php
|
|
echo (dess_setting('dess_tel') != '' ? __('Tel: ','creator').'<a href="tel:'.dess_setting('dess_tel').'">'. dess_setting('dess_tel').'</a>' : '');
|
|
echo (dess_setting('dess_email') != '' ? ' | '.__('Email: ','creator').'<a href="mailto:'.dess_setting('dess_email').'">'. dess_setting('dess_email').'</a>' : '');
|
|
echo (dess_setting('dess_hoursup') != '' ? ' | '.dess_setting('dess_hoursup') : '');
|
|
?>
|
|
</div><!-- head-details -->
|
|
<div class="head-socials">
|
|
<ul>
|
|
<?php
|
|
$socials = array('twitter','facebook','google-plus','instagram','pinterest','vimeo','youtube','linkedin');
|
|
for($i=0;$i<count($socials);$i++){
|
|
$url = '';
|
|
$s = $socials[$i];
|
|
$url = dess_setting('dess_'.$s);
|
|
echo ($url != '' ? '<li><a target="_blank" href="'.$url.'"><img src="'.esc_url( get_stylesheet_directory_uri() ).'/images/'.$s.'-icon.png" alt="'.$s.'" /></a></li>':'');
|
|
}
|
|
?>
|
|
</ul>
|
|
</div><!-- head-socials -->
|
|
<div class="clear"></div>
|
|
</div><!-- container -->
|
|
</div><!-- top-area -->
|
|
<div class="head-area">
|
|
<div class="container">
|
|
<div class="logo">
|
|
<?php echo (dess_setting('dess_logo') != '' ? '<a href="'.home_url().'"><img src="'.dess_setting('dess_logo').'" alt="logo" /></a>': '<a href="'.home_url().'"><img src="'.esc_url( get_stylesheet_directory_uri() ).'/images/logo.png" alt="logo" /></a>'); ?>
|
|
</div><!-- logo -->
|
|
<div class="head-nav">
|
|
<?php wp_nav_menu(array('theme_location' => 'header-menu')); ?>
|
|
</div><!-- head-nav -->
|
|
<div class="clear"></div>
|
|
</div><!-- container -->
|
|
</div><!-- head-area -->
|
|
|
|
</header>
|