class-wcml-setup-attributes-ui.php
4 weeks ago
class-wcml-setup-footer.php
4 weeks ago
class-wcml-setup-header.php
4 weeks ago
class-wcml-setup-introduction-ui.php
1 year ago
class-wcml-setup-multi-currency-ui.php
10 months ago
class-wcml-setup-notice.php
4 weeks ago
class-wcml-setup-step.php
4 weeks ago
class-wcml-setup-store-pages-ui.php
4 weeks ago
class-wcml-setup-notice.php
37 lines
| 1 | <?php |
| 2 | |
| 3 | class WCML_Setup_Notice_UI extends WCML_Templates_Factory { |
| 4 | |
| 5 | public function get_model() { |
| 6 | |
| 7 | $model = [ |
| 8 | 'text' => [ |
| 9 | 'prepare' => __( 'Make your store multilingual', 'woocommerce-multilingual' ), |
| 10 | 'help' => sprintf( |
| 11 | /* translators: %1$s and %2$s are opening and closing HTML strong tags */ |
| 12 | esc_html__( 'Set up %1$sWPML Multilingual & Multicurrency for WooCommerce%2$s to translate your store and add more currencies.', 'woocommerce-multilingual' ), |
| 13 | '<strong>', |
| 14 | '</strong>' |
| 15 | ), |
| 16 | 'start' => __( 'Start the Setup Wizard', 'woocommerce-multilingual' ), |
| 17 | ], |
| 18 | 'setup_url' => esc_url( \WCML\Utilities\AdminUrl::getSetup() ), |
| 19 | ]; |
| 20 | |
| 21 | return $model; |
| 22 | |
| 23 | } |
| 24 | |
| 25 | protected function init_template_base_dir() { |
| 26 | $this->template_paths = [ |
| 27 | WCML_PLUGIN_PATH . '/templates/', |
| 28 | ]; |
| 29 | } |
| 30 | |
| 31 | public function get_template() { |
| 32 | return '/setup/notice.twig'; |
| 33 | } |
| 34 | |
| 35 | |
| 36 | } |
| 37 |