*

Michael

  • ***
  • 42 posts
No color list not worked
« on: December 04, 2017, 06:48:56 PM »
Highlighting works only display tiles. And display a list of sheet color is not working. How to set the color coding for the list sheet? The theme of zara and osclasspay.
padabo.ru

*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #1 on: December 04, 2017, 07:05:28 PM »
loop_single_premium in ZARA

<?php if( $view == 'gallery' ) { ?>

  <div class="simple-prod premium o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <div class="simple-wrap">
      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

      <div class="item-img-wrap">
        <?php
          $root = zara_category_root( osc_premium_category_id() );
          if( $root['s_icon'] <> '' ) {
            $icon = $root['s_icon'];
          } else {
            $def_icons = array(1 => 'fa-gavel', 2 => 'fa-car', 3 => 'fa-book', 4 => 'fa-home', 5 => 'fa-wrench', 6 => 'fa-music', 7 => 'fa-heart', 8 => 'fa-briefcase', 999 => 'fa-soccer-ball-o');
            $icon = $def_icons[$root['pk_i_id']];
          }
        ?>

        <div class="category-link"><span><i class="fa <?php echo $icon; ?>"></i> <?php echo osc_premium_category(); ?></span></div>

        <?php if(osc_count_premium_resources()) { ?>
          <?php if(osc_count_premium_resources() == 1) { ?>
            <a class="img-link" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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>
          <?php } else { ?>
            <a class="img-link" href="<?php echo osc_premium_url(); ?>">
              <?php for ( $i = 0; osc_has_premium_resources(); $i++ ) { ?>
                <?php if($i <= 1) { ?>
                  <img class="lazy link<?php echo $i; ?>" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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 } ?>
              <?php } ?>
            </a>
          <?php } ?>
        <?php } else { ?>
          <a class="img-link" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?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 } ?>

        <a class="orange-but open-item" href="<?php echo osc_premium_url(); ?>" title="<?php echo osc_esc_html(__('Go to listing', 'zara')); ?>"><i class="fa fa-link"></i></a>
        <?php if(osc_count_premium_resources() >= 1) { ?>
          <a class="orange-but open-image" href="<?php echo osc_premium_url(); ?>" title="<?php echo osc_esc_html(__('Pictures overview', 'zara')); ?>"><i class="fa fa-camera"></i></a>
        <?php } else { ?>
          <a class="orange-but open-image disabled" title="<?php echo osc_esc_html(__('No pictures', 'zara')); ?>" href="#"><i class="fa fa-camera"></i></a>
        <?php } ?>
      </div>

      <?php
        $now = time();
        $your_date = strtotime(osc_premium_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);
        }
      ?>

      <div class="premium-label">
        <span><?php _e('premium', 'zara'); ?></span>
      </div>
     
      <a class="title" href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_title(), 100); ?></a>

      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><span><?php echo zara_premium_format_price(osc_premium_price()); ?></span></div>
      <?php } ?>
    </div>
  </div>

<?php } else { ?>

  <div class="list-prod premium o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

    <div class="left">
      <h3 class="resp-title"><a href="<?php echo 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 echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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 && osc_count_premium_resources() > 1) { ?>
              <span class="small-img<?php echo ($i==0 ? ' selected' : ''); ?>" id="bar_img_<?php echo $i; ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_premium_title()); ?>" alt="<?php echo osc_esc_html(osc_premium_title()); ?>" /></span>
            <?php } ?>
          <?php } ?>
        </div>
      <?php } else { ?>
        <a class="big-img no-img" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?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('premium', 'zara'); ?></div>

      <h3><a href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_title(), 80); ?></a></h3>
      <div class="desc <?php if(osc_count_premium_resources() > 0) { ?>has_images<?php } ?>"><?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 echo 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 zara_premium_format_price(osc_premium_price()); ?></div>
      <?php } ?>

      <a class="view round2" href="<?php echo osc_premium_url(); ?>"><?php _e('view', 'zara'); ?></a>
      <a class="category" href="<?php echo 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 } ?>


