steps = $steps; $this->step = $step; } /** * @return array */ public function get_model() { $model = array( 'title' => __( 'WooCommerce Multilingual › Setup Wizard', 'woocommerce-multilingual' ), 'WCML_PLUGIN_URL' => WCML_PLUGIN_URL, 'step' => $this->step, 'has_handler' => ! empty( $this->steps[ $this->step ]['handler'] ), 'nonce' => wp_create_nonce( $this->step ) ); return $model; } public function language_attributes() { language_attributes(); } /** * @param string $tag */ public function wp_print_scripts( $tag ) { wp_print_scripts( $tag ); } /** * @param string $hook */ public function wp_do_action( $hook ) { do_action( $hook ); } protected function init_template_base_dir() { $this->template_paths = array( WCML_PLUGIN_PATH . '/templates/', ); } /** * @return string */ public function get_template() { return '/setup/header.twig'; } }