*

Anton.D

  • ***
  • 21 posts
highlighting: Patricia + module Robokassa
« on: February 05, 2016, 11:56:51 AM »
From Robokassa module:

Setup highlighting
Need small modifictions of theme files. Need add 2 id with functions in search files. In themes usualy this is search-list.php and search-gallery.php or loop-single.php, loop-single-premium.php
For premium items id="<?php if(function_exists('rbc_premium_get_class_color')){echo rbc_premium_get_class_color(osc_premium_id());}?>" .
For items id="<?php if(function_exists('rbc_get_class_color')){echo rbc_get_class_color(osc_item_id());}?>"
Example, the template Bender:
File loop-single.php - 2-line :
<li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('rbc_get_class_color')){echo rbc_get_class_color(osc_item_id());}?>">
File loop-single-premium.php :
<li class = "listing-card <?php echo $class; if(osc_item_is_premium()){echo'premium';}?>" id="<?php if(function_exists('rbc_premium_get_class_color')){echo rbc_premium_get_class_color(osc_premium_id());}?>">
and add the main.css #colorized{background:#F0E68C!important;} . Color of course you can change as you need.
----------------
original search-list.php code:
Code: [Select]
     <div class="middle">
        <?php if(osc_item_is_premium()) { ?>
          <div class="flag"><?php _e('top''patricia'); ?></div>
        <?php ?>

so, if i make so:
Code: [Select]
<div class="middle">
        <?php if(osc_item_is_premium()) { ?>" id="<?php if(function_exists('rbc_get_class_color')){echo rbc_get_class_color(osc_item_id());}?>
          <div class="flag"><?php _e('top''patricia'); ?></div>
        <?php ?>

i can see only this: http://awesomescreenshot.com/02f5lwlb94  =((

is it instruction for standart template ?

*

MB Themes

Re: highlighting: Patricia + module Robokassa
« Reply #1 on: February 05, 2016, 12:23:48 PM »
@Anton.D
You must place it to some HTML element as it show class.
I.e.
Code: [Select]
<div <?php if(osc_item_is_premium() && function_exists('rbc_get_class_color')){echo rbc_get_class_color(osc_item_id()); }?>
  <div class="flag"><?php _e('top''patricia'); ?></div>
</div>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anton.D

  • ***
  • 21 posts
Re: highlighting: Patricia + module Robokassa
« Reply #2 on: February 12, 2016, 06:37:43 PM »
if
Code: [Select]
      <div class="middle" >
        <div <?php if(osc_item_is_premium() && function_exists('rbc_get_class_color')){echo rbc_get_class_color(osc_item_id()); }?>
  <div class="flag"><?php _e('top''patricia'); ?></div>
</div>
http://awesomescreenshot.com/0825mmpk86

*

Anton.D

  • ***
  • 21 posts
Re: highlighting: Patricia + module Robokassa
« Reply #3 on: February 12, 2016, 06:54:26 PM »
i try to make like this

*

MB Themes

Re: highlighting: Patricia + module Robokassa
« Reply #4 on: February 12, 2016, 08:40:36 PM »
@Anton.D
If you buy plugin with integration required, you need to have skills for that.
We cannot provide support on plugins bought from someone else.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots