Exemplo n.º 1
0
 /**
  * Class constructor initialize class
  *
  * @access protected
  * @todo implements re_insert_custom_css
  */
 protected function __construct()
 {
     $this->user_name = Option::get_theme_option('tf_user_name');
     $this->api_key = Option::get_theme_option('tf_api_key');
     $this->author = Theme::getThemeInfo('Author');
     $this->theme_name = Theme::getThemeInfo('Name');
     $this->version = Theme::getThemeInfo('Version');
     add_action('admin_notices', array($this, 'backendHtml'));
     add_action('update_bulk_theme_complete_actions', array($this, 'updateComplete'), 10, 2);
     //add_action( 'upgrader_process_complete', array( $this, 're_insert_custom_css' ) );
     //add_action( 'load-update.php', array( $this, 'temp_save_custom_css' ), 20 );
     $this->includes();
 }
Exemplo n.º 2
0
 /**
  * get theme information
  *
  * @param string $value
  *
  * @return string
  */
 private function getThemeInfo($value)
 {
     return Theme::get_theme_info($value);
 }