/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Video Tutorials'); $this->yt_playlist = $this->©options->get('menu_pages.panels.videos.yt_playlist'); $this->content_body = '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">More Great Video Tutorials <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/videos/')), esc_html($this->instance->plugin_name)) . '</p>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Updates Via Email') . '<em>!</em>'; $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<form' . ' method="post"' . ' target="_blank"' . ' action="' . esc_attr($this->©options->get('menu_pages.panels.email_updates.action_url')) . '"' . '>' . '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/email-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('Get all the latest news & knowledge base articles from %1$s'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->first_name), array('required' => TRUE, 'type' => 'text', 'name' => 'FNAME', 'placeholder' => $this->__('first name...'))) . '</div>' . '</div>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-level-up fa-rotate-90 fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->last_name), array('required' => TRUE, 'type' => 'text', 'name' => 'LNAME', 'placeholder' => $this->__('last name...'))) . '</div>' . '</div>' . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-envelope fa-fw"></i></span>' . $form_fields->markup($form_fields->value($this->©user->email), array('required' => TRUE, 'type' => 'email', 'name' => 'EMAIL', 'placeholder' => $this->__('email address...'))) . '</div>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup($this->__('Subscribe') . ' <i class="fa fa-external-link"></i>', array('type' => 'submit', 'name' => 'subscribe')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Donations Welcome'); $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<form' . ' method="post"' . ' target="_blank"' . ' action="https://www.paypal.com/cgi-bin/webscr"' . '>' . $form_fields->markup($form_fields->¤value('_s-xclick'), array('type' => 'hidden', 'name' => 'cmd')) . $form_fields->markup($form_fields->¤value('WLGJ8L3ZJTFQQ'), array('type' => 'hidden', 'name' => 'hosted_button_id')) . $form_fields->markup($form_fields->¤value('Your site URL'), array('type' => 'hidden', 'name' => 'on1')) . '<div class="form-group">' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-location-arrow fa-fw"></i></span>' . $form_fields->markup($form_fields->¤value($this->©urls->to_wp_home_uri()), array('type' => 'text', 'name' => 'os1')) . '</div>' . '</div>' . $form_fields->markup($form_fields->¤value('EUR'), array('type' => 'hidden', 'name' => 'currency_code')) . '<div class="form-group">' . '<div class="input-group select-input-group">' . '<span class="input-group-addon"><i class="fa fa-heart fa-fw"></i></span>' . $form_fields->markup($form_fields->¤value(5), array('required' => true, 'type' => 'select', 'name' => 'os0', 'options' => array(array('label' => $this->__('€2.00 EUR'), 'value' => '2'), array('label' => $this->__('€5.00 EUR'), 'value' => '5'), array('label' => $this->__('€8.00 EUR'), 'value' => '8'), array('label' => $this->__('€10.00 EUR'), 'value' => '10'), array('label' => $this->__('€15.00 EUR'), 'value' => '15'), array('label' => $this->__('€20.00 EUR'), 'value' => '20'), array('label' => $this->__('€30.00 EUR'), 'value' => '30'), array('label' => $this->__('€40.00 EUR'), 'value' => '40'), array('label' => $this->__('€60.00 EUR'), 'value' => '60'), array('label' => $this->__('€100.00 EUR'), 'value' => '100')))) . '</div>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-gift"></i> ' . $this->__('Donate') . ' <i class="fa fa-external-link"></i>', array('type' => 'submit', 'name' => 'submit')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $call = '©plugin.®update'; $form_fields = $this->©form_fields(array('for_call' => $call)); $this->heading_title = sprintf($this->__('%1$s Updater'), $this->instance->plugin_name); $this->content_body = '<p>' . '<img class="pull-right l-margin" src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/icon-128x128.png')) . '" alt="" />' . sprintf($this->__('This will automatically update your copy of the %1$s Framework to the latest available version. This update routine is powered by WordPress®. Depending on your configuration of WordPress® you might be asked for FTP credentials before the update will begin. The %1$s Framework (which is free) can also be updated from the plugins menu in WordPress®.'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="alert alert-warning">' . sprintf($this->__('<i class="fa fa-support"></i> Please be sure to <strong>BACKUP</strong> your entire file structure <strong>and ALSO</strong> your MySQL database before updating any WordPress® component. Just to be safe <i class="fa fa-smile-o"></i>'), esc_html($this->instance->plugin_name)) . '</div>' . '<form method="post" action="' . esc_attr($this->©menu_page->url($this->menu_page->slug, $this->slug)) . '">' . $this->©action->hidden_inputs_for_call($call, $this::private_type) . $this->©action->get_call_responses_for($call) . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-magic"></i> ' . sprintf($this->__('Update %1$s Framework'), $this->instance->plugin_name), array('type' => 'submit', 'name' => 'update')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->heading_title . ' ' . ($this->©edd_updater->getLicenseStatus() ? '<i class="fa fa-circle" style="color: #008000;"></i>' : '<i class="fa fa-circle" style="color: red;"></i>'); /** * Add the content */ $this->content_body = $this->©views->view($this, 'edd_license_panel.php'); }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Quick Start Video'); $yt_playlist = $this->©options->get('menu_pages.panels.videos.yt_playlist'); if ($yt_playlist) { $this->content_body = $this->©video->yt_playlist_iframe_tag($yt_playlist); } }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $call = '©plugin.®update_sync_pro'; $form_fields = $this->©form_fields(array('for_call' => $call)); $data = $this->©action->get_call_data_for($call); $username = $this->©string->is_not_empty_or($data->username, ''); $password = $this->©string->is_not_empty_or($data->password, ''); $credentials = $this->©plugin->get_site_credentials($username, $password); $this->heading_title = sprintf($this->__('%1$s Pro Add-on (Update/Sync)'), $this->instance->plugin_name); $this->content_body = '<p>' . '<img class="pull-right l-margin" src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/icon-128x128-pro.png')) . '" alt="" />' . sprintf($this->__('This will update (synchronize) your copy of the %1$s Pro add-on; so that it matches your currently installed version of the %1$s Framework.'), esc_html($this->instance->plugin_name)) . '</p>' . '<p>' . sprintf($this->__('While this update routine is powered (in part) by WordPress®, it connects to <em>our</em> remote update server for authentication; and to provide the necessary files.'), esc_html($this->instance->plugin_name)) . '</p>' . '<div class="alert alert-warning">' . sprintf($this->__('<i class="fa fa-support"></i> Please be sure to <strong>BACKUP</strong> your entire file structure <strong>and ALSO</strong> your MySQL database before updating any WordPress® component. Just to be safe <i class="fa fa-smile-o"></i>'), esc_html($this->instance->plugin_name)) . '</div>' . '<form method="post" action="' . esc_attr($this->©menu_page->url($this->menu_page->slug, $this->slug)) . '">' . $this->©action->hidden_inputs_for_call($call, $this::private_type) . $this->©action->get_call_responses_for($call) . '<div class="form-group">' . '<label>' . $this->__('Customer Username *') . '</label>' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-user fa-fw"></i></span>' . $form_fields->markup($form_fields->value($credentials['username']), array('required' => TRUE, 'type' => 'text', 'name' => $this->©action->input_name_for_call_arg(1), 'placeholder' => $this->__('customer username...'))) . '</div>' . '<p class="help-block">' . $this->__('i.e. the username you purchased the Pro add-on with.') . '</p>' . '</div>' . '<div class="form-group">' . '<label>' . $this->__('Customer Password; or Software License Key *') . '</label>' . '<div class="input-group">' . '<span class="input-group-addon"><i class="fa fa-key fa-fw"></i></span>' . $form_fields->markup($form_fields->value($credentials['password']), array('required' => TRUE, 'type' => 'password', 'name' => $this->©action->input_name_for_call_arg(2), 'placeholder' => $this->__('customer password; or software license key...'))) . '</div>' . '<p class="help-block"><i class="fa fa-lightbulb-o"></i> ' . $this->__('for best security, please use your software license key here.') . '</p>' . '</div>' . '<div class="form-group no-b-margin">' . $form_fields->markup('<i class="fa fa-magic"></i> ' . sprintf($this->__('Update %1$s Pro Add-on'), $this->instance->plugin_name), array('type' => 'submit', 'name' => 'update')) . '</div>' . '</form>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Recent News / KB Articles'); $this->content_body = '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/kb-article-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('The most recent news & knowledge base articles from %1$s'), esc_html($this->instance->plugin_name)) . '</p>'; $this->content_body .= '<hr />'; if ($feed_url = $this->©options->get('menu_pages.panels.news_kb.feed_url')) { foreach ($this->©feed->items($feed_url) as $_item) { $this->content_body .= '<div class="em-b-margin clearfix">' . '<p class="text-ellipsis no-b-margin">' . '<a href="' . esc_attr($_item['link']) . '" title="' . esc_attr($_item['title']) . '" target="_blank">' . '<i class="fa fa-external-link"></i> ' . $this->©string->excerpt($_item['title'], 35) . '</a>' . '</p>' . '<p class="opacity-fade font-80 no-b-margin">' . $this->©string->excerpt($_item['excerpt'], 185) . '</p>' . '<p class="font-80 pull-left">' . '<i class="fa fa-user"></i> <em>' . esc_html($_item['author']) . '</em>' . '</p>' . '<p class="font-80 pull-right">' . '<em>' . esc_html($this->©date->i18n('M jS, Y', $_item['time'])) . '</em> <i class="fa fa-calendar"></i>' . '</p>' . '</div>'; } } unset($_item); // Housekeeping. $this->content_body .= '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">%2$s Knowledge Base <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/kb-articles/')), esc_html($this->instance->plugin_name)) . '</p>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Community Forum'); $form_fields = $this->©form_fields(); // Object instance. $this->content_body = '<p>' . '<img src="' . esc_attr($this->©url->to_template_dir_file('/client-side/images/discussion-64x64.png')) . '" class="pull-right l-margin" style="width:64px; height:64px;" alt="" />' . sprintf($this->__('The latest community forum topics related to %1$s'), esc_html($this->instance->plugin_name)) . '</p>'; $this->content_body .= '<hr />'; $this->content_body .= '<div class="feed">'; if ($feed_url = $this->©options->get('menu_pages.panels.community_forum.feed_url')) { foreach ($this->©feed->items($feed_url) as $_item) { $this->content_body .= '<div class="em-b-margin clearfix">' . '<p class="text-ellipsis no-b-margin">' . '<a href="' . esc_attr($_item['link']) . '" title="' . esc_attr($_item['title']) . '" target="_blank">' . '<i class="fa fa-external-link"></i> ' . $this->©string->excerpt($_item['title'], 35) . '</a>' . '</p>' . '<p class="opacity-fade font-80 no-b-margin">' . $this->©string->excerpt($_item['excerpt'], 185) . '</p>' . '<p class="font-80 pull-left">' . '<i class="fa fa-user"></i> <em>' . esc_html($_item['author']) . '</em>' . '</p>' . '<p class="font-80 pull-right">' . '<em>' . esc_html($this->©date->i18n('M jS, Y', $_item['time'])) . '</em> <i class="fa fa-calendar"></i>' . '</p>' . '</div>'; } } unset($_item); // Housekeeping. $this->content_body .= '</div>'; $this->content_body .= '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-default width-100" href="%1$s" target="_blank">All Community Forum Topics <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/community/')), esc_html($this->instance->plugin_name)) . '</p>'; }
/** * Constructor. * * @param object|array $instance Required at all times. * A parent object instance, which contains the parent's ``$instance``, * or a new ``$instance`` array. * * @param \xd_v141226_dev\menu_pages\menu_page * $menu_page A menu page class instance. */ public function __construct($instance, $menu_page) { parent::__construct($instance, $menu_page); $this->heading_title = $this->__('Pro Upgrade') . '<em>!</em>'; $this->content_body = '<p class="text-center">' . sprintf($this->__('<a href="%1$s" target="_blank"><strong>%2$s Pro</strong></a> is a recommended upgrade. Enhance your site! <a href="%1$s" target="_blank">Click here <i class="fa fa-external-link"></i></a> to learn more about this <strong>amazing software</strong>.'), esc_attr($this->©url->to_plugin_site_uri('/pro/')), esc_html($this->instance->plugin_name)) . '</p>' . '<p class="text-center no-b-margin">' . sprintf($this->__('<a class="btn btn-primary width-100" href="%1$s" target="_blank">Upgrade Now <i class="fa fa-external-link"></i></a>'), esc_attr($this->©url->to_plugin_site_uri('/pro/')), esc_html($this->instance->plugin_name)) . '</p>'; }