pp3/module/Application/view/layout/layout.phtml (125 lines of code) (raw):

<?php /** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ ?> <?php echo $this->doctype(); ?> <html lang="en"> <head> <meta charset="utf-8"> <?php echo $this->headTitle('Apache NetBeans Plugin Portal ') ?> <?php echo $this->headMeta() ->appendName('viewport', 'width=device-width, initial-scale=1.0') ->appendHttpEquiv('X-UA-Compatible', 'IE=edge') ?> <!-- icons --> <link rel="shortcut icon" type="image/x-icon" href="<?php echo $this->basePath('/favicon.ico'); ?>"> <link rel="apple-touch-icon" sizes="180x180" href="<?php echo $this->basePath('/apple-touch-icon.png'); ?>"> <link rel="icon" type="image/png" sizes="32x32" href="<?php echo $this->basePath('/favicon-32x32.png'); ?>"> <link rel="icon" type="image/png" sizes="16x16" href="<?php echo $this->basePath('/favicon-16x16.png'); ?>"> <link rel="manifest" href="<?php echo $this->basePath('/site.webmanifest'); ?>"> <link rel="mask-icon" href="<?php echo $this->basePath('/safari-pinned-tab.svg'); ?>" color="#5bbad5"> <meta name="msapplication-TileColor" content="#ffc40d"> <meta name="theme-color" content="#ffffff"> <!-- Le styles --> <?php echo $this->headLink() ->prependStylesheet($this->basePath('scss/style.css')) ->prependStylesheet($this->basePath('css/bootstrap-theme.min.css')) ->prependStylesheet($this->basePath('css/bootstrap.min.css')) ->prependStylesheet($this->basePath('css/jquery-ui-1.12.1.css')) ->prependStylesheet($this->basePath('fontawesome/css/all.min.css')) ?> <!-- Scripts --> <?php echo $this->headScript() ->prependFile($this->basePath('js/script.js')) ->prependFile($this->basePath('js/jquery.ba-throttle-debounce.min.js')) ->prependFile($this->basePath('js/validator.min.js')) ->prependFile($this->basePath('js/bootstrap.min.js')) ->prependFile($this->basePath('js/jquery-ui-1.12.1.min.js')) ->prependFile($this->basePath('js/jquery.min.js')) ->prependFile($this->basePath('js/respond.min.js'), 'text/javascript', array('conditional' => 'lt IE 9',)) ->prependFile($this->basePath('js/html5shiv.min.js'), 'text/javascript', array('conditional' => 'lt IE 9',)) ->prependFile($this->basePath('js/ckeditor/ckeditor.js')) ->prependFile($this->basePath('js/ckeditor/config.js')) ; ?> <script type="text/javascript"> const BASE_URL = '<?= $this->url('home')?>'; </script> </head> <body> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation" id="pp-navbar"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="<?= $this->url('home') ?>"> <img src="<?= $this->basePath('img/apache-netbeans.svg')?>" style="padding-right: 8px; height: 30px;"> <span class="r-white">Apache NetBeans Plugin Portal</span></a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav" id="mynav"> <li><a href="<?= $this->url('home') ?>">Plugin Catalog</a></li> <?php if ($this->isAuthenticated) { ?> <li><a href="<?= $this->url('plugin') ?>">Add plugin</a></li> <li><a href="<?= $this->url('plugin', array('action' => 'list'))?>">My plugins</a></li> <?php } ?> <?php if ($this->isVerifier) { ?> <li><a href="<?= $this->url('verification', array('action' => 'list')) ?>">Verification requests</a></li> <?php } ?> <?php if ($this->isAdmin) { ?> <li><a href="<?= $this->url('admin') ?>">Admin</a></li>'; <?php } ?> <li><a href="https://cwiki.apache.org/confluence/display/NETBEANS/How+to+get+plugin+on+Plugin+Portal+Update+Center">Help</a></li> </ul> <ul class="nav navbar-nav pull-right"> <li> <?php if (!(array_key_exists('sessionUserId', $_SESSION) && $_SESSION['sessionUserId'])) { echo '<a href="'.$this->url('login').'">Login</a>'; } else { printf('<a href="%s" style="text-align: right; padding: 0.5ex">Logout %s (%s)<br />%s</a>', $this->url('login', array('action' => 'logout')), htmlentities($this->sessionUserName, ENT_HTML5, 'UTF-8'), htmlentities($this->sessionIdp, ENT_HTML5, 'UTF-8'), htmlentities($this->sessionUserEmail, ENT_HTML5, 'UTF-8')); } ?> </li> </ul> </div><!--/.nav-collapse --> </div> </nav> <div class="container-fluid" style="margin: 0px 30px;"> <div class="r-pad"> <?php echo $this->content; ?> </div> <footer class='pp-footer'> Apache NetBeans Plugin Portal, build #191001 </footer> </div> <!-- /container --> <?php echo $this->inlineScript() ?> </body> </html>