' . __('Warning:', 'akfw') . ' '
. sprintf(__('The active plugin %s is not compatible with your WordPress version.', 'akfw'),
'«' . $this->mod_data['Name'] . ' ' . $this->version . '»')
. '
' . sprintf(__('WordPress %s is required to run this plugin.', 'akfw'), $this->mod_data['Requires'])
. '
';
}
/**
* Shows an admin warning when not using the WordPress standard sidebar.
* This is done by calling the action 'admin_notices' in isStandardSidebar()
*
* @hook action admin_notices
* @access private
* @return void
*/
final function noSidebarWarning()
{
$this->loadTranslations(); // We have not loaded translations yet.
echo '' . __('Warning:', $this->ID) . ' '
. __('Standard sidebar functions are not present.', $this->ID) . '
'
. sprintf(__('It is required to use the standard sidebar to run %s', $this->ID),
'«' . $this->mod_data['Name'] . ' ' . $this->version . '»')
. '
';
}
/**
* Loads plugins data.
*
* @return void
*/
final protected 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'];
}
}
/**
* Returns the path to plugin components.
*
* @uses apply_filters() Applies the ak_