You are on page 1of 7

<?

php
/** Template Name:Home */?>
<?php
get_header(); ?>
<!-- ******* Content Starts *******

-->

<div id="content">
<!-- ~~~~~~~ Slider Starts ~~~~~~~ -->
<?php
if($zappy_options['slides'])
{
?>
<div class="flexslider">
<ul class="slides">
<?php
$zappy_slide_count=count($zappy_options['slides']);
for($i=0;$i<$zappy_slide_count;$i++)
{
?>

<li>
<span

class="slide-image">

<img
src="<?php echo $zappy_options['slides'][$i]['image']?>" />
</span>
<span
class="caption-heading">
<h2
class="caption1"><?php echo $zappy_options['slides'][$i]
['title']?></h2>
<h3
class="caption2"><?php echo $zappy_options['slides'][$i]
['description']?></h3>
<a
href="<?php echo $zappy_options['slides'][$i]['url']?>"
class="skin2-button">Learn More</a>
</span>
</li>
<?php
?>
</ul>
<?php

</div>

}
?>
<!-- ~~~~~~~ Slider Starts ~~~~~~~ -->
<!-- ~~~~~~~ Body Starts ~~~~~~~ -->
<div class="body-content">
<?php
if($zappy_options['homepage_blocks']){
foreach($zappy_options['homepage_blocks']
['enabled'] as $key => $val){
$error_msg="<h2 class='main-head
container'><span class='head-title'>Please go to your theme
option panel and switch on the '".$val."' Area to display content
in this section, or if you don't want to display this, you can
remove it from the Homepage Layout Manager.</span></h2>";
//Our Products
if($val=='Our Products'){
if($zappy_options['our_products']==1){?>
<div>
<div
class="container">
align="center">

<div
<h2

class="main-head">
<span class="head-title"><?php echo
$zappy_options['our_products_title']?></span>
<span class="head-parag"><?php echo
$zappy_options['our_products_intro_text']?></span>
</h2>
</div>
<div>
<ul
class="ca-menu">
php

<?

$product_totla_title=count($zappy_options['product_title']);
for($i=0;$i<$product_totla_title;$i++){
if($i%2==0){
$data='data-0="left:-60px;" data-600="left:0px;"';
}else{
$data='data-0="right:-80px;" data-600="right:0px;"';
}
echo '<li '.$data.'>
<a href="'.$zappy_options['product_link'][$i].'">
<span class="'.
$zappy_options['product_image'][$i].' product-icon"></span>
<div class="ca-content">
<h3 class="ca-sub">'.
$zappy_options['product_title'][$i].'</h3>
</div>
</a>
</li>';

}
?>
</ul>
</div>
</div>
<?php

</div>

}else{
echo $error_msg;
}
}elseif($val=='Our Recent Work'){
// Our Recent Work

if($zappy_options['our_clients_review']==1){
echo
our_recent_work();
}else{
echo $error_msg;
}
}elseif($val=='Our Clients Review'){
//Our Clients Review
if($zappy_options['our_clients_review']==1){?>
<div>
<div
class="container" align="center">
<h2

class="main-head">

<span
class="head-title"><?php echo
$zappy_options['our_clients_review_title']?></span>
class="head-parag"><?php echo
$zappy_options['our_clients_review_intro_text']?></span>

<span

</h2>
</div>
class="skin1-bg">

<div
<div

class="container">

<?php
add_filter('the_content', 'do_shortcode', 11);
echo
do_shortcode($zappy_options['our_clients_review_list']);
?>
</div>
</div>

</div>
<!-- ~~~~~~~ Our Client Reveiew
Ends ~~~~~~~ -->

<?php }else{
echo $error_msg;
}
}elseif($val=='Our Clients'){
//Our Clients

if($zappy_options['our_clients']==1){?>
<div>
<div
class="container" align="center">
<h2

class="main-head">

<span
class="head-title"><?php echo
$zappy_options['our_clients_title']?></span>
<span

class="head-parag"><?php echo
$zappy_options['our_clients_intro_text']?></span>
</h2>
</div>
class="skin2-bg client-img" align="center">

<div
<div

class="container">
if($zappy_options['our_clients_list'])
{
$zappy_gallery=explode(",",
$zappy_options['our_clients_list']);
foreach($zappy_gallery as $zappy_gallery_value)
{
$url =
wp_get_attachment_image_src($zappy_gallery_value,'full');
echo '<img src="'.$url[0].'" width="260"

<?php

height="77">';
}
}
?>
</div>
</div>
</div>
<?php }else{

echo $error_msg;

}
}elseif($val=='Our Newsletter'){
//Our Newsletter
if($zappy_options['our_Newsletter']==1){?>

<div>
<div

class="container" align="center">
<h2

class="main-head">

<span
class="head-title"><?php echo
$zappy_options['our_newsletter_title']?></span>
<span

class="head-parag"><?php echo
$zappy_options['our_newsletter_intro_text']?></span>
</h2>
</div>
class="skin1-bg">

<div
<div

class="container subscribe-cnt" align="center">

<form
action="http://feedburner.google.com/fb/a/mailverify"
method="post" target="popupwindow"
onsubmit="window.open('http://feedburner.google.com/fb/a/mailveri
fy?uri=<?php echo $zappy_options['our_feedburner_id'] ; ?>',
'popupwindow', 'scrollbars=yes,width=550,height=520');return
true">

<input class="feedburner-email suscribe-ip-text" type="text"


name="email" value="<?php _e( 'Enter your e-mail address' ,
'zappy_feed_burner') ; ?>" onfocus="if (this.value == '<?php
_e( 'Enter your e-mail address' , 'zappy_feed_burner') ; ?>')
{this.value = '';}" onblur="if (this.value == '') {this.value =
'<?php _e( 'Enter your e-mail address' , 'zappy_feed_burner') ; ?
>';}">
<input type="hidden" value="<?php echo
$zappy_options['our_feedburner_id'] ; ?>" name="uri">
<input type="hidden" name="loc" value="en_US">
<input class="feedburner-subscribe skin2-button"
type="submit" name="submit" value="<?php _e( 'Subscribe' ,
'zappy_feed_burner') ; ?>">
</form>
</div>
</div>
</div>
<?php
}else{

echo $error_msg;

}
}
?>

<!-- ~~~~~~~ Newsletter


</div>
</div>
<?php
?>

get_footer();

Ends ~~~~~~~ -->

You might also like