Advertisement
Guest User

contact.php

a guest
Mar 14th, 2014
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.86 KB | None | 0 0
  1. <?php if (of_get_option('phrase_5_show')) {?>
  2.  
  3.     <!-- Title Area -->
  4.    
  5.     <section class="title_area" <?php colors('desc')?> id="contact">
  6.    
  7.         <div class="container">
  8.        
  9.             <h1 <?php echo colors('h1');?>>&OpenCurlyDoubleQuote; <?php echo  of_get_option('phrase_5_comment'); ?>&CloseCurlyDoubleQuote;</h1>
  10.            
  11.         </div>
  12.        
  13.     </section>
  14.    
  15.     <!-- End Title Area-->
  16.    
  17. <?php }?>
  18. <!-- Info Area - Contact-->
  19.  
  20.     <section class="info_area" id="contact" >
  21.    
  22.         <div class="container">
  23.        
  24.             <?php
  25.                 $color='';
  26.                 $arrow_color = '';
  27.                 if(colors('h1')!=''){
  28.                 if(colors('title')!=''){
  29.                 $color=substr(colors('h1'),0,strlen(colors('h1'))-1).' '.substr(colors('title'),7,27);
  30.                 $arrow_color = 'style="border-left: 35px solid '.substr(colors('title'),25,7).';"';}
  31.                 else{ $color = colors('h1');}}
  32.                 else{ if(colors('title')!=''){ $color=colors('title'); $arrow_color = 'style="border-left: 35px solid '.substr(colors('title'),25,7).';"';}}
  33.             ?>
  34.            
  35.             <div class="title_section">
  36.            
  37.                 <h1 <?php echo $color;?>><?php echo of_get_option('contact_title') ?>
  38.                
  39.                     <span class="arrow_title" <?php echo $arrow_color;?>></span>
  40.                    
  41.                 </h1>
  42.                
  43.                 <small <?php echo colors('h1s');?>><?php echo of_get_option('contact_me_comment')?></small>
  44.                
  45.             </div>
  46.            
  47.             <!-- Row fuid-->
  48.            
  49.             <div class="row-fluid">
  50.            
  51.                 <div class="span7 contact">
  52.                
  53.                     <form id="form" action="<?php echo get_template_directory_uri(); ?>/send_mail.php">
  54.                        
  55.                         <input type="text" placeholder="<?php echo of_get_option('contact_me_email')?>" name="Name" required>
  56.                         <input type="email" placeholder="<?php echo of_get_option('contact_me_subject')?>"  name="Email" required>
  57. <input type="hidden"  name="from" value="<?php echo of_get_option('general_mail')?>">
  58.                         <textarea placeholder="<?php echo of_get_option('message_me_text')?>" name="message" required></textarea>
  59.                         <input <?php echo colors('btn')?> type="submit" name="Submit" value="<?php echo of_get_option('contact_me_bt')?>" class="button alignright">
  60.                        
  61.                     </form>
  62.                    
  63.                     <div id="result"></div>
  64.                    
  65.                 </div>
  66.                
  67.                 <div class="span5 map">
  68.                            
  69.                     <ul class="social">
  70.                    
  71.                         <?php   $icons_arr = array(
  72.                             '1' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/facebook.png',
  73.                             '2' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/twitter.png',
  74.                             '3' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/google.png',
  75.                             '4' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/flickr.png',
  76.                             '5' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/dribbble.png',
  77.                             '6' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/delicous.png',
  78.                             '7' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/vimeo.png',
  79.                             '8' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/youtube.png',
  80.                             '9' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/blogger.png',
  81.                             '10' => get_template_directory_uri().'/'.of_get_option('general_color').'/img/social/myspace.png',                                     
  82.                             );
  83.  
  84.                             $cant3=of_get_option('contact_num_social');
  85.                             for($f=1; $f<=$cant3; $f++) { ?>
  86.                            
  87.                             <?php   if (of_get_option('contact_me_show'.$f)){ ?><li><a <?php echo colors('a');?>  href="<?php echo of_get_option('contact_me_link'.$f) ?>" class="tooltip_hover" title="<?php echo of_get_option('contact_me_title'.$f)?>"><img src="<?php echo $icons_arr[of_get_option('icon_grupo_'.$f)];?>" alt="Image"></a></li><?php } } ?>
  88.                            
  89.                     </ul>
  90.                    
  91.                     <div class="clearfix"></div>
  92.  
  93.                     <p <?php echo colors('p');?>><?php echo of_get_option('contact_me_text') ?></p>
  94.                    
  95.                     <?php if (of_get_option('contact_me_google_map_show')){ ?>
  96.                    
  97.                         <iframe  src="<?php echo of_get_option('contact_me_google_map_link') ?>"></iframe>
  98.                        
  99.                     <?php } ?>
  100.                    
  101.                 </div>  
  102.  
  103.             </div>
  104.            
  105.             <!-- End Row fuid-->
  106.            
  107.         </div>
  108.        
  109.     </section>
  110.    
  111.     <!-- End Section Area - Contact-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement