add_action('admin_notices', array(__CLASS__, '_replyToSetAdminNotice'));
}
/**
* Displays the set admin notices.
* @since 3.5.0
* @return void
*/
public static function _replyToSetAdminNotice()
{
foreach (self::$_aAdminNotices as $_aAdminNotice) {
echo "<div class='" . esc_attr($_aAdminNotice['class_attribute']) . " notice is-dismissible'>" . "<p>" . sprintf('<strong>%1$s</strong>: ' . $_aAdminNotice['message'], self::NAME . ' ' . self::VERSION) . "</p>" . "</div>";
}
}
}
// Registry set-up.
AdminPageFrameworkLoader_Registry::setUp(__FILE__);
// Initial checks. - Do no load if accessed directly, not exiting because the 'uninstall.php' and inclusion list generator will load this file.
if (!defined('ABSPATH')) {
return;
}
if (defined('DOING_UNINSTALL')) {
return;
}
// Include the library file
if (!class_exists('AdminPageFramework')) {
// The development version is available in the repository cloned via GitHub.
$_sDevelopmentVersionPath = dirname(__FILE__) . '/development/admin-page-framework.php';
$_bDebugMode = defined('WP_DEBUG') && WP_DEBUG;
include $_bDebugMode && file_exists($_sDevelopmentVersionPath) ? $_sDevelopmentVersionPath : dirname(__FILE__) . '/library/admin-page-framework/admin-page-framework.php';
}
if (!class_exists('AdminPageFramework_Registry') || !defined('AdminPageFramework_Registry::VERSION') || version_compare(AdminPageFramework_Registry::VERSION, AdminPageFrameworkLoader_Registry::VERSION, '<')) {