Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
4810bd58
Commit
4810bd58
authored
Oct 23, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Plain Diff
Merge commit '
07b6b405
'
* commit '
07b6b405
': Squashed 'Modules/Core/' changes from e8e79e4..dab167b
parents
52d696d0
07b6b405
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
21 deletions
+26
-21
MasterViewComposer.php
Modules/Core/Composers/MasterViewComposer.php
+21
-0
master.blade.php
Modules/Core/Resources/views/layouts/master.blade.php
+4
-4
sidebar-nav.blade.php
Modules/Core/Resources/views/partials/sidebar-nav.blade.php
+0
-17
composers.php
Modules/Core/composers.php
+1
-0
No files found.
Modules/Core/Composers/MasterViewComposer.php
0 → 100644
View file @
4810bd58
<?php
namespace
Modules\Core\Composers
;
use
Illuminate\Contracts\View\View
;
use
Modules\Setting\Repositories\SettingRepository
;
class
MasterViewComposer
{
/**
* @var SettingRepository
*/
private
$setting
;
public
function
__construct
(
SettingRepository
$setting
)
{
$this
->
setting
=
$setting
;
}
public
function
compose
(
View
$view
)
{
$view
->
with
(
'sitename'
,
$this
->
setting
->
findSettingForModule
(
'site-name'
));
}
}
Modules/Core/Resources/views/layouts/master.blade.php
View file @
4810bd58
...
...
@@ -32,10 +32,10 @@
</head>
<body
class=
"skin-blue"
>
<header
class=
"header"
>
<a
href=
"
#
"
class=
"logo"
>
@section('title')
SocialDashy
@show
<a
href=
"
{{ URL::route('dashboard.index') }}
"
class=
"logo"
>
<?php
if
(
isset
(
$sitename
))
:
?>
{{ $sitename->translate(App::getLocale())->value }}
<?php
endif
;
?>
</a>
@include('core::partials.top-nav')
</header>
...
...
Modules/Core/Resources/views/partials/sidebar-nav.blade.php
View file @
4810bd58
...
...
@@ -2,23 +2,6 @@
<aside
class=
"left-side sidebar-offcanvas"
>
<!-- sidebar: style can be found in sidebar.less -->
<section
class=
"sidebar"
>
<!-- Sidebar user panel -->
<div
class=
"user-panel"
>
<div
class=
"pull-left image"
>
<img
src=
"{{ $user->present()->gravatar() }}"
class=
"img-circle"
alt=
"User Image"
/>
</div>
<div
class=
"pull-left info"
>
<?php
if
(
$user
->
present
()
->
fullname
()
!=
' '
)
:
?>
<p>
<?=
$user
->
present
()
->
fullname
();
?>
</p>
<?php
else
:
?>
<p><em>
Complete your profile.
</em></p>
<?php
endif
;
?>
<a
href=
"#"
><i
class=
"fa fa-circle text-success"
></i>
Online
</a>
</div>
</div>
<!-- sidebar menu: : style can be found in sidebar.less -->
<ul
class=
"sidebar-menu"
>
<?php
$items
=
\Modules\Core\Navigation\NavigationOrdener
::
order
(
$items
);
?>
<?php
foreach
(
$items
as
$i
=>
$item
)
:
?>
...
...
Modules/Core/composers.php
View file @
4810bd58
<?php
View
::
creator
(
'core::partials.sidebar-nav'
,
'Modules\Core\Composers\SidebarViewCreator'
);
View
::
composer
(
'core::layouts.master'
,
'Modules\Core\Composers\MasterViewComposer'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment