Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
2
    $identity = $this->identity();
3
    $session_user_id = $identity['user_id'];
4
    $session_usertype_id = $identity['usertype_id'];
5
 
6
 
7
    $acl = $this->viewModel()->getCurrent()->getVariable('acl');
8
 
9
 
10
    $container = $this->navigation('menuNavigation')->getContainer();
11
?>
12
 
13
<nav>
14
	<ul>
15
		<?php  foreach($container as $page) :
16
 
17
    		if(!$page || !$page->getRoute() || !$acl->isAllowed($session_usertype_id , $page->getRoute())) {
18
    		    continue;
19
    		}
20
 
21
            $childs = $page->getPages();
22
            $href = $childs ? '#' :  $page->getHref();
23
		?>
24
		<li>
25
			<a href="<?php echo  $href ?>" title="">
26
				<span><i class="<?php echo $page->getClass() ?>"></i></span>
27
				<?php echo $page->getLabel() ?>
28
			</a>
29
    			<?php
30
                    $childs = $page->getPages();
31
    			    if($childs) :
32
    			?>
33
    			<ul>
34
    			<?php foreach($childs as $child) :
35
    			if(!$acl->isAllowed($session_usertype_id ,  $child->getRoute())) {
36
    			    continue;
37
    			}
38
    			?>
39
 
40
				<li class="text-submenu"><a href="<?php echo $child->getHref() ?>" title=""><?php echo $child->getLabel() ?></a></li>
41
				<?php endforeach; ?>
42
				</ul>
43
				<?php endif; ?>
44
		</li>
45
		<?php endforeach; ?>
46
		<li>
47
			<a href="#" title="" class="not-box-openm">
48
				<span><i class="fa fa-envelope" aria-hidden="true"></i></span>
49
				Messages
50
			</a>
51
			<div class="notification-box msg" id="message">
52
				<div class="nt-title">
53
					<h4>Setting</h4>
54
					<a href="#" title="">Clear all</a>
55
				</div>
56
				<div class="nott-list">
57
										<div class="notfication-details">
58
							  				<div class="noty-user-img">
59
							  					<img src="images/resources/ny-img1.png" alt="">
60
							  				</div>
61
							  				<div class="notification-info">
62
							  					<h3><a href="messages.html" title="">Jassica William</a> </h3>
63
							  					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do.</p>
64
							  					<span>2 min ago</span>
65
							  				</div><!--notification-info -->
66
						  				</div>
67
						  				<div class="notfication-details">
68
							  				<div class="noty-user-img">
69
							  					<img src="images/resources/ny-img2.png" alt="">
70
							  				</div>
71
							  				<div class="notification-info">
72
							  					<h3><a href="messages.html" title="">Jassica William</a></h3>
73
							  					<p>Lorem ipsum dolor sit amet.</p>
74
							  					<span>2 min ago</span>
75
							  				</div><!--notification-info -->
76
						  				</div>
77
						  				<div class="notfication-details">
78
							  				<div class="noty-user-img">
79
							  					<img src="images/resources/ny-img3.png" alt="">
80
							  				</div>
81
							  				<div class="notification-info">
82
							  					<h3><a href="messages.html" title="">Jassica William</a></h3>
83
							  					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempo incididunt ut labore et dolore magna aliqua.</p>
84
							  					<span>2 min ago</span>
85
							  				</div><!--notification-info -->
86
						  				</div>
87
						  				<div class="view-all-nots">
88
						  					<a href="messages.html" title="">View All Messsages</a>
89
						  				</div>
90
									</div><!--nott-list end-->
91
								</div><!--notification-box end-->
92
		</li>
93
							<li class="text-submenu">
94
								<a href="#" title="" class="not-box-open">
95
									<span><i class="fa fa-bolt" aria-hidden="true"></i></span>
96
									Notification
97
								</a>
98
								<div class="notification-box noti" id="notification">
99
									<div class="nt-title">
100
										<h4>Setting</h4>
101
										<a href="#" title="">Clear all</a>
102
									</div>
103
									<div class="nott-list">
104
										<div class="notfication-details">
105
							  				<div class="noty-user-img">
106
							  					<img src="images/resources/ny-img1.png" alt="">
107
							  				</div>
108
							  				<div class="notification-info">
109
							  					<h3><a href="#" title="">Jassica William</a> Comment on your project.</h3>
110
							  					<span>2 min ago</span>
111
							  				</div><!--notification-info -->
112
						  				</div>
113
						  				<div class="notfication-details">
114
							  				<div class="noty-user-img">
115
							  					<img src="images/resources/ny-img2.png" alt="">
116
							  				</div>
117
							  				<div class="notification-info">
118
							  					<h3><a href="#" title="">Jassica William</a> Comment on your project.</h3>
119
							  					<span>2 min ago</span>
120
							  				</div><!--notification-info -->
121
						  				</div>
122
						  				<div class="notfication-details">
123
							  				<div class="noty-user-img">
124
							  					<img src="images/resources/ny-img3.png" alt="">
125
							  				</div>
126
							  				<div class="notification-info">
127
							  					<h3><a href="#" title="">Jassica William</a> Comment on your project.</h3>
128
							  					<span>2 min ago</span>
129
							  				</div><!--notification-info -->
130
						  				</div>
131
						  				<div class="notfication-details">
132
							  				<div class="noty-user-img">
133
							  					<img src="images/resources/ny-img2.png" alt="">
134
							  				</div>
135
							  				<div class="notification-info">
136
							  					<h3><a href="#" title="">Jassica William</a> Comment on your project.</h3>
137
							  					<span>2 min ago</span>
138
							  				</div><!--notification-info -->
139
						  				</div>
140
						  				<div class="view-all-nots">
141
						  					<a href="#" title="">View All Notification</a>
142
						  				</div>
143
									</div><!--nott-list end-->
144
								</div><!--notification-box end-->
145
							</li>
146
						</ul>
147
					</nav><!--nav end-->