/** * Class constructor * * @param Log $log */ public function __construct(Log $log) { parent::__construct($log); $this->args = ['name' => 'contact', 'title' => __('Contact', 'wp-easy-mode'), 'page_title' => __('Contact', 'wp-easy-mode'), 'can_skip' => true]; add_action('wpem_print_header_scripts_' . $this->args['name'], [$this, 'print_header_scripts']); add_action('wpem_print_footer_scripts_' . $this->args['name'], [$this, 'print_footer_scripts']); }
/** * Class constructor * * @param Log $log * @param Image_API $image_api */ public function __construct(Log $log, Image_API $image_api) { $this->image_api = $image_api; parent::__construct($log); $this->args = ['name' => 'theme', 'title' => __('Theme', 'wp-easy-mode'), 'page_title' => __('Choose a Theme', 'wp-easy-mode'), 'can_skip' => false]; add_action('wpem_print_footer_scripts_' . $this->args['name'], [$this, 'print_footer_scripts']); $pointer = new Pointer(); $pos = 1; $count = 2; if ('store' !== wpem_get_site_type()) { $count = 3; $pointer->register(['id' => 'wpem_theme_preview_1', 'target' => '#wpem-header-images-wrapper', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos++, $count), __('Choose a stylish header image for your website.', 'wp-easy-mode'))), 'position' => ['edge' => 'left', 'align' => 'right']], 'btn_primary' => __('Next', 'wp-easy-mode'), 'close_on_load' => true, 'next_pointer' => 'wpem_theme_preview_2']); } $pointer->register(['id' => 'wpem_theme_preview_2', 'target' => '.wp-full-overlay-header .next-theme', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos++, $count), __('Preview different website designs using the the left and right arrows.', 'wp-easy-mode'))), 'position' => ['at' => 'left bottom', 'my' => 'left-63 top']], 'btn_primary' => __('Next', 'wp-easy-mode'), 'close_on_load' => true, 'next_pointer' => 'wpem_theme_preview_3']); $pointer->register(['id' => 'wpem_theme_preview_3', 'target' => '.button-primary.theme-install', 'cap' => 'manage_options', 'options' => ['content' => wp_kses_post(sprintf('<h3>%s</h3><p>%s</p>', sprintf(__('Step %1$s of %2$s', 'wp-easy-mode'), $pos, $count), __("When you've found a design you like, click Select to install it.", 'wp-easy-mode'))), 'position' => ['at' => 'left bottom', 'my' => 'left-34 top+5']], 'btn_primary' => __('Close', 'wp-easy-mode'), 'btn_primary_close' => true, 'close_on_load' => true]); $pointer->register_scripts(); }
public function __construct($plan, $address, $zip, $responsible, $telephone = null, $complement = null, $comment = null, $trackId = null) { $this->plan = $plan; parent::__construct($address, $zip, $responsible, $telephone, $complement, $comment, $trackId); }
/** * Class constructor * * @param Log $log */ public function __construct(Log $log) { parent::__construct($log); $this->args = ['name' => 'start', 'title' => __('Start', 'wp-easy-mode'), 'page_title' => __('Create a WordPress Website', 'wp-easy-mode'), 'can_skip' => false]; }
/** * Class constructor * * @param Log $log * @param Image_API $image_api */ public function __construct(Log $log, Image_API $image_api) { $this->image_api = $image_api; parent::__construct($log); $this->args = ['name' => 'settings', 'title' => __('Settings', 'wp-easy-mode'), 'page_title' => __('Settings', 'wp-easy-mode'), 'can_skip' => false]; }