From ae614416a5d7f5cab6c5b82a0c45f587d7fa9c01 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 12 Jul 2015 19:05:43 +0100 Subject: changed all input type=submit buttons to button type=submit button for better stylability --- inc/template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 95dc52deb..86f41d0ad 100644 --- a/inc/template.php +++ b/inc/template.php @@ -834,7 +834,7 @@ function tpl_searchform($ajax = true, $autocomplete = true) { print 'placeholder="'.$lang['btn_search'].'" '; if(!$autocomplete) print 'autocomplete="off" '; print 'id="qsearch__in" accesskey="f" name="id" class="edit" title="[F]" />'; - print ''; + print ''; if($ajax) print '
'; print ''; return true; @@ -1667,7 +1667,7 @@ function tpl_actiondropdown($empty = '', $button = '>') { echo ''; echo ''; - echo ''; + echo ''; echo ''; echo ''; } -- cgit v1.2.3 From 768d185262d4b53b1717808417c33fdd1ab64797 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 12 Jul 2015 19:44:14 +0100 Subject: refactored tpl_actiondropdown() to avoid duplication --- inc/template.php | 55 ++++++++++++++----------------------------------------- 1 file changed, 14 insertions(+), 41 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 86f41d0ad..c7dea6b46 100644 --- a/inc/template.php +++ b/inc/template.php @@ -1613,6 +1613,12 @@ function tpl_actiondropdown($empty = '', $button = '>') { /** @var Input $INPUT */ global $INPUT; + $action_structure = array( + 'page_tools' => array('edit', 'revert', 'revisions', 'backlink', 'subscribe'), + 'site_tools' => array('recent', 'media', 'index'), + 'user_tools' => array('login', 'register', 'profile', 'admin'), + ); + echo '
'; echo '
'; echo ''; @@ -1624,47 +1630,14 @@ function tpl_actiondropdown($empty = '', $button = '>') { echo ''; echo ''; -- cgit v1.2.3