1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-08 21:30:54 +02:00

Menu Manager Enhancements. And removal of the deprecated 'preview' button on the newspost page.

This commit is contained in:
Cameron
2013-03-03 01:24:54 -08:00
parent 54c7b6f212
commit acf0a74154
3 changed files with 70 additions and 37 deletions

View File

@@ -1930,10 +1930,10 @@ class admin_newspost
$frm = e107::getForm();
$text = '';
if (isset($_POST['preview']))
{
$text = $this->preview_item($this->getId());
}
/// if (isset($_POST['preview'])) // Deprecated
// {
// $text = $this->preview_item($this->getId());
// }
$sub_action = $this->getSubAction();
@@ -2387,9 +2387,11 @@ class admin_newspost
</table>
</fieldset>
</div>
<div class='buttons-bar center'>
".$frm->admin_button('preview', isset($_POST['preview']) ? NWSLAN_24 : NWSLAN_27 , 'other')."
".$frm->admin_button('submit_news', ($id && $sub_action != "sn" && $sub_action != "upload") ? NWSLAN_25 : NWSLAN_26 , 'update')."
<div class='buttons-bar center'>";
// ".$frm->admin_button('preview', isset($_POST['preview']) ? NWSLAN_24 : NWSLAN_27 , 'other')."
$text .= $frm->admin_button('submit_news', ($id && $sub_action != "sn" && $sub_action != "upload") ? NWSLAN_25 : NWSLAN_26 , 'update')."
".$frm->checkbox('create_edit_stay', 1, isset($_POST['create_edit_stay'])).$frm->label(LAN_NEWS_54, 'create_edit_stay', 1)."
<input type='hidden' name='news_id' value='{$id}' />
</div>