PHP Classes

File: app/Views/Include/navbar.html.twig

Recommend this page to a friend!
  Classes of Sergey Beskorovayniy   Silex MVC Blog   app/Views/Include/navbar.html.twig   Download  
File: app/Views/Include/navbar.html.twig
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Silex MVC Blog
MVC based blog using on the Silex micro-framework
Author: By
Last change: Add TodoMVC for Vue.js
Date: 8 years ago
Size: 3,691 bytes
 

Contents

Class file image Download
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <div class="brand-text"><a class="navbar-brand" href="http://silex.sensiolabs.org/" target="_blank">Silex MicroFramework</a></div> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav"> <li class="{% if _c_.route in ['default', 'home'] %}active{% endif %}"><a href="/home">{{ 'home'|trans|capitalize }}</a></li> <li class="{% if _c_.route in ['blog', 'blog_posts', 'blog_posts_all'] %}active{% endif %}"><a href="/blog">{{ 'blog'|trans|capitalize }}</a></li> {% if _c_.isAuthenticated() %} <li class="{% if _c_.route in ['account', 'blog_new', 'blog_edit'] %}active{% endif %}"><a href="/account">{{ 'account'|trans|capitalize }}</a></li> {% endif %} {% if _c_.isAdmin() %} <li class="dropdown {% if _c_.opts['controller'] == 'test' or _c_.opts['controller'] == 'todo' %}active{% endif %}"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ 'testing'|trans|capitalize }} <b class="caret"></b></a> <ul class="dropdown-menu"> <li class="dropdown-header">{{ 'debug'|trans|capitalize }}</li> <li><a href="/test/dump">Dump</a></li> <li class="divider"></li> <li class="dropdown-header">{{ 'loading_resources'|trans|capitalize }}</li> <li><a href="/test/getfile/anketa.pdf">PDF</a></li> <li><a href="/test/getfile/ch.png">PNG</a></li> <li class="divider"></li> <li class="dropdown-header">Bootstrap</li> <li><a href="/test/bootstrap">CSS</a></li> <li class="divider"></li> <li class="dropdown-header">PHP ActiveRecord</li> <li><a href="/test/addpost">{{ 'add_post'|trans|capitalize }}</a></li> <li><a href="/test/posts">{{ 'user_posts'|trans|capitalize }}</a></li> <li><a href="/test/posts/admin/1">{{ 'pagination'|trans|capitalize }}</a></li> <li class="divider"></li> <li class="dropdown-header">{{ 'todo'|trans|capitalize }}</li> <li><a href="/test/backbone">Backbone.js</a></li> <li><a href="/test/vue">Vue.js</a></li> </ul> </li> {% endif %} </ul> <form method="get" action="http://symfony.com/search" class="navbar-form navbar-right" role="form" target="_blank"> <div class="form-group"> <input name="q" id="search-id" type="search" class="form-control" placeholder="{{ 'search_on_symfony'|trans }}..." /> </div> <button type="submit" class="btn btn-success"><i class="fa fa-search" aria-hidden="true"></i> {{ 'search'|trans|capitalize }}</button> </form> </div><!--/.nav-collapse --> </div> </div>