remove duplicate footer, add title, clean code

master
Jean-Christian Paul Denis 2021-09-12 22:34:56 +02:00
parent 234a496ac4
commit b57b273d84
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
1 changed files with 4 additions and 11 deletions

View File

@ -469,7 +469,8 @@ if (isset($_REQUEST['part']) && $_REQUEST['part'] == 'feed') {
($feed_id ? __('Edit feed') : __('New feed')) => '' ($feed_id ? __('Edit feed') : __('New feed')) => ''
) )
). ).
dcPage::notices(); dcPage::notices() .
($feed_id ? '<h3>' . sprintf(__('Edit feed "%s"'), $feed_name) .'</h3>' : '');
# Feed # Feed
if ($can_view_page) { if ($can_view_page) {
@ -490,7 +491,7 @@ if (isset($_REQUEST['part']) && $_REQUEST['part'] == 'feed') {
} }
echo ' echo '
<div class="multi-part" title="'.__('Feed').'" id="edit-entry"> <div' . ($feed_id ? ' class="multi-part" title="'.__('Feed').'"' : '') . ' id="edit-entry">
<form method="post" action="plugin.php"> <form method="post" action="plugin.php">
<div class="two-cols">'. <div class="two-cols">'.
@ -845,12 +846,4 @@ else {
); );
} }
echo echo '</body></html>';
'<hr class="clear"/><p class="right modules">
<a class="module-config" '.
'href="plugins.php?module=zoneclearFeedServer&amp;conf=1&amp;redir='.
urlencode('plugin.php?p=zoneclearFeedServer').'">'.__('Configuration').'</a> -
zoneclearFeedServer - '.$core->plugins->moduleInfo('zoneclearFeedServer', 'version').'&nbsp;
<img alt="'.__('zoneclearFeedServer').'" src="index.php?pf=zoneclearFeedServer/icon.png" />
</p>
</body></html>';