Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove announcement temporarily #1829

Open
wants to merge 2 commits into
base: alpha
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 27 additions & 27 deletions includes/classes/class-settings-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -2570,22 +2570,22 @@ public function prepare_settings()
],
],
],
'announcement_tab' => [
'type' => 'toggle',
'label' => __('Display Announcements Tab', 'directorist'),
'value' => true,
],
'announcement_tab_text' => [
'type' => 'text',
'label' => __('"Announcement" Tab Label', 'directorist'),
'value' => __('Announcements', 'directorist'),
'show-if' => [
'where' => "announcement_tab",
'conditions' => [
['key' => 'value', 'compare' => '=', 'value' => true],
],
],
],
// 'announcement_tab' => [
// 'type' => 'toggle',
// 'label' => __('Display Announcements Tab', 'directorist'),
// 'value' => true,
// ],
// 'announcement_tab_text' => [
// 'type' => 'text',
// 'label' => __('"Announcement" Tab Label', 'directorist'),
// 'value' => __('Announcements', 'directorist'),
// 'show-if' => [
// 'where' => "announcement_tab",
// 'conditions' => [
// ['key' => 'value', 'compare' => '=', 'value' => true],
// ],
// ],
// ],
'submit_listing_button' => [
'type' => 'toggle',
'label' => __('Display Submit Listing Button', 'directorist'),
Expand Down Expand Up @@ -5255,17 +5255,17 @@ public function prepare_settings()
'label' => __( 'Tools', 'directorist' ),
'icon' => '<i class="fa fa-tools directorist_info"></i>',
'submenu' => apply_filters('atbdp_tools_submenu', [
'announcement_settings' => [
'label' => __('Announcement', 'directorist'),
'icon' => '<i class="fa fa-bullhorn"></i>',
'sections' => apply_filters('atbdp_announcement_settings_controls', [
'send-announcement' => [
'fields' => [
'announcement',
]
],
]),
],
// 'announcement_settings' => [
// 'label' => __('Announcement', 'directorist'),
// 'icon' => '<i class="fa fa-bullhorn"></i>',
// 'sections' => apply_filters('atbdp_announcement_settings_controls', [
// 'send-announcement' => [
// 'fields' => [
// 'announcement',
// ]
// ],
// ]),
// ],

'listings_import' => [
'label' => __('Listings Import/Export', 'directorist'),
Expand Down