@@ -9,29 +9,29 @@ |
||
| 9 | 9 | </p> |
| 10 | 10 | |
| 11 | 11 | <?php |
| 12 | - // Get WP's locale. |
|
| 13 | - $locale = get_locale(); |
|
| 12 | + // Get WP's locale. |
|
| 13 | + $locale = get_locale(); |
|
| 14 | 14 | |
| 15 | - // Get the language locale part. |
|
| 16 | - $parts = explode( '_', $locale ); |
|
| 17 | - $language = isset( $parts[0] ) ? $parts[0] : ''; |
|
| 18 | - $country = isset( $parts[1] ) ? strtolower( $parts[1] ) : ''; |
|
| 19 | - ?> |
|
| 15 | + // Get the language locale part. |
|
| 16 | + $parts = explode( '_', $locale ); |
|
| 17 | + $language = isset( $parts[0] ) ? $parts[0] : ''; |
|
| 18 | + $country = isset( $parts[1] ) ? strtolower( $parts[1] ) : ''; |
|
| 19 | + ?> |
|
| 20 | 20 | |
| 21 | 21 | <br> |
| 22 | 22 | |
| 23 | 23 | <?php |
| 24 | - // Render country select element. |
|
| 25 | - $country_select->render( |
|
| 26 | - array( |
|
| 27 | - 'id' => 'wl-country-code', |
|
| 28 | - 'name' => 'wl-country-code', |
|
| 29 | - 'lang' => $language, |
|
| 30 | - 'value' => $country, |
|
| 31 | - 'notice' => __( 'The selected language is not supported in this country.</br>Please choose another country or language.', 'wordlift' ), |
|
| 32 | - ) |
|
| 33 | - ); |
|
| 34 | - ?> |
|
| 24 | + // Render country select element. |
|
| 25 | + $country_select->render( |
|
| 26 | + array( |
|
| 27 | + 'id' => 'wl-country-code', |
|
| 28 | + 'name' => 'wl-country-code', |
|
| 29 | + 'lang' => $language, |
|
| 30 | + 'value' => $country, |
|
| 31 | + 'notice' => __( 'The selected language is not supported in this country.</br>Please choose another country or language.', 'wordlift' ), |
|
| 32 | + ) |
|
| 33 | + ); |
|
| 34 | + ?> |
|
| 35 | 35 | |
| 36 | 36 | <div class="btn-wrapper"> |
| 37 | 37 | <input |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <!-- Pane 5 content --> |
| 2 | 2 | <script type="text/html" id="page-4"> |
| 3 | 3 | <h2 class="page-title"> |
| 4 | - <?php esc_html_e( 'Country', 'wordlift' ); ?> |
|
| 4 | + <?php esc_html_e('Country', 'wordlift'); ?> |
|
| 5 | 5 | </h2> |
| 6 | 6 | |
| 7 | 7 | <p class="page-txt"> |
| 8 | - <?php esc_html_e( 'Each WordLift key can be used only in one language.', 'wordlift' ); ?> |
|
| 8 | + <?php esc_html_e('Each WordLift key can be used only in one language.', 'wordlift'); ?> |
|
| 9 | 9 | </p> |
| 10 | 10 | |
| 11 | 11 | <?php |
@@ -13,9 +13,9 @@ discard block |
||
| 13 | 13 | $locale = get_locale(); |
| 14 | 14 | |
| 15 | 15 | // Get the language locale part. |
| 16 | - $parts = explode( '_', $locale ); |
|
| 17 | - $language = isset( $parts[0] ) ? $parts[0] : ''; |
|
| 18 | - $country = isset( $parts[1] ) ? strtolower( $parts[1] ) : ''; |
|
| 16 | + $parts = explode('_', $locale); |
|
| 17 | + $language = isset($parts[0]) ? $parts[0] : ''; |
|
| 18 | + $country = isset($parts[1]) ? strtolower($parts[1]) : ''; |
|
| 19 | 19 | ?> |
| 20 | 20 | |
| 21 | 21 | <br> |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'name' => 'wl-country-code', |
| 29 | 29 | 'lang' => $language, |
| 30 | 30 | 'value' => $country, |
| 31 | - 'notice' => __( 'The selected language is not supported in this country.</br>Please choose another country or language.', 'wordlift' ), |
|
| 31 | + 'notice' => __('The selected language is not supported in this country.</br>Please choose another country or language.', 'wordlift'), |
|
| 32 | 32 | ) |
| 33 | 33 | ); |
| 34 | 34 | ?> |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | type="button" |
| 39 | 39 | data-wl-next="wl-next" |
| 40 | 40 | class="wl-default-action" |
| 41 | - value="<?php esc_attr_e( 'Next', 'wordlift' ); ?>" |
|
| 41 | + value="<?php esc_attr_e('Next', 'wordlift'); ?>" |
|
| 42 | 42 | > |
| 43 | 43 | </div> |
| 44 | 44 | </script> |