forked from royboy789/Angular-Wordpress-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·45 lines (45 loc) · 1.92 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php language_attributes(); ?> ng-app="wpAngularTheme">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>
<meta name="author" content="Ciplex">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="apple-touch-icon" href="/favicon.png">
<?php wp_head();?>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
</head>
<body <?php body_class(); ?>>
<header class="container header">
<div class="row">
<div class="col-sm-7">
<h1>
<a href="<?php bloginfo('wpurl'); ?>">
<?php echo bloginfo('name'); ?>
</a>
</h1>
</div>
<div class="col-sm-4 col-sm-offset-1">
<span>by: <a href="http://www.roysivan.com">Roy Sivan</a></span>
</div>
</div>
<nav class="row" ng-controller="NavCtrl">
<ul class="col-sm-12">
<!--<li ng-repeat="nav in navs" ui-route="/{{nav.id>0 && 'view/'+nav.id || ''}}" ng-class="{active:$uiRoute}"><a href="#/{{nav.id>0 && 'view/'+nav.id || ''}}">{{nav.title}}</a> - {{nav.type}}</li> -->
<li ng-repeat="nav in navs track by $index" ng-class="{active:$uiRoute}">
<div ng-switch on="nav.type">
<a ng-switch-when="Custom" href="{{nav.url}}">{{nav.title}}</a>
<a ng-switch-when="Page" href="#/page/{{nav.id}}">{{nav.title}}</a>
<a ng-switch-default href="#/view/{{nav.id}}">{{nav.title}}</a>
</div>
</li>
</ul>
</nav>
</header>
<div class="container-fluid content-wrapper">
<div class="container">