mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #1065 from openclassify/muammertop
hide price for unauthorized users
This commit is contained in:
commit
49ef627d6a
@ -1,6 +1,5 @@
|
||||
<div class="slider-text">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row
|
||||
{{ setting_value('visiosoft.module.advs::show_price_to_members_only') ? (not auth_check() ? 'd-none') }}">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 offered-field offered-row">
|
||||
{% set standardPrice = adv.standard_price.value %}
|
||||
{% if standardPrice and standardPrice > 0 %}
|
||||
<div class="d-flex flex-wrap align-items-center">
|
||||
|
||||
@ -48,7 +48,9 @@ class Currency
|
||||
$decimals = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (setting_value('visiosoft.module.advs::show_price_to_members_only') && !auth()->check()){
|
||||
return null;
|
||||
}
|
||||
return $prefix . number_format($number, $decimals, $point, str_replace(' ', ' ', $separator)) . $suffix;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user