sitepress = $sitepress; } public function get_model() { $media_plugin_name = 'WPML Media'; $model = array( 'strings' => array( 'heading' => __( 'Media', 'woocommerce-multilingual' ), 'media_tip' => $media_plugin_name, 'not_using_media_translation' => sprintf( __( '%s is not active.', 'woocommerce-multilingual' ), '' . $media_plugin_name . '' ), 'why_use_media_translation' => sprintf( __( '%s is not required in order to run WooCommerce Multilingual but it’s recommended if you want to use separate product images and galleries for different languages.', 'woocommerce-multilingual' ), $media_plugin_name ), 'using_media_translation' => sprintf( __( '%s is installed and active.', 'woocommerce-multilingual' ), '' . $media_plugin_name . '' ), ), 'media_translation_active' => null !== $this->sitepress->get_wp_api()->constant( 'WPML_MEDIA_VERSION' ) ); return $model; } public function init_template_base_dir() { $this->template_paths = array( WCML_PLUGIN_PATH . '/templates/status/', ); } public function get_template() { return 'media.twig'; } }