woocommerce_wpml = $woocommerce_wpml; $this->next_step_url = $next_step_url; } public function get_model(){ $model = array( 'strings' => array( 'step_id' => 'introduction_step', 'heading' => __("Let's turn your WooCommerce shop multilingual", 'woocommerce-multilingual'), 'description1' => __('Thank you for choosing WooCommerce Multilingual. We need to do a few upgrades to your site, so that it has everything needed to run multilingual.', 'woocommerce-multilingual'), 'description2' => array( 'title' => __("We'll help you:", 'woocommerce-multilingual'), 'step1' => __("Translate the 'store' pages", 'woocommerce-multilingual'), 'step2' => __("Choose which attributes to make translatable", 'woocommerce-multilingual'), 'step3' => __("Choose if you need multiple currencies", 'woocommerce-multilingual'), ), 'description3' => sprintf( __("You can make these updates now, or later from the %sWooCommerce » WooCommerce Multilingual%s menu.", 'woocommerce-multilingual'), '', '' ), 'continue' => __("Let's continue", 'woocommerce-multilingual'), 'later' => __("I'll do the setup later", 'woocommerce-multilingual') ), 'later_url' => admin_url('admin.php?page=wpml-wcml&src=setup_later'), 'continue_url' => $this->next_step_url ); return $model; } protected function init_template_base_dir() { $this->template_paths = array( WCML_PLUGIN_PATH . '/templates/', ); } public function get_template() { return '/setup/introduction.twig'; } }