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
a17f469a
Commit
a17f469a
authored
3 years ago
by
Bagus Pambudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug information
parent
8c79c027
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
app/Http/Controllers/Webprofile/Front/InformationController.php
+5
-5
app/Http/Controllers/Webprofile/Front/InformationController2.php
+1
-0
No files found.
app/Http/Controllers/Webprofile/Front/InformationController.php
View file @
a17f469a
...
...
@@ -23,23 +23,23 @@ class InformationController extends Controller
if
(
Session
::
get
(
'selected_language'
)
==
'id'
)
{
$data
=
$this
->
getDataId
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.information'
,
$data
)
->
withTitle
(
'
Informasi
'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.information'
,
$data
)
->
withTitle
(
'
Pengumuman
'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'en'
)
{
$data
=
$this
->
getDataEn
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.information'
,
$data
)
->
withTitle
(
'Informa
si
'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.en.information'
,
$data
)
->
withTitle
(
'Informa
tion
'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'de'
)
{
$data
=
$this
->
getDataDe
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.de.information'
,
$data
)
->
withTitle
(
'Informa
si
'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.de.information'
,
$data
)
->
withTitle
(
'Informa
tion
'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'ar'
)
{
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.information'
,
$data
)
->
withTitle
(
'
Informasi
'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.information'
,
$data
)
->
withTitle
(
'
معلومة
'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.information'
,
$data
)
->
withTitle
(
'
Informasi
'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.information'
,
$data
)
->
withTitle
(
'
信息
'
);
}
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/Webprofile/Front/InformationController2.php
View file @
a17f469a
...
...
@@ -104,6 +104,7 @@ class InformationController2 extends Controller
{
$setting
=
webprofilesetting
();
$data
=
Information
::
with
([
'rDe'
])
->
where
(
'info_status'
,
'1'
)
->
orderBy
(
'event_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rDe'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rDe'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$informations
=
Information
::
with
([
'rDe'
])
->
where
(
'info_status'
,
'1'
)
->
orderBy
(
'event_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$menu
=
Menu
::
with
([
'rDe'
])
->
orderby
(
'urutan'
,
'asc'
)
->
get
();
...
...
This diff is collapsed.
Click to expand it.
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