« Last Edit: December 04, 2017, 07:22:21 PM by Dawid »

*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #2 on: December 04, 2017, 07:22:45 PM »
loop_single.php in ZARA

<?php if( $view == 'gallery' ) { ?>

  <div class="simple-prod o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if(osc_item_is_premium()) { ?> is-premium<?php } ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <div class="simple-wrap">
      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

      <div class="item-img-wrap">
        <?php
          $root = zara_category_root( osc_item_category_id() );
          if( $root['s_icon'] <> '' ) {
            $icon = $root['s_icon'];
          } else {
            $def_icons = array(1 => 'fa-gavel', 2 => 'fa-car', 3 => 'fa-book', 4 => 'fa-home', 5 => 'fa-wrench', 6 => 'fa-music', 7 => 'fa-heart', 8 => 'fa-briefcase', 999 => 'fa-soccer-ball-o');
            $icon = $def_icons[$root['pk_i_id']];
          }
        ?>

        <div class="category-link"><span><i class="fa <?php echo $icon; ?>"></i> <?php echo osc_item_category(); ?></span></div>

        <?php if(osc_count_item_resources()) { ?>
          <?php if(osc_count_item_resources() == 1) { ?>
            <a class="img-link" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
          <?php } else { ?>
            <a class="img-link" href="<?php echo osc_item_url(); ?>">
              <?php for ( $i = 0; osc_has_item_resources(); $i++ ) { ?>
                <?php if($i <= 1) { ?>
                  <img class="lazy link<?php echo $i; ?>" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" />
                <?php } ?>
              <?php } ?>
            </a>
          <?php } ?>
        <?php } else { ?>
          <a class="img-link" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
        <?php } ?>

        <a class="orange-but open-item" href="<?php echo osc_item_url(); ?>" title="<?php echo osc_esc_html(__('Go to listing', 'zara')); ?>"><i class="fa fa-link"></i></a>
        <?php if(osc_count_item_resources() >= 1) { ?>
          <a class="orange-but open-image" href="<?php echo osc_item_url(); ?>" title="<?php echo osc_esc_html(__('Pictures overview', 'zara')); ?>"><i class="fa fa-camera"></i></a>
        <?php } else { ?>
          <a class="orange-but open-image disabled" title="<?php echo osc_esc_html(__('No pictures', 'zara')); ?>" href="#"><i class="fa fa-camera"></i></a>
        <?php } ?>
      </div>

      <?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);
        }
      ?>

      <?php if(osc_item_is_premium()) { ?>
        <div class="premium-label">
          <span><?php _e('premium', 'zara'); ?></span>
        </div>
      <?php } ?>                 
     
      <a class="title" href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 100); ?></a>

      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><span><?php echo osc_item_formated_price(); ?></span></div>
      <?php } ?>
    </div>
  </div>

