From 6a93a350cc684694e27507bc3711f514bb84c213 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Wed, 5 Aug 2015 23:32:48 +0200 Subject: [PATCH] Templating ul tag. Templating li tag. Use li template in getHtmlTab. Use ul/li templates in libraries/user_preferences.inc.php. Add/update PHPDoc of templates. Signed-off-by: Hugues Peccatte --- index.php | 50 +++++++++++----------------- libraries/Util.class.php | 28 ++++++++++------ libraries/config/FormDisplay.tpl.php | 19 ++++++++--- libraries/relation.lib.php | 33 ++++++++---------- libraries/server_databases.lib.php | 25 ++++++++++---- libraries/user_preferences.inc.php | 18 +++++++--- templates/list/item.phtml | 49 +++++++++++++++++++++++++++ templates/list/unordered.phtml | 29 ++++++++++++++++ 8 files changed, 174 insertions(+), 77 deletions(-) create mode 100644 templates/list/item.phtml create mode 100644 templates/list/unordered.phtml diff --git a/index.php b/index.php index f596952c54..253cd32234 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,7 @@ require_once 'libraries/common.inc.php'; * display Git revision if requested */ require_once 'libraries/display_git_revision.lib.php'; +require_once 'libraries/Template.class.php'; /** * pass variables to child pages @@ -187,7 +188,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 if ($cfg['ShowChgPassword']) { $conditional_class = 'ajax'; PMA_printListItem( - PMA_Util::getImage('s_passwd.png') . " " . __('Change password'), + PMA_Util::getImage('s_passwd.png') . " " . __('Change password'), 'li_change_password', 'user_password.php' . $common_url_query, null, @@ -202,7 +203,7 @@ if ($server > 0 || count($cfg['Servers']) > 1 echo '
' . "\n" . PMA_URL_getHiddenInputs(null, null, 4, 'collation_connection') . '