Guest User

Untitled

a guest
Mar 9th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.66 KB | None | 0 0
  1. <script type="text/javascript">
  2. function Show_Div(Div_id) {
  3. if (false == $(Div_id).is(':visible')) {
  4. $(Div_id).show(250);
  5. }
  6. else {
  7. $(Div_id).hide(250);
  8. }
  9. }
  10. </script>
  11. <div class="row">
  12.  
  13. <div class="col-lg-12 col-md-12 col-sm-12">
  14. <div class="carousel-heading">
  15. <h4><strong><?php echo search_title(); ?></strong> <a href="javascript:;" onClick="Show_Div(Div_1)"><?php _e('Sort by', 'bigio'); ?>:<i class="icons icon-sort"></i></a></h4>
  16. <div id="Div_1" style="display: none;"> <?php $i = 0; ?>
  17. <?php $orders = osc_list_orders();
  18. foreach($orders as $label => $params) {
  19. $orderType = ($params['iOrderType'] == 'asc') ? '0' : '1'; ?>
  20. <?php if(osc_search_order() == $params['sOrder'] && osc_search_order_type() == $orderType) { ?>
  21. <a class="current" href="<?php echo osc_esc_html(osc_update_search_url($params)); ?>"><?php echo $label; ?></a>
  22. <?php } else { ?>
  23. <a href="<?php echo osc_esc_html(osc_update_search_url($params)); ?>"><?php echo $label; ?></a>
  24. <?php } ?>
  25. <?php if ($i != count($orders)-1) { ?>
  26. |
  27. <?php } ?>
  28. <?php $i++; ?>
  29. <?php } ?></div>
  30. <div class="category-buttons">
  31. <a href="<?php echo osc_esc_html(osc_update_search_url(array('sShowAs'=> 'list'))); ?>"><i class="icons icon-th-list-4 active-button"></i></a>
  32. <a href="<?php echo osc_esc_html(osc_update_search_url(array('sShowAs'=> 'gallery'))); ?>"><i class="icons icon-th-3"></i></a>
  33. </div>
  34.  
  35. </div>
  36. <div class="categories-heading" align="center"><?php osc_run_hook('search_ads_listing_top'); ?></div>
  37. <?php
  38. /*
  39. * Osclass – software for creating and publishing online classified
  40. * advertising platforms
  41. *
  42. * Copyright (C) 2012 OSCLASS
  43. *
  44. * This program is free software: you can redistribute it and/or
  45. * modify it under the terms of the GNU Affero General Public License
  46. * as published by the Free Software Foundation, either version 3 of
  47. * the License, or (at your option) any later version.
  48. *
  49. * This program is distributed in the hope that it will be useful, but
  50. * WITHOUT ANY WARRANTY; without even the implied warranty of
  51. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  52. * GNU Affero General Public License for more details.
  53. *
  54. * You should have received a copy of the GNU Affero General Public
  55. * License along with this program. If not, see <http://www.gnu.org/licenses/>.
  56. */
  57.  
  58. osc_get_premiums();
  59. if(osc_count_premiums() > 0) {
  60. ?>
  61. <!-- start new content -->
  62.  
  63. <?php while(osc_has_premiums()) { ?>
  64. <div class="grid-view product">
  65. <?php if( osc_images_enabled_at_items() ) { ?>
  66. <div class="product-image col-lg-3 col-md-3 col-sm-3">
  67. <?php if(osc_count_premium_resources()) { ?>
  68. <a href="<?php echo osc_premium_url(); ?>"><img src="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>" /></a>
  69. <?php } else { ?>
  70. <img src="<?php echo osc_current_web_theme_url('images/no_photo.png'); ?>" title="" alt="" />
  71. <?php } ?>
  72. </div>
  73. <?php } ?>
  74. <div class="col-lg-9 col-md-9 col-sm-9 product-content no-padding">
  75. <div class="product-info">
  76. <h5> <a href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight( strip_tags( osc_premium_title() ) ); ?></a></h5>
  77. <?php _e("Price", "bigio"); ?>
  78. : <span class="price">
  79. <?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled(osc_premium_category_id()) ) { echo osc_premium_formated_price(); ?>
  80. </span>
  81. <span>&nbsp;<?php } echo osc_premium_city(); ?> (<i class="icons icon-location-7"></i><?php echo osc_premium_region(); ?>) - <i class="icons icon-calendar"></i><?php echo osc_format_date(osc_premium_pub_date()); ?></span>
  82. <div class="rating-box">
  83. <span><strong style="color:#FF9900" title="<?php _e('Premium listings', 'bigio'); ?>"><i class="icons icon-star-3"></i><i class="icons icon-star-3"></i><i class="icons icon-star-3"></i><i class="icons icon-star-3"></i><i class="icons icon-star-3"></i></strong></span>
  84. </div>
  85. <p><?php echo osc_highlight( strip_tags( osc_premium_description() ), 150 ); ?></p>
  86. </div>
  87.  
  88.  
  89.  
  90. <div class="product-actions full-width">
  91. <span >
  92. <span >
  93. <i class="icons icon-folder-open-empty"></i>
  94. <span ><?php $aCategory = osc_get_category('id', osc_premium_category_id());
  95. $parentCategory = osc_get_category('id', $aCategory['fk_i_parent_id']);
  96.  
  97. View::newInstance()->_erase('categories');
  98. View::newInstance()->_erase('subcategories');
  99. View::newInstance()->_exportVariableToView('category', $parentCategory);
  100.  
  101. echo osc_category_name(); ?><i class="icons icon-right-dir"></i> <?php echo osc_item_category();?></span>
  102. </span>
  103. </span>
  104. </div>
  105.  
  106. </div>
  107. </div>
  108. <?php } ?>
  109. </div>
  110.  
  111. </div>
  112. <?php } ?>
  113. <!-- normal ads -->
  114. <div class="row">
  115.  
  116. <div class="col-lg-12 col-md-12 col-sm-12">
  117. <table class="table table-hover">
  118. <thead>
  119. <tr>
  120. <th>Title</th>
  121. <th>Location</th>
  122. <th>Category</th>
  123. <th>Publish Date</th>
  124. <th>Price</th>
  125. </tr>
  126. </thead>
  127. <tbody>
  128. <?php while(osc_has_items()) { $i++; ?>
  129. <tr>
  130. <td><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight( strip_tags( osc_item_title() ) ); ?></a></td>
  131. <td><?php echo osc_item_city(); ?>, <?php echo osc_item_region(); ?></td>
  132. <td><?php echo osc_item_category(); ?></td>
  133. <td><?php echo osc_format_date(osc_premium_pub_date()); ?></td>
  134. <td><?php if( osc_price_enabled_at_items() ) { echo osc_item_formated_price() ; } ?></td>
  135. </tr>
  136. <?php } ?>
  137. </tbody>
  138. </table>
  139. </div>
  140. </div>
Advertisement
Add Comment
Please, Sign In to add comment