/**
  * Extracts the version number from the page contents.
  * 
  * @return      string
  */
 private function _getVersion()
 {
     $_oUtil = new AdminPageFramework_WPUtility();
     $_sPageBody = $this->_getPageBody();
     $_aHeaders = $_oUtil->getScriptData($_sPageBody, '', array('version' => 'Version'));
     return $_oUtil->getElement($_aHeaders, 'version', '');
 }
 /**
  * Retrieves the caller script information whether it's a theme or plugin or something else.
  * 
  * @since 2.0.0
  * @since 3.0.0 Moved from the link class.
  * @remark The information can be used to embed into the footer etc.
  * @return array The information of the script.
  */
 protected function getCallerInfo($sCallerPath = null)
 {
     $_aCallerInfo = self::$_aStructure_CallerInfo;
     $_aCallerInfo['sPath'] = $sCallerPath;
     $_aCallerInfo['sType'] = $this->_getCallerType($_aCallerInfo['sPath']);
     if ('unknown' == $_aCallerInfo['sType']) {
         return $_aCallerInfo;
     }
     if ('plugin' == $_aCallerInfo['sType']) {
         return AdminPageFramework_WPUtility::getScriptData($_aCallerInfo['sPath'], $_aCallerInfo['sType']) + $_aCallerInfo;
     }
     if ('theme' == $_aCallerInfo['sType']) {
         $_oTheme = wp_get_theme();
         // stores the theme info object
         return array('sName' => $_oTheme->Name, 'sVersion' => $_oTheme->Version, 'sThemeURI' => $_oTheme->get('ThemeURI'), 'sURI' => $_oTheme->get('ThemeURI'), 'sAuthorURI' => $_oTheme->get('AuthorURI'), 'sAuthor' => $_oTheme->get('Author')) + $_aCallerInfo;
     }
     return array();
 }