Support Forums - Classified Ads Script Osclass
Osclass theme support => Sigma Osclass Theme => Topic started by: Yuri on January 17, 2024, 09:30:35 PM
-
In the sigma template, I noticed that there was no line in the ad - 0 people viewed it. I need a line like this.
-
The issue was resolved independently!
If you want to see the view counter line. Add the code anywhere - oc-content/themes/sigma/item.php
<p class="view_number">
<?php _e('Viewed', 'sigma'); ?>:
<strong><?php echo ItemStats::newInstance()->getViews(osc_item_id()); ?></strong>
</p>
-
<?php echo osc_item_views(); ?>
-
Unfortunately this line is not displayed, it shows the number. But I definitely needed a name and quantity. I gave an example on the screenshot.