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
4164b4c1
Commit
4164b4c1
authored
May 16, 2020
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added footer front view
parent
3a1c4f73
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
81 additions
and
29 deletions
+81
-29
app/Http/Controllers/Webprofile/Front/AgendaController.php
+10
-3
app/Http/Controllers/Webprofile/Front/ArchiveController.php
+10
-3
app/Http/Controllers/Webprofile/Front/CategoryController.php
+10
-3
app/Http/Controllers/Webprofile/Front/DownloadController.php
+6
-4
app/Http/Controllers/Webprofile/Front/ErrorController.php
+12
-5
app/Http/Controllers/Webprofile/Front/FrontController.php
+2
-0
app/Http/Controllers/Webprofile/Front/InformationController.php
+10
-3
app/Http/Controllers/Webprofile/Front/PageController.php
+10
-3
app/Http/Controllers/Webprofile/Front/PostController.php
+11
-5
No files found.
app/Http/Controllers/Webprofile/Front/AgendaController.php
View file @
4164b4c1
...
@@ -22,10 +22,12 @@ class AgendaController extends Controller
...
@@ -22,10 +22,12 @@ class AgendaController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
);
$data
=
$this
->
getDataId
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
);
$data
=
$this
->
getDataEn
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
}
}
}
...
@@ -39,6 +41,7 @@ class AgendaController extends Controller
...
@@ -39,6 +41,7 @@ class AgendaController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -49,10 +52,12 @@ class AgendaController extends Controller
...
@@ -49,10 +52,12 @@ class AgendaController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
)
public
function
getDataEn
(
$setting
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -63,6 +68,7 @@ class AgendaController extends Controller
...
@@ -63,6 +68,7 @@ class AgendaController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -73,6 +79,7 @@ class AgendaController extends Controller
...
@@ -73,6 +79,7 @@ class AgendaController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/ArchiveController.php
View file @
4164b4c1
...
@@ -21,10 +21,12 @@ class ArchiveController extends Controller
...
@@ -21,10 +21,12 @@ class ArchiveController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
);
$data
=
$this
->
getDataId
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Arsip'
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Arsip'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
);
$data
=
$this
->
getDataEn
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Archive'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
}
}
}
...
@@ -38,6 +40,7 @@ class ArchiveController extends Controller
...
@@ -38,6 +40,7 @@ class ArchiveController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -48,10 +51,12 @@ class ArchiveController extends Controller
...
@@ -48,10 +51,12 @@ class ArchiveController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
)
public
function
getDataEn
(
$setting
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -62,6 +67,7 @@ class ArchiveController extends Controller
...
@@ -62,6 +67,7 @@ class ArchiveController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -72,6 +78,7 @@ class ArchiveController extends Controller
...
@@ -72,6 +78,7 @@ class ArchiveController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/CategoryController.php
View file @
4164b4c1
...
@@ -21,10 +21,12 @@ class CategoryController extends Controller
...
@@ -21,10 +21,12 @@ class CategoryController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
,
$category
);
$data
=
$this
->
getDataId
(
$setting
,
$category
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Arsip'
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.archive'
,
$data
)
->
withTitle
(
'Arsip'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
,
$category
);
$data
=
$this
->
getDataEn
(
$setting
,
$category
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Archive'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
}
}
}
...
@@ -39,6 +41,7 @@ class CategoryController extends Controller
...
@@ -39,6 +41,7 @@ class CategoryController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -49,10 +52,12 @@ class CategoryController extends Controller
...
@@ -49,10 +52,12 @@ class CategoryController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
,
$category
)
public
function
getDataEn
(
$setting
,
$category
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -64,6 +69,7 @@ class CategoryController extends Controller
...
@@ -64,6 +69,7 @@ class CategoryController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -74,6 +80,7 @@ class CategoryController extends Controller
...
@@ -74,6 +80,7 @@ class CategoryController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/DownloadController.php
View file @
4164b4c1
...
@@ -22,6 +22,7 @@ class DownloadController extends Controller
...
@@ -22,6 +22,7 @@ class DownloadController extends Controller
$categories
=
Categories
::
where
(
'is_active'
,
'1'
)
->
get
();
$categories
=
Categories
::
where
(
'is_active'
,
'1'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'categoriesFile'
=>
$categoriesFile
,
'categoriesFile'
=>
$categoriesFile
,
...
@@ -31,24 +32,25 @@ class DownloadController extends Controller
...
@@ -31,24 +32,25 @@ class DownloadController extends Controller
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'widget_right'
=>
$widget_right
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
];
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.download'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.download'
,
$data
);
}
}
public
function
downloadFile
(
$id
)
public
function
downloadFile
(
$id
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
$fileModel
=
new
File
;
$fileModel
=
new
File
()
;
$fileRepo
=
new
FileRepository
(
$fileModel
);
$fileRepo
=
new
FileRepository
(
$fileModel
);
$dbfile
=
File
::
find
(
$id
);
$dbfile
=
File
::
find
(
$id
);
if
(
$setting
[
'external_storage'
]
==
1
)
{
if
(
$setting
[
'external_storage'
]
==
1
)
{
$file
=
$setting
[
'url_static'
]
.
'/'
.
$setting
[
'directory'
]
.
'/file/'
.
$dbfile
->
file
;
$file
=
$setting
[
'url_static'
]
.
'/'
.
$setting
[
'directory'
]
.
'/file/'
.
$dbfile
->
file
;
}
else
{
}
else
{
$file
=
url
(
'/storage/file/'
.
$dbfile
->
file
);
$file
=
url
(
'/storage/file/'
.
$dbfile
->
file
);
}
}
$fileRepo
->
countDownload
(
$dbfile
);
$fileRepo
->
countDownload
(
$dbfile
);
...
...
app/Http/Controllers/Webprofile/Front/ErrorController.php
View file @
4164b4c1
...
@@ -20,21 +20,24 @@ class ErrorController extends Controller
...
@@ -20,21 +20,24 @@ class ErrorController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
);
$data
=
$this
->
getDataId
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
);
$data
=
$this
->
getDataEn
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
}
}
}
public
function
getDataId
(
$setting
)
public
function
getDataId
(
$setting
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
$data
=
new
Pages
;
$data
=
new
Pages
()
;
$data
->
title
=
'Page Not Found'
;
$data
->
title
=
'Page Not Found'
;
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -42,18 +45,21 @@ class ErrorController extends Controller
...
@@ -42,18 +45,21 @@ class ErrorController extends Controller
'menu'
=>
$menu
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
)
public
function
getDataEn
(
$setting
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
$data
=
new
Pages
;
$data
=
new
Pages
()
;
$data
->
title
=
'Page Not Found'
;
$data
->
title
=
'Page Not Found'
;
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -61,6 +67,7 @@ class ErrorController extends Controller
...
@@ -61,6 +67,7 @@ class ErrorController extends Controller
'menu'
=>
$menu
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/FrontController.php
View file @
4164b4c1
...
@@ -79,6 +79,7 @@ class FrontController extends Controller
...
@@ -79,6 +79,7 @@ class FrontController extends Controller
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$body
=
Design
::
where
(
'name_design'
,
'body'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'posts'
=>
$posts
,
'posts'
=>
$posts
,
...
@@ -93,6 +94,7 @@ class FrontController extends Controller
...
@@ -93,6 +94,7 @@ class FrontController extends Controller
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'body'
=>
$body
,
'body'
=>
$body
,
'setting'
=>
$setting
,
'setting'
=>
$setting
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/InformationController.php
View file @
4164b4c1
...
@@ -22,10 +22,12 @@ class InformationController extends Controller
...
@@ -22,10 +22,12 @@ class InformationController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
,
$title
);
$data
=
$this
->
getDataId
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.information'
,
$data
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.information'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.information'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.information'
,
$data
);
}
}
}
}
...
@@ -39,6 +41,7 @@ class InformationController extends Controller
...
@@ -39,6 +41,7 @@ class InformationController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
->
update
(
$viewer
);
...
@@ -52,10 +55,12 @@ class InformationController extends Controller
...
@@ -52,10 +55,12 @@ class InformationController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
,
$title
)
public
function
getDataEn
(
$setting
,
$title
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -66,6 +71,7 @@ class InformationController extends Controller
...
@@ -66,6 +71,7 @@ class InformationController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
->
update
(
$viewer
);
...
@@ -79,6 +85,7 @@ class InformationController extends Controller
...
@@ -79,6 +85,7 @@ class InformationController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/PageController.php
View file @
4164b4c1
...
@@ -20,10 +20,12 @@ class PageController extends Controller
...
@@ -20,10 +20,12 @@ class PageController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
,
$title
);
$data
=
$this
->
getDataId
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.page'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.page'
,
$data
);
}
}
}
}
...
@@ -34,6 +36,7 @@ class PageController extends Controller
...
@@ -34,6 +36,7 @@ class PageController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -41,10 +44,12 @@ class PageController extends Controller
...
@@ -41,10 +44,12 @@ class PageController extends Controller
'menu'
=>
$menu
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
,
$title
)
public
function
getDataEn
(
$setting
,
$title
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -52,6 +57,7 @@ class PageController extends Controller
...
@@ -52,6 +57,7 @@ class PageController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
$data
=
[
'setting'
=>
$setting
,
'setting'
=>
$setting
,
...
@@ -59,6 +65,7 @@ class PageController extends Controller
...
@@ -59,6 +65,7 @@ class PageController extends Controller
'menu'
=>
$menu
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
app/Http/Controllers/Webprofile/Front/PostController.php
View file @
4164b4c1
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
namespace
App\Http\Controllers\Webprofile\Front
;
namespace
App\Http\Controllers\Webprofile\Front
;
use
Illuminate\Http\Request
;
use
App\Http\Controllers\Controller
;
use
App\Http\Controllers\Controller
;
use
App\Models\Webprofile\Categories
;
use
App\Models\Webprofile\Categories
;
use
App\Models\Webprofile\Design
;
use
App\Models\Webprofile\Design
;
...
@@ -22,10 +21,12 @@ class PostController extends Controller
...
@@ -22,10 +21,12 @@ class PostController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
,
$title
);
$data
=
$this
->
getDataId
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.post'
,
$data
);
}
else
if
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.post'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.post'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.post'
,
$data
);
}
}
}
}
...
@@ -39,8 +40,9 @@ class PostController extends Controller
...
@@ -39,8 +40,9 @@ class PostController extends Controller
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
->
update
(
$viewer
);
$data
=
[
$data
=
[
...
@@ -52,10 +54,12 @@ class PostController extends Controller
...
@@ -52,10 +54,12 @@ class PostController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
}
}
public
function
getDataEn
(
$setting
,
$title
)
public
function
getDataEn
(
$setting
,
$title
)
{
{
$setting
=
webprofilesetting
();
$setting
=
webprofilesetting
();
...
@@ -66,6 +70,7 @@ class PostController extends Controller
...
@@ -66,6 +70,7 @@ class PostController extends Controller
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$menu
=
Menu
::
with
([
'rEn'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
$widget_right
=
Design
::
where
(
'name_design'
,
'widget_right'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
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
();
$widget_left
=
Design
::
where
(
'name_design'
,
'widget_left'
)
->
orderBy
(
'urutan'
,
'ASC'
)
->
get
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
->
update
(
$viewer
);
...
@@ -79,6 +84,7 @@ class PostController extends Controller
...
@@ -79,6 +84,7 @@ class PostController extends Controller
'resend'
=>
$resend
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
];
return
$data
;
return
$data
;
...
...
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