Stacktron Posted August 5, 2015 Report Posted August 5, 2015 Is the PHP code to hide a menu or specific content on specific pages? If so what is it? Quote
0 Michael Posted August 5, 2015 Report Posted August 5, 2015 We use this in integrations: <?php if( $page_title == "Client Portal" ){ ?> URL <?php } ?> or <?php if( $page_title != "Client Portal" ){ ?> URL <?php } ?> Quote
0 Stacktron Posted August 5, 2015 Author Report Posted August 5, 2015 Okay, it's not working. Here's is my code without it. Where do I change it <!DOCTYPE html> <html dir="<?php echo (in_array($this->_("AppController.lang.dir", true), array("ltr", "rtl")) ? $this->_("AppController.lang.dir", true) : "ltr");?>"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $this->Html->safe(($this->Html->ifSet($page_title) ? $page_title . " | " : "") . $this->Html->ifSet($system_company->name));?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="shortcut icon" href="<?php echo $this->view_dir;?>images/favicon.ico" /> <link href="<?php echo $this->view_dir;?>css/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $this->view_dir;?>css/styles.css" rel="stylesheet" type="text/css" /> <link href="<?php echo $this->view_dir;?>css/style.css" rel="stylesheet" type="text/css" /> <?php // Theme CSS if (isset($theme_css)) { ?> <link href="<?php $this->Html->_($theme_css);?>" rel="stylesheet" type="text/css" media="screen" /> <?php } if ($this->_("AppController.lang.dir", true) == "rtl") { ?> <link href="<?php echo $this->view_dir;?>css/rtl.css" rel="stylesheet" type="text/css" media="screen" /> <?php } ?> <link href="<?php echo $this->view_dir;?>font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/bootstrap.min.js"></script> <!--[if lt IE 10]><script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/history/json2.js"></script><![endif]--> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/history/history.adapter.jquery.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/history/history.js"></script> <!--[if lt IE 10]><script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/history/history.html4.js"></script><![endif]--> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/jquery-client-3.5.0.js"></script> <?php echo $this->Javascript->getFiles("head"); echo $this->Html->ifSet($custom_head); ?> <!--[if lt IE 9]> <script src="<?php echo $this->view_dir;?>javascript/html5shiv.js" type="text/javascript"></script> <script src="<?php echo $this->view_dir;?>javascript/respond.min.js" type="text/javascript"></script> <![endif]--> <?php echo $this->Html->ifSet($head);?> </head> <body> <?php echo $this->Html->ifSet($body_start);?> <?php if ($this->Html->ifSet($show_header, true)) { ?> <header class="container-fluid"> <div class="container"> <a href="/client" title="Go to the homepage" class="logo"></a> <ul id="top-nav" style="float:left;"> <?php if ($this->Html->ifSet($logged_in)) { ?> <div class="right" style="margin-left:600px;> <li><a href=""></a> <a href="https://clients.stacktron.net/client/register'>https://clients.stacktron.net/client/register"><li><lk>Create Server</lk></li></a> <li><a href="<?php echo $this->Html->safe($this->client_uri . "login/");?>">Access SolusVM</a> </div> <?php }else{ ?> <div class="right" style="margin-left:705px;"> <li><a href="<?php echo $this->Html->safe($this->client_uri . "login/");?>">Log In</a> <a href="https://clients.stacktron.net/client/register'>https://clients.stacktron.net/client/register"><li><lk>Sign Up</lk></li></a> <?php } ?> </div> </ul> </div> </header> </div> </div> <div class="container"> </div> </div> <?php if (!$this->Html->ifSet($logged_in)) { ?> <div class="clearfix"></div> <div class="no-nav"></div> <?php } else { ?> <?php } } ?> <?php if ($this->Html->ifSet($logged_in)) { ?> <div class="nav-content"> <div class="nav"> <nav class="navbar navbar-default" role="navigation"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only"><?php $this->_("AppController.sreader.navigation");?></span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <div class="container"> <?php $active_nav = null; ?> <ul class="nav navbar-nav"> <li><a href="https://clients.stacktron.net/client/">Dashboard</a></li> <li><a href="https://clients.stacktron.net/client/services/">My Services</a></li> <li><a href="https://clients.stacktron.net/client/accounts/">Payment Accounts</a></li> <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">Support <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="https://clients.stacktron.net/client/plugin/support_manager/client_tickets/">My Tickets</a></li> <li><a href="https://clients.stacktron.net/client/plugin/support_manager/knowledgebase/">Knowledgebase</a></li> </li> </ul> </li> <li><a href="https://clients.stacktron.net/client/plugin/support_manager/client_tickets/departments/">Open New Ticket</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li><a href="#">Community</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"> <?php $this->Html->_($contact->first_name);?> <?php $this->Html->_($contact->last_name);?> <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="https://manage.stacktron.net" target="_blank"><i class="fa fa-desktop"></i> Access SolusVM</a></li> <li><a href="<?php echo $this->Html->safe($this->client_uri . "main/edit/");?>"><i class="fa fa-edit fa-fw"></i> <?php $this->_("AppController.client_structure.text_update_account");?></a></li> <?php if ($this->Html->ifSet($portal_installed, false)) { ?> <?php } ?> <li class="divider"></li> <li><a href="<?php echo $this->Html->safe($this->client_uri . "logout/");?>"><i class="fa fa-sign-out fa-fw"></i> <?php $this->_("AppController.client_structure.text_logout");?></a></li> </ul> </li> </ul> </div> </div><!-- /.navbar-collapse --> </nav> </div> </div> <?php }else{ ?> <?php } ?> <!-- Begin Content --> <div class="container"> <div class="row<?php echo (!$this->Html->ifSet($show_header, true) ? " login" : "");?>"> <?php if (!empty($active_nav['secondary'])) { ?> <div class="col-md-3"> <div class="list-group"> <?php foreach ($active_nav['secondary'] as $link => $value) { ?> <a href="<?php $this->Html->_($link);?>" class="list-group-item left-nav <?php echo ($value['active'] ? "active" : "");?>"> <i class="<?php $this->Html->_($value['icon']);?>"></i> <?php $this->Html->_($value['name']); ?> </a> <?php } ?> </div> </div> <div class="col-md-9"> <div class="row"> <?php echo $content;?> </div> </div> <?php } else { echo $content; } ?> </div> <div class="row footer"> <div class="col-md-12"> <hr /> </div> </div> </div> <div class="modal fade" id="global_modal" tabindex="-1" role="dialog" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="global_modal_title"></h4> </div> <div class="modal-body"><i class="fa fa-spinner fa-spin"></i></div> <div class="modal-footer"></div> </div> </div> </div> <?php echo $this->Javascript->getFiles("body");?> <?php echo $this->Javascript->getInline();?> <?php echo $this->Html->ifSet($body_end);?> </body> </html> Quote
0 Michael Posted August 5, 2015 Report Posted August 5, 2015 If you mean the menu on Blesta, it's from: <div class="nav-content"> to: </div> <div class="col-md-9"> <div class="row"> Quote
0 Stacktron Posted August 6, 2015 Author Report Posted August 6, 2015 If you mean the menu on Blesta, it's from: <div class="nav-content"> to: </div> <div class="col-md-9"> <div class="row"> It's just a blank page...can you do Teamviewer again? Quote
0 Michael Posted August 6, 2015 Report Posted August 6, 2015 It's just a blank page...can you do Teamviewer again? Sure give me a bell when your online Quote
Question
Stacktron
Is the PHP code to hide a menu or specific content on specific pages? If so what is it?
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.