Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
3a1c4f73
Commit
3a1c4f73
authored
May 16, 2020
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show footer front page
parent
6e3ee5a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
51 deletions
+91
-51
app/Http/Controllers/Webprofile/Front/FrontController.php
+53
-49
resources/views/webprofile/front/jollyany/footer.blade.php
+37
-0
resources/views/webprofile/front/jollyany/master.blade.php
+1
-2
No files found.
app/Http/Controllers/Webprofile/Front/FrontController.php
View file @
3a1c4f73
...
...
@@ -23,40 +23,44 @@ class FrontController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.index'
,
$data
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.index'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.index'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.index'
,
$data
);
}
}
private
function
getDataId
(
$setting
)
{
$posts
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$info
=
Information
::
where
(
'info_status'
,
'1'
)
->
where
(
'event_date'
,
'>='
,
Date
(
'Y-m-d'
))
->
orderby
(
'event_date'
,
'asc'
)
->
get
();
$slider
=
Slider
::
where
(
'is_active'
,
'1'
)
->
orderby
(
'created_at'
,
'desc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$gallery
=
Gallery
::
where
(
'is_active'
,
'1'
)
->
orderBy
(
'created_at'
,
'asc'
)
->
limit
(
'4'
)
->
get
();
$quote
=
Design
::
where
(
'name_design'
,
'quote'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$posts
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$info
=
Information
::
where
(
'info_status'
,
'1'
)
->
where
(
'event_date'
,
'>='
,
date
(
'Y-m-d'
))
->
orderby
(
'event_date'
,
'asc'
)
->
get
();
$slider
=
Slider
::
where
(
'is_active'
,
'1'
)
->
orderby
(
'created_at'
,
'desc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$gallery
=
Gallery
::
where
(
'is_active'
,
'1'
)
->
orderBy
(
'created_at'
,
'asc'
)
->
limit
(
'4'
)
->
get
();
$quote
=
Design
::
where
(
'name_design'
,
'quote'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'posts'
=>
$posts
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'info'
=>
$info
,
'slider'
=>
$slider
,
'menu'
=>
$menu
,
'gallery'
=>
$gallery
,
'quote'
=>
$quote
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'body'
=>
$body
,
'setting'
=>
$setting
,
'posts'
=>
$posts
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'info'
=>
$info
,
'slider'
=>
$slider
,
'menu'
=>
$menu
,
'gallery'
=>
$gallery
,
'quote'
=>
$quote
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'body'
=>
$body
,
'setting'
=>
$setting
,
'footer'
=>
$footer
,
];
return
$data
;
...
...
@@ -64,31 +68,31 @@ class FrontController extends Controller
private
function
getDataEn
(
$setting
)
{
$posts
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$info
=
Information
::
with
([
'rEn'
])
->
where
(
'info_status'
,
'1'
)
->
where
(
'event_date'
,
'>='
,
D
ate
(
'Y-m-d'
))
->
orderby
(
'event_date'
,
'asc'
)
->
get
();
$slider
=
Slider
::
where
(
'is_active'
,
'1'
)
->
orderby
(
'created_at'
,
'desc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$gallery
=
Gallery
::
where
(
'is_active'
,
'1'
)
->
orderBy
(
'created_at'
,
'asc'
)
->
limit
(
'4'
)
->
get
();
$quote
=
Design
::
where
(
'name_design'
,
'quote'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$posts
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rEn'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$info
=
Information
::
with
([
'rEn'
])
->
where
(
'info_status'
,
'1'
)
->
where
(
'event_date'
,
'>='
,
d
ate
(
'Y-m-d'
))
->
orderby
(
'event_date'
,
'asc'
)
->
get
();
$slider
=
Slider
::
where
(
'is_active'
,
'1'
)
->
orderby
(
'created_at'
,
'desc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$gallery
=
Gallery
::
where
(
'is_active'
,
'1'
)
->
orderBy
(
'created_at'
,
'asc'
)
->
limit
(
'4'
)
->
get
();
$quote
=
Design
::
where
(
'name_design'
,
'quote'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$data
=
[
'posts'
=>
$posts
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'info'
=>
$info
,
'slider'
=>
$slider
,
'menu'
=>
$menu
,
'gallery'
=>
$gallery
,
'quote'
=>
$quote
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'body'
=>
$body
,
'setting'
=>
$setting
,
'posts'
=>
$posts
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'info'
=>
$info
,
'slider'
=>
$slider
,
'menu'
=>
$menu
,
'gallery'
=>
$gallery
,
'quote'
=>
$quote
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'body'
=>
$body
,
'setting'
=>
$setting
,
];
return
$data
;
...
...
resources/views/webprofile/front/jollyany/footer.blade.php
0 → 100644
View file @
3a1c4f73
<footer
id=
"footer-style-1"
>
<div
class=
"container"
>
@foreach($footer->where('name_design', 'footer_row_1') as $footer1)
<div
class=
"col-lg-3 col-md-3 col-sm-6 col-xs-12"
>
@if($footer1->title_show == 1)
<center><div
style=
"color: white; padding-bottom: 10px; font-size: 16px;"
>
{!! stripslashes($footer1['title_design']) !!}
</div></center>
@endif
{!! stripslashes($footer1['value_design']) !!}
</div>
<!-- end columns -->
@endforeach
@foreach($footer->where('name_design', 'footer_row_2') as $footer2)
<div
class=
"col-lg-3 col-md-3 col-sm-6 col-xs-12"
>
@if($footer2->title_show == 1)
<center><div
style=
"color: white; padding-bottom: 10px; font-size: 16px;"
>
{!! stripslashes($footer2['title_design']) !!}
</div></center>
@endif
{!! stripslashes($footer2['value_design']) !!}
</div>
<!-- end columns -->
@endforeach
@foreach($footer->where('name_design', 'footer_row_3') as $footer3)
<div
class=
"col-lg-3 col-md-3 col-sm-6 col-xs-12"
>
@if($footer3->title_show == 1)
<center><div
style=
"color: white; padding-bottom: 10px; font-size: 16px;"
>
{!! stripslashes($footer3['title_design']) !!}
</div></center>
@endif
{!! stripslashes($footer3['value_design']) !!}
</div>
<!-- end columns -->
@endforeach
@foreach($footer->where('name_design', 'footer_row_4') as $footer4)
<div
class=
"col-lg-3 col-md-3 col-sm-6 col-xs-12"
>
@if($footer4->title_show == 1)
<center><div
style=
"color: white; padding-bottom: 10px; font-size: 16px;"
>
{!! stripslashes($footer4['title_design']) !!}
</div></center>
@endif
{!! stripslashes($footer4['value_design']) !!}
</div>
<!-- end columns -->
@endforeach
</div>
<!-- end container -->
</footer>
\ No newline at end of file
resources/views/webprofile/front/jollyany/master.blade.php
View file @
3a1c4f73
...
...
@@ -133,8 +133,7 @@
@yield('content')
{{-- @yield('footer') --}}
{{-- @include('webprofile.front.footer') --}}
@include('webprofile.front.jollyany.footer')
<div
id=
"copyrights"
>
<div
class=
"container"
>
...
...
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