* @copyright 2013 WPFront.com */ namespace WPFront\Notification_Bar; if (!defined('ABSPATH')) exit(); require_once(dirname(__DIR__) . "/classes/class-wpfront-notification-bar.php"); if (!class_exists('\WPFront\Notification_Bar\WPFront_Notification_Bar_Add_Edit_View')) { class WPFront_Notification_Bar_Add_Edit_View { /** * Controller object * * @var WPFront_Notification_Bar_Controller */ protected $controller; /** * Options object * * @var WPFront_Notification_Bar_Options */ protected $options; /** * Contructor * * @param WPFront_Notification_Bar_Controller $controller */ public function __construct($controller) { $this->controller = $controller; $this->options = $this->controller->get_options(); } public function view() { ?>
title(); ?>

create_meta_boxes(); ?>
controller->get_menu_slug(), 'normal', null); ?>
controller->get_menu_slug(), 'side', null); ?>
nonce_field(); ?> script(); ?>

'Display_Settings', 'title' => __('Display', 'wpfront-notification-bar'), 'render' => 'postbox_notification_bar_display_settings' ], (object) [ 'group_name' => 'Content_Settings', 'title' => __('Content', 'wpfront-notification-bar'), 'render' => 'postbox_notification_bar_content_settings' ], (object) [ 'group_name' => 'Filter_Settings', 'title' => __('Filter', 'wpfront-notification-bar'), 'render' => 'postbox_notification_bar_filter_settings' ], (object) [ 'group_name' => 'Color_Settings', 'title' => __('Color', 'wpfront-notification-bar'), 'render' => 'postbox_notification_bar_color_settings' ], (object) [ 'group_name' => 'CSS_Settings', 'title' => __('CSS', 'wpfront-notification-bar'), 'render' => 'postbox_notification_bar_css_settings' ] ]; } protected function create_meta_boxes() { $groups = $this->get_meta_box_groups(); foreach ($groups as $group) { add_meta_box("postbox-{$group->group_name}", $group->title, array($this, $group->render), $this->controller->get_menu_slug(), 'normal', 'default', $group); } add_meta_box("postbox-side-1", __('Action', 'wpfront-notification-bar'), array($this, 'action_buttons'), $this->controller->get_menu_slug(), 'side', 'default', $group); $this->upgrade_to_pro_metabox($group); wp_nonce_field('closedpostboxes', 'closedpostboxesnonce', false); wp_nonce_field('meta-box-order', 'meta-box-order-nonce', false); } public function upgrade_to_pro_metabox($group) { if(!$this->upgrade_to_pro_metabox_enabled()) { return; } add_meta_box("postbox-side-2", __('Upgrade to Pro', 'wpfront-notification-bar'), array($this, 'free_to_pro'), $this->controller->get_menu_slug(), 'side', 'default', $group); } /** * Whether PRO metabox is required. * * @return boolean */ protected function upgrade_to_pro_metabox_enabled() { return true; } public function action_buttons() { submit_button(); } public function free_to_pro() { ?>

discount_code(); ?>

NBJANEP

name_field(); ?>
  options->preview_mode) { $url = $this->controller->get_preview_url(); ?> echo_help_tooltip($description); } ?>
  echo_help_tooltip($description); ?>  
  echo_help_tooltip($description); ?>
  .fusion-is-sticky .fusion-header".', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
    Display on Scroll" mode.', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
   Display on Scroll" mode.', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
  Keep Closed For" days and show the notification again.', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
   echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>


px   echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
px   echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
message_field(); ?>
  echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>


  nofollow"', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
  noreferrer"', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>
  noopener", used when URL opens in new tab/window. Recommended value is "on", unless it affects your functionality.', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>

scheduled_date(); ?>


is_scheduling_available()) { ?>
    echo_help_tooltip($description); ?>
    echo_help_tooltip($description); ?>





echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>




echo_help_tooltip($description); ?>
echo_help_tooltip($description); ?>
echo_help_tooltip($description); ?>
elementplus_color_picker_template();?>
  echo_help_tooltip($description); ?>
  echo_help_tooltip($description); ?>
false, 'textarea_name' => $name, 'default_editor' => 'html' ); wp_editor($content, $id, $settings); ?> Preview" field to see the output text.', 'wpfront-notification-bar'); $this->echo_help_tooltip($description); ?>

%s', __('Upgrade to Pro.', 'wpfront-notification-bar')); ?>

*/ protected function settings() { return [ 'choose_image' => __('Choose Image', 'wpfront-notification-bar'), 'select_image' => __('Select Image', 'wpfront-notification-bar'), 'x_hours' => __('%1$d hour(s)', 'wpfront-notification-bar'), 'x_hours_minutes' => __('%1$d hour(s) and %2$d minute(s)', 'wpfront-notification-bar'), ]; } /** * Check for PRO * * @return bool */ protected function is_pro() { return false; } protected function script() { ?>