PluginProbe
WPGlobus / trunk
WPGlobus vtrunk
3.0.5 3.0.4 trunk 2.1.15 2.10.10 2.12.2 2.2.35 2.3.12 2.4.17 2.5.23 2.6.8 2.7.14 2.8.11 3.0.0 3.0.1 3.0.2 3.0.3
wpglobus / includes / admin / class-wpglobus-about.php

class-wpglobus-about.php in WPGlobus trunk, at includes/admin/class-wpglobus-about.php

205 lines 6.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Class WPGlobus_About
4 *
5 * @package WPGlobus\Admin
6 */
7
8 use WPGLIB\Txt;
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit; // Exit if accessed directly
12 }
13
14 class WPGlobus_About {
15
16 /**
17 * For Google Analytics
18 */
19 const QA_CAMPAIGN = '?utm_source=wpglobus-admin-about&utm_medium=link&utm_campaign=activate-plugin';
20
21 /**
22 * Output the about screen.
23 */
24 public static function about_screen() {
25
26 WPGlobus_Admin_Page::print_header();
27
28 ?>
29 <h2 class="nav-tab-wrapper">
30 <a href="#" class="nav-tab nav-tab-active">
31 <?php esc_html_e( 'Quick Start', 'wpglobus' ); ?>
32 </a>
33 <a href="<?php echo esc_url( WPGlobus_Admin_Page::url_settings() ); ?>"
34 class="nav-tab">
35 <?php WPGlobus_Admin_Page::nav_tab_icon_e( 'Settings' ); ?>
36 <?php Txt::t_html_e( 'Settings' ); ?>
37 </a>
38 <?php
39 /**
40 * Removed
41 *
42 * @since 3.0.0
43 */
44 ?>
45 <?php if ( 0 ) : ?>
46 <a href="<?php echo esc_url( WPGlobus_Admin_Page::url_addons() ); ?>"
47 class="nav-tab">
48 <?php WPGlobus_Admin_Page::nav_tab_icon_e( 'Add-ons' ); ?>
49 <?php esc_html_e( 'Add-ons', 'wpglobus' ); ?>
50 </a>
51 <?php endif; ?>
52 <a href="<?php echo esc_url( WPGlobus_Utils::url_wpglobus_site() . 'quick-start/' . self::QA_CAMPAIGN ); ?>"
53 target="_blank"
54 class="nav-tab">
55 <?php WPGlobus_Admin_Page::nav_tab_icon_e( 'Guide' ); ?>
56 <?php esc_html_e( 'Guide', 'wpglobus' ); ?>
57 </a>
58 <a href="<?php echo esc_url( WPGlobus_Utils::url_wpglobus_site() . 'faq/' . self::QA_CAMPAIGN ); ?>"
59 target="_blank"
60 class="nav-tab">
61 <?php WPGlobus_Admin_Page::nav_tab_icon_e( 'FAQ' ); ?>
62 <?php esc_html_e( 'FAQ', 'wpglobus' ); ?>
63 </a>
64 <a href="<?php echo esc_url( WPGlobus_Admin_Page::url_helpdesk() ); ?>"
65 class="nav-tab">
66 <?php WPGlobus_Admin_Page::nav_tab_icon_e( 'Helpdesk' ); ?>
67 <?php echo esc_html( WPGlobus_Admin_HelpDesk::$page_title ); ?>
68 </a>
69 </h2>
70
71 <?php if ( ! extension_loaded( 'mbstring' ) ) : ?>
72 <div style="background: #fff;border-left: 4px solid #dc3232;margin: 15px 15px 2px;padding: 1px 12px;">
73 <h4><?php esc_html_e( 'Attention: the Multibyte String PHP extension (`mbstring`) is not loaded!', 'wpglobus' ); ?></h4>
74 <p><?php esc_html_e( 'The mbstring extension is required for the full UTF-8 compatibility and better performance. Without it, some parts of WordPress and WPGlobus may function incorrectly. Please contact your hosting company or systems administrator.', 'wpglobus' ); ?></p>
75 </div>
76 <?php endif; ?>
77
78 <div class="feature-main feature-section col two-col">
79 <div class="col">
80 <?php self::easy_1_2_3(); ?>
81 </div>
82 <div class="col last-feature">
83 <?php self::translation_help(); ?>
84 </div>
85 </div>
86
87 <div class="feature-main feature-section col two-col">
88 <div class="col">
89 <?php self::important_notes(); ?>
90 </div>
91 <div class="col last-feature">
92 <?php self::links(); ?>
93 </div>
94 </div>
95
96 <hr />
97
98 <div class="return-to-dashboard">
99 <a class="button button-primary"
100 href="<?php echo esc_url( WPGlobus_Admin_Page::url_settings() ); ?>">
101 <?php esc_html_e( 'Go to WPGlobus Settings', 'wpglobus' ); ?>
102 </a>
103 </div>
104
105 <?php
106 WPGlobus_Admin_Page::print_footer();
107 }
108
109 /**
110 * Method easy_1_2_3.
111 *
112 * @return void
113 */
114 protected static function easy_1_2_3() {
115 ?>
116 <h4 class="dashicons-before dashicons-admin-settings bar">
117 <?php esc_html_e( 'Easy as 1-2-3:', 'wpglobus' ); ?>
118 </h4>
119 <ul class="wpglobus-checkmarks">
120 <li><?php esc_html_e( 'Go to WPGlobus admin menu and choose the countries / languages;', 'wpglobus' ); ?></li>
121 <li><?php esc_html_e( 'Enter the translations to the posts, pages, categories, tags and menus using a clean and simple interface.', 'wpglobus' ); ?></li>
122 <li><?php esc_html_e( 'Switch languages at the front-end using a drop-down menu with language names and country flags.', 'wpglobus' ); ?></li>
123 </ul>
124 <?php
125 }
126
127 /**
128 * Method links.
129 *
130 * @return void
131 */
132 protected static function links() {
133 ?>
134 <h4 class="dashicons-before dashicons-admin-links bar">
135 <?php esc_html_e( 'Links:', 'wpglobus' ); ?>
136 </h4>
137 <ul>
138 <li>&bull; <a href="<?php echo esc_url( WPGlobus_Utils::url_wpglobus_site() . self::QA_CAMPAIGN ); ?>"
139 target="_blank">WPGlobus.com</a></li>
140 <li>&bull; <a
141 href="<?php echo esc_url( WPGlobus_Utils::url_wpglobus_site() . 'quick-start/' . self::QA_CAMPAIGN ); ?>"
142 target="_blank"><?php esc_html_e( 'Guide', 'wpglobus' ); ?></a></li>
143 <li>&bull; <a
144 href="<?php echo esc_url( WPGlobus_Utils::url_wpglobus_site() . 'faq/' . self::QA_CAMPAIGN ); ?>"
145 target="_blank"><?php esc_html_e( 'FAQs', 'wpglobus' ); ?></a></li>
146 <li>&bull; <a href="<?php echo esc_url( WPGlobus_Admin_Page::url_helpdesk() ); ?>"
147 target="_blank"><?php esc_html_e( 'Contact Us', 'wpglobus' ); ?></a></li>
148 <li>&bull; <a href="https://wordpress.org/support/plugin/wpglobus/reviews"
149 target="_blank"><?php esc_html_e( 'Please give us 5 stars!', 'wpglobus' ); ?></a>
150 <span class="wpglobus-stars">&#x2606;&#x2606;&#x2606;&#x2606;&#x2606;</span></li>
151
152 </ul>
153 <?php
154 }
155
156 /**
157 * Method translation_help.
158 *
159 * @return void
160 */
161 protected static function translation_help() {
162 ?>
163 <h4 class="dashicons-before dashicons-translation highlight">
164 <?php esc_html_e( 'WPGlobus does not translate texts automatically!', 'wpglobus' ); ?>
165 </h4>
166 <p>
167 <?php esc_html_e( 'There are many translation companies and individual translators who can help you write and proofread the texts.', 'wpglobus' ); ?>
168 <?php esc_html_e( 'When you choose a translator, please look at their native language, country of residence, specialization and knowledge of WordPress.', 'wpglobus' ); ?>
169 </p>
170 <?php
171 }
172
173 /**
174 * Method important_notes.
175 *
176 * @return void
177 */
178 protected static function important_notes() {
179 ?>
180 <h4 class="dashicons-before dashicons-info highlight">
181 <?php esc_html_e( 'Important notes:', 'wpglobus' ); ?>
182 </h4>
183 <ul class="wpglobus-important">
184
185 <li>
186 <?php echo wp_kses_post( __( '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' ) ); ?>
187 </li>
188 <li>
189 <?php echo wp_kses_post( __( 'Some themes and plugins are <strong>not multilingual-ready</strong>.', 'wpglobus' ) ); ?>
190 <?php esc_html_e( 'They might display some texts with no translation, or with all languages mixed together.', 'wpglobus' ); ?>
191 <?php
192 printf(
193 // translators: %s are used to insert HTML link. Keep them in place.
194 esc_html__( 'Please contact the theme / plugin author. If they are unable to assist, consider %1$s hiring the WPGlobus Team %2$s to write a custom code for you.', 'wpglobus' ),
195 '<a href="' . esc_url( WPGlobus_Utils::url_wpglobus_site() . 'professional-support/' . self::QA_CAMPAIGN ) . '">',
196 '</a>'
197 );
198 ?>
199 </li>
200
201 </ul>
202 <?php
203 }
204 }
205