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
3f1e510d
Commit
3f1e510d
authored
Dec 21, 2020
by
Aan Choesni Herlingga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
front bahasa cina
parent
93ed047c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
638 additions
and
1 deletions
+638
-1
app/Http/Controllers/Webprofile/Front/AgendaController.php
+31
-0
app/Http/Controllers/Webprofile/Front/ArchiveController.php
+31
-0
app/Http/Controllers/Webprofile/Front/CategoryController.php
+32
-0
app/Http/Controllers/Webprofile/Front/ErrorController.php
+26
-0
app/Http/Controllers/Webprofile/Front/FrontController.php
+38
-0
app/Http/Controllers/Webprofile/Front/InformationController.php
+34
-0
app/Http/Controllers/Webprofile/Front/PageController.php
+25
-0
app/Http/Controllers/Webprofile/Front/PersonController.php
+26
-0
app/Http/Controllers/Webprofile/Front/PostController.php
+36
-0
resources/views/webprofile/front/jollyany/master.blade.php
+4
-1
resources/views/webprofile/front/jollyany/zh/archive.blade.php
+82
-0
resources/views/webprofile/front/jollyany/zh/index.blade.php
+0
-0
resources/views/webprofile/front/jollyany/zh/information.blade.php
+44
-0
resources/views/webprofile/front/jollyany/zh/menu.blade.php
+36
-0
resources/views/webprofile/front/jollyany/zh/page.blade.php
+26
-0
resources/views/webprofile/front/jollyany/zh/post.blade.php
+74
-0
resources/views/webprofile/front/jollyany/zh/team.blade.php
+61
-0
resources/views/webprofile/front/jollyany/zh/widget.blade.php
+32
-0
No files found.
app/Http/Controllers/Webprofile/Front/AgendaController.php
View file @
3f1e510d
...
@@ -36,6 +36,10 @@ class AgendaController extends Controller
...
@@ -36,6 +36,10 @@ class AgendaController extends Controller
$data
=
$this
->
getDataSa
(
$setting
);
$data
=
$this
->
getDataSa
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.archive'
,
$data
)
->
withTitle
(
'Agenda'
);
}
}
}
}
...
@@ -146,4 +150,31 @@ class AgendaController extends Controller
...
@@ -146,4 +150,31 @@ class AgendaController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
)
{
$setting
=
webprofilesetting
();
$data
=
Information
::
where
(
'info_status'
,
'1'
)
->
orderBy
(
'event_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rZh'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/ArchiveController.php
View file @
3f1e510d
...
@@ -35,6 +35,10 @@ class ArchiveController extends Controller
...
@@ -35,6 +35,10 @@ class ArchiveController extends Controller
$data
=
$this
->
getDataSa
(
$setting
);
$data
=
$this
->
getDataSa
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Archive'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
}
}
}
...
@@ -145,4 +149,31 @@ class ArchiveController extends Controller
...
@@ -145,4 +149,31 @@ class ArchiveController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
)
{
$setting
=
webprofilesetting
();
$data
=
Posts
::
where
(
'post_status'
,
'1'
)
->
orderBy
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rZh'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/CategoryController.php
View file @
3f1e510d
...
@@ -35,6 +35,10 @@ class CategoryController extends Controller
...
@@ -35,6 +35,10 @@ class CategoryController extends Controller
$data
=
$this
->
getDataSa
(
$setting
,
$category
);
$data
=
$this
->
getDataSa
(
$setting
,
$category
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Archive'
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$category
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.archive'
,
$data
)
->
withTitle
(
'Archive'
);
}
}
}
}
...
@@ -149,4 +153,32 @@ class CategoryController extends Controller
...
@@ -149,4 +153,32 @@ class CategoryController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
,
$category
)
{
$setting
=
webprofilesetting
();
$findCategory
=
Categories
::
where
(
'name'
,
$category
)
->
first
();
$data
=
Posts
::
with
([
'rZh'
])
->
where
(
'categories'
,
$findCategory
->
id
)
->
where
(
'post_status'
,
'1'
)
->
orderBy
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rZh'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/ErrorController.php
View file @
3f1e510d
...
@@ -34,6 +34,10 @@ class ErrorController extends Controller
...
@@ -34,6 +34,10 @@ class ErrorController extends Controller
$data
=
$this
->
getDataSa
(
$setting
);
$data
=
$this
->
getDataSa
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.page'
,
$data
);
}
}
}
}
...
@@ -124,4 +128,26 @@ class ErrorController extends Controller
...
@@ -124,4 +128,26 @@ class ErrorController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
)
{
$setting
=
webprofilesetting
();
$data
=
new
Pages
();
$data
->
title
=
'Page Not Found'
;
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/FrontController.php
View file @
3f1e510d
...
@@ -37,6 +37,10 @@ class FrontController extends Controller
...
@@ -37,6 +37,10 @@ class FrontController extends Controller
$data
=
$this
->
getDataSa
(
$setting
);
$data
=
$this
->
getDataSa
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.index'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.index'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.index'
,
$data
);
}
}
}
}
...
@@ -175,4 +179,38 @@ class FrontController extends Controller
...
@@ -175,4 +179,38 @@ class FrontController extends Controller
return
$data
;
return
$data
;
}
}
private
function
getDataZh
(
$setting
)
{
$posts
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
paginate
(
$setting
[
'post_per_page'
]);
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$info
=
Information
::
with
([
'rZh'
])
->
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
::
with
([
'rZh'
])
->
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
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/InformationController.php
View file @
3f1e510d
...
@@ -36,6 +36,10 @@ class InformationController extends Controller
...
@@ -36,6 +36,10 @@ class InformationController extends Controller
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.information'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.information'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.information'
,
$data
);
}
}
}
}
...
@@ -158,4 +162,34 @@ class InformationController extends Controller
...
@@ -158,4 +162,34 @@ class InformationController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
,
$title
)
{
$setting
=
webprofilesetting
();
$data
=
Information
::
where
(
'slug'
,
$title
)
->
first
();
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rZh'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/PageController.php
View file @
3f1e510d
...
@@ -34,6 +34,10 @@ class PageController extends Controller
...
@@ -34,6 +34,10 @@ class PageController extends Controller
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.page'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.page'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.page'
,
$data
);
}
}
}
}
...
@@ -120,4 +124,25 @@ class PageController extends Controller
...
@@ -120,4 +124,25 @@ class PageController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
,
$title
)
{
$setting
=
webprofilesetting
();
$data
=
Pages
::
with
([
'rZh'
])
->
where
(
'slug'
,
$title
)
->
first
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
app/Http/Controllers/Webprofile/Front/PersonController.php
View file @
3f1e510d
...
@@ -35,6 +35,10 @@ class PersonController extends Controller
...
@@ -35,6 +35,10 @@ class PersonController extends Controller
$data
=
$this
->
getDataSa
(
$setting
,
$name
);
$data
=
$this
->
getDataSa
(
$setting
,
$name
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.team'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.team'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$name
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.team'
,
$data
);
}
}
}
}
...
@@ -126,6 +130,28 @@ class PersonController extends Controller
...
@@ -126,6 +130,28 @@ class PersonController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
,
$name
)
{
$setting
=
webprofilesetting
();
$data
=
$this
->
getData
(
$name
);
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'footer'
=>
$footer
,
'name'
=>
$name
,
];
return
$data
;
}
public
function
getData
(
$name
)
public
function
getData
(
$name
)
{
{
$pick
=
Setting
::
where
(
'name_setting'
,
'team'
)
->
first
();
$pick
=
Setting
::
where
(
'name_setting'
,
'team'
)
->
first
();
...
...
app/Http/Controllers/Webprofile/Front/PostController.php
View file @
3f1e510d
...
@@ -35,6 +35,10 @@ class PostController extends Controller
...
@@ -35,6 +35,10 @@ class PostController extends Controller
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
$data
=
$this
->
getDataSa
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.post'
,
$data
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.ar.post'
,
$data
);
}
elseif
(
Session
::
get
(
'selected_language'
)
==
'zh'
)
{
$data
=
$this
->
getDataZh
(
$setting
,
$title
);
return
view
(
'webprofile.front.'
.
$setting
[
'theme'
]
.
'.zh.post'
,
$data
);
}
}
}
}
...
@@ -165,4 +169,36 @@ class PostController extends Controller
...
@@ -165,4 +169,36 @@ class PostController extends Controller
return
$data
;
return
$data
;
}
}
public
function
getDataZh
(
$setting
,
$title
)
{
$setting
=
webprofilesetting
();
$data
=
Posts
::
with
([
'rZh'
])
->
where
(
'slug'
,
$title
)
->
first
();
$terkait
=
Posts
::
with
([
'rZh'
])
->
where
(
'categories'
,
$data
->
categories
)
->
orderBy
(
'created_at'
,
'desc'
)
->
limit
(
'4'
)
->
get
();
$resend
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'post_date'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$hot
=
Posts
::
with
([
'rZh'
])
->
where
(
'post_status'
,
'1'
)
->
orderby
(
'viewer'
,
'desc'
)
->
limit
(
'5'
)
->
get
();
$categories
=
Categories
::
with
([
'rZh'
])
->
where
(
'is_active'
,
'1'
)
->
get
();
$menu
=
Menu
::
with
([
'rZh'
])
->
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
();
$footer
=
Design
::
where
(
'name_design'
,
'like'
,
'%footer_row%'
)
->
get
();
$viewer
[
'viewer'
]
=
(
int
)
$data
->
viewer
+
1
;
$data
->
update
(
$viewer
);
$data
=
[
'setting'
=>
$setting
,
'data'
=>
$data
,
'terkait'
=>
$terkait
,
'menu'
=>
$menu
,
'widget_right'
=>
$widget_right
,
'widget_left'
=>
$widget_left
,
'resend'
=>
$resend
,
'hot'
=>
$hot
,
'categories'
=>
$categories
,
'footer'
=>
$footer
,
];
return
$data
;
}
}
}
resources/views/webprofile/front/jollyany/master.blade.php
View file @
3f1e510d
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<span
class=
"topbar-cart"
><i
class=
"fa fa-globe"
></i>
<a
href=
"https://www.unesa.ac.id"
target=
"_blank"
>
UNESA
</a></span>
<span
class=
"topbar-cart"
><i
class=
"fa fa-globe"
></i>
<a
href=
"https://www.unesa.ac.id"
target=
"_blank"
>
UNESA
</a></span>
<span
class=
"topbar-cart"
>
<span
class=
"topbar-cart"
>
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline')) !!}
{!! Form::open(array('url' => route('language'), 'method' => 'POST', 'style'=>'display:inline')) !!}
{{ Form::select('language', ['id'=>'Indonesia', 'en'=>'English', 'de'=>'German', 'ar'=>'Arabic'], session('selected_language'), ['class'=>'custom-select form-control', 'style'=>'border-style:none; border-radius: 10px; border-color: white, height: 15px;', 'onChange'=>'form.submit()']) }}
{{ Form::select('language', ['id'=>'Indonesia', 'en'=>'English', 'de'=>'German', 'ar'=>'Arabic'
, 'zh'=>'China'
], session('selected_language'), ['class'=>'custom-select form-control', 'style'=>'border-style:none; border-radius: 10px; border-color: white, height: 15px;', 'onChange'=>'form.submit()']) }}
{!! Form::close() !!}
{!! Form::close() !!}
</span>
</span>
</div>
<!-- end top menu -->
</div>
<!-- end top menu -->
...
@@ -124,6 +124,9 @@
...
@@ -124,6 +124,9 @@
@if (Session::get('selected_language') == 'ar')
@if (Session::get('selected_language') == 'ar')
@include('webprofile.front.jollyany.ar.menu')
@include('webprofile.front.jollyany.ar.menu')
@endif
@endif
@if (Session::get('selected_language') == 'zh')
@include('webprofile.front.jollyany.zh.menu')
@endif
</ul>
<!-- end navbar-nav -->
</ul>
<!-- end navbar-nav -->
</div>
<!-- #navbar-collapse-1 -->
</div>
<!-- #navbar-collapse-1 -->
</nav>
<!-- end navbar yamm navbar-default -->
</nav>
<!-- end navbar yamm navbar-default -->
...
...
resources/views/webprofile/front/jollyany/zh/archive.blade.php
0 → 100644
View file @
3f1e510d
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
col
-
lg
-
12
">
<h2>{!!
$title
!!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="
blog
-
wrapper
">
<div class="
container
">
<div class="
row
">
<div id="
content
" class="
col
-
lg
-
8
col
-
md
-
8
col
-
sm
-
12
col
-
xs
-
12
">
<div class="
row
">
<div class="
blog
-
masonry
">
<div class="
col
-
lg
-
12
">
<div class="
blog
-
carousel
">
<div class="">
<div class="
flexslider
">
@foreach(
$data
as
$value
)
@if (
$title
!= 'Agenda')
<div class="
row
">
<div class="
headline
">
@if (
$value->rZh
)
<h2><a href="
{
!!
url
(
'post/'
.
$value
->
slug
)
!!
}
">{!!
$value->rZh
->title !!}</a></h2>
@endif
</div>
<div class="
news
-
text
">
<div class="
col
-
lg
-
4
">
<a href="
{
!!
url
(
'post/'
.
str_replace
(
' '
,
'-'
,
$value
->
title
))
!!
}
">
@if(
$value->thumbnail
)
@if (
$setting['external_storage']
== 1)
<img src="
{{
$setting
[
'url_static'
]
.
'/'
.
$setting
[
'directory'
]
.
'/thumbnail/'
.
$value
->
thumbnail
}}
" style="
max
-
width
:
200
px
" align="
left
" class="
img
-
responsive
">
@else
<img src="
{{
url
(
'/storage/thumbnail/'
.
$value
->
thumbnail
)
}}
" style="
max
-
width
:
200
px
" align="
left
" class="
img
-
responsive
">
@endif
@else
<img style="
max
-
width
:
200
px
" align="
left
" class="
img
-
responsive
" src="
https
://
www
.
unesa
.
ac
.
id
/
assets
/
switcher
/
images
/
logo
.
png
">
@endif
</a>
</div>
<strong>{!! InseoHelper::tglbulanindo2(
$value->post_date
) !!}</strong>
@if (
$value->rZh
)
<p>{!! strip_tags(substr(html_entity_decode(
$value->rZh
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 250)) !!}</p>
<br>
@endif
<a class="
pull
-
right
" style="
padding
-
right
:
20
px
;
" href="
{
!!
url
(
'post/'
.
$value
->
slug
)
!!
}
">Weiterlesen »»</a>
</div>
</div>
@else
<div class="
row
">
<div class="
headline
">
@if (
$value->rZh
)
<h2><a target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">{!!
$value->rZh
->title !!}</a></h2>
@endif
</div>
<div class="
news
-
text
">
<strong> {!! InseoHelper::tglbulanindo2(
$value->event_date
) !!}</strong> —
{!! strip_tags(substr(html_entity_decode(
$value->rZh
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 250)) !!}
<br><a class="
pull
-
right
" style="
padding
-
right
:
20
px
;
" target="
_blank
" href="
{
!!
url
(
'info/'
.
$value
->
slug
)
!!
}
">
Weiterlesen »»</a>
</div>
</div>
@endif
@endforeach
</div>
<div class="
clearfix
"></div>
<hr>
{!!
$data->render
() !!}
</div><!-- end post-slider -->
</div><!-- end entry -->
</div><!-- end blog-carousel -->
</div><!-- end blog-masonry -->
</div><!-- end widget -->
</div><!-- end left-sidebar -->
@include('webprofile.front.jollyany.zh.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
resources/views/webprofile/front/jollyany/zh/index.blade.php
0 → 100644
View file @
3f1e510d
This diff is collapsed.
Click to expand it.
resources/views/webprofile/front/jollyany/zh/information.blade.php
0 → 100644
View file @
3f1e510d
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
col
-
lg
-
12
">
<h2>议程 - {!!
$data->title
!!}</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="
blog
-
wrapper
">
<div class="
container
">
<div class="
row
">
<div id="
main
-
content
" class="
col
-
lg
-
8
col
-
md
-
8
col
-
sm
-
12
col
-
xs
-
12
">
<div class="
row
">
<div class="
blog
-
masonry
">
<div class="
col
-
lg
-
12
">
<div class="
blog
-
carousel
">
<div class="
blog
-
carousel
-
header
">
@if (
$data->rZh
)
<h1>{!!
$data->rZh
->title !!}</h1>
@endif
<div class="
blog
-
carousel
-
meta
">
<span><i class="
fa
fa
-
eye
"></i> <a href="
#">{!! $data->viewer !!} 观看次数</a></span>
{{
--
<
span
><
i
class
="
fa
fa
-
user
"></i> <a href="
#">Redaksi</a></span> --}}
</
div
><!--
end
blog
-
carousel
-
meta
-->
</
div
><!--
end
blog
-
carousel
-
header
-->
<
div
class
="
blog
-
carousel
-
desc
">
@if (
$data->rZh
)
{!!
$data->rZh
->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.zh.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
resources/views/webprofile/front/jollyany/zh/menu.blade.php
0 → 100644
View file @
3f1e510d
@
foreach
(
$menu
as
$value
)
@
if
(
!
$value
->
parent
)
@
if
(
$value
->
url
)
<
li
><
a
href
=
"{!! url((string)
$value->url
) !!}"
>@
if
(
$value
->
rZh
)
{
!!
$value
->
rZh
->
name
!!
}
@
endif
</
a
></
li
>
@
else
<
li
class
="
dropdown
"><a href="
#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rZh) {!! $value->rZh->name !!} @endif<div class="arrow-up"></div></a>
<
ul
class
="
dropdown
-
menu
" role="
menu
">
@foreach (
$menu
as
$valuec
)
@if(
$valuec->parent
==
$value->id
)
@if(
$valuec->url
)
@if (
$valuec->rZh
)
<li><a href="
{
!!
url
((
string
)
$valuec
->
url
)
!!
}
">@if (
$valuec->rZh
) {!!
$valuec->rZh
->name !!}@endif</a></li>
@endif
@else
<li class="
dropdown
-
submenu
">
@if (
$valuec->rZh
)
<a href="
#">{!! $valuec->rZh->name !!}</a>
@
endif
<
ul
class
="
dropdown
-
menu
">
@foreach (
$menu
as
$valuec2
)
@if(
$valuec2->parent
==
$valuec->id
)
@if (
$valuec2->rZh
)
<li><a href="
{
!!
url
((
string
)
$valuec2
->
url
)
!!
}
">@if (
$valuec2->rZh
) {!!
$valuec2->rZh
->name !!} @endif</a></li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
</ul>
</li>
@endif
@endif
@endforeach
resources/views/webprofile/front/jollyany/zh/page.blade.php
0 → 100644
View file @
3f1e510d
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
col
-
lg
-
12
">
@if (
$data->rZh
)
<h2>{!!
$data->rZh
->title !!}</h2>
@endif
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="
blog
-
wrapper
">
<div class="
container
">
<div class="
row
">
<div id="
main
-
content
" class="
col
-
md
-
12
" role="
main
" align="
justify
">
@if (
$data->rZh
)
{!!
$data->rZh
->content !!}
@endif
</div>
</div>
</div><!-- end title -->
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
resources/views/webprofile/front/jollyany/zh/post.blade.php
0 → 100644
View file @
3f1e510d
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
col
-
lg
-
12
">
@if (
$data->rZh
)
<h2>{!!
$data->rZh
->title !!}</h2>
@endif
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="
blog
-
wrapper
">
<div class="
container
">
<div class="
row
">
<div id="
main
-
content
" class="
col
-
lg
-
8
col
-
md
-
8
col
-
sm
-
12
col
-
xs
-
12
">
<div class="
row
">
<div class="
blog
-
masonry
">
<div class="
col
-
lg
-
12
">
<div class="
blog
-
carousel
">
<div class="
blog
-
carousel
-
header
">
@if (
$data->rZh
)
<h1>{!!
$data->rZh
->title !!}</h1>
@endif
<div class="
blog
-
carousel
-
meta
">
<span><i class="
fa
fa
-
calendar
"></i>
<time title="
{
!!
$data
->
post_data
!!
}
" datetime="
{
!!
$data
->
post_data
!!
}
">{!! InseoHelper::tglbulanindo2(
$data->post_date
) !!}</time> - kategori <a href="
#">@if ($data->rCategory->rZh) {!! $data->rCategory->rZh->name !!} @endif</a></span>
<
span
><
i
class
="
fa
fa
-
eye
"></i> <a href="
#">{!! $data->viewer !!} Views</a></span>
{{
--
<
span
><
i
class
="
fa
fa
-
user
"></i> <a href="
#">Redaksi</a></span> --}}
</
div
><!--
end
blog
-
carousel
-
meta
-->
</
div
><!--
end
blog
-
carousel
-
header
-->
<
div
class
="
blog
-
carousel
-
desc
">
@if (
$data->thumbnail
)
@if(
$data->cover_status
== 1)
<center>
@if (
$setting['external_storage']
== 1)
<img src="
{{
$setting
[
'url_static'
]
.
'/'
.
$setting
[
'directory'
]
.
'/thumbnail/'
.
$data
->
thumbnail
}}
" alt="" style="
max
-
width
:
708
px
">
@else
<img src="
{{
url
(
'/storage/thumbnail/'
.
$data
->
thumbnail
)
}}
" alt="" style="
max
-
width
:
708
px
">
@endif
</center>
@endif
@endif
<br>
<div class="
widget
col
-
md
-
4
pull
-
right
related
hidden
-
sm
hidden
-
xs
kaitan
" style="
margin
-
bottom
:
5
px
;
">
<h4 class="
h4_kaitan
"><strong>类似新闻 </strong></h4>
<div class="
isi_kaitan
">
<div class="
content_kaitan
">
<ul class="
ul_kaitan
nav
nav
-
tabs
nav
-
stacked
">
@foreach(
$terkait
as
$valTerkait
)
@if (
$valTerkait->rZh
)
<li><strong><a title="
{
!!
$valTerkait
->
rZh
->
title
!!
}
" href="
{
!!
url
(
'post/'
.
$valTerkait
->
slug
)
!!
}
">{!!
$valTerkait->rZh
->title !!}</a></strong></li>
@endif
@endforeach
</ul>
</div>
</div>
</div>
@if (
$data->rZh
)
{!!
$data->rZh
->content !!}
@endif
</div>
</div>
</div>
</div>
</div>
</div>
@include('webprofile.front.jollyany.zh.widget')
</div>
</div><!-- end container -->
</section><!--end white-wrapper -->
@endsection
resources/views/webprofile/front/jollyany/zh/team.blade.php
0 → 100644
View file @
3f1e510d
@
extends
(
'webprofile.front.jollyany.master'
)
@
section
(
'meta'
)
<
meta
name
=
"{!! Str::slug(app('translator')->getFromJson('label.'.
$name
)) !!}"
content
=
"custom"
/>
<
meta
name
=
"description"
content
=
""
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
<div class="
container
">
<div class="
col
-
lg
-
12
">
<h2>@lang('label.'.
$name
)</h2>
</div>
</div>
</section><!-- end post-wrapper-top -->
<section class="
blog
-
wrapper
">
<div class="
container
">
<div class="
row
">
<div id="
main
-
content
" class="
col
-
md
-
12
" role="
main
" align="
justify
">
<table class="
table
table
-
bordered
" style="
vertical
-
align
:
baseline
;
">
<thead>
<tr>
<th style="
width
:
5
%
;
">NO</th>
<th style="
width
:
15
%
;
">PHOTO</th>
<th>INFORMATION</th>
</tr>
</thead>
<tbody>
@php
$no
= 1;
@endphp
@foreach (
$data
as
$value
)
<tr>
<td style="
text
-
align
:
center
;
color
:
black
;
">{{
$no
++ }}</td>
<td style="
color
:
black
;
text
-
align
:
center
;
">
<img style="
width
:
200
px
;
height
:
auto
;
" src="
https
://
i
-
sdm
.
unesa
.
ac
.
id
/
assets
/
images
/
kepegawaian
/
pegawai
//{!! $value['nip'] !!}.jpg" class="user-image" alt="{{ $value['namalengkap'] }}"><br>
</
td
>
<
td
style
=
"color: black;"
>
<
table
width
=
"100%"
>
<
tr
>
<
td
width
=
"10%"
>
NIP
</
td
>
<
td
>:
{{
$value
[
'nip'
]
}}
</
td
>
</
tr
>
<
tr
>
<
td
>
NAMA
</
td
>
<
td
>:
{{
$value
[
'namalengkap'
]
}}
</
td
>
</
tr
>
</
table
>
</
td
>
</
tr
>
@
endforeach
</
tbody
>
</
table
>
</
div
>
</
div
>
</
div
><!--
end
title
-->
</
div
><!--
end
container
-->
</
section
><!--
end
white
-
wrapper
-->
@
endsection
resources/views/webprofile/front/jollyany/zh/widget.blade.php
0 → 100644
View file @
3f1e510d
<div
id=
"sidebar"
class=
"col-lg-4 col-md-4 col-sm-12 col-xs-12"
>
<div
class=
"widget"
>
<div
class=
"title"
><h2>
<h2>
类别
</h2>
<ul
class=
"nav nav-tabs nav-stacked"
>
@foreach($categories as $value)
@if ($value->rZh)
<li><a
class=
"unesa-link"
href=
"{!! url('category/'.$value->name) !!}"
>
{!! $value->rZh->name !!}
</a></li>
@endif
@endforeach
</ul>
<h2>
最新文章
</h2>
<ul
class=
"nav nav-tabs nav-stacked"
>
@foreach($hot as $value)
@if ($value->rZh)
<li><a
class=
"unesa-link"
href=
"{!! url('post/'.$value->slug) !!}"
>
{!! $value->rZh->title !!}
</a></li>
@endif
@endforeach
</ul>
@foreach ($widget_right as $vwidget_right)
<div
class=
"widget"
>
<div
class=
"title"
>
<h2>
{!! $vwidget_right->title_design !!}
</h2>
</div>
<!-- end title -->
{!! $vwidget_right->value_design !!}
</div>
<!-- end widget -->
@endforeach
</div>
</div>
</div>
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