/**
  * Template for plugin info.
  *
  * @return stdClass
  */
 protected static function _plugin_info_template()
 {
     $url_wpglobus_site = WPGlobus_Utils::url_wpglobus_site();
     $template = new stdClass();
     $template->name = '';
     $template->short_description = '';
     $template->author = '<a href="' . $url_wpglobus_site . '">WPGlobus</a>';
     $template->author_profile = $url_wpglobus_site;
     $template->homepage = $url_wpglobus_site;
     $template->slug = '';
     $template->rating = 100;
     $template->num_ratings = 0;
     $template->active_installs = self::FAKE_ACTIVE_INSTALLS;
     $template->version = self::FAKE_VERSION;
     $template->tested = self::$fake_compatible_with;
     $template->icons['default'] = '';
     $template->icons['2x'] = '';
     $template->icons['1x'] = '';
     $template->last_updated = date('c');
     return $template;
 }
예제 #2
0
				<?php 
esc_html_e('Thank you!', 'wpglobus');
?>
				<br/>
				<?php 
esc_html_e('The WPGlobus Team', 'wpglobus');
?>
			</div>
		</div>
	</div>

<?php 
if (!defined('WPGLOBUS_PLUS_VERSION')) {
    ?>
	<?php 
    $_url_wpglobus_plus_store = WPGlobus_Utils::url_wpglobus_site() . 'product/wpglobus-plus/';
    $_url_wpglobus_plus_logo = WPGlobus::$PLUGIN_DIR_URL . 'includes/css/images/wpglobus-plus-logo-150x150.png';
    ?>
	<div class="wpg-bnr wpg-bnr-right">
		<a class="wpg-a-img" href="<?php 
    echo esc_url($_url_wpglobus_plus_store);
    ?>
">
			<img src="<?php 
    echo esc_url($_url_wpglobus_plus_logo);
    ?>
"
			     alt="WPGlobus Plus"/>
		</a>

		<div class="wpg-text-block">
예제 #3
0
 public function setSections()
 {
     $config = WPGlobus::Config();
     /** @var array $wpglobus_option */
     $wpglobus_option = get_option($config->option);
     $fields_home = array();
     /**
      * Display warning if an old Redux is loaded
      *
      * @see  ReduxFrameworkInstances::get_all_instances()
      */
     /** @noinspection PhpUndefinedClassInspection */
     if (version_compare(ReduxFramework::$_version, WPGlobus::$minimalReduxFramework_version) < 0) {
         /** @noinspection PhpUndefinedClassInspection */
         $fields_home[] = array('id' => 'version_warning', 'type' => 'wpglobus_info', 'title' => esc_html__('WARNING: old version of the ReduxFramework is active!', 'wpglobus'), 'desc' => '</br>' . sprintf(esc_html__('WPGlobus settings panel requires ReduxFramework %1$s or later.'), WPGlobus::$minimalReduxFramework_version) . '</br>' . '</br>' . sprintf(esc_html__('The currently active ReduxFramework (version %1$s) was loaded from the %2$s folder.', 'wpglobus'), ReduxFramework::$_version, '<code>' . ReduxFramework::$_dir . '</code>') . '</br>' . '</br>' . '<strong>' . sprintf(esc_html__('We recommend you to install the most recent version of the ReduxFramework plugin: %1$s.', 'wpglobus'), '<a href="https://wordpress.org/plugins/redux-framework/">https://wordpress.org/plugins/redux-framework/</a>') . '</strong>', 'style' => 'critical', 'notice' => false);
     }
     /**
      * The Welcome message
      */
     $fields_home[] = array('id' => 'welcome_intro', 'type' => 'wpglobus_info', 'title' => __('Thank you for installing WPGlobus!', 'wpglobus'), 'desc' => '' . '<br/>' . '&bull; ' . '<a href="' . admin_url() . 'admin.php?page=' . WPGlobus::PAGE_WPGLOBUS_ABOUT . '">' . __('Read About WPGlobus', 'wpglobus') . '</a>' . '<br/>' . '&bull; ' . __('Click the <strong>[Languages]</strong> tab at the left to setup the options.', 'wpglobus') . '<br/>' . '&bull; ' . __('Use the <strong>[Languages Table]</strong> section to add a new language or to edit the language attributes: name, code, flag icon, etc.', 'wpglobus') . '<br/>' . '<br/>' . __('Should you have any questions or comments, please do not hesitate to contact us.', 'wpglobus') . '<br/>' . '<br/>' . '<em>' . __('Sincerely Yours,', 'wpglobus') . '<br/>' . __('The WPGlobus Team', 'wpglobus') . '</em>' . '', 'style' => 'info', 'notice' => false);
     /**
      * For Google Analytics
      */
     $ga_campaign = '?utm_source=wpglobus-admin-clean&utm_medium=link&utm_campaign=talk-to-us';
     $url_wpglobus_site = WPGlobus_Utils::url_wpglobus_site();
     $url_wpglobus_site_submit_ticket = $url_wpglobus_site . 'support/submit-ticket/' . $ga_campaign;
     $fields_home[] = array('id' => 'wpglobus_clean', 'type' => 'wpglobus_info', 'title' => __('Deactivating / Uninstalling', 'wpglobus'), 'desc' => '' . '<p><em>' . sprintf(esc_html(__('We would hate to see you go. If something goes wrong, do not uninstall WPGlobus yet. Please %1$stalk to us%2$s and let us help!', 'wpglobus')), '<a href="' . $url_wpglobus_site_submit_ticket . '" target="_blank">', '</a>') . '</em></p>' . '<hr/>' . '<p><i class="el el-exclamation-sign" style="color:red"></i> <strong>' . esc_html(__('Please note that if you deactivate WPGlobus, your site will show all the languages together, mixed up. You will need to remove all translations, keeping only one language.', 'wpglobus')) . '</strong></p>' . '<p>' . sprintf(__('If there are just a few places, you should edit them manually. To automatically remove all translations at once, you can use the %s. WARNING: The clean-up operation is irreversible, so use it only if you need to completely uninstall WPGlobus.', 'wpglobus'), sprintf(__('%1$sClean-up Tool%2$s', 'wpglobus'), '<a href="' . admin_url() . 'admin.php?page=' . WPGlobus::PAGE_WPGLOBUS_CLEAN . '">', '</a>')) . '</p>' . '', 'style' => 'normal', 'notice' => false);
     $this->sections[] = array('wpglobus_id' => 'welcome', 'title' => __('Welcome!', 'wpglobus'), 'icon' => 'el-icon-globe', 'fields' => $fields_home);
     /*
      * SECTION: languages
      */
     /** @var array $enabled_languages contains all enabled languages */
     $enabled_languages = array();
     /** @var array $defaults_for_enabled_languages Need for the sortable field setup */
     $defaults_for_enabled_languages = array();
     /** @var array $more_languages */
     $more_languages = array();
     foreach ($config->enabled_languages as $code) {
         $lang_in_en = '';
         if (isset($config->en_language_name[$code]) && !empty($config->en_language_name[$code])) {
             $lang_in_en = ' (' . $config->en_language_name[$code] . ')';
         }
         $enabled_languages[$code] = $config->language_name[$code] . $lang_in_en;
         $defaults_for_enabled_languages[$code] = true;
     }
     /** Add language from 'more_language' option to array $enabled_languages */
     if (isset($wpglobus_option['more_languages']) && !empty($wpglobus_option['more_languages'])) {
         $lang = $wpglobus_option['more_languages'];
         $lang_in_en = '';
         if (isset($config->en_language_name[$lang]) && !empty($config->en_language_name[$lang])) {
             $lang_in_en = ' (' . $config->en_language_name[$lang] . ')';
         }
         $enabled_languages[$lang] = $config->language_name[$lang] . $lang_in_en;
         $wpglobus_option['enabled_languages'][$wpglobus_option['more_languages']] = $config->language_name[$wpglobus_option['more_languages']];
         update_option($config->option, $wpglobus_option);
     }
     /** Generate array $more_languages */
     foreach ($config->flag as $code => $file) {
         if (!array_key_exists($code, $enabled_languages)) {
             $lang_in_en = '';
             if (isset($config->en_language_name[$code]) && !empty($config->en_language_name[$code])) {
                 $lang_in_en = ' (' . $config->en_language_name[$code] . ')';
             }
             $more_languages[$code] = $config->language_name[$code] . $lang_in_en;
         }
     }
     /*
      * for miniGLOBUS
      */
     if (empty($this->menus)) {
         $navigation_menu_placeholder = __('No navigation menu', 'wpglobus');
     } else {
         $navigation_menu_placeholder = __('Select navigation menu', 'wpglobus');
     }
     $desc_languages_intro = implode('', array('<ul style="list-style: disc; list-style-position: inside;">', '<li>' . sprintf(__('Place the <strong>main language</strong> of your site at the top of the list by dragging the %s icons.', 'wpglobus'), '<i class="el el-move icon-large"></i>') . '</li>', '<li>' . __('<strong>Uncheck</strong> the languages you do not plan to use.', 'wpglobus') . '</li>', '<li>' . __('<strong>Add</strong> more languages using the section below.', 'wpglobus') . '</li>', '<li>' . __('When done, click the [Save Changes] button.', 'wpglobus') . '</li>', '</ul>'));
     $desc_more_languages = __('Choose a language you would like to enable. <br>Press the [Save Changes] button to confirm.', 'wpglobus') . '<br /><br />';
     // translators: %1$s and %2$s - placeholders to insert HTML link around 'here'
     $desc_more_languages .= sprintf(__('or Add new Language %1$s here %2$s', 'wpglobus'), '<a href="?page=wpglobus_language_edit&action=add">', '</a>');
     $this->sections[] = array('wpglobus_id' => 'languages', 'title' => esc_html__('Languages', 'wpglobus'), 'icon' => 'el-icon-wrench-alt', 'fields' => array(array('id' => 'languages_intro', 'type' => 'wpglobus_info', 'title' => esc_html__('Instructions:', 'wpglobus'), 'subtitle' => esc_html__('NOTE: you cannot remove the main language.', 'wpglobus'), 'desc' => $desc_languages_intro, 'style' => 'info', 'notice' => false), array('id' => 'enabled_languages', 'type' => 'wpglobus_sortable', 'title' => __('Enabled Languages', 'wpglobus'), 'compiler' => 'false', 'subtitle' => __('These languages are currently enabled on your site.', 'wpglobus'), 'options' => $enabled_languages, 'default' => $defaults_for_enabled_languages, 'mode' => 'checkbox'), array('id' => 'more_languages', 'type' => 'wpglobus_select', 'title' => __('Add Languages', 'wpglobus'), 'compiler' => 'false', 'mode' => false, 'desc' => $desc_more_languages, 'placeholder' => __('Select a language', 'wpglobus'), 'options' => $more_languages), array('id' => 'show_flag_name', 'type' => 'wpglobus_select', 'title' => __('Language Selector Mode', 'wpglobus'), 'compiler' => 'false', 'mode' => false, 'desc' => __('Choose the way language name and country flag are shown in the drop-down menu', 'wpglobus'), 'select2' => array('allowClear' => false, 'minimumResultsForSearch' => -1), 'options' => array('code' => __('Two-letter Code with flag (en, ru, it, etc.)', 'wpglobus'), 'full_name' => __('Full Name (English, Russian, Italian, etc.)', 'wpglobus'), 'name' => __('Full Name with flag (English, Russian, Italian, etc.)', 'wpglobus'), 'empty' => __('Flags only', 'wpglobus')), 'default' => 'code'), array('id' => 'use_nav_menu', 'type' => 'wpglobus_select', 'title' => __('Language Selector Menu', 'wpglobus'), 'compiler' => 'false', 'mode' => false, 'desc' => __('Choose the navigation menu where the language selector will be shown', 'wpglobus'), 'select2' => array('allowClear' => true, 'minimumResultsForSearch' => -1), 'options' => $this->menus, 'placeholder' => $navigation_menu_placeholder), array('id' => 'selector_wp_list_pages', 'type' => 'wpglobus_checkbox', 'title' => __('"All Pages" menus Language selector', 'wpglobus'), 'subtitle' => __('(Found in some themes)', 'wpglobus'), 'desc' => __('Adds language selector to the menus that automatically list all existing pages (using `wp_list_pages`)', 'wpglobus'), 'compiler' => 'false', 'default' => 1, 'options' => array('show_selector' => __('Enable', 'wpglobus'))), array('id' => 'css_editor', 'type' => 'wpglobus_ace_editor', 'title' => __('Custom CSS', 'wpglobus'), 'mode' => 'css', 'theme' => 'chrome', 'compiler' => 'false', 'desc' => __('Here you can enter the CSS rules to adjust the language selector menu for your theme. Look at the examples in the `style-samples.css` file.', 'wpglobus'), 'subtitle' => __('(Optional)', 'wpglobus'), 'default' => '', 'rows' => 15)));
     /*
      *	SECTION: Language table
      */
     $this->sections[] = array('wpglobus_id' => 'language_table', 'title' => __('Languages table', 'wpglobus'), 'icon' => 'el-icon-th-list', 'fields' => array(array('id' => 'description', 'type' => 'wpglobus_info', 'title' => __('Use this table to add, edit or delete languages.', 'wpglobus'), 'subtitle' => __('NOTE: you cannot remove the main language.', 'wpglobus'), 'style' => 'info', 'notice' => false), array('id' => 'lang_new', 'type' => 'table')));
     /**
      *    SECTION: Post types
      */
     $post_types = get_post_types(array('_builtin' => true));
     $fields = array(array('id' => 'description', 'type' => 'wpglobus_info', 'title' => __('Uncheck to disable WPGlobus', 'wpglobus'), 'style' => 'info', 'notice' => false));
     $default = array();
     $open_post_types = array();
     foreach ($post_types as $post_type) {
         if (!in_array($post_type, array('attachment', 'revision', 'nav_menu_item'), true)) {
             $open_post_types[$post_type] = $post_type;
             $default[$post_type] = true;
         }
     }
     $fields[] = array('id' => 'post_type', 'type' => 'wpglobus_checkbox', 'compiler' => false, 'default' => $default, 'options' => $open_post_types);
     $fields[] = array('id' => 'custom_post_types', 'type' => 'post_types');
     $this->sections[] = array('wpglobus_id' => 'post_types', 'title' => __('Post types', 'wpglobus'), 'icon' => 'el-icon-th-list', 'fields' => $fields);
     /**
      * SECTION: Add-ons
      * We need add it for menu item only
      */
     $this->sections[] = array('wpglobus_id' => 'add_ons', 'title' => __('Add-ons', 'wpglobus'), 'icon' => 'el-icon-th-list', 'class' => 'wpglobus-addons-group hidden');
     /**
      * Filter the array of sections.
      *
      * @since 1.0.11
      *
      * @param array $sections Array of Redux sections.
      */
     $this->sections = apply_filters('wpglobus_option_sections', $this->sections);
 }
예제 #4
0
    protected static function important_notes()
    {
        ?>
		<h4 class="dashicons-before dashicons-info highlight">
			<?php 
        esc_html_e('Important notes:', 'wpglobus');
        ?>
		</h4>
		<ul class="wpglobus-important">

			<li>
				<?php 
        _e('WPGlobus only supports the localization URLs in the form of <code>example.com/xx/page/</code>. We do not plan to support subdomains <code>xx.example.com</code> and language queries <code>example.com?lang=xx</code>.', 'wpglobus');
        // WPCS: XSS ok.
        ?>
			</li>
			<li>
				<?php 
        _e('Some themes and plugins are <strong>not multilingual-ready</strong>.', 'wpglobus');
        // WPCS: XSS ok.
        ?>
				<?php 
        esc_html_e('They might display some texts with no translation, or with all languages mixed together.', 'wpglobus');
        ?>
				<?php 
        /* translators: %s are used to insert HTML link. Keep them in place. */
        printf(esc_html__('Please contact the theme / plugin author. If they are unable to assist, consider %s hiring the WPGlobus Team %s to write a custom code for you.', 'wpglobus'), '<a href="' . esc_url(WPGlobus_Utils::url_wpglobus_site() . 'professional-support/' . self::QA_CAMPAIGN) . '">', '</a>');
        ?>
			</li>

		</ul>
		<?php 
    }
예제 #5
0
        /**
         * Output the clean screen.
         *
         * @return void
         */
        public static function screen()
        {
            /**
             * For Google Analytics
             */
            $ga_campaign = '?utm_source=wpglobus-admin-clean&utm_medium=link&utm_campaign=clean-up-tool';
            $url_wpglobus_site = WPGlobus_Utils::url_wpglobus_site();
            //			$url_wpglobus_site_home        = $url_wpglobus_site . $ga_campaign;
            $url_wpglobus_site_contact = $url_wpglobus_site . 'pg/contact-us/' . $ga_campaign;
            $url_wpglobus_site_quick_start = $url_wpglobus_site . 'quick-start/' . $ga_campaign;
            //			$url_wpglobus_site_faq         = $url_wpglobus_site . 'faq/' . $ga_campaign;
            //			$url_wpglobus_site_pro_support = $url_wpglobus_site . 'professional-support/' . $ga_campaign;
            $url_wpglobus_logo = WPGlobus::$PLUGIN_DIR_URL . 'includes/css/images/wpglobus-logo-180x180.png';
            ?>
			<style>
				.wp-badge.wpglobus-badge {
					background:      #ffffff url(<?php 
            echo $url_wpglobus_logo;
            ?>
) no-repeat;
					background-size: contain;
				}
			</style>
			<div class="wrap about-wrap wpglobus-about-wrap clean-wrap wpglobus-clean">
				<h1 class="wpglobus"><span class="wpglobus-wp">WP</span>Globus
					<span class="wpglobus-version"><?php 
            echo WPGLOBUS_VERSION;
            ?>
</span>
				</h1>

				<div class="wpglobus-motto"><?php 
            esc_html_e('Multilingual Everything!', 'wpglobus');
            ?>
</div>

				<div class="about-text">
					<?php 
            esc_html_e('WPGlobus is a family of WordPress plugins assisting you in making multilingual WordPress blogs and sites.', 'wpglobus');
            ?>
				</div>

				<div class="wp-badge wpglobus-badge"></div>

				<h2 class="nav-tab-wrapper">
					<a href="#" class="nav-tab nav-tab-active">
						<?php 
            _e('Clean-up Tool', 'wpglobus');
            ?>
					</a>
					<a href="<?php 
            echo esc_url($url_wpglobus_site_quick_start);
            ?>
"
					   target="_blank"
					   class="nav-tab">
						<?php 
            _e('Guide', 'wpglobus');
            ?>
					</a>
					<a href="admin.php?page=wpglobus_options" class="nav-tab">
						<?php 
            _e('Settings');
            ?>
					</a>
					<a href="admin.php?page=wpglobus_options&amp;tab=4" class="nav-tab">
						<?php 
            _e('Add-ons', 'wpglobus');
            ?>
					</a>
					<a href="<?php 
            echo esc_url($url_wpglobus_site_contact);
            ?>
"
					   class="nav-tab">
						<?php 
            _e('Support', 'wpglobus');
            ?>
					</a>
				</h2>

				<div style="color: white; background-color: red; padding: .5em; margin-top: 1em;">
					<?php 
            esc_html_e('WARNING: this operation is non-reversible. It is strongly recommended that you backup your database before proceeding.', 'wpglobus');
            ?>
				</div>

				<div style="padding: .5em"><strong>
						<?php 
            esc_html_e('This tool should be used only if you plan to completely uninstall WPGlobus. By running it, you will remove ALL translations you have entered to your post, pages, etc., keeping only the MAIN language texts. Please make sure that all entries have some content in the main language. Otherwise, you might end up with empty titles, no content, no excerpts, blank comments and so on.', 'wpglobus');
            ?>
					</strong></div>

				<div style="color:red; background-color: white; padding: .5em">
					<?php 
            echo esc_html(sprintf(__('The main language is currently set to %1$s (%2$s). ALL TEXTS THAT ARE NOT IN %1$s WILL BE DELETED! To change the main language, please go to Settings.', 'wpglobus'), WPGlobus::Config()->en_language_name[WPGlobus::Config()->default_language], WPGlobus::Config()->default_language));
            ?>
				</div>

				<hr />
				<h3 id="about-to-clean">
					<?php 
            esc_html_e('You are about to clean the content of the following database tables:', 'wpglobus');
            ?>
				</h3>

				<?php 
            echo self::get_table_list();
            ?>

				<hr />

				<h3>
					<?php 
            esc_html_e('The operations log', 'wpglobus');
            ?>
				</h3>
				<div>
					<?php 
            esc_html_e('We are going to write a detailed log of all the database changes performed. It should help in the case you need to restore something important. The log will be written to the file:', 'wpglobus');
            ?>
				</div>
				<br />
				<code>
					<?php 
            echo self::$log_file;
            ?>
				</code>
				<br />
				<br />
				<label>
					<input type="checkbox" name="wpglobus-clean-log" id="wpglobus-clean-log" checked="checked" />
					<?php 
            esc_html_e('Uncheck if you do not want to write the operations log (we recommend to keep it checked)', 'wpglobus');
            ?>

				</label>
				<hr />
				<h3>
					<?php 
            esc_html_e('You have been warned...', 'wpglobus');
            ?>
				</h3>
					<?php 
            esc_html_e('Please confirm by checking the box below:', 'wpglobus');
            ?>
				<div style="color:red; background-color: white; padding: .5em; margin: 1em 0;">
					<?php 
            esc_html_e('I have read and understood everything written on this page. I am aware that by using this tool I may loose some content of my website. I have made a database backup and know how to restore it if necessary. I am fully responsible for the results.', 'wpglobus');
            ?>
				</div>

				<label><input type="checkbox" name="wpglobus-clean-activate" id="wpglobus-clean-activate" /><?php 
            esc_html_e('YES, I CONFIRM', 'wpglobus');
            ?>
				</label>
				<div class="return-to-dashboard">
					<a id="wpglobus-clean-button" class="button button-primary hidden" href="#about-to-clean">
						<?php 
            _e('Process with the Clean-up', 'wpglobus');
            ?>
					</a>
				</div>

			</div>

			<?php 
        }
    /**
     * Output the about screen.
     */
    public static function about_screen()
    {
        /**
         * For Google Analytics
         */
        $ga_campaign = '?utm_source=wpglobus-admin-about&utm_medium=link&utm_campaign=activate-plugin';
        $url_wpglobus_site = WPGlobus_Utils::url_wpglobus_site();
        $url_wpglobus_site_home = $url_wpglobus_site . $ga_campaign;
        $url_wpglobus_site_contact = $url_wpglobus_site . 'pg/contact-us/' . $ga_campaign;
        $url_wpglobus_site_quick_start = $url_wpglobus_site . 'quick-start/' . $ga_campaign;
        $url_wpglobus_site_faq = $url_wpglobus_site . 'faq/' . $ga_campaign;
        $url_wpglobus_site_pro_support = $url_wpglobus_site . 'professional-support/' . $ga_campaign;
        $url_wpglobus_logo = WPGlobus::$PLUGIN_DIR_URL . 'includes/css/images/wpglobus-logo-180x180.png';
        ?>
		<style>
			.wp-badge.wpglobus-badge {
				background: #ffffff url(<?php 
        echo $url_wpglobus_logo;
        ?>
) no-repeat;
				background-size: contain;
			}
		</style>
		<div class="wrap about-wrap">
			<h1 class="wpglobus"><span class="wpglobus-wp">WP</span>Globus
				<span class="wpglobus-version"><?php 
        echo WPGLOBUS_VERSION;
        ?>
</span>
			</h1>

			<h2 class="wpglobus-motto"><?php 
        esc_html_e('Multilingual Everything!', 'wpglobus');
        ?>
</h2>

			<div class="about-text">
				<?php 
        esc_html_e('WPGlobus is a family of WordPress plugins assisting you in making multilingual WordPress blogs and sites.', 'wpglobus');
        ?>
			</div>

			<div class="wp-badge wpglobus-badge"></div>

			<h2 class="nav-tab-wrapper">
				<a href="#" class="nav-tab nav-tab-active">
					<?php 
        _e('Quick Start', 'wpglobus');
        ?>
				</a>
				<a href="<?php 
        echo esc_url($url_wpglobus_site_quick_start);
        ?>
"
				   target="_blank"
				   class="nav-tab">
					<?php 
        _e('Guide', 'wpglobus');
        ?>
				</a>
				<a href="admin.php?page=wpglobus_options" class="nav-tab">
					<?php 
        _e('Settings');
        ?>
				</a>
				<a href="admin.php?page=wpglobus-addons" class="nav-tab">
					<?php 
        _e('Add-ons', 'wpglobus');
        ?>
				</a>
				<a href="<?php 
        echo esc_url($url_wpglobus_site_contact);
        ?>
"
				   class="nav-tab">
					<?php 
        _e('Support', 'wpglobus');
        ?>
				</a>
			</h2>

			<div class="feature-main feature-section col two-col">
				<div>
					<h4><?php 
        _e('Easy as 1-2-3:', 'wpglobus');
        ?>
</h4>
					<ul class="wpglobus-checkmarks">
						<li><?php 
        _e('Go to WPGlobus admin menu and choose the countries / languages;', 'wpglobus');
        ?>
</li>
						<li><?php 
        _e('Enter the translations to the posts, pages, categories, tags and menus using a clean and simple interface.', 'wpglobus');
        ?>
</li>
						<li><?php 
        _e('Switch languages at the front-end using a drop-down menu with language names and country flags.', 'wpglobus');
        ?>
</li>
					</ul>
				</div>
				<div class="last-feature">
					<h4><?php 
        _e('Links:', 'wpglobus');
        ?>
</h4>
					<ul>
						<li>&bull; <a href="<?php 
        echo esc_url($url_wpglobus_site_home);
        ?>
"
						              target="_blank">WPGlobus.com</a></li>
						<li>&bull; <a href="<?php 
        echo esc_url($url_wpglobus_site_quick_start);
        ?>
"
						              target="_blank"><?php 
        _e('Guide', 'wpglobus');
        ?>
</a></li>
						<li>&bull; <a href="<?php 
        echo esc_url($url_wpglobus_site_faq);
        ?>
"
						              target="_blank"><?php 
        _e('FAQs', 'wpglobus');
        ?>
</a></li>
						<li>&bull; <a href="<?php 
        echo esc_url($url_wpglobus_site_contact);
        ?>
"
						              target="_blank"><?php 
        _e('Contact Us', 'wpglobus');
        ?>
</a></li>
						<li>&bull; <a href="https://wordpress.org/support/view/plugin-reviews/wpglobus?filter=5"
						              target="_blank"><?php 
        _e('Please give us 5 stars!', 'wpglobus');
        ?>
</a>
							<span class="wpglobus-stars">&#x2606;&#x2606;&#x2606;&#x2606;&#x2606;</span></li>

					</ul>
				</div>
			</div>

			<hr/>

			<ul class="wpglobus-important">

				<li>
					<?php 
        _e("WPGlobus only supports the localization URLs in the form of <code>example.com/xx/page/</code>. We do not plan to support subdomains <code>xx.example.com</code> and language queries <code>example.com?lang=xx</code>.", 'wpglobus');
        ?>
				</li>
				<li>
					<?php 
        _e('Some themes and plugins are <strong>not multilingual-ready</strong>.', 'wpglobus');
        ?>
					<?php 
        _e('They might display some texts with no translation, or with all languages mixed together.', 'wpglobus');
        ?>
					<?php 
        /* translators: %s are used to insert HTML link. Keep them in place. */
        printf(__('Please contact the theme / plugin author. If they are unable to assist, consider %s hiring the WPGlobus Team %s to write a custom code for you.', 'wpglobus'), '<a href="' . $url_wpglobus_site_pro_support . '">', '</a>');
        ?>
				</li>

			</ul>

			<hr/>

			<div class="return-to-dashboard">
				<a class="button button-primary" href="admin.php?page=wpglobus_options">
					<?php 
        _e('Go to WPGlobus Settings', 'wpglobus');
        ?>
				</a>
			</div>
		</div>

		<?php 
    }
 /**
  * Get content for WPGlobusTextBox element
  *
  * @param string $control
  * @param mixed  $attrs
  *
  * @return string
  */
 public static function get_content($control = '', $attrs = null)
 {
     if ('' == $control) {
         return '';
     }
     $content = '';
     switch ($control) {
         case 'settings_section_help':
             $content = __('Here you can specify which fields should be considered multilingual by WPGlobus. To exclude a field, uncheck it and then press the button below.', 'wpglobus');
             break;
         case 'welcome_message':
             $content = '<div style="width:100%;">' . __('Thank you for installing WPGlobus!', 'wpglobus') . '<br/>' . '&bull; ' . '<a style="text-decoration:underline;" target="_blank" href="' . admin_url() . 'admin.php?page=' . WPGlobus::PAGE_WPGLOBUS_ABOUT . '">' . __('Read About WPGlobus', 'wpglobus') . '</a>' . '<br/>' . '&bull; ' . __('Click the <strong>[Languages]</strong> tab at the left to setup the options.', 'wpglobus') . '<br/>' . '<br/>' . __('Should you have any questions or comments, please do not hesitate to contact us.', 'wpglobus') . '<br/>' . '<br/>' . '<em>' . __('Sincerely Yours,', 'wpglobus') . '<br/>' . __('The WPGlobus Team', 'wpglobus') . '</em>' . '</div>';
             break;
         case 'deactivate_message':
             /**
              * For Google Analytics
              */
             $ga_campaign = '?utm_source=wpglobus-admin-clean&utm_medium=link&utm_campaign=talk-to-us';
             $url_wpglobus_site = WPGlobus_Utils::url_wpglobus_site();
             $url_wpglobus_site_submit_ticket = $url_wpglobus_site . 'support/submit-ticket/' . $ga_campaign;
             $content = '<p><em>' . sprintf(esc_html(__('We would hate to see you go. If something goes wrong, do not uninstall WPGlobus yet. Please %1$stalk to us%2$s and let us help!', 'wpglobus')), '<a href="' . $url_wpglobus_site_submit_ticket . '" target="_blank" style="text-decoration:underline;">', '</a>') . '</em></p>' . '<hr/>' . '<p><i class="el el-exclamation-sign" style="color:red"></i> <strong>' . esc_html(__('Please note that if you deactivate WPGlobus, your site will show all the languages together, mixed up. You will need to remove all translations, keeping only one language.', 'wpglobus')) . '</strong></p>' . '<p>' . sprintf(__('If there are just a few places, you should edit them manually. To automatically remove all translations at once, you can use the %s. WARNING: The clean-up operation is irreversible, so use it only if you need to completely uninstall WPGlobus.', 'wpglobus'), sprintf(__('%1$sClean-up Tool%2$s', 'wpglobus'), '<a style="text-decoration:underline;" target="_blank" href="' . admin_url() . 'admin.php?page=' . WPGlobus::PAGE_WPGLOBUS_CLEAN . '">', '</a>')) . '</p>';
             break;
         case 'sorry_message':
             $content = '<p><strong>' . sprintf(__('Sorry, WPGlobus customizer doesn\'t support current theme %s.', 'wpglobus'), '<em>' . $attrs->__get('name') . '</em>') . '<br />' . sprintf(__('Please use %1$sWPGlobus options page%2$s instead.', 'wpglobus'), '<a style="text-decoration:underline;" target="_blank" href="' . admin_url() . 'admin.php?page=' . WPGlobus::OPTIONS_PAGE_SLUG . '&tab=0">', '</a>') . '</strong></p>';
             break;
     }
     return $content;
 }
		</a>
		<a href="<?php 
echo esc_url(WPGlobus_Utils::url_wpglobus_site() . 'faq/');
?>
"
		   target="_blank"
		   class="nav-tab">
			<?php 
WPGlobus_Admin_Page::nav_tab_icon_e('FAQ');
?>
			<?php 
esc_html_e('FAQ', 'wpglobus');
?>
		</a>
		<a href="<?php 
echo esc_url(WPGlobus_Utils::url_wpglobus_site());
?>
"
		   target="_blank"
		   class="nav-tab">
			<?php 
WPGlobus_Admin_Page::nav_tab_icon_e('globe');
?>
			<?php 
echo esc_html('WPGlobus.com');
?>
		</a>
	</h2>
	<div class="feature-main feature-section col two-col">
		<div class="col">
			<p><em>
				<?php 
esc_html_e('Thank you!', 'wpglobus');
?>
				<br/>
				<?php 
esc_html_e('The WPGlobus Team', 'wpglobus');
?>
			</div>
		</div>
	</div>

<?php 
if (!defined('WPGLOBUS_PLUS_VERSION')) {
    ?>
	<?php 
    $_url_wpglobus_plus_store = WPGlobus_Utils::url_wpglobus_site() . 'shop/extensions/wpglobus-plus/';
    $_url_wpglobus_plus_logo = WPGlobus::URL_WPGLOBUS_SITE . 'app/uploads/2015/08/wpglobus-plus-logo-150x150.png';
    ?>
	<div class="wpg-bnr wpg-bnr-right">
		<a class="wpg-a-img" href="<?php 
    echo $_url_wpglobus_plus_store;
    ?>
">
			<img src="<?php 
    echo $_url_wpglobus_plus_logo;
    ?>
"
			     alt="WPGlobus Plus"/>
		</a>

		<div class="wpg-text-block">