Skip to content

Commit

Permalink
- Up[dated side bar with Zend View Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hayk-manasyan committed Aug 23, 2017
1 parent c4d715e commit bbb4ac6
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 84 deletions.
31 changes: 15 additions & 16 deletions module/Application/src/View/Helper/Sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,27 @@ public function render()
if (count($this->items)==0)
return ''; // Do nothing if there are no items.

$result = '<nav class="navbar navbar-default" role="navigation">';
$result .= '<div class="navbar-header">';
$result .= '<button type="button" class="navbar-toggle" ';
$result .= 'data-toggle="collapse" data-target=".navbar-ex1-collapse">';
$result .= '<span class="sr-only">Toggle navigation</span>';
$result .= '<span class="icon-bar"></span>';
$result .= '<span class="icon-bar"></span>';
$result .= '<span class="icon-bar"></span>';
$result .= '</button>';
$result .= '</div>';

$result .= '<div class="collapse navbar-collapse navbar-ex1-collapse">';
$result .= '<ul class="nav navbar-nav">';

$result = '<div class="col-md-3 left_col">';
$result .= '<div class="left_col scroll-view">';
$result .= '<div class="navbar nav_title" style="border: 0;">';
$result .= '<a href="/" class="site_title"><i class="fa fa-paw"></i> <span>Search Jobs</span></a>';
$result .= '</div>';
$result .= '<div class="clearfix"></div>';
$result .= '<br>';

//sidebar menu

$result .= '<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">';
$result .= '<div class="menu_section">';
$result .= '<ul class="nav side-menu">';
// Render items
foreach ($this->items as $item) {
$result .= $this->renderItem($item);
}

$result .= '</ul>';
$result .= '</div>';
$result .= '</nav>';
$result .= '</div></div></div></div>';


return $result;
}
Expand Down
30 changes: 15 additions & 15 deletions module/Application/view/application/index/dashboard.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -86,21 +86,21 @@
<?php
//echo $this->inlineScript()->captureStart();
echo $this->headScript()
//// ->appendFile($this->basePath('vendors/Chart.js/dist/Chart.min.js'))
//// ->appendFile($this->basePath('vendors/gauge.js/dista/gauge.min.js'))
//// ->appendFile($this->basePath('vendors/bootstrap-progressbar/bootstrap-progressbar.min.js'))
//// ->appendFile($this->basePath('vendors/iCheck/icheck.min.js'))
//// ->appendFile($this->basePath('vendors/skycons/skycons.js'))
//// ->appendFile($this->basePath('vendors/Flot/jquery.flot.js'))
//// ->appendFile($this->basePath('vendors/Flot/jquery.flot.pie.js'))
//// ->appendFile($this->basePath('vendors/Flot/jquery.flot.time.js'))
//// ->appendFile($this->basePath('vendors/Flot/jquery.flot.stack.js'))
//// ->appendFile($this->basePath('vendors/Flot/jquery.flot.resize.js'))
//// ->appendFile($this->basePath('vendors/flot.orderbars/js/jquery.flot.orderBars.js'))
//// ->appendFile($this->basePath('ve ndors/flot-spline/js/jquery.flot.spline.min.js'))
//// ->appendFile($this->basePath('vendors/flot.curvedlines/curvedLines.js'))
//// ->appendFile($this->basePath('vendors/DateJS/build/date.js'))
->appendFile($this->basePath('build/js/custom.min.js'));
// ->appendFile($this->basePath('vendors/Chart.js/dist/Chart.min.js'))
// ->appendFile($this->basePath('vendors/gauge.js/dista/gauge.min.js'))
// ->appendFile($this->basePath('vendors/bootstrap-progressbar/bootstrap-progressbar.min.js'))
// ->appendFile($this->basePath('vendors/iCheck/icheck.min.js'))
// ->appendFile($this->basePath('vendors/skycons/skycons.js'))
// ->appendFile($this->basePath('vendors/Flot/jquery.flot.js'))
// ->appendFile($this->basePath('vendors/Flot/jquery.flot.pie.js'))
// ->appendFile($this->basePath('vendors/Flot/jquery.flot.time.js'))
// ->appendFile($this->basePath('vendors/Flot/jquery.flot.stack.js'))
// ->appendFile($this->basePath('vendors/Flot/jquery.flot.resize.js'))
// ->appendFile($this->basePath('vendors/flot.orderbars/js/jquery.flot.orderBars.js'))
// ->appendFile($this->basePath('vendors/flot-spline/js/jquery.flot.spline.min.js'))
// ->appendFile($this->basePath('vendors/flot.curvedlines/curvedLines.js'))
// ->appendFile($this->basePath('vendors/DateJS/build/date.js'))
->appendFile($this->basePath('build/js/custom.js'));


//echo $this->headScript()->offsetSetScript(10, $this->basePath('build/js/custom.min.js'), 'text/javascript');
Expand Down
79 changes: 27 additions & 52 deletions module/Application/view/partials/left-sidebar.phtml
Original file line number Diff line number Diff line change
@@ -1,64 +1,39 @@
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="/" class="site_title"><i class="fa fa-paw"></i> <span>Search Jobs</span></a>
</div>

<div class="clearfix"></div>
<br/>

<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<ul class="nav side-menu">
<li>
<a href="/">Home</a>
</li>
<li>
<a href="<?php echo $this->basePath() . '/application/manual-search' ?>">Manual Search</a>
</li>

</ul>
</div>
</div>
<!-- /sidebar menu -->
</div>
</div>

<?php

$this->leftSideBar()->setItems([
[
'id' => 'home',
'label' => 'Home',
'link' => $this->url('home')
],
[
'id' => 'downloads',
'label' => 'Downloads',
'link' => $this->url("application", ['action' => 'downloads'])
],
[
'id' => 'support',
'label' => 'Support',
'dropdown' => [
[
'id' => 'documentation',
'label' => 'Documentation',
'link' => $this->url('application', ['page' => 'contents'])
],
[
'id' => 'help',
'label' => 'Help',
'link' => $this->url('application', ['page' => 'help'])
]
]
'link' => $this->url('home'),
'class' => 'active',
],
[
'id' => 'about',
'label' => 'About',
$this->url('home')
'id' => 'manula-search',
'label' => 'Manual Search',
'link' => $this->url("application", ['action' => 'manual-search'])
],
// [
// 'id' => 'support',
// 'label' => 'Support',
// 'dropdown' => [
// [
// 'id' => 'documentation',
// 'label' => 'Documentation',
// 'link' => $this->url('application', ['page' => 'contents'])
// ],
// [
// 'id' => 'help',
// 'label' => 'Help',
// 'link' => $this->url('application', ['page' => 'help'])
// ]
// ]
// ],
// [
// 'id' => 'about',
// 'label' => 'About',
// $this->url('home')
// ],
]);

//echo $this->leftSideBar()->render();
echo $this->leftSideBar()->render();
1 change: 0 additions & 1 deletion module/Application/view/partials/top-nav.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<div class="nav toggle">
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
</div>

<ul class="nav navbar-nav navbar-right">
<li class="">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
Expand Down

0 comments on commit bbb4ac6

Please sign in to comment.