Osclass Support Forums

Osclass theme support => Gamma Osclass Theme => Topic started by: Luka on December 13, 2022, 09:22:50 AM

Title: Attributes plugin dose not show in premium ads
Post by: Luka on December 13, 2022, 09:22:50 AM
hello, the loop-single-premium.php file is responsible for displaying premium ads on the main page and formatting. I want to add an element from the Attributes plugin, but it is not displayed.  what is the reason please help
Title: Re: Attributes plugin dose not show in premium ads
Post by: Luka on December 13, 2022, 09:27:52 AM
add element in this format
<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(16); } ?>
Title: Re: Attributes plugin dose not show in premium ads
Post by: Luka on December 15, 2022, 11:20:43 AM
can you help me?
Title: Re: Attributes plugin dose not show in premium ads
Post by: MB Themes on December 15, 2022, 02:06:37 PM
@Luka
You must make sure that this function get's osc_premium() instead of osc_item(), because osc_item() is not available for premium listings.
Title: Re: Attributes plugin dose not show in premium ads
Post by: Luka on December 15, 2022, 02:37:35 PM
please tell me how to solve this problem
Title: Re: Attributes plugin dose not show in premium ads
Post by: MB Themes on December 15, 2022, 02:51:54 PM
@Luka
Try this:
Code: [Select]
<?php
View
::newInstance()->_exportVariableToView('item'osc_premium());
if(
function_exists('atr_show_attribute')) {
  echo 
atr_show_attribute(16); 
}
?>

Title: Re: Attributes plugin dose not show in premium ads
Post by: Luka on December 15, 2022, 04:46:02 PM
Thank you very much it worked.