*

RP

  • ***
  • 38 posts
How I can do to turn this into search-list.php?
« on: June 17, 2016, 05:51:16 PM »
How I can do to turn this into search-list.php?

  <! - PREMIUM ITEMS, DISABLED BY DEFAULT ->
  <? Php if (1 == 2) {?>
  <Php osc_get_premiums (4); ?>
  <? Php while (osc_has_premiums ()) {?>
    <Div class = "list-prod">
      <? Php if (function_exists ( 'fi_make_favorite')) {echo fi_make_favorite (); }?>

      <Div class = "left">
        <H3 class = "resp-title"> <a href="<?php miss osc_premium_url(); ?> "> <? Php echo osc_highlight (osc_premium_title (), 80); ?> </a> </ H3>

        <? Php if (osc_images_enabled_at_items () and osc_count_premium_resources ()> 0) {?>
          <a class="big-img" href="<?php miss osc_premium_url(); ?> "> <img src =" <? php echo osc_resource_thumbnail_url ();?>? "title =" <? php echo osc_esc_html (osc_premium_title ());?> "alt =" <? php echo osc_esc_html (osc_premium_title ());?> "/> </a>

          <Div class = "img-bar">
            <? Php osc_reset_resources (); ?>
            <? Php for ($ i = 0; osc_has_premium_resources (); $ i ++) {?>
              <? Php if ($ i <3) {?>
                <Span class = "small-img" id = "? Bar_img _ <? Php echo $ i;?>"> <Img src = "<? Php echo osc_resource_thumbnail_url ();?>"? Title = "<? Php echo osc_esc_html (osc_premium_title ? ());> "alt =" <? php echo osc_esc_html (osc_premium_title ());> "<? php echo ($ i == 0? 'class =" selected "': ''); ?> /> </ Span>
              <? Php}?>
            <? Php}?>
          </ Div>
        <? Php} else {?>
          <a class="big-img no-img" href="<?php miss osc_premium_url(); ?> "> <img src =" <? php echo osc_current_web_theme_url ( 'images / no-image.png');? ?> "title =" <? php echo osc_esc_html (osc_premium_title ());?> "alt =" <? php echo osc_esc_html (osc_premium_title ());?> "/> </a>
        <? Php}?>
      </ Div>

      <Div class = "middle">
        <Div class = "flag"> <? Php _e ( 'top', 'zara'); ?> </ Div>

        ? <H3> <a href="<?php miss osc_premium_url(); ?> "> <? Php echo osc_highlight (osc_premium_title (), 80); ?> </a> </ H3>
        ? <Div class = "{<? Php? Has_images?}> Desc <? Php if (osc_count_premium_resources ()> 0)>"> <? Php echo osc_highlight (osc_premium_description (), 300); ?> </ Div>
        ? <Div class = "loc"> <i class = "fa fa-map-marker"> </ i> <? Php echo zara_location_format (osc_premium_country (), osc_premium_region (), osc_premium_city ()); ?> </ Div>
        <Div class = "author">
          <I class = "fa fa-pencil"> </ i> <? Php _e ( 'Published by' 'zara'); ?>
          <? Php if (osc_premium_user_id () <> 0) {?>
            <a href="<?php miss osc_user_public_profile_url(osc_premium_user_id()); ?> "> <? php echo osc_premium_contact_name (); ?> </a>
          <? Php} else {?>
            <? Php echo (osc_premium_contact_name () <> '' osc_premium_contact_name (): __ (? 'Anonymous', 'zara')); ?>
          <? Php}?>
        </ Div>
      </ Div>

      <Div class = "right">
        <? Php if (osc_price_enabled_at_items ()) {?>
          ? <Div class = "price"> <? Php echo osc_premium_formated_price (); ?> </ Div>
        <? Php}?>

        <a class="view round2" href="<?php miss osc_premium_url(); ?> "> <? php _e ( 'view', 'zara'); ?> </a>
        <a class="category" href="<?php miss osc_search_url(array('sCategory' => osc_premium_category_id ()));?> "> <? php echo osc_premium_category (); ?> </a>

        <? Php
          $ Now = time ();
          $ Your_date = strtotime (osc_item_pub_date ());
          $ Datediff = $ now - $ your_date;
          $ Item_d = floor ($ datediff / (60 * 60 * 24));

          if ($ item_d == 0) {
            $ Item_date = __ ( 'today', 'zara');
          } Else if ($ item_d == 1) {
            $ Item_date = __ ( 'yesterday', 'zara');
          } Else {
            $ Item_date = date (osc_get_preference ( 'date_format' 'zara_theme'), $ your_date);
          }
        ?>
        <Span class = "date">
          <? Php
            if ($ item_d == 0 or $ item_d == 1) {
              echo __ ( 'published' 'zara'). '<Span>'. $ Item_date. '</ Span>';
            } Else {
              echo __ ( 'published on', 'zara'). '<Span>'. $ Item_date. '</ Span>';
            }
          ?>
        </ Span>

        <Span class = "viewed">
          <? Php echo __ ( 'viewed', 'zara'). '<Span>'. osc_premium_views (). 'X'. '</ Span>'; ?>
        </ Span>
      </ Div>

    </ Div>
  <? Php}?>
  <? Php}?>
  <! - END PREMIUM ITEMS ->
I love to share http://www.koohala.com :) 8)

*

MB Themes

Re: How I can do to turn this into search-list.php?
« Reply #1 on: June 17, 2016, 05:52:33 PM »
@RP
replace
Code: [Select]
<?php if (== 2) { ?>
with:
Code: [Select]
<?php if (== 1) { ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

RP

  • ***
  • 38 posts
Re: How I can do to turn this into search-list.php?
« Reply #2 on: June 17, 2016, 06:06:32 PM »
thanks, works well in search-list.php, how do I activate also in search.php?
I love to share http://www.koohala.com :) 8)

*

MB Themes

Re: How I can do to turn this into search-list.php?
« Reply #3 on: June 17, 2016, 09:01:09 PM »
@RP
There is nothing like that in search.php.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots