1. <?php
  2. /*
  3. Template Name: Contact Form Full Width
  4. */
  5.  
  6. global $k_option;
  7. $name_of_your_site = get_option('blogname');
  8. $email_adress_reciever = $k_option['contact']['email'];
  9.  
  10. $errorC = true;
  11. if(isset($_POST['Send']))
  12. {
  13.     include('send.php');   
  14. }
  15.  
  16.  
  17. get_header();
  18.  
  19.  
  20.     ?>
  21.  
  22.  
  23. <div class="wrapper fullwidth" id='wrapper_main'>
  24.  
  25.     <div class="center">       
  26.        
  27.         <div id="main">
  28.                
  29.         <div class='content'>
  30.        
  31.             <div class="entry">
  32.             <?php
  33.            
  34.             if (have_posts()) :
  35.             while (have_posts()) : the_post(); 
  36.             $more = 1;
  37.  
  38.             //get preview image
  39.             $big_prev_image = kriesi_post_thumb($post->ID, array('size'=> array('XL','_preview_medium'),
  40.                                                              'wh' => $k_option['custom']['imgSize']['L'],
  41.                                                              'display_link' => array('lightbox'),
  42.                                                             'linkurl' => array ('XL','_preview_big'),
  43.                                                             ));
  44.             ?>
  45.  
  46.                
  47.             <h1 class="siteheading">
  48.             <a href="<?php echo get_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link:','avisio')?> <?php the_title(); ?>"><?php the_title(); ?>
  49.             </a>
  50.             </h1>
  51.            
  52.            
  53.             <div class="entry-content">
  54.             <?php
  55.             echo $big_prev_image;
  56.             the_content(); ?>
  57.             <?php edit_post_link('Edit', '', ''); ?>
  58.             <form action="" method="post" class="ajax_form">
  59.                         <fieldset><?php if (!isset($errorC) || $errorC == true){ ?><h3><span><?php _e('Send us mail','avisio'); ?></span></h3>
  60.                        
  61.                         <p class="<?php if (isset($the_nameclass)) echo $the_nameclass; ?>" ><input name="yourname" class="text_input is_empty" type="text" id="name" size="20" value='<?php if (isset($the_name)) echo $the_name?>'/><label for="name"><?php _e('Your Name','avisio'); ?>*</label>
  62.                         </p>
  63.                         <p class="<?php if (isset($the_emailclass)) echo $the_emailclass; ?>" ><input name="email" class="text_input is_email" type="text" id="email" size="20" value='<?php if (isset($the_email)) echo $the_email ?>' /><label for="email"><?php _e('E-Mail','avisio'); ?>*</label></p>
  64.                         <p><input name="website" class="text_input" type="text" id="website" size="20" value="<?php if (isset($the_website))  echo $the_website?>"/><label for="website"><?php _e('Website','avisio'); ?></label></p>
  65.                         <label for="message" class="blocklabel"><?php _e('Your Message','avisio'); ?>*</label>
  66.                         <p class="<?php if (isset($the_messageclass)) echo $the_messageclass; ?>"><textarea name="message" class="text_area is_empty" cols="40" rows="7" id="message" ><?php  if (isset($the_message)) echo $the_message ?></textarea>
  67.                         <input name="username" value="" id="username" class="username"/>
  68.                         </p>
  69.                        
  70.                        
  71.                         <p>
  72.                        
  73.                         <input type="hidden" id="myemail" name="myemail" value="<?php echo $email_adress_reciever; ?>" />
  74.                         <input type="hidden" id="myblogname" name="myblogname" value='<?php echo $name_of_your_site; ?>' />
  75.                        
  76.                         <input name="Send" type="submit" value="<?php _e('Send','avisio'); ?>" class="button" id="send" size="16"/></p>
  77.                         <?php } else { ?>
  78.                         <p><h3><?php _e('Your message has been sent!','avisio'); ?> </h3> <?php _e('Thank you!','avisio'); ?> </p>
  79.                        
  80.                         <?php } ?>
  81.                         </fieldset>
  82.                     </form>
  83.             <!--end entry-content-->
  84.             </div>
  85.  
  86.             <?php
  87.        
  88.         endwhile;
  89.         endif;
  90.  
  91.             ?>
  92.            
  93.                
  94.             <!--end entry -->  
  95.             </div>
  96.            
  97.    
  98.         <!--end content-->
  99.         </div> 
  100.            
  101.         <!--end main-->
  102.         </div>
  103.        
  104.        
  105. <?php get_footer(); ?>