Skip to content

Commit

Permalink
remove showMainMenu() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Fasse committed Jul 31, 2019
1 parent 527fa77 commit 0d49ef7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion adm_program/index.php
Expand Up @@ -61,6 +61,6 @@
}

// display Menu
$page->addHtml($page->showMainMenu());
$page->addHtml($gMenu->getHtml(true));

$page->show();
8 changes: 2 additions & 6 deletions adm_program/system/classes/HtmlPage.php
Expand Up @@ -431,7 +431,7 @@ public function getHeadline()
private function getFileContent($filename)
{
global $gLogger, $gL10n, $gDb, $gCurrentSession, $gCurrentOrganization, $gCurrentUser;
global $gValidLogin, $gProfileFields, $gHomepage, $gSettingsManager;
global $gValidLogin, $gProfileFields, $gHomepage, $gSettingsManager, $gMenu;

$filePath = THEME_PATH . '/' . $filename;
if (!is_file($filePath))
Expand Down Expand Up @@ -576,15 +576,12 @@ private function getHtmlHeader()
*/
private function getHtmlBody()
{
$htmlMenu = '';
$htmlHeadline = '';

if ($this->showMenu)
{
// add modules and administration modules to the menu
$this->showMainMenu();
// add mobile menu
$this->addModalMenu();
$htmlMenu = $this->menu->show();
}

if ($this->headline !== '')
Expand All @@ -603,7 +600,6 @@ private function getHtmlBody()
$htmlBody .= $this->htmlMyBodyTop;
$htmlBody .= '<div class="admidio-content">';
$htmlBody .= $htmlHeadline;
$htmlBody .= $htmlMenu;
$htmlBody .= $this->pageContent;
$htmlBody .= '</div>';
$htmlBody .= $this->htmlMyBodyBottom;
Expand Down
5 changes: 1 addition & 4 deletions adm_themes/modern/my_body_bottom.php
Expand Up @@ -13,10 +13,7 @@
require(ADMIDIO_PATH . FOLDER_PLUGINS . '/latest-documents-files/index.php');
require(ADMIDIO_PATH . FOLDER_PLUGINS . '/random_photo/random_photo.php');

// create html page object and display Menu
$page = new HtmlPage();
echo $page->showMainMenu(false);

echo $gMenu->getHtml();
?>
</div><!-- closes "div#right-block" -->
</div><!-- closes "div.col-md-3" -->
Expand Down

0 comments on commit 0d49ef7

Please sign in to comment.