WCML_Status_UI

Created by OnTheGo Systems.

Defined (1)

The class is defined in the following location(s).

/inc/template-classes/status/class-wcml-status-ui.php  
  1. class WCML_Status_UI extends WPML_Templates_Factory { 
  2.  
  3. private $woocommerce_wpml; 
  4. private $sitepress; 
  5. private $sitepress_settings; 
  6.  
  7.  
  8. function __construct( &$woocommerce_wpml, &$sitepress, $sitepress_settings ) { 
  9. parent::__construct(); 
  10.  
  11. $this->woocommerce_wpml = $woocommerce_wpml; 
  12. $this->sitepress = $sitepress; 
  13. $this->sitepress_settings = $sitepress_settings; 
  14.  
  15.  
  16. public function get_model() { 
  17.  
  18. $WCML_Status_Status_UI = new WCML_Status_Status_UI( $this->sitepress ); 
  19. $WCML_Status_Config_Warnings_UI = new WCML_Status_Config_Warnings_UI( $this->sitepress, $this->woocommerce_wpml, $this->sitepress_settings ); 
  20. $WCML_Status_Store_Pages_UI = new WCML_Status_Store_Pages_UI( $this->sitepress, $this->woocommerce_wpml ); 
  21. $WCML_Status_Taxonomies_UI = new WCML_Status_Taxonomies_UI( $this->woocommerce_wpml ); 
  22. $WCML_Status_Products_UI = new WCML_Status_Products_UI( $this->woocommerce_wpml, $this->sitepress ); 
  23. $WCML_Status_Multi_Currencies_UI= new WCML_Status_Multi_Currencies_UI( $this->woocommerce_wpml ); 
  24.  
  25. $model = array( 
  26. 'plugins_status' => $WCML_Status_Status_UI->get_view(),  
  27. 'conf_warnings' => $WCML_Status_Config_Warnings_UI->get_view(),  
  28. 'store_pages' => $WCML_Status_Store_Pages_UI->get_view(),  
  29. 'taxonomies' => $WCML_Status_Taxonomies_UI->get_view(),  
  30. 'products' => $WCML_Status_Products_UI->get_view(),  
  31. 'multi_currency' => $WCML_Status_Multi_Currencies_UI->get_view(),  
  32. 'troubl_url' => admin_url( 'admin.php?page=wpml-wcml&tab=troubleshooting' ),  
  33. 'strings' => array( 
  34. 'troubl' => __( 'Troubleshooting page', 'woocommerce-multilingual' ) 
  35. ); 
  36.  
  37. return $model; 
  38.  
  39. public function init_template_base_dir() { 
  40. $this->template_paths = array( 
  41. WCML_PLUGIN_PATH . '/templates/status/',  
  42. ); 
  43.  
  44. public function get_template() { 
  45. return 'status.twig';