<?php } else { ?>

  <div class="list-prod o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if(osc_item_is_premium()) { ?> is-premium<?php } ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

    <div class="left">
      <h3 class="resp-title"><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 80); ?></a></h3>

      <?php if(osc_images_enabled_at_items() and osc_count_item_resources() > 0) { ?>
        <a class="big-img" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>

        <div class="img-bar">
          <?php osc_reset_resources(); ?>
          <?php for ( $i = 0; osc_has_item_resources(); $i++ ) { ?>
            <?php if($i < 3 && osc_count_item_resources() > 1) { ?>
              <span class="small-img<?php echo ($i==0 ? ' selected' : ''); ?>" id="bar_img_<?php echo $i; ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></span>
            <?php } ?>
          <?php } ?>
        </div>
      <?php } else { ?>
        <a class="big-img no-img" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
      <?php } ?>
    </div>

    <div class="middle">
      <?php if(osc_item_is_premium()) { ?>
        <div class="flag"><?php _e('premium', 'zara'); ?></div>
      <?php } ?>

      <h3><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 80); ?></a></h3>
      <div class="desc <?php if(osc_count_item_resources() > 0) { ?>has_images<?php } ?>"><?php echo osc_highlight(osc_item_description(), 300); ?></div>
      <div class="loc"><i class="fa fa-map-marker"></i><?php echo zara_location_format(osc_item_country(), osc_item_region(), osc_item_city()); ?></div>
      <div class="author">
        <i class="fa fa-pencil"></i><?php _e('Published by', 'zara'); ?>
        <?php if(osc_item_user_id() <> 0) { ?>
          <a href="<?php echo osc_user_public_profile_url(osc_item_user_id()); ?>"><?php echo osc_item_contact_name(); ?></a>
        <?php } else { ?>
          <?php echo (osc_item_contact_name() <> '' ? osc_item_contact_name() : __('Anonymous', 'zara')); ?>
        <?php } ?>
      </div>
    </div>

    <div class="right">
      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><?php echo osc_item_formated_price(); ?></div>
      <?php } ?>

      <a class="view round2" href="<?php echo osc_item_url(); ?>"><?php _e('view', 'zara'); ?></a>
      <a class="category" href="<?php echo osc_search_url(array('sCategory' => osc_item_category_id())); ?>"><?php echo osc_item_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_item_views() . 'x' . '</span>'; ?>
      </span>
    </div>
  </div>

<?php } ?>

*

ferry

  • ****
  • 155 posts
Re: No color list not worked
« Reply #3 on: December 04, 2017, 07:29:59 PM »
Code: [Select]
  <div class="simple-prod o <?php osc_run_hook("highlight_class"); ?><?php echo $c?><?php if(osc_item_is_premium()) { ?> is-premium<?php ?><?php if($class <> '') { echo ' ' $class; } ?>">
    <div class="simple-wrap<?php osc_run_hook("highlight_class"); ?>">

*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #4 on: December 04, 2017, 07:55:23 PM »
im write ready loop_single.php  and loop_single_premium.php  . change only this line :

<div class = "simple-prod o <? php echo $ c;?> <? php osc_run_hook (" highlight_class "); > <? php if (osc_item_is_premium ()) {?> is-premium <? php}?> <? php if ($ class <> ') {echo' '. $ class;}?> "> 


must add only this :(red ) if use OSC PAY

*

ferry

  • ****
  • 155 posts
Re: No color list not worked
« Reply #5 on: December 04, 2017, 07:55:56 PM »
offcourse it works.  this is for loop-single.php:


Code: [Select]
<?php if( $view == 'gallery' ) { ?>

  <div class="simple-prod o <?php osc_run_hook("highlight_class"); ?><?php echo $c?><?php if(osc_item_is_premium()) { ?> is-premium<?php ?><?php if($class <> '') { echo ' ' $class; } ?>">
    <div class="simple-wrap<?php osc_run_hook("highlight_class"); ?>">
      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

      <div class="item-img-wrap">
        <?php 
          $root 
zara_category_rootosc_item_category_id() ); 
          if( 
$root['s_icon'] <> '' ) {
            
$icon $root['s_icon'];
          } else {
            
$def_icons = array(=> 'fa-gavel'=> 'fa-car'=> 'fa-book'=> 'fa-home'=> 'fa-wrench'=> 'fa-music'=> 'fa-heart'=> 'fa-briefcase'999 => 'fa-soccer-ball-o');
            
$icon $def_icons[$root['pk_i_id']];
          }
        
?>

      <?php if(osc_item_is_premium()) { ?>
<div class="vip">
                          <img class="vip" src="<?php echo osc_current_web_theme_url('images/premium.png') ; ?>" />

      </div>

          <!--<span><?php _e('premium''zara'); ?></span>-->
   
      <?php ?>

        <div class="category-link"><span><i class="fa <?php echo $icon?>"></i> <?php echo osc_item_category(); ?></span></div>

<?php if(osc_count_item_resources()) { ?>
          <?php if(osc_count_item_resources() == 1) { ?>
            <a class="img-link" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
          <?php } else { ?>
            <a class="img-link" href="<?php echo osc_item_url(); ?>">
              <?php for ( $i 0osc_has_item_resources(); $i++ ) { ?>
                <?php if($i <= 1) { ?>
                  <img class="lazy link<?php echo $i?>" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" />
                <?php ?>
              <?php ?>
            </a>
          <?php ?>
        <?php } else { ?>
          <a class="img-link" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
        <?php ?>

        <a class="orange-but open-item" href="<?php echo osc_item_url(); ?>" title="<?php echo osc_esc_html(__('Go to listing''zara')); ?>"><i class="fa fa-link"></i></a>
        <?php if(osc_count_item_resources() >= 1) { ?>
          <a class="orange-but open-image" href="<?php echo osc_item_url(); ?>" title="<?php echo osc_esc_html(__('Pictures overview''zara')); ?>"><i class="fa fa-camera"></i></a>
        <?php } else { ?>
          <a class="orange-but open-image disabled" title="<?php echo osc_esc_html(__('No pictures''zara')); ?>" href="#"><i class="fa fa-camera"></i></a>
        <?php ?>
      </div>

      <?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);
        }
      
?>


                 
     
      <a class="title" href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 60); ?></a>
  <a class="city" href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_city(), 100); ?></a>
      <a class="country" href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_region(), 100); ?></a>

      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><span><?php echo osc_item_formated_price(); ?></span></div>
      <?php ?>
    </div>
  </div>

<?php } else { ?>

  <div class="list-prod o <?php osc_run_hook("highlight_class"); ?><?php echo $c?><?php if(osc_item_is_premium()) { ?> is-premium<?php ?><?php if($class <> '') { echo ' ' $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

    <div class="left">
      <h3 class="resp-title"><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 80); ?></a></h3>

      <?php if(osc_images_enabled_at_items() and osc_count_item_resources() > 0) { ?>
        <a class="big-img" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>

        <div class="img-bar">
          <?php osc_reset_resources(); ?>
          <?php for ( $i 0osc_has_item_resources(); $i++ ) { ?>
            <?php if($i && osc_count_item_resources() > 1) { ?>
              <span class="small-img<?php echo ($i==' selected' ''); ?>" id="bar_img_<?php echo $i?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></span>
            <?php ?>
          <?php ?>
        </div>
      <?php } else { ?>
        <a class="big-img no-img" href="<?php echo osc_item_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" title="<?php echo osc_esc_html(osc_item_title()); ?>" alt="<?php echo osc_esc_html(osc_item_title()); ?>" /></a>
      <?php ?>
    </div>

    <div class="middle">
      <?php if(osc_item_is_premium()) { ?>
        <div class="flag"><?php _e('premium''zara'); ?></div>
      <?php ?>

      <h3><a href="<?php echo osc_item_url(); ?>"><?php echo osc_highlight(osc_item_title(), 80); ?></a></h3>
      <div class="desc <?php if(osc_count_item_resources() > 0) { ?>has_images<?php ?>"><?php echo osc_highlight(osc_item_description(), 300); ?></div>
      <div class="loc"><i class="fa fa-map-marker"></i><?php echo zara_location_format(osc_item_country(), osc_item_region(), osc_item_city()); ?></div>
      <div class="author">
        <i class="fa fa-pencil"></i><?php _e('Published by''zara'); ?>
        <?php if(osc_item_user_id() <> 0) { ?>
          <a href="<?php echo osc_user_public_profile_url(osc_item_user_id()); ?>"><?php echo osc_item_contact_name(); ?></a>
        <?php } else { ?>
          <?php echo (osc_item_contact_name() <> '' osc_item_contact_name() : __('Anonymous''zara')); ?>
        <?php ?>
      </div>
    </div>

    <div class="right">
      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><?php echo osc_item_formated_price(); ?></div>
      <?php ?>

      <a class="view round2" href="<?php echo osc_item_url(); ?>"><?php _e('view''zara'); ?></a>
      <a class="category" href="<?php echo osc_search_url(array('sCategory' => osc_item_category_id())); ?>"><?php echo osc_item_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 == 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_item_views() . 'x' '</span>'?>
      </span>
    </div>
  </div>

<?php ?>


and this foor loop-single-premium.php


Code: [Select]
<?php if( $view == 'gallery' ) { ?>

  <div class="simple-prod premium o <?php osc_run_hook("highlight_class"); ?><?php echo $c?><?php if($class <> '') { echo ' ' $class; } ?>">
    <div class="simple-wrap<?php osc_run_hook("highlight_class"); ?>">
      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

      <div class="item-img-wrap">
        <?php 
          $root 
zara_category_rootosc_premium_category_id() ); 
          if( 
$root['s_icon'] <> '' ) {
            
$icon $root['s_icon'];
          } else {
            
$def_icons = array(=> 'fa-gavel'=> 'fa-car'=> 'fa-book'=> 'fa-home'=> 'fa-wrench'=> 'fa-music'=> 'fa-heart'=> 'fa-briefcase'999 => 'fa-soccer-ball-o');
            
$icon $def_icons[$root['pk_i_id']];
          }
        
?>


<div class="vip">
                          <img class="vip" src="<?php echo osc_current_web_theme_url('images/premium.png') ; ?>" />

      </div>

        <div class="category-link"><span><i class="fa <?php echo $icon?>"></i> <?php echo osc_premium_category(); ?></span></div>

        <?php if(osc_count_premium_resources()) { ?>
          <?php if(osc_count_premium_resources() == 1) { ?>
            <a class="img-link" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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>
          <?php } else { ?>
            <a class="img-link" href="<?php echo osc_premium_url(); ?>">
              <?php for ( $i 0osc_has_premium_resources(); $i++ ) { ?>
                <?php if($i <= 1) { ?>
                  <img class="lazy link<?php echo $i?>" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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 ?>
              <?php ?>
            </a>
          <?php ?>
        <?php } else { ?>
          <a class="img-link" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?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 ?>

        <a class="orange-but open-item" href="<?php echo osc_premium_url(); ?>" title="<?php echo osc_esc_html(__('Go to listing''zara')); ?>"><i class="fa fa-link"></i></a>
        <?php if(osc_count_premium_resources() >= 1) { ?>
          <a class="orange-but open-image" href="<?php echo osc_premium_url(); ?>" title="<?php echo osc_esc_html(__('Pictures overview''zara')); ?>"><i class="fa fa-camera"></i></a>
        <?php } else { ?>
          <a class="orange-but open-image disabled" title="<?php echo osc_esc_html(__('No pictures''zara')); ?>" href="#"><i class="fa fa-camera"></i></a>
        <?php ?>
      </div>
 
 

      <?php
        $now 
time();
        
$your_date strtotime(osc_premium_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);
        }
      
?>

      <a class="title" href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_title(), 100); ?></a>
        <a class="city" href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_city(), 100); ?></a>
        <a class="country" href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_region(), 100); ?></a>


      <?php if( osc_price_enabled_at_items() ) { ?>
        <div class="price"><span><?php echo zara_premium_format_price(osc_premium_price()); ?></span></div>
      <?php ?>
    </div>
  </div>

<?php } else { ?>

  <div class="list-prod premium o <?php osc_run_hook("highlight_class"); ?><?php echo $c?><?php if($class <> '') { echo ' ' $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>

    <div class="left">
      <h3 class="resp-title"><a href="<?php echo 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 echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?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 0osc_has_premium_resources(); $i++ ) { ?>
            <?php if($i && osc_count_premium_resources() > 1) { ?>
              <span class="small-img<?php echo ($i==' selected' ''); ?>" id="bar_img_<?php echo $i?>"><img class="lazy" src="<?php echo osc_resource_thumbnail_url(); ?>" data-original="<?php echo osc_resource_thumbnail_url(); ?>" title="<?php echo osc_esc_html(osc_premium_title()); ?>" alt="<?php echo osc_esc_html(osc_premium_title()); ?>" /></span>
            <?php ?>
          <?php ?>
        </div>
      <?php } else { ?>
        <a class="big-img no-img" href="<?php echo osc_premium_url(); ?>"><img class="lazy" src="<?php echo osc_current_web_theme_url('images/no-image.png'); ?>" data-original="<?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('premium''zara'); ?></div>

      <h3><a href="<?php echo osc_premium_url(); ?>"><?php echo osc_highlight(osc_premium_title(), 80); ?></a></h3>
      <div class="desc <?php if(osc_count_premium_resources() > 0) { ?>has_images<?php ?>"><?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 echo 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 zara_premium_format_price(osc_premium_price()); ?></div>
      <?php ?>

      <a class="view round2" href="<?php echo osc_premium_url(); ?>"><?php _e('view''zara'); ?></a>
      <a class="category" href="<?php echo 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 == 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 ?>

*

ferry

  • ****
  • 155 posts
Re: No color list not worked
« Reply #6 on: December 04, 2017, 07:56:42 PM »
im write ready loop_single.php  and loop_single_premium.php  . change only this line :

<div class = "simple-prod o <? php echo $ c;?> <? php osc_run_hook (" highlight_class "); > <? php if (osc_item_is_premium ()) {?> is-premium <? php}?> <? php if ($ class <> ') {echo' '. $ class;}?> "> 


must add only this :(red ) if use OSC PAY


just copy 2 two i send


then check for the changes

*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #7 on: December 04, 2017, 08:08:03 PM »
go to ....  /public_html/oc-content/themes/zara and find loop.single.php

replace in this file the whole code for the code that I wrote above, the entire code loop_single.php


just replace the code in the file loop_single_premium.php


*

Ivanko

  • *****
  • 388 posts
Re: No color list not worked
« Reply #8 on: December 04, 2017, 08:20:17 PM »
Извините смогу исправить только завтра. Пишу с мобильного.
xer kto tebja tyt ponjal) axaxa)

*

ferry

  • ****
  • 155 posts
Re: No color list not worked
« Reply #9 on: December 04, 2017, 08:26:57 PM »
Volgende keer geef ik gewoon antwoord in het spaans, duits of nederlands

zoek het maar lekker uit verder

*

club4dog

  • ***
  • 25 posts
Re: No color list not worked
« Reply #10 on: December 05, 2017, 12:14:13 AM »
I have the same problem with the veronika theme

*

ferry

  • ****
  • 155 posts
Re: No color list not worked
« Reply #11 on: December 05, 2017, 12:21:52 AM »
you can use the same modifications.

but if you download the update of veronika theme, the changes are allready there

*

MB Themes

Re: No color list not worked
« Reply #12 on: December 05, 2017, 09:50:52 AM »
Could you send me URL where is highlighted item in search? Problem might be that highlighted block is overcovered by different block.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #13 on: December 05, 2017, 05:46:58 PM »
veronika loop_single.php
look in line 3 RED COLOUR


1.<?php if( $view == 'gallery' ) { ?>
2.
3.  <div class="simple-prod o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php
4.    if(osc_item_is_premium()) { ?> is-premium<?php } ?><?php if($class <> '') { echo ' ' . $class; } ?>">
5.   <div class="simple-wrap">
6.      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>


and line : look in line 69 RED COLOUR

69.  <div class="list-prod o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if(osc_item_is_premium()) { ?> is-premium<?php } ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>




*

Dawid

  • ****
  • 149 posts
Re: No color list not worked
« Reply #14 on: December 05, 2017, 05:49:54 PM »
veronika loop_single_premium.php
look in line 3 RED COLOR


1. <?php if( $view == 'gallery' ) { ?>
2.
3.  <div class="simple-prod premium o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <div class="simple-wrap">
      <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>
 


in line: look in line 69 RED COLOR

69. <div class="list-prod premium o<?php echo $c; ?><?php osc_run_hook("highlight_class"); ?><?php if($class <> '') { echo ' ' . $class; } ?>">
    <?php if(function_exists('fi_make_favorite')) { echo fi_make_favorite(); } ?>