1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

Added test for loadAdminIcons and verified against previous template.

This commit is contained in:
Cameron 2021-01-24 15:33:39 -08:00
parent a99300aed5
commit 26f0d4a0a8
3 changed files with 211 additions and 56 deletions

View File

@ -2,12 +2,10 @@
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Copyright (C) 2008-2021 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Administration Icons, should handle all icons in the future (somehow)
*
*/
$ADMIN_ICONS_TEMPLATE['E_16_FACEBOOK'] = "<img class='icon S16' src='" . e_IMAGE . "admin_images/facebook_16.png' alt='' />";
@ -17,8 +15,6 @@ $ADMIN_ICONS_TEMPLATE['E_16_GITHUB'] = "<img class='icon S16' src
$ADMIN_ICONS_TEMPLATE['E_16_E107'] = "<img class='icon S16' src='" . e_IMAGE . "e107_icon_16.png' alt='' />";
$ADMIN_ICONS_TEMPLATE['E_32_E107'] = "<img class='icon S32' src='" . e_IMAGE . "e107_icon_32.png' alt='' />";
$ADMIN_ICONS_TEMPLATE['E_32_ADMIN'] = "<i class='S32 e-admins-32'></i>";
$ADMIN_ICONS_TEMPLATE['E_32_ADPASS'] = "<i class='S32 e-adminpass-32'></i>";
$ADMIN_ICONS_TEMPLATE['E_32_BANLIST'] = "<i class='S32 e-banlist-32'></i>";
@ -56,14 +52,12 @@ $ADMIN_ICONS_TEMPLATE['E_32_LANGUAGE'] = "<i class='S32 e-language-
// Large Admin Other Link Images
$ADMIN_ICONS_TEMPLATE['E_24_PLUGIN'] = "<i class='S24 e-plugins-24'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_PLUGIN'] = "<i class='S32 e-plugins-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_PLUGMANAGER'] = "<i class='S32 e-plugmanager-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_MAIN'] = "<i class='S32 e-main-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_THEMEMANAGER'] = "<i class='S32 e-themes-32'></i> ";
// Large Admin Other Images
$ADMIN_ICONS_TEMPLATE['E_32_COMMENT'] = "<i class='S32 e-comments-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_ADMINLOG'] = "<i class='S32 e-adminlogs-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_LOGOUT'] = "<i class='S32 e-logout-32'></i> ";
@ -73,7 +67,6 @@ $ADMIN_ICONS_TEMPLATE['E_32_SETTINGS'] = "<i class='S32 e-settings-
$ADMIN_ICONS_TEMPLATE['E_32_SYSINFO'] = "<i class='S32 e-sysinfo-32'></i> ";
// Large Category Images
$ADMIN_ICONS_TEMPLATE['E_32_CAT_SETT'] = "<i class='S32 e-cat_settings-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_CAT_USER'] = "<i class='S32 e-cat_users-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_CAT_CONT'] = "<i class='S32 e-cat_content-32'></i> ";
@ -84,6 +77,7 @@ $ADMIN_ICONS_TEMPLATE['E_32_CAT_MANAGE'] = "<i class='S32 e-manage-32
$ADMIN_ICONS_TEMPLATE['E_32_CAT_MISC'] = "<i class='S32 e-settings-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_CAT_ABOUT'] = "<i class='S32 e-info-32'></i> ";
// Small Category Images.
$ADMIN_ICONS_TEMPLATE['E_16_ADMIN'] = "<i class='S16 e-admins-16'></i>";
$ADMIN_ICONS_TEMPLATE['E_16_ADPASS'] = "<i class='S16 e-adminpass-16'></i>";
$ADMIN_ICONS_TEMPLATE['E_16_BANLIST'] = "<i class='S16 e-banlist-16'></i>";
@ -130,13 +124,9 @@ $ADMIN_ICONS_TEMPLATE['E_16_PLUGIN'] = "<i class='S16 e-plugins-1
$ADMIN_ICONS_TEMPLATE['E_16_PLUGMANAGER'] = "<i class='S16 e-plugmanager-16'></i>";
$ADMIN_ICONS_TEMPLATE['E_16_THEMEMANAGER'] = "<i class='S16 e-themes-16'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_FALSE_ICON'] = "<span class='text-danger admin-false-icon'>&#10799;</span>"; /*"<i class='fa fa-times text-danger'></i>"*/
$ADMIN_ICONS_TEMPLATE['ADMIN_WARNING_ICON'] = "<i class='fa fa-warning text-warning'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_GRID_ICON'] = "<i class='fa fa-th'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_LIST_ICON'] = "<i class='fa fa-th-list'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_ADD_ICON'] = "<i class='S32 e-add-32'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_INFO_ICON'] = "<i class='fa fa-question-circle'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_CONFIGURE_ICON'] = "<i class='S32 e-settings-32'></i>";
@ -150,13 +140,10 @@ $ADMIN_ICONS_TEMPLATE['ADMIN_UP_ICON'] = "<i class='S32 e-up-32'></
$ADMIN_ICONS_TEMPLATE['ADMIN_DOWN_ICON'] = "<i class='S32 e-down-32'></i>";
// FOR BC
$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON_PATH'] = e_IMAGE_ABS . "admin_images/edit_32.png";
$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON_PATH'] = e_IMAGE_ABS . "admin_images/delete_32.png";
$ADMIN_ICONS_TEMPLATE['ADMIN_WARNING_ICON_PATH'] = e_IMAGE_ABS . "admin_images/warning_32.png";
$ADMIN_ICONS_TEMPLATE['ADMIN_TRUE_ICON_PATH'] = e_IMAGE_ABS . "admin_images/true_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_FALSE_ICON_PATH'] = e_IMAGE_ABS . "admin_images/false_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON'] = "<i class='S32 e-edit-32'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON'] = "<i class='S32 e-delete-32'></i>";
@ -164,10 +151,28 @@ $ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "<i class='S32 e-sort-32'>
$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "<i class='S32 e-execute-32'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_PAGES_ICON'] = "<i class='S32 e-custom-32'></i>";
$ADMIN_ICONS_TEMPLATE['E_32_TRUE'] = "<i class='S32 e-true-32'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_CHILD_ICON'] = '<img src="' . e_IMAGE_ABS . 'generic/branchbottom.gif" class="treeprefix level-x icon" alt="" />'; // must use single quotes.
$ADMIN_ICONS_TEMPLATE['ADMIN_FILTER_ICON'] = "<i class='fa fa-filter'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_TRUE_ICON'] = "<span class='text-success admin-true-icon'>&#10004;</span>"; /*"<i class='fa fa-check text-success'></i>" */
$ADMIN_ICONS_TEMPLATE['E_32_TRUE'] = "<i class='S32 e-true-32'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_CHILD_ICON'] = '<img src="' . e_IMAGE_ABS . 'generic/branchbottom.gif" class="treeprefix level-x icon" alt="" />'; // must use single quotes.
$ADMIN_ICONS_TEMPLATE['ADMIN_FILTER_ICON'] = "<i class='fa fa-filter'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_TRUE_ICON'] = "<span class='text-success admin-true-icon'>&#10004;</span>"; /*"<i class='fa fa-check text-success'></i>" */
$ADMIN_ICONS_TEMPLATE['ADMIN_FALSE_ICON'] = "<span class='text-danger admin-false-icon'>&#10799;</span>";
$ADMIN_ICONS_TEMPLATE['E_24_PLUGIN'] = "<i class='S24 e-plugins-24'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_MAIN'] = "<i class='S32 e-main-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_DOCS'] = "<i class='S32 e-docs-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_LEAV'] = "<i class='S32 e-leave-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_LGOT'] = "<i class='S32 e-logout-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_ARROW'] = "<i class='S32 e-arrow-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_ARROW_OVER'] = "<i class='S32 e-arrow_over-32'></i> ";
/**
* @deprecated
$ADMIN_ICONS_TEMPLATE['ADMIN_TRUE_ICON_PATH'] = e_IMAGE_ABS . "admin_images/true_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_FALSE_ICON_PATH'] = e_IMAGE_ABS . "admin_images/false_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_TRUE_ICON'] = "<i class='S16 e-true-16'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_FALSE_ICON'] = "<i class='S16 e-false-16'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_WARNING_ICON'] = "<i class='S16 e-warning-16'></i>";
@ -200,10 +205,6 @@ $ADMIN_ICONS_TEMPLATE['ADMIN_UNINSTALLPLUGIN_ICON'] ="<i class='S16 e-plugin_uni
$ADMIN_ICONS_TEMPLATE['ADMIN_UPGRADEPLUGIN_ICON'] = "<i class='S16 e-up-16'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "<i class='S16 e-execute-16'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "<i class='S16 e-sort'></i>";
/**
* @deprecated
$ADMIN_ICONS_TEMPLATE['E_32_CUSTOMFIELD'] = "<img class='icon S16' src='".e_IMAGE."admin_images/custom_field_32.png' alt='' />";
$ADMIN_ICONS_TEMPLATE['E_16_CAT_SETT'] = e_IMAGE.'admin_images/cat_settings_16.png');
$ADMIN_ICONS_TEMPLATE['E_16_CAT_USER'] = e_IMAGE.'admin_images/cat_users_16.png');
@ -233,19 +234,10 @@ $ADMIN_ICONS_TEMPLATE['E_32_NAV_LGOT'] = "<i class='S32 e-logout-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_ARROW'] = "<i class='S32 e-arrow-32'></i> ";
$ADMIN_ICONS_TEMPLATE['E_32_NAV_ARROW_OVER'] = "<i class='S32 e-arrow_over-32'></i> ";
// Small Admin Main Link Images
// Small Admin Other Link Images
*
// Small Admin Other Images
$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON_PATH'] = e_IMAGE_ABS."admin_images/edit_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON_PATH'] = e_IMAGE_ABS."admin_images/delete_16.png"; //XXX DEPRECATED but used in v1.x
$ADMIN_ICONS_TEMPLATE['ADMIN_WARNING_ICON_PATH'] = e_IMAGE_ABS."admin_images/warning_16.png"; //XXX DEPRECATED but used in v1.x

View File

@ -48,8 +48,8 @@ class e107
public $file_path;
public $site_path;
public $relative_base_path;
public $_ip_cache;
public $_host_name_cache;
// public $_ip_cache;
// public $_host_name_cache;
public $site_theme; // class2 -> check valid theme
// public $http_theme_dir; // class2 -> check valid theme
@ -89,7 +89,7 @@ class e107
*
* @var boolean
*/
protected static $_sc_core_loaded = false;
// protected static $_sc_core_loaded = false;
/**
* Singleton instance
@ -2000,10 +2000,7 @@ class e107
if($user === null)
{
$user = self::getObject('e_system_user');
if($user_id)
{
$user->load($user_id);
} // self registered on load
}
return $user;
}
@ -2348,7 +2345,7 @@ class e107
'href' => $libraryPath.$pre['path']
];
$browserCache = !empty($pre['browsercache']) ? true : false;
$browserCache = !empty($pre['browsercache']);
unset($pre['path'],$pre['browsercache']);
$linkArr2 = array_merge($linkArr,$pre);
@ -3043,15 +3040,15 @@ class e107
/**
* Load admin icons template and define their constants
* @return void;
* @return array;
*/
public static function loadAdminIcons()
{
$regID = 'e107/core/adminicons/loaded';
$regID = 'core/e107/templates/admin_icons';
if(self::getRegistry($regID))
if($temp = self::getRegistry($regID))
{
return null;
return $temp;
}
$ADMIN_ICONS_TEMPLATE = self::getCoreTemplate('admin_icons', null, false);
@ -3059,11 +3056,11 @@ class e107
if(defset('THEME_STYLE') === 'css/kadmin.css')
{
$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON'] = "<i class='fa fa-edit fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON'] = "<i class='fa fa-trash fa-2x fa-fw text-danger'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "<i class='fa fa-power-off fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "<i class='fa fa-sort fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_PAGES_ICON'] = "<i class='fa fa-file-text-o fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_EDIT_ICON'] = "<i class='fa fa-edit fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_DELETE_ICON'] = "<i class='fa fa-trash fa-2x fa-fw text-danger'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_EXECUTE_ICON'] = "<i class='fa fa-power-off fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_SORT_ICON'] = "<i class='fa fa-sort fa-2x fa-fw'></i>";
$ADMIN_ICONS_TEMPLATE['ADMIN_PAGES_ICON'] = "<i class='fa fa-file-text-o fa-2x fa-fw'></i>";
}
foreach($ADMIN_ICONS_TEMPLATE as $def=>$val)
@ -3071,7 +3068,9 @@ class e107
define($def, $val);
}
self::setRegistry($regID, true);
self::setRegistry($regID, $ADMIN_ICONS_TEMPLATE);
return $ADMIN_ICONS_TEMPLATE;
}
/**
@ -4744,10 +4743,8 @@ class e107
{
return $this->e107_dirs[$dir.'_SERVER'];
}
$ret = e_BASE.$this->e107_dirs[$dir.'_DIRECTORY'];
return $ret;
return e_BASE.$this->e107_dirs[$dir.'_DIRECTORY'];
}
/**
@ -5856,7 +5853,7 @@ class e107
if(version_compare($curVersion,$newVersion) === -1)
{
$data = array(
return array(
'name' => $xdata['core'][0]['@attributes']['name'],
'url' => $xdata['core'][0]['@attributes']['url'],
'date' => $xdata['core'][0]['@attributes']['date'],
@ -5865,7 +5862,6 @@ class e107
'description' => $xdata['core'][0]['description'],
);
return $data;
}
return false;

View File

@ -729,10 +729,177 @@ class e107Test extends \Codeception\Test\Unit
*/
public function testLoadAdminIcons()
{
$e107 = $this->e107;
$e107::loadAdminIcons();
$e107::loadAdminIcons();
$legacyList = array (
'E_16_FACEBOOK' => '<img class=\'icon S16\' src=\'./e107_images/admin_images/facebook_16.png\' alt=\'\' />',
'E_16_TWITTER' => '<img class=\'icon S16\' src=\'./e107_images/admin_images/twitter_16.png\' alt=\'\' />',
'E_16_GITHUB' => '<img class=\'icon S16\' src=\'./e107_images/admin_images/github_16.png\' alt=\'\' />',
'E_16_E107' => '<img class=\'icon S16\' src=\'./e107_images/e107_icon_16.png\' alt=\'\' />',
'E_32_E107' => '<img class=\'icon S32\' src=\'./e107_images/e107_icon_32.png\' alt=\'\' />',
'E_32_ADMIN' => '<i class=\'S32 e-admins-32\'></i>',
'E_32_ADPASS' => '<i class=\'S32 e-adminpass-32\'></i>',
'E_32_BANLIST' => '<i class=\'S32 e-banlist-32\'></i>',
'E_32_CACHE' => '<i class=\'S32 e-cache-32\'></i> ',
'E_32_CREDITS' => '<i class=\'S32 e-e107_icon-32.png\'></i>',
'E_32_CRON' => '<i class=\'S32 e-cron-32\'></i> ',
'E_32_CUST' => '<i class=\'S32 e-custom-32\'></i> ',
'E_32_DATAB' => '<i class=\'S32 e-database-32\'></i> ',
'E_32_DOCS' => '<i class=\'S32 e-docs-32\'></i> ',
'E_32_EMOTE' => '<i class=\'S32 e-emoticons-32\'></i> ',
'E_32_FILE' => '<i class=\'S32 e-filemanager-32\'></i> ',
'E_32_FORUM' => '<i class=\'S32 e-forums-32\'></i> ',
'E_32_FRONT' => '<i class=\'S32 e-frontpage-32\'></i> ',
'E_32_IMAGES' => '<i class=\'S32 e-images-32\'></i> ',
'E_32_INSPECT' => '<i class=\'S32 e-fileinspector-32\'></i> ',
'E_32_LINKS' => '<i class=\'S32 e-links-32\'></i> ',
'E_32_WELCOME' => '<i class=\'S32 e-welcome-32\'></i> ',
'E_32_MAIL' => '<i class=\'S32 e-mail-32\'></i> ',
'E_32_MAINTAIN' => '<i class=\'S32 e-maintain-32\'></i> ',
'E_32_MENUS' => '<i class=\'S32 e-menus-32\'></i> ',
'E_32_META' => '<i class=\'S32 e-meta-32\'></i> ',
'E_32_NEWS' => '<i class=\'S32 e-news-32\'></i> ',
'E_32_NEWSFEED' => '<i class=\'S32 e-newsfeeds-32\'></i> ',
'E_32_NOTIFY' => '<i class=\'S32 e-notify-32\'></i> ',
'E_32_PHP' => '<i class=\'S32 e-phpinfo-32\'></i> ',
'E_32_POLLS' => '<i class=\'S32 e-polls-32\'></i> ',
'E_32_PREFS' => '<i class=\'S32 e-prefs-32\'></i> ',
'E_32_SEARCH' => '<i class=\'S32 e-search-32\'></i> ',
'E_32_UPLOADS' => '<i class=\'S32 e-uploads-32\'></i> ',
'E_32_EURL' => '<i class=\'S32 e-eurl-32\'></i> ',
'E_32_USER' => '<i class=\'S32 e-users-32\'></i> ',
'E_32_USER_EXTENDED' => '<i class=\'S32 e-extended-32\'></i> ',
'E_32_USERCLASS' => '<i class=\'S32 e-userclass-32\'></i> ',
'E_32_LANGUAGE' => '<i class=\'S32 e-language-32\'></i> ',
'E_32_PLUGIN' => '<i class=\'S32 e-plugins-32\'></i> ',
'E_32_PLUGMANAGER' => '<i class=\'S32 e-plugmanager-32\'></i> ',
'E_32_MAIN' => '<i class=\'S32 e-main-32\'></i> ',
'E_32_THEMEMANAGER' => '<i class=\'S32 e-themes-32\'></i> ',
'E_32_COMMENT' => '<i class=\'S32 e-comments-32\'></i> ',
'E_32_ADMINLOG' => '<i class=\'S32 e-adminlogs-32\'></i> ',
'E_32_LOGOUT' => '<i class=\'S32 e-logout-32\'></i> ',
'E_32_MANAGE' => '<i class=\'S32 e-manage-32\'></i> ',
'E_32_CREATE' => '<i class=\'S32 e-add-32\'></i> ',
'E_32_SETTINGS' => '<i class=\'S32 e-settings-32\'></i> ',
'E_32_SYSINFO' => '<i class=\'S32 e-sysinfo-32\'></i> ',
'E_32_CAT_SETT' => '<i class=\'S32 e-cat_settings-32\'></i> ',
'E_32_CAT_USER' => '<i class=\'S32 e-cat_users-32\'></i> ',
'E_32_CAT_CONT' => '<i class=\'S32 e-cat_content-32\'></i> ',
'E_32_CAT_FILE' => '<i class=\'S32 e-cat_files-32\'></i> ',
'E_32_CAT_TOOL' => '<i class=\'S32 e-cat_tools-32\'></i> ',
'E_32_CAT_PLUG' => '<i class=\'S32 e-cat_plugins-32\'></i> ',
'E_32_CAT_MANAGE' => '<i class=\'S32 e-manage-32\'></i> ',
'E_32_CAT_MISC' => '<i class=\'S32 e-settings-32\'></i> ',
'E_32_CAT_ABOUT' => '<i class=\'S32 e-info-32\'></i> ',
'E_32_NAV_MAIN' => '<i class=\'S32 e-main-32\'></i> ',
'E_32_NAV_DOCS' => '<i class=\'S32 e-docs-32\'></i> ',
'E_32_NAV_LEAV' => '<i class=\'S32 e-leave-32\'></i> ',
'E_32_NAV_LGOT' => '<i class=\'S32 e-logout-32\'></i> ',
'E_32_NAV_ARROW' => '<i class=\'S32 e-arrow-32\'></i> ',
'E_32_NAV_ARROW_OVER' => '<i class=\'S32 e-arrow_over-32\'></i> ',
'E_16_ADMIN' => '<i class=\'S16 e-admins-16\'></i>',
'E_16_ADPASS' => '<i class=\'S16 e-adminpass-16\'></i>',
'E_16_BANLIST' => '<i class=\'S16 e-banlist-16\'></i>',
'E_16_CACHE' => '<i class=\'S16 e-cache-16\'></i>',
'E_16_COMMENT' => '<i class=\'S16 e-comments-16\'></i>',
'E_16_CREDITS' => '<i class=\'S16 e-e107_icon-16\'></i>',
'E_16_CRON' => '<i class=\'S16 e-cron-16\'></i>',
'E_16_CUST' => '<i class=\'S16 e-custom-16\'></i>',
'E_16_CUSTOMFIELD' => '<i class=\'S16 e-custom_field-16\'></i>',
'E_16_DATAB' => '<i class=\'S16 e-database-16\'></i>',
'E_16_DOCS' => '<i class=\'S16 e-docs-16\'></i>',
'E_16_EMOTE' => '<i class=\'S16 e-emoticons-16\'></i>',
'E_16_FILE' => '<i class=\'S16 e-filemanager-16\'></i>',
'E_16_FORUM' => '<i class=\'S16 e-forums-16\'></i>',
'E_16_FRONT' => '<i class=\'S16 e-frontpage-16\'></i>',
'E_16_IMAGES' => '<i class=\'S16 e-images-16\'></i>',
'E_16_INSPECT' => '<i class=\'S16 e-fileinspector-16\'></i>',
'E_16_LINKS' => '<i class=\'S16 e-links-16\'></i>',
'E_16_WELCOME' => '<i class=\'S16 e-welcome-16\'></i>',
'E_16_MAIL' => '<i class=\'S16 e-mail-16\'></i>',
'E_16_MAINTAIN' => '<i class=\'S16 e-maintain-16\'></i>',
'E_16_MENUS' => '<i class=\'icon S16 e-menus-16\'></i>',
'E_16_META' => '<i class=\'icon S16 e-meta-16\'></i>',
'E_16_NEWS' => '<i class=\'icon S16 e-news-16\'></i>',
'E_16_NEWSFEED' => '<i class=\'S16 e-newsfeeds-16\'></i>',
'E_16_NOTIFY' => '<i class=\'S16 e-notify-16\'></i>',
'E_16_PHP' => '<i class=\'S16 e-phpinfo-16\'></i>',
'E_16_POLLS' => '<i class=\'S16 e-polls-16\'></i>',
'E_16_PREFS' => '<i class=\'S16 e-prefs-16\'></i>',
'E_16_SEARCH' => '<i class=\'S16 e-search-16\'></i>',
'E_16_UPLOADS' => '<i class=\'S16 e-uploads-16\'></i>',
'E_16_EURL' => '<i class=\'S16 e-eurl-16\'></i>',
'E_16_USER' => '<i class=\'S16 e-users-16\'></i>',
'E_16_USER_EXTENDED' => '<i class=\'S16 e-extended-16\'></i>',
'E_16_USERCLASS' => '<i class=\'S16 e-userclass-16\'></i>',
'E_16_LANGUAGE' => '<i class=\'S16 e-language-16\'></i>',
'E_16_PLUGIN' => '<i class=\'S16 e-plugins-16\'></i>',
'E_16_PLUGMANAGER' => '<i class=\'S16 e-plugmanager-16\'></i>',
'E_16_THEMEMANAGER' => '<i class=\'S16 e-themes-16\'></i>',
'E_16_ADMINLOG' => '<i class=\'S16 e-adminlogs-16\'></i>',
'E_16_MANAGE' => '<i class=\'S16 e-manage-16\'></i>',
'E_16_CREATE' => '<i class=\'S16 e-add-16\'></i>',
'E_16_SETTINGS' => '<i class=\'S16 e-settings-16\'></i>',
'E_16_SYSINFO' => '<i class=\'S16 e-sysinfo-16\'></i>',
'E_16_FAILEDLOGIN' => '<i class=\'S16 e-failedlogin-16\'></i>',
'E_32_TRUE' => '<i class=\'S32 e-true-32\'></i>',
'ADMIN_CHILD_ICON' => '<img src="/e107_images/generic/branchbottom.gif" class="treeprefix level-x icon" alt="" />',
'ADMIN_FILTER_ICON' => '<i class=\'fa fa-filter\'></i>',
'ADMIN_TRUE_ICON' => '<span class=\'text-success admin-true-icon\'>&#10004;</span>',
'ADMIN_FALSE_ICON' => '<span class=\'text-danger admin-false-icon\'>&#10799;</span>',
'ADMIN_WARNING_ICON' => '<i class=\'fa fa-warning text-warning\'></i>',
'ADMIN_GRID_ICON' => '<i class=\'fa fa-th\'></i>',
'ADMIN_LIST_ICON' => '<i class=\'fa fa-th-list\'></i>',
'ADMIN_EDIT_ICON' => '<i class=\'S32 e-edit-32\'></i>',
'ADMIN_DELETE_ICON' => '<i class=\'S32 e-delete-32\'></i>',
'ADMIN_SORT_ICON' => '<i class=\'S32 e-sort-32\'></i>',
'ADMIN_EXECUTE_ICON' => '<i class=\'S32 e-execute-32\'></i>',
'ADMIN_PAGES_ICON' => '<i class=\'S32 e-custom-32\'></i>',
'ADMIN_ADD_ICON' => '<i class=\'S32 e-add-32\'></i>',
'ADMIN_INFO_ICON' => '<i class=\'fa fa-question-circle\'></i>',
'ADMIN_CONFIGURE_ICON' => '<i class=\'S32 e-settings-32\'></i>',
'ADMIN_VIEW_ICON' => '<i class=\'S32 e-search-32\'></i>',
'ADMIN_URL_ICON' => '<i class=\'S16 e-forums-16\'></i>',
'ADMIN_INSTALLPLUGIN_ICON' => '<i class=\'S32 e-plugin_install-32\'></i>',
'ADMIN_UNINSTALLPLUGIN_ICON' => '<i class=\'S32 e-plugin_uninstall-32\'></i>',
'ADMIN_UPGRADEPLUGIN_ICON' => '<i class=\'S32 e-up-32\'></i>',
'ADMIN_REPAIRPLUGIN_ICON' => '<i class=\'S32 e-configure-32\'></i>',
'ADMIN_UP_ICON' => '<i class=\'S32 e-up-32\'></i>',
'ADMIN_DOWN_ICON' => '<i class=\'S32 e-down-32\'></i>',
'ADMIN_EDIT_ICON_PATH' => '/e107_images/admin_images/edit_32.png',
'ADMIN_DELETE_ICON_PATH' => '/e107_images/admin_images/delete_32.png',
'ADMIN_WARNING_ICON_PATH' => '/e107_images/admin_images/warning_32.png',
'E_24_PLUGIN' => "<i class='S24 e-plugins-24'></i> ",
'ADMIN_FALSE_ICON' => "<span class='text-danger admin-false-icon'>&#10799;</span>"
);
$new = $e107::loadAdminIcons();
foreach($new as $key=>$val)
{
if(!isset($legacyList[$key]))
{
$this->fail("Remove {$key} FROM admin_icons_template");
}
$this->assertSame($legacyList[$key], $val, $key." should equal: ".$legacyList[$key]);
}
foreach($legacyList as $key=>$val)
{
if(!isset($new[$key]))
{
$this->fail("{$key} is missing from admin_icons_template");
}
}
$template2 = $e107::loadAdminIcons();
$this->assertSame($new, $template2);
}