Guest User

Untitled

a guest
Mar 8th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.64 KB | None | 0 0
  1. <?php
  2.     /*
  3.      *      Osclass – software for creating and publishing online classified
  4.      *                           advertising platforms
  5.      *
  6.      *                        Copyright (C) 2012 OSCLASS
  7.      *
  8.      *       This program is free software: you can redistribute it and/or
  9.      *     modify it under the terms of the GNU Affero General Public License
  10.      *     as published by the Free Software Foundation, either version 3 of
  11.      *            the License, or (at your option) any later version.
  12.      *
  13.      *     This program is distributed in the hope that it will be useful, but
  14.      *         WITHOUT ANY WARRANTY; without even the implied warranty of
  15.      *        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.      *             GNU Affero General Public License for more details.
  17.      *
  18.      *      You should have received a copy of the GNU Affero General Public
  19.      * License along with this program.  If not, see <http://www.gnu.org/licenses/>.
  20.      */
  21. ?>
  22. <!DOCTYPE html>
  23. <html dir="ltr" lang="<?php echo str_replace('_', '-', osc_current_user_locale()); ?>">
  24.     <head>
  25.         <?php osc_current_web_theme_path('head.php'); ?>
  26.        
  27. <meta name="robots" content="index, follow" />
  28.         <meta name="googlebot" content="index, follow" />
  29.     </head>
  30.     <body>
  31.         <?php osc_current_web_theme_path('header.php'); ?>
  32.         <section class="main-content col-lg-9 col-md-9 col-sm-9 col-lg-push-3 col-md-push-3 col-sm-push-3">
  33.                    
  34.                     <div class="products-row row">
  35.                        
  36.                         <div class="col-lg-12 col-md-12 col-sm-12">
  37.                             <div class="row">
  38.                    
  39.                         <!-- Heading -->
  40.                         <div class="col-lg-12 col-md-12 col-sm-12">
  41.                            
  42.                             <div class="carousel-heading">
  43.                             <h4><?php _e('Latest Listings', 'bigio'); ?></h4>
  44.                             </div>
  45.                             <?php if( osc_count_latest_items() == 0) { ?>
  46.                         <div class="categories-heading"><p><?php _e('No Latest Listings', 'bigio'); ?></p></div>
  47.                     <?php } else { ?>
  48.                             <div class="categories-heading" align="center">
  49.                                 <!-- header ad 728x60-->
  50. <?php echo osc_get_preference('header-728x90', 'bigio'); ?>
  51. <!-- /header ad 728x60-->
  52.                             </div>
  53.                            
  54.                         </div>
  55.                        
  56.                         <div class="col-lg-12 col-md-12 col-sm-12">
  57.                            
  58.                             <div class="row subcategories">
  59.                            
  60.                                 <table class="table table-hover">
  61.                                     <thead>
  62.                                         <tr>
  63.                                             <th>Title</th>
  64.                                             <th>Location</th>
  65.                                             <th>Price</th>
  66.                                         </tr>
  67.                                     </thead>
  68.                                     <tbody>
  69.                                         <?php while ( osc_has_latest_items() ) { ?>
  70.                                             <tr>
  71.                                                 <td><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight( strip_tags( osc_item_title() ), 33 ); ?></a></td>
  72.                                                 <td><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?></td>
  73.                                                 <td><?php if( osc_price_enabled_at_items() ) { echo osc_item_formated_price() ; } ?></td>
  74.                                             </tr>
  75.                                         <?php } ?>
  76.                                     </tbody>    
  77.                                 </table>                          
  78.                           </div>
  79.                        
  80.                         <script src="<?php echo osc_current_web_theme_url('js/imagesloaded.pkgd.min.js') ; ?>"></script>
  81.                         <script src="<?php echo osc_current_web_theme_url('js/masonry.pkgd.min.js') ; ?>"></script>
  82.  
  83. <script>
  84.  
  85.  
  86.     var container = $('.masonry').masonry(
  87.             {"isFitWidth": true, "columnWidth": 160, "itemSelector": ".item", "gutter": 17, "stamp": ".stamp"}
  88.     );
  89.    
  90.     container.imagesLoaded( function () {
  91.         container.masonry();
  92.     });
  93.  
  94.    
  95.  
  96. </script>
  97.  
  98.                         <?php if( osc_count_latest_items() == osc_max_latest_items() ) { ?>
  99.                         <div><?php echo osc_search_pagination(); ?></div>
  100.                             <div class="col-lg-8 col-md-8 col-sm-8 pull-left"><a class="button regular blue" href="<?php echo osc_search_show_all_url();?>"><strong><?php _e("See all listings", 'bigio'); ?> &raquo;</strong></a></div>
  101.                         <?php } ?>
  102.                     <?php View::newInstance()->_erase('items'); } ?>
  103.                     </div>
  104.                    
  105.                         </div>
  106.                        
  107.                     </div>
  108.                    
  109.                 </section>
  110.                
  111.                 <!-- /Main Content -->
  112.                
  113.                
  114.                
  115.                
  116.                 <!-- Sidebar -->
  117.                 <aside class="sidebar col-lg-3 col-md-3 col-sm-3  col-lg-pull-9 col-md-pull-9 col-sm-pull-9">
  118.                     <!-- Categories -->
  119.                     <div class="row sidebar-box green">
  120.                         <div class="col-lg-12 col-md-12 col-sm-12">
  121.                             <div class="sidebar-box-content">
  122.                             <div class="sidebar-box-heading">
  123.                                 <i class="icons icon-folder-open-empty"></i>
  124.                                 <h4><?php _e('Category', 'bigio'); ?></h4>
  125.                             </div>
  126.                            
  127.                                 <ul>
  128.                                  <?php osc_goto_first_category() ; ?>
  129.                                 <?php while ( osc_has_categories() ) { ?>
  130.                                     <li><a href="<?php echo osc_search_category_url() ; ?>"><?php echo osc_category_name() ; ?>                        
  131. (<?php echo osc_category_total_items() ; ?>)</a> </li> <?php } ?>
  132.                                    
  133.                                 </ul>
  134.                                
  135.                             </div>                                
  136.                            
  137.                         </div>
  138.                            
  139.                     </div>
  140.                     <!-- start regions -->
  141.                     <div class="row sidebar-box green">
  142.                        
  143.                         <div class="col-lg-12 col-md-12 col-sm-12">
  144.                             <?php if(osc_count_list_regions() > 0 ) { ?>
  145.                             <div class="sidebar-box-content">
  146.                             <div class="sidebar-box-heading">
  147.                                 <i class="icons icon-location"></i>
  148.                                 <h4><?php _e("Location", 'bigio'); ?></h4>
  149.                             </div>
  150.                                 <ul>
  151.                                  <?php while(osc_has_list_regions() ) { ?>
  152.                                     <li><a href="<?php echo osc_list_region_url(); ?>"><?php echo osc_list_region_name(); ?>                       
  153. (<?php echo osc_list_region_items(); ?>)</a> </li> <?php } ?>
  154.                                    
  155.                                 </ul>
  156.                                
  157.                             </div>                                
  158.                            
  159.                         </div>
  160.                                             <?php } ?>
  161.    
  162.                     </div>
  163.                     <!-- end regions -->
  164.                     <!-- /Categories -->
  165.                 <?php if( osc_get_preference('sidebar-300x250', 'bigio') != '') {?>
  166.                      <div align="center">
  167.                     <?php echo osc_get_preference('sidebar-300x250', 'bigio'); ?>
  168.                     </div>
  169.                 <?php } ?>
  170.                 <br>
  171.                 <?php if( osc_get_preference('facebook-sidebar', 'bigio') != '') {?>
  172.                      <div align="center">
  173.                     <?php echo osc_get_preference('facebook-sidebar', 'bigio'); ?>
  174.                     </div>
  175.                
  176.                 <?php } ?>
  177.                 </aside>
  178.                 <!-- /Sidebar -->
  179.                 <? // php osc_current_web_theme_path('inc.main.php') ; ?>
  180.         <?php osc_current_web_theme_path('footer.php') ; ?>
  181.     </body>
  182. </html>
Advertisement
Add Comment
Please, Sign In to add comment