diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php index 0c9081ea4..0958d149d 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/sections.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/sections.php @@ -23,6 +23,7 @@ return [ 'ads' => [ 'title' => 'visiosoft.module.advs::section.ads', 'fields' => [ + 'preview_mode', 'show_finish_and_publish_date', 'latest-limit', 'popular_ads_limit', diff --git a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php index 3c1cf4ab6..7f280bd56 100644 --- a/addons/default/visiosoft/advs-module/resources/config/settings/settings.php +++ b/addons/default/visiosoft/advs-module/resources/config/settings/settings.php @@ -485,4 +485,11 @@ return [ 'default_value' => false, ] ], + 'preview_mode' => [ + 'type' => 'anomaly.field_type.boolean', + 'bind' => 'adv.preview_mode', + 'config' => [ + 'default_value' => true, + ], + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php index 038d85f07..9582000ef 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/setting.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/setting.php @@ -133,7 +133,7 @@ return [ ], 'market_place' => [ 'name' => 'Market Place', - 'instructions' => 'If the marketplace is down, your site will act as ecommerce. For example, + 'instructions' => 'If the marketplace is down, your site will act as ecommerce. For example, some fields in the profile such as ads, dopings, messages, sale, packages and store are not visible and removes corporate membership.' ], @@ -280,9 +280,9 @@ return [ 'name' => 'Show Tax Field', 'instructions' => 'When this option is enabled, you can set the tax rate on the ad creation page.' ], - 'hide_contact_created_at' => [ - 'name' => 'Hide Contact Fields For in Create New Ad' - ], + 'hide_contact_created_at' => [ + 'name' => 'Hide Contact Fields For in Create New Ad' + ], 'show_input_flag' => [ 'name' => 'Show Flags on Input', 'instructions' => 'Show flag and description on translatable inputs' @@ -293,5 +293,9 @@ return [ ], 'only_email_login' => [ 'name' => 'Only Email Login' - ] + ], + 'preview_mode' => [ + 'name' => 'Preview Mode', + 'instructions' => 'When this mode is enabled, the ad is previewed by the user.' + ], ]; diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index 59c5044cf..e91f19c60 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -107,7 +107,7 @@