Advertisement
Guest User

Untitled

a guest
Mar 15th, 2014
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 14.16 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template Name: Pagina listare
  4. */
  5.  
  6. get_header(); ?>
  7.    
  8. <?php
  9.     $options = get_option('sf_flexform_options');
  10.    
  11.     $default_show_page_heading = $options['default_show_page_heading'];
  12.     $default_page_heading_bg_alt = $options['default_page_heading_bg_alt'];
  13.     $default_sidebar_config = $options['default_sidebar_config'];
  14.     $default_left_sidebar = $options['default_left_sidebar'];
  15.     $default_right_sidebar = $options['default_right_sidebar'];
  16.  
  17.     $show_page_title = get_post_meta($post->ID, 'sf_page_title', true);
  18.     $page_title_one = get_post_meta($post->ID, 'sf_page_title_one', true);
  19.     $page_title_two = get_post_meta($post->ID, 'sf_page_title_two', true);
  20.     $page_title_bg = get_post_meta($post->ID, 'sf_page_title_bg', true);
  21.    
  22.     if ($show_page_title == "") {
  23.         $show_page_title = $default_show_page_heading;
  24.     }
  25.     if ($page_title_bg == "") {
  26.         $page_title_bg = $default_page_heading_bg_alt;
  27.     }
  28.  
  29.     $sidebar_config = get_post_meta($post->ID, 'sf_sidebar_config', true);
  30.     $left_sidebar = get_post_meta($post->ID, 'sf_left_sidebar', true);
  31.     $right_sidebar = get_post_meta($post->ID, 'sf_right_sidebar', true);
  32.    
  33.     if ($sidebar_config == "") {
  34.         $sidebar_config = $default_sidebar_config;
  35.     }
  36.     if ($left_sidebar == "") {
  37.         $left_sidebar = $default_left_sidebar;
  38.     }
  39.     if ($right_sidebar == "") {
  40.         $right_sidebar = $default_right_sidebar;
  41.     }
  42.    
  43.     $page_wrap_class = '';
  44.     if ($sidebar_config == "left-sidebar") {
  45.     $page_wrap_class = 'has-left-sidebar has-one-sidebar row';
  46.     } else if ($sidebar_config == "right-sidebar") {
  47.     $page_wrap_class = 'has-right-sidebar has-one-sidebar row';
  48.     } else if ($sidebar_config == "both-sidebars") {
  49.     $page_wrap_class = 'has-both-sidebars';
  50.     } else {
  51.     $page_wrap_class = 'has-no-sidebar';
  52.     }
  53.    
  54.     $remove_breadcrumbs = get_post_meta($post->ID, 'sf_no_breadcrumbs', true);
  55.     $remove_bottom_spacing = get_post_meta($post->ID, 'sf_no_bottom_spacing', true);
  56.     $remove_top_spacing = get_post_meta($post->ID, 'sf_no_top_spacing', true);
  57.    
  58.     if ($remove_bottom_spacing) {
  59.     $page_wrap_class .= ' no-bottom-spacing';
  60.     }
  61.     if ($remove_top_spacing) {
  62.     $page_wrap_class .= ' no-top-spacing';
  63.     }
  64. ?>
  65.  
  66. <?php if (have_posts()) : the_post(); ?>
  67.  
  68. <?php
  69.         $galerie_foto = get_post_meta(get_the_id(), 'galerie_foto', true);
  70.         $pret = get_post_meta(get_the_id(), 'pret', true);
  71.         $model = get_post_meta(get_the_id(), 'model', true);
  72.         $fabricatie = get_post_meta(get_the_id(), 'fabricatie', true);
  73.    
  74.         $rulaj = get_post_meta(get_the_id(), 'rulaj', true);
  75.         $combustibil = get_post_meta(get_the_id(), 'combustibil', true);
  76.         $motor = get_post_meta(get_the_id(), 'motor', true);
  77.         $transmisie = get_post_meta(get_the_id(), 'transmisie', true);
  78.         $emisii_co2 = get_post_meta(get_the_id(), 'emisii_co2', true);
  79.         $norma_euro = get_post_meta(get_the_id(), 'norma_euro', true);
  80.         $culoare = get_post_meta(get_the_id(), 'culoare', true);
  81.         $numar_usi = get_post_meta(get_the_id(), 'numar_usi', true);
  82.         $tara_origine = get_post_meta(get_the_id(), 'tara_origine', true);
  83.         $data_prima_inmatriculare = get_post_meta(get_the_id(), 'data_prima_inmatriculare', true);
  84.  
  85.         $dotari = get_post_meta(get_the_id(), 'dotari', true);
  86.         $alti_parametri = get_post_meta(get_the_id(), 'alti_parametri', true);
  87.         $securitate = get_post_meta(get_the_id(), 'securitate', true);
  88.         $confort = get_post_meta(get_the_id(), 'confort', true);
  89.         $istoric = get_post_meta(get_the_id(), 'istoric', true);
  90.         $descriere = get_post_meta(get_the_id(), 'descriere', true);
  91.         $titlu1 = get_post_meta(get_the_id(), 'titlu1', true);
  92.         $titlu2 = get_post_meta(get_the_id(), 'titlu2', true);
  93.         $titlu3 = get_post_meta(get_the_id(), 'titlu3', true);
  94.         $titlu4 = get_post_meta(get_the_id(), 'titlu4', true);
  95.         $continut1 = get_post_meta(get_the_id(), 'continut1', true);
  96.         $continut2 = get_post_meta(get_the_id(), 'continut2', true);
  97.         $continut3 = get_post_meta(get_the_id(), 'continut3', true);
  98.         $continut4 = get_post_meta(get_the_id(), 'continut4', true);
  99.         $mesajtaxa = get_post_meta(get_the_id(), 'mesajtaxa', true);
  100.        
  101.         $avans_rand_1 = get_post_meta(get_the_id(), 'avans_rand_1', true);
  102.         $avans_rand_2 = get_post_meta(get_the_id(), 'avans_rand_2', true);
  103.         $avans_rand_3 = get_post_meta(get_the_id(), 'avans_rand_3', true);
  104.         $perioada_rand_1 = get_post_meta(get_the_id(), 'perioada_rand_1', true);
  105.         $perioada_rand_2 = get_post_meta(get_the_id(), 'perioada_rand_2', true);
  106.         $perioada_rand_3 = get_post_meta(get_the_id(), 'perioada_rand_3', true);
  107.         $valoare_reziduala_rand_1 = get_post_meta(get_the_id(), 'valoare_reziduala_rand_1', true);
  108.         $valoare_reziduala_rand_2 = get_post_meta(get_the_id(), 'valoare_reziduala_rand_2', true);
  109.         $valoare_reziduala_rand_3 = get_post_meta(get_the_id(), 'valoare_reziduala_rand_3', true);
  110.         $rata_lunara_rand_1 = get_post_meta(get_the_id(), 'rata_lunara_rand_1', true);
  111.         $rata_lunara_rand_2 = get_post_meta(get_the_id(), 'rata_lunara_rand_2', true);
  112.         $rata_lunara_rand_3 = get_post_meta(get_the_id(), 'rata_lunara_rand_3', true);
  113.                
  114.         ?>
  115.  
  116. <!--// OPEN #main-container //-->
  117.             <div id="main-container2" class="clearfix">
  118.            
  119.                 <?php if ($enable_header_shadow) { ?>
  120.                 <div id="header-shadow"></div>
  121.                 <?php } ?>
  122.                
  123.                 <?php
  124.                     if (is_page()) {
  125.                         $show_posts_slider = get_post_meta($post->ID, 'sf_posts_slider', true);
  126.                         $rev_slider_alias = get_post_meta($post->ID, 'sf_rev_slider_alias', true);
  127.                         if ($show_posts_slider) {
  128.                             get_posts_slider();
  129.                         } else if ($rev_slider_alias != "") { ?>
  130.                             <div class="home-slider-wrap">
  131.                                 <?php echo do_shortcode('[rev_slider '.$rev_slider_alias.']'); ?>
  132.                             </div>
  133.                         <?php }
  134.                     }
  135.                 ?>
  136.  
  137.  
  138.                        
  139.                 <!--// OPEN .container //-->
  140.                 <div class="container">
  141.                
  142.                
  143.                
  144.                
  145.                     <!--// OPEN #page-wrap //-->
  146.                     <div id="page-wrap">
  147.  
  148.  
  149. <div class="inner-page-wrap <?php echo $page_wrap_class; ?> clearfix">
  150.  
  151.     <!-- OPEN page -->
  152.     <div id="wrapper">
  153.    
  154.     <div id="maincontentcontainer">
  155.         <div id="maincontent">
  156.         <div id="backalb">
  157.             <div class="section group">
  158.             <div class="col span_4_of_4">
  159.             <div class="col span_1_of_2">
  160.                <div id="titlu_masina">Vanzare <?php echo get_the_title($ID); ?></div>
  161.             </div>
  162.             <div class="col span_1_of_2" style="text-align:right;">
  163.             <?php echo do_shortcode( '[wdfb_like_button]' ); ?> <a href="http://www.facebook.com/" target="_blank"><img src="/images/facebook_icon.png"></a>&nbsp;<a href="http://www.twitter.com/"  target="_blank"><img src="/images/twitter_icon.png"></a>&nbsp;&nbsp;&nbsp;<a id="pwyl_print_button" href="http://www.printwhatyoulike.com/" onclick="javascript:(function(){window._pwyl_home='http://www.printwhatyoulike.com/';window._pwyl_print_button=document.createElement('script');window._pwyl_print_button.setAttribute('type','text/javascript');window._pwyl_print_button.setAttribute('src',window._pwyl_home+'js/print_button/6916');window._pwyl_print_button.setAttribute('pwyl','true');document.getElementsByTagName('head')[0].appendChild(window._pwyl_print_button);document.body.style.cursor='progress';document.getElementById('pwyl_print_button').style.cursor='progress';})();return false;" title="Print this page" style="text-decoration: none;"><img src='http://www.printwhatyoulike.com/button/print_button_icon2.png' alt='Print' border='0' /></a> </span></span><?php echo do_shortcode( '[cunjo layout="left_tab"]' ); ?>
  164.             </div>
  165.  
  166.  
  167.             </div></div>
  168.            
  169.             <div class="section group">
  170.                 <div class="col span_2_of_3">
  171.                 <?php echo do_shortcode($galerie_foto); ?><br/>
  172.                 </div>
  173.                 <div class="col span_1_of_3">
  174.                     <div class="col span_4_of_4">
  175.                     <p class="price_details"><?php echo $pret; ?></p>
  176.                     <p><?php echo $mesajtaxa; ?></p>
  177.                     </div>
  178.                     <div class="col span_3_of_3">
  179.                     <div class="features_table">
  180.                             <div class="line">
  181.                                 <div class="left">Model, Caroserie:</div>
  182.                                 <div class="right"><?php echo $model; ?></div>
  183.                             </div>
  184.                             <div class="line grey_area">
  185.                                 <div class="left">Fabricatie:</div>
  186.                                 <div class="right"><?php echo $fabricatie; ?></div>
  187.                             </div>
  188.                             <div class="line">
  189.                                 <div class="left">Rulaj:</div>
  190.                                 <div class="right"><?php echo $rulaj; ?></div>
  191.                             </div>
  192.                             <div class="line grey_area">
  193.                                 <div class="left">Combustibil:</div>
  194.                                 <div class="right"><?php echo $combustibil; ?></div>
  195.                             </div>
  196.                             <div class="line">
  197.                                 <div class="left">Motor:</div>
  198.                                 <div class="right"><?php echo $motor; ?></div>
  199.                             </div>
  200.                             <div class="line grey_area">
  201.                                 <div class="left">Transmisie:</div>
  202.                                 <div class="right"><?php echo $transmisie; ?></div>
  203.                             </div>
  204.                             <div class="line">
  205.                                 <div class="left">Emisii CO2:</div>
  206.                                 <div class="right"><?php echo $emisii_co2; ?></div>
  207.                             </div>
  208.                             <div class="line grey_area">
  209.                                 <div class="left">Norma Euro:</div>
  210.                                 <div class="right"><?php echo $norma_euro; ?></div>
  211.                             </div>
  212.                             <div class="line">
  213.                                 <div class="left">Culoare:</div>
  214.                                 <div class="right"><?php echo $culoare; ?></div>
  215.                             </div>
  216.                             <div class="line grey_area">
  217.                                 <div class="left">Numar de usi:</div>
  218.                                 <div class="right"><?php echo $numar_usi; ?></div>
  219.                             </div>
  220.                             <div class="line">
  221.                                 <div class="left">Tara de origine:</div>
  222.                                 <div class="right"><?php echo $tara_origine; ?></div>
  223.                             </div>
  224.                             <div class="line grey_area">
  225.                                 <div class="left">Data primei inmatriculari:</div>
  226.                                 <div class="right"><?php echo $data_prima_inmatriculare; ?></div>
  227.                             </div>
  228.                         </div>
  229.                     </div>
  230.                 </div>
  231.             </div>
  232.            
  233.             <div class="section group">
  234.                 <div class="col span_2_of_3">
  235.                     <div class="col span_4_of_4">
  236.                                 <h2 class="supl">Informatii suplimentare</h2><strong>
  237.                                 <p class="infosupl"><strong>Dotari:</strong><br><?php echo $dotari; ?></p>
  238.                                 <p class="infosupl"><strong>Alti parametri:</strong><br><?php echo $alti_parametri; ?></p>
  239.                                 <p class="infosupl"><strong>Securitate:</strong><br><?php echo $securitate; ?></p>
  240.                                 <p class="infosupl"><strong>Confort:</strong><br><?php echo $confort; ?></p>
  241.                                 <p class="infosupl"><strong>Istoric:</strong><br><?php echo $istoric; ?></p>
  242.                                 <br><h2 class="supl">Descriere vehiculului</h2><strong>
  243.                                 <p class="infosupl"><?php echo $descriere; ?></p>
  244.                                
  245.  
  246.                             </strong></strong>
  247.  
  248.  
  249.                 <div id="om-offer-contact" class="omBox om-contact-box">
  250.   <h4>Detalii Contact</h4>
  251. <div class="om-contact-dealer">
  252.  
  253. <div class="col span_2_of_3">
  254. <p class="contact">AUTO GRAND SERVICE SRL</p>
  255. <p class="contact">RO - TIMISOARA</p>
  256. <p class="contact">Adresa: Str. Closca, Nr. 89B (langa piata Mehala)</p>
  257. <p class="contact">Tel. : 0256-47.55.47</p>
  258. <p class="contact">Tel. : 0751-399.399 , 0748-119.419</p>
  259. <p class="contact">E-mail: sebastian@autogrande.ro , marius@autogrande.ro</p>
  260. </div>
  261.  
  262. <div class="col span_1_of_3">
  263. <p class="contact">Programul de lucru</p>
  264. <table class="om-contact-hours-table">
  265.           <tbody><tr>
  266.             <th>Zi</th>
  267.             <th>Deschis</th>
  268.           </tr>
  269.                       <tr>
  270.               <td>Luni</td>
  271.                               <td>09:00-18:00</td>
  272.                 <td></td>
  273.                           </tr>
  274.                       <tr>
  275.               <td>Marti</td>
  276.                               <td>09:00-18:00</td>
  277.                 <td></td>
  278.                           </tr>
  279.                       <tr>
  280.               <td>Miercuri</td>
  281.                               <td>09:00-18:00</td>
  282.                 <td></td>
  283.                           </tr>
  284.                       <tr>
  285.               <td>Joi</td>
  286.                               <td>09:00-18:00</td>
  287.                 <td></td>
  288.                           </tr>
  289.                       <tr>
  290.               <td>Vineri</td>
  291.                               <td>09:00-18:00</td>
  292.                 <td></td>
  293.                           </tr>
  294.                       <tr>
  295.               <td>Sambata</td>
  296.                               <td colspan="2">09:00-14:00</td>
  297.                           </tr>
  298.                       <tr>
  299.               <td>Duminica</td>
  300.                               <td colspan="2">Inchis</td>
  301.                           </tr>
  302.                   </tbody></table>
  303. </div>
  304.  
  305. </div>
  306.  
  307.   </div>
  308.                     </div>
  309.                 </div>
  310.                 <div class="col span_1_of_3">
  311.                                 <h2 class="supl"><strong><?php echo $titlu1; ?></strong></h2>
  312.                                 <div id="leasing">
  313.                                     <div id="leasing-photo"><?php echo $continut1; ?></div>
  314.                                     <div style="position: relative;">
  315.                                         <div style="position: absolute; bottom: 47px; left: 15px; width: 330px; font-weight: bold; color: #fff;">
  316.                                             <table border="1" bordercolor="white">
  317.                                                 <tr>
  318.                                                     <td>Avans</td>
  319.                                                     <td>Perioada</td>
  320.                                                     <td>Val. reziduala</td>
  321.                                                     <td>Rata lunara</td>
  322.                                                 </tr>
  323.                                                 <tr>
  324.                                                     <td><?php echo $avans_rand_1; ?></td>
  325.                                                     <td><?php echo $perioada_rand_1; ?></td>
  326.                                                     <td><?php echo $valoare_reziduala_rand_1; ?></td>
  327.                                                     <td><?php echo $rata_lunara_rand_1; ?></td>
  328.                                                 </tr>
  329.                                                 <tr>
  330.                                                     <td><?php echo $avans_rand_2; ?></td>
  331.                                                     <td><?php echo $perioada_rand_2; ?></td>
  332.                                                     <td><?php echo $valoare_reziduala_rand_2; ?></td>
  333.                                                     <td><?php echo $rata_lunara_rand_2; ?></td>
  334.                                                 </tr>
  335.                                                 <tr>
  336.                                                     <td><?php echo $avans_rand_3; ?></td>
  337.                                                     <td><?php echo $perioada_rand_3; ?></td>
  338.                                                     <td><?php echo $valoare_reziduala_rand_3; ?></td>
  339.                                                     <td><?php echo $rata_lunara_rand_3; ?></td>
  340.                                                 </tr>
  341.                                             </table>
  342.                                         </div>                     
  343.                                 </div>
  344.                                    
  345.                                 <h2 class="supl"><strong><?php echo $titlu2; ?></strong></h2>
  346.                                 <p><?php echo $continut2; ?></p>
  347.                                
  348.                                 <h2 class="supl"><strong><?php echo $titlu3; ?></strong></h2>
  349.                                 <p><?php echo $continut3; ?></p>
  350.                                
  351.                                 <h2 class="supl"><strong><?php echo $titlu2; ?></strong></h2>
  352.                                 <p><?php echo $continut4; ?></p>
  353.                 </div>
  354.             </div>
  355.  
  356.            
  357.     </div>
  358. </div>
  359. </div>
  360. </div>
  361. </div>
  362.  
  363. <?php endif; ?>
  364.  
  365. <!--// WordPress Hook //-->
  366. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement