@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | <!-- Defining responsive ambient. --> |
| 13 | 13 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 14 | 14 | |
| 15 | - <title><?php esc_html_e( 'WordLift Setup', 'wordlift' ); ?></title> |
|
| 15 | + <title><?php esc_html_e('WordLift Setup', 'wordlift'); ?></title> |
|
| 16 | 16 | |
| 17 | 17 | <?php |
| 18 | 18 | |
@@ -20,26 +20,26 @@ discard block |
||
| 20 | 20 | wp_enqueue_media(); |
| 21 | 21 | |
| 22 | 22 | // Enqueue styles and scripts. |
| 23 | - wp_enqueue_style( 'wl-font-awesome', plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'css/font-awesome.min.css' ); |
|
| 24 | - wp_enqueue_style( 'wordlift-admin-setup', plugin_dir_url( dirname( __FILE__ ) ) . 'css/wordlift-admin-setup.css', array( |
|
| 23 | + wp_enqueue_style('wl-font-awesome', plugin_dir_url(dirname(dirname(__FILE__))).'css/font-awesome.min.css'); |
|
| 24 | + wp_enqueue_style('wordlift-admin-setup', plugin_dir_url(dirname(__FILE__)).'css/wordlift-admin-setup.css', array( |
|
| 25 | 25 | 'wp-admin', |
| 26 | 26 | 'wl-font-awesome', |
| 27 | - ) ); |
|
| 28 | - wp_enqueue_script( 'wordlift-admin-setup', plugin_dir_url( dirname( __FILE__ ) ) . 'js/wordlift-admin-setup.js', array( 'jquery' ) ); |
|
| 27 | + )); |
|
| 28 | + wp_enqueue_script('wordlift-admin-setup', plugin_dir_url(dirname(__FILE__)).'js/wordlift-admin-setup.js', array('jquery')); |
|
| 29 | 29 | |
| 30 | 30 | //Get wp_permalink structure |
| 31 | - $permalink_structure = get_option( 'permalink_structure' ); |
|
| 31 | + $permalink_structure = get_option('permalink_structure'); |
|
| 32 | 32 | |
| 33 | 33 | // Set configuration settings. |
| 34 | - wp_localize_script( 'wordlift-admin-setup', '_wlAdminSetup', array( |
|
| 35 | - 'ajaxUrl' => parse_url( self_admin_url( 'admin-ajax.php' ), PHP_URL_PATH ), |
|
| 34 | + wp_localize_script('wordlift-admin-setup', '_wlAdminSetup', array( |
|
| 35 | + 'ajaxUrl' => parse_url(self_admin_url('admin-ajax.php'), PHP_URL_PATH), |
|
| 36 | 36 | 'action' => 'wl_validate_key', |
| 37 | 37 | 'permalink' => $permalink_structure, |
| 38 | 38 | 'media' => array( |
| 39 | - 'title' => __( 'WordLift Choose Logo', 'wordlift' ), |
|
| 40 | - 'button' => array( 'text' => __( 'Choose Logo', 'wordlift' ) ), |
|
| 39 | + 'title' => __('WordLift Choose Logo', 'wordlift'), |
|
| 40 | + 'button' => array('text' => __('Choose Logo', 'wordlift')), |
|
| 41 | 41 | ), |
| 42 | - ) ); |
|
| 42 | + )); |
|
| 43 | 43 | |
| 44 | 44 | // Finally print styles and scripts. |
| 45 | 45 | wp_print_styles(); |
@@ -51,56 +51,56 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | <!-- Pane 1 content --> |
| 53 | 53 | <script type="text/html" id="page-0"> |
| 54 | - <h2 class="page-title"><?php esc_html_e( 'Welcome', 'wordlift' ); ?></h2> |
|
| 54 | + <h2 class="page-title"><?php esc_html_e('Welcome', 'wordlift'); ?></h2> |
|
| 55 | 55 | <p class="page-txt"> |
| 56 | - <?php esc_html_e( 'Thank you for downloading WordLift. Now you can boost your website with a double-digit growth. WordLift helps you with:', 'wordlift' ); ?> |
|
| 56 | + <?php esc_html_e('Thank you for downloading WordLift. Now you can boost your website with a double-digit growth. WordLift helps you with:', 'wordlift'); ?> |
|
| 57 | 57 | </p> |
| 58 | 58 | <ul class="page-list"> |
| 59 | 59 | <li> |
| 60 | 60 | <span class="fa fa-university"></span> |
| 61 | - <?php esc_html_e( 'Trustworthiness', 'wordlift' ); ?> |
|
| 61 | + <?php esc_html_e('Trustworthiness', 'wordlift'); ?> |
|
| 62 | 62 | </li> |
| 63 | 63 | |
| 64 | 64 | <li> |
| 65 | 65 | <span class="fa fa-map-marker"></span> |
| 66 | - <?php esc_html_e( 'Enrichment', 'wordlift' ); ?> |
|
| 66 | + <?php esc_html_e('Enrichment', 'wordlift'); ?> |
|
| 67 | 67 | </li> |
| 68 | 68 | |
| 69 | 69 | <li> |
| 70 | 70 | <span class="fa fa-heart"></span> |
| 71 | - <?php esc_html_e( 'Engagement', 'wordlift' ); ?> |
|
| 71 | + <?php esc_html_e('Engagement', 'wordlift'); ?> |
|
| 72 | 72 | </li> |
| 73 | 73 | |
| 74 | 74 | <li> |
| 75 | 75 | <span class="fa fa-hand-o-right"></span> |
| 76 | - <?php esc_html_e( 'Smart Navigation', 'wordlift' ); ?> |
|
| 76 | + <?php esc_html_e('Smart Navigation', 'wordlift'); ?> |
|
| 77 | 77 | </li> |
| 78 | 78 | |
| 79 | 79 | <li> |
| 80 | 80 | <span class="fa fa-google"></span> |
| 81 | - <?php esc_html_e( 'SEO Optimization', 'wordlift' ); ?> |
|
| 81 | + <?php esc_html_e('SEO Optimization', 'wordlift'); ?> |
|
| 82 | 82 | </li> |
| 83 | 83 | |
| 84 | 84 | <li> |
| 85 | 85 | <span class="fa fa-group"></span> |
| 86 | - <?php esc_html_e( 'Content Marketing', 'wordlift' ); ?> |
|
| 86 | + <?php esc_html_e('Content Marketing', 'wordlift'); ?> |
|
| 87 | 87 | </li> |
| 88 | 88 | </ul> |
| 89 | 89 | <div class="btn-wrapper"> |
| 90 | 90 | <a href="https://wordlift.io/blogger/?utm_campaign=wl_activation_learn_more" |
| 91 | 91 | target="_tab" |
| 92 | - class="button"><?php esc_html_e( 'Learn More', 'wordlift' ); ?></a> |
|
| 92 | + class="button"><?php esc_html_e('Learn More', 'wordlift'); ?></a> |
|
| 93 | 93 | <input type="button" data-wl-next="wl-next" |
| 94 | 94 | class="wl-default-action" |
| 95 | - value="<?php esc_attr_e( 'Next', 'wordlift' ); ?>"> |
|
| 95 | + value="<?php esc_attr_e('Next', 'wordlift'); ?>"> |
|
| 96 | 96 | </div> |
| 97 | 97 | </script> |
| 98 | 98 | |
| 99 | 99 | <!-- Pane 2 content --> |
| 100 | 100 | <script type="text/html" id="page-1"> |
| 101 | - <h2 class="page-title"><?php esc_html_e( 'License Key', 'wordlift' ); ?></h2> |
|
| 101 | + <h2 class="page-title"><?php esc_html_e('License Key', 'wordlift'); ?></h2> |
|
| 102 | 102 | <p class="page-txt"> |
| 103 | - <?php esc_html_e( 'If you already purchased a plan, check your email, get the activation key from your inbox and insert it in the field below. Otherwise ....', 'wordlift' ); ?> |
|
| 103 | + <?php esc_html_e('If you already purchased a plan, check your email, get the activation key from your inbox and insert it in the field below. Otherwise ....', 'wordlift'); ?> |
|
| 104 | 104 | </p> |
| 105 | 105 | <input type="text" data-wl-key="wl-key" class="invalid untouched" |
| 106 | 106 | id="key" name="key" value="" |
@@ -109,39 +109,39 @@ discard block |
||
| 109 | 109 | <a |
| 110 | 110 | href="https://wordlift.io/?utm_campaign=wl_activation_grab_the_key#plan-and-price" |
| 111 | 111 | target="_tab" |
| 112 | - class="button"><?php esc_html_e( 'Grab a Key!', 'wordlift' ); ?></a><input |
|
| 112 | + class="button"><?php esc_html_e('Grab a Key!', 'wordlift'); ?></a><input |
|
| 113 | 113 | type="button" data-wl-next="wl-next" class="wl-default-action" |
| 114 | - value="<?php esc_attr_e( 'Next', 'wordlift' ); ?>"> |
|
| 114 | + value="<?php esc_attr_e('Next', 'wordlift'); ?>"> |
|
| 115 | 115 | </div> |
| 116 | 116 | </script> |
| 117 | 117 | |
| 118 | 118 | <!-- Pane 3 content --> |
| 119 | 119 | <script type="text/html" id="page-2"> |
| 120 | - <h2 class="page-title"><?php esc_html_e( 'Vocabulary', 'wordlift' ); ?></h2> |
|
| 120 | + <h2 class="page-title"><?php esc_html_e('Vocabulary', 'wordlift'); ?></h2> |
|
| 121 | 121 | <p class="page-txt"> |
| 122 | - <?php esc_html_e( 'All new pages created with WordLift, will be stored inside your internal vocabulary. You can customize the url pattern of these pages in the field below. Check our FAQs if you need more info.', 'wordlift' ); ?> |
|
| 122 | + <?php esc_html_e('All new pages created with WordLift, will be stored inside your internal vocabulary. You can customize the url pattern of these pages in the field below. Check our FAQs if you need more info.', 'wordlift'); ?> |
|
| 123 | 123 | </p> |
| 124 | 124 | <input type="text" id="vocabulary" name="vocabulary" autocomplete="off" |
| 125 | 125 | value="vocabulary" |
| 126 | 126 | class="valid untouched" data-wl-vocabulary="wl-vocabulary"> |
| 127 | 127 | <p class="page-det"> |
| 128 | - <?php esc_html_e( 'Leave it empty to place your entities in the root folder of your website', 'wordlift' ); ?> |
|
| 128 | + <?php esc_html_e('Leave it empty to place your entities in the root folder of your website', 'wordlift'); ?> |
|
| 129 | 129 | </p> |
| 130 | 130 | <div class="btn-wrapper"> |
| 131 | 131 | <input type="button" data-wl-next="wl-next" |
| 132 | 132 | class="wl-default-action" |
| 133 | - value="<?php esc_attr_e( 'Next', 'wordlift' ); ?>"> |
|
| 133 | + value="<?php esc_attr_e('Next', 'wordlift'); ?>"> |
|
| 134 | 134 | </div> |
| 135 | 135 | </script> |
| 136 | 136 | |
| 137 | 137 | <!-- Pane 4 content --> |
| 138 | 138 | <script type="text/html" id="page-3"> |
| 139 | - <h2 class="page-title"><?php esc_html_e( 'Language', 'wordlift' ); ?></h2> |
|
| 139 | + <h2 class="page-title"><?php esc_html_e('Language', 'wordlift'); ?></h2> |
|
| 140 | 140 | <p class="page-txt"> |
| 141 | - <?php esc_html_e( 'Each WordLift key can be used only in one language. Pick yours.', 'wordlift' ); ?> |
|
| 141 | + <?php esc_html_e('Each WordLift key can be used only in one language. Pick yours.', 'wordlift'); ?> |
|
| 142 | 142 | </p> |
| 143 | 143 | <select id="language" name="language" |
| 144 | - placeholder="<?php esc_attr_e( 'Choose your language', 'wordlift' ); ?>"> |
|
| 144 | + placeholder="<?php esc_attr_e('Choose your language', 'wordlift'); ?>"> |
|
| 145 | 145 | <?php |
| 146 | 146 | |
| 147 | 147 | // Get WordLift's supported languages. |
@@ -151,30 +151,30 @@ discard block |
||
| 151 | 151 | $locale = get_locale(); |
| 152 | 152 | |
| 153 | 153 | // Get the language locale part. |
| 154 | - $parts = explode( '_', $locale ); |
|
| 154 | + $parts = explode('_', $locale); |
|
| 155 | 155 | |
| 156 | 156 | // If we support WP's configured language, then use that, otherwise use English by default. |
| 157 | - $language = isset( $languages[ $parts[0] ] ) ? $parts[0] : 'en'; |
|
| 157 | + $language = isset($languages[$parts[0]]) ? $parts[0] : 'en'; |
|
| 158 | 158 | |
| 159 | 159 | // Print all the supported language, preselecting the one configured in WP (or English if not supported). |
| 160 | - foreach ( $languages as $code => $label ) { ?> |
|
| 160 | + foreach ($languages as $code => $label) { ?> |
|
| 161 | 161 | <option |
| 162 | - value="<?php echo esc_attr( $code ) ?>" <?php echo selected( $code, $language, false ) ?>><?php echo esc_html( $label ) ?></option> |
|
| 162 | + value="<?php echo esc_attr($code) ?>" <?php echo selected($code, $language, false) ?>><?php echo esc_html($label) ?></option> |
|
| 163 | 163 | <?php } ?> |
| 164 | 164 | </select> |
| 165 | 165 | |
| 166 | 166 | <div class="btn-wrapper"> |
| 167 | 167 | <input type="button" data-wl-next="wl-next" |
| 168 | 168 | class="wl-default-action" |
| 169 | - value="<?php esc_attr_e( 'Next', 'wordlift' ); ?>"> |
|
| 169 | + value="<?php esc_attr_e('Next', 'wordlift'); ?>"> |
|
| 170 | 170 | </div> |
| 171 | 171 | </script> |
| 172 | 172 | |
| 173 | 173 | <!-- Pane 5 content --> |
| 174 | 174 | <script type="text/html" id="page-4"> |
| 175 | - <h2 class="page-title"><?php esc_html_e( 'Publisher', 'wordlift' ); ?></h2> |
|
| 175 | + <h2 class="page-title"><?php esc_html_e('Publisher', 'wordlift'); ?></h2> |
|
| 176 | 176 | <p class="page-txt"> |
| 177 | - <?php esc_html_e( 'Are you going to publish as an individual or as a company?', 'wordlift' ); ?> |
|
| 177 | + <?php esc_html_e('Are you going to publish as an individual or as a company?', 'wordlift'); ?> |
|
| 178 | 178 | </p> |
| 179 | 179 | <div class="radio-wrapper"> |
| 180 | 180 | <label for="personal"> |
@@ -182,20 +182,20 @@ discard block |
||
| 182 | 182 | value="person" checked> |
| 183 | 183 | <span class="radio"><span class="check"></span></span> |
| 184 | 184 | <span |
| 185 | - class="label"><?php esc_html_e( 'Personal', 'wordlift' ); ?></span> |
|
| 185 | + class="label"><?php esc_html_e('Personal', 'wordlift'); ?></span> |
|
| 186 | 186 | </label> |
| 187 | 187 | <label for="company"> |
| 188 | 188 | <input id="company" type="radio" name="user_type" |
| 189 | 189 | value="organization"> |
| 190 | 190 | <span class="radio"><span class="check"></span></span> |
| 191 | 191 | <span |
| 192 | - class="label"><?php esc_html_e( 'Company', 'wordlift' ); ?></span> |
|
| 192 | + class="label"><?php esc_html_e('Company', 'wordlift'); ?></span> |
|
| 193 | 193 | </label> |
| 194 | 194 | </div> |
| 195 | 195 | <input type="text" id="name" name="name" data-wl-name="wl-name" value="" |
| 196 | 196 | autocomplete="off" |
| 197 | 197 | class="untouched invalid" |
| 198 | - placeholder="<?php esc_attr_e( "What's your name?", 'wordlift' ); ?>"> |
|
| 198 | + placeholder="<?php esc_attr_e("What's your name?", 'wordlift'); ?>"> |
|
| 199 | 199 | |
| 200 | 200 | <div data-wl-logo="wl-logo"> |
| 201 | 201 | <input type="hidden" name="logo" /> |
@@ -205,12 +205,12 @@ discard block |
||
| 205 | 205 | </div> |
| 206 | 206 | <a data-wl-add-logo="wl-add-logo" class="add-logo" |
| 207 | 207 | href="javascript:void(0);"> |
| 208 | - <?php esc_html_e( 'Add your logo', 'wordlift' ); ?> |
|
| 208 | + <?php esc_html_e('Add your logo', 'wordlift'); ?> |
|
| 209 | 209 | </a> |
| 210 | 210 | </div> |
| 211 | 211 | <div class="btn-wrapper"> |
| 212 | 212 | <input type="submit" id="btn-finish" class="wl-default-action" |
| 213 | - value="<?php esc_attr_e( 'Finish', 'wordlift' ); ?>"> |
|
| 213 | + value="<?php esc_attr_e('Finish', 'wordlift'); ?>"> |
|
| 214 | 214 | </div> |
| 215 | 215 | </script> |
| 216 | 216 | |
@@ -219,25 +219,25 @@ discard block |
||
| 219 | 219 | |
| 220 | 220 | <div class="wl-container"> |
| 221 | 221 | |
| 222 | - <a href="<?php echo esc_url( admin_url() ); ?> " |
|
| 222 | + <a href="<?php echo esc_url(admin_url()); ?> " |
|
| 223 | 223 | class="fa fa-times wl-close"></a> |
| 224 | 224 | |
| 225 | 225 | <header> |
| 226 | 226 | <h1><strong>Word</strong>Lift</h1> |
| 227 | 227 | <img |
| 228 | - src="<?php echo plugin_dir_url( dirname( dirname( __FILE__ ) ) ) . 'images/shapes.png'; ?>" /> |
|
| 228 | + src="<?php echo plugin_dir_url(dirname(dirname(__FILE__))).'images/shapes.png'; ?>" /> |
|
| 229 | 229 | </header> |
| 230 | 230 | |
| 231 | 231 | |
| 232 | 232 | <form method="post"> |
| 233 | - <?php wp_nonce_field( 'wl-save-configuration' ); ?> |
|
| 233 | + <?php wp_nonce_field('wl-save-configuration'); ?> |
|
| 234 | 234 | <input type="hidden" name="action" value="wl-save-configuration" /> |
| 235 | 235 | <div class="viewport"></div> |
| 236 | 236 | </form> |
| 237 | 237 | |
| 238 | 238 | </div> |
| 239 | 239 | |
| 240 | -<?php do_action( 'admin_footer' ); ?> |
|
| 240 | +<?php do_action('admin_footer'); ?> |
|
| 241 | 241 | |
| 242 | 242 | </body> |
| 243 | 243 | </html> |