/**
  * Loads theme (and child) data.
  *
  * @return void
  */
 protected final function loadData()
 {
     $readme_data = ak_module_readme_data(TEMPLATEPATH . '/readme.txt');
     if (empty($this->mod_data)) {
         $theme_data = get_theme_data(TEMPLATEPATH . '/style.css');
         $this->mod_data = array_merge($readme_data, $theme_data);
     }
     if (TEMPLATEPATH !== STYLESHEETPATH && empty($this->child_data)) {
         $this->mod_type = self::CHILD_THEME;
         $child_data = get_theme_data(STYLESHEETPATH . '/style.css');
         $child_readme_data = ak_module_readme_data(STYLESHEETPATH . '/readme.txt');
         $this->child_data = array_merge($readme_data, $child_readme_data, $child_data);
     }
     $this->version = $this->mod_data['Version'];
 }
 /**
  * Loads component data.
  * As it is a child component, data is loaded into akModuleAbstract::child_data
  *
  * @return void
  */
 protected final function loadData()
 {
     if (empty($this->child_data)) {
         $component_data = ak_component_data($this->mod_file, true);
         $readme_data = ak_module_readme_data($this->mod_file);
         $this->child_data = array_merge($readme_data, $component_data);
         $this->PID = $this->child_data['Parent'];
         $this->mod_data = ak_get_object($this->PID)->getModData();
         if (empty($this->child_data['Version'])) {
             $this->version = $this->mod_data['Version'];
         } else {
             $this->version = $this->child_data['Version'];
         }
     }
 }
 /**
  * Loads plugins data.
  *
  * @return void
  */
 protected final function loadData()
 {
     if (empty($this->mod_data)) {
         if (!function_exists('get_plugin_data')) {
             require_once ABSPATH . 'wp-admin/includes/plugin.php';
         }
         $plugin_data = get_plugin_data($this->mod_file);
         $readme_data = ak_module_readme_data($this->mod_file);
         $this->mod_data = array_merge($readme_data, $plugin_data);
         $this->version = $this->mod_data['Version'];
     }
 }