';
return $htmlOutput;
diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php
index 07b0edf614..6a451963ce 100644
--- a/libraries/relation.lib.php
+++ b/libraries/relation.lib.php
@@ -345,35 +345,30 @@ function PMA_getRelationsParamDiagnostic($cfgRelation)
$retval .= '
' . __('Quick steps to setup advanced features:')
. '
';
- $retval .= '
';
- $retval .= '- ';
- $retval .= sprintf(
+
+ $items = array();
+ $items[] = sprintf(
__(
'Create the needed tables with the '
. '
%screate_tables.sql.'
),
htmlspecialchars(SQL_DIR)
- );
- $retval .= ' ' . PMA_Util::showDocu('setup', 'linked-tables');
- $retval .= ' ';
- $retval .= '- ';
- $retval .= __('Create a pma user and give access to these tables.');
- $retval .= ' ' . PMA_Util::showDocu('config', 'cfg_Servers_controluser');
- $retval .= '
';
- $retval .= '- ';
- $retval .= __(
+ ) . ' ' . PMA_Util::showDocu('setup', 'linked-tables');
+ $items[] = __('Create a pma user and give access to these tables.') . ' '
+ . PMA_Util::showDocu('config', 'cfg_Servers_controluser');
+ $items[] = __(
'Enable advanced features in configuration file '
. '(
config.inc.php), for example by '
. 'starting from config.sample.inc.php.'
- );
- $retval .= ' ' . PMA_Util::showDocu('setup', 'quick-install');
- $retval .= ' ';
- $retval .= '- ';
- $retval .= __(
+ ) . ' ' . PMA_Util::showDocu('setup', 'quick-install');
+ $items[] = __(
'Re-login to phpMyAdmin to load the updated configuration file.'
);
- $retval .= '
';
- $retval .= '
';
+
+ include_once './libraries/Template.class.php';
+ $retval .= PMA\Template::get('list/unordered')->render(
+ array('items' => $items,)
+ );
}
}
diff --git a/libraries/server_databases.lib.php b/libraries/server_databases.lib.php
index cb32d22197..f280e0ce9c 100644
--- a/libraries/server_databases.lib.php
+++ b/libraries/server_databases.lib.php
@@ -358,13 +358,24 @@ function PMA_getHtmlForNoticeEnableStatistics($url_query, $html)
. 'heavy traffic between the web server and the MySQL server.'
)
)->getDisplay();
- $html = $html . $notice;
- $html .= '
' . "\n";
+ $html .= $notice;
+
+ $items = array();
+ $items[] = array(
+ 'content' => '
' . "\n"
+ . __('Enable Statistics')
+ . '' . "\n",
+ 'class' => 'li_switch_dbstats',
+ 'url' => array(
+ 'href' => 'server_databases.php' . $url_query . '&dbstats=1',
+ 'title' => __('Enable Statistics')
+ ),
+ );
+
+ include_once './libraries/Template.class.php';
+ $html .= PMA\Template::get('list/unordered')->render(
+ array('items' => $items,)
+ );
return $html;
}
diff --git a/libraries/user_preferences.inc.php b/libraries/user_preferences.inc.php
index a46dcd680c..26ca0d5d35 100644
--- a/libraries/user_preferences.inc.php
+++ b/libraries/user_preferences.inc.php
@@ -22,14 +22,14 @@ $tabs_icons = array(
'Main_panel' => 'b_props.png',
'Import' => 'b_import.png',
'Export' => 'b_export.png');
-echo '
';
+echo PMA\Template::get('list/unordered')->render(
+ array(
+ 'id' => 'topmenu2',
+ 'class' => 'user_prefs_tabs',
+ 'content' => $content,
+ )
+);
+echo '
';
+
// show "configuration saved" message and reload navigation panel if needed
if (!empty($_GET['saved'])) {
diff --git a/templates/list/item.phtml b/templates/list/item.phtml
new file mode 100644
index 0000000000..8c1403e904
--- /dev/null
+++ b/templates/list/item.phtml
@@ -0,0 +1,49 @@
+
+
>
+
+ "
+
+
+
+ >
+
+
+
+
\ No newline at end of file
diff --git a/templates/list/unordered.phtml b/templates/list/unordered.phtml
new file mode 100644
index 0000000000..0d8557dade
--- /dev/null
+++ b/templates/list/unordered.phtml
@@ -0,0 +1,29 @@
+
+
>
+ $item);
+ }
+ echo PMA\Template::get('list/item')
+ ->render($item);
+ endforeach;
+ elseif (!empty($content)) :
+ echo $content;
+ endif;
+ ?>
+
\ No newline at end of file