*

Fabio Massaro

  • *****
  • 306 posts
Hi all can you help me how to enter this on the delta theme
« on: November 13, 2022, 11:10:49 AM »
Hi all can you help me how to enter this
on the delta theme

Marked as best answer by frosticek on November 15, 2022, 11:52:39 AM
*

MB Themes

Re: Hi all can you help me how to enter this on the delta theme
« Reply #1 on: November 14, 2022, 05:11:39 PM »
Try this:
Code: [Select]
        <?php 
          $loc 
= @array_values(array_filter(array(osc_search_city(), osc_search_region(), osc_search_country())))[0];
          
$cat = (isset($category['s_name']) ? $category['s_name'] : '');
          
$tit implode(', 'array_filter(array($cat$loc)));

          if(
osc_search_total_items() <= 0) { 
            if(
$tit != '') {
              echo 
sprintf(__('No listings found in %s''delta'), $tit);
            } else {
              echo 
__('No listings found''delta');
            }
            
          } elseif(
$tit != '') {
            echo 
sprintf(__('%s results found in %s''delta'), osc_search_total_items(), $tit);
          } else {
            echo 
sprintf(__('%s results found''delta'), osc_search_total_items());
          }
        
?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Fabio Massaro

  • *****
  • 306 posts
Re: Hi all can you help me how to enter this on the delta theme
« Reply #2 on: November 14, 2022, 09:18:43 PM »
Thank you so much always kind