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
9ecb5e58
Commit
9ecb5e58
authored
Jun 12, 2023
by
Siti Aisah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate keyword and add meta tag description
parent
64ecb106
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
318 additions
and
36 deletions
+318
-36
app/Http/Controllers/Webprofile/Backend/PageController.php
+33
-1
app/Http/Controllers/Webprofile/Backend/PostController.php
+35
-1
resources/lang/en/label.php
+1
-0
resources/lang/id/label.php
+1
-0
resources/views/webprofile/backend/pages/create.blade.php
+2
-2
resources/views/webprofile/backend/pages/edit.blade.php
+1
-1
resources/views/webprofile/backend/pages/edit_per_bahasa.blade.php
+77
-9
resources/views/webprofile/backend/posts/create.blade.php
+2
-2
resources/views/webprofile/backend/posts/edit.blade.php
+1
-1
resources/views/webprofile/backend/posts/edit_per_bahasa.blade.php
+83
-6
resources/views/webprofile/front/jollyany/ar/page.blade.php
+17
-1
resources/views/webprofile/front/jollyany/de/page.blade.php
+17
-1
resources/views/webprofile/front/jollyany/en/page.blade.php
+20
-1
resources/views/webprofile/front/jollyany/page.blade.php
+1
-1
resources/views/webprofile/front/jollyany/zh/page.blade.php
+19
-1
resources/views/webprofile/front/jollyany/zh/post.blade.php
+8
-8
No files found.
app/Http/Controllers/Webprofile/Backend/PageController.php
View file @
9ecb5e58
...
...
@@ -116,6 +116,7 @@ class PageController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -125,6 +126,7 @@ class PageController extends Controller
$dataEn
[
'page_id'
]
=
$page
->
id
;
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'keys'
]
=
$keys
;
$dataEn
[
'content'
]
=
$content
;
$this
->
repoEn
->
store
(
$dataEn
);
...
...
@@ -134,6 +136,7 @@ class PageController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -143,6 +146,7 @@ class PageController extends Controller
$dataDe
[
'page_id'
]
=
$page
->
id
;
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'keys'
]
=
$keys
;
$dataDe
[
'content'
]
=
$content
;
$this
->
repoDe
->
store
(
$dataDe
);
...
...
@@ -152,6 +156,7 @@ class PageController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -161,6 +166,7 @@ class PageController extends Controller
$dataSa
[
'page_id'
]
=
$page
->
id
;
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'keys'
]
=
$keys
;
$dataSa
[
'content'
]
=
$content
;
$this
->
repoSa
->
store
(
$dataSa
);
...
...
@@ -170,6 +176,7 @@ class PageController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -179,6 +186,7 @@ class PageController extends Controller
$dataZh
[
'page_id'
]
=
$page
->
id
;
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'keys'
]
=
$keys
;
$dataZh
[
'content'
]
=
$content
;
$this
->
repoZh
->
store
(
$dataZh
);
...
...
@@ -251,6 +259,10 @@ class PageController extends Controller
$request
[
'title_de'
]
=
strip_tags
(
$request
->
title_de
);
$request
[
'title_sa'
]
=
strip_tags
(
$request
->
title_sa
);
$request
[
'title_zh'
]
=
strip_tags
(
$request
->
title_zh
);
$request
[
'keys_en'
]
=
strip_tags
(
$request
->
keys_en
);
$request
[
'keys_de'
]
=
strip_tags
(
$request
->
keys_de
);
$request
[
'keys_sa'
]
=
strip_tags
(
$request
->
keys_sa
);
$request
[
'keys_zh'
]
=
strip_tags
(
$request
->
keys_zh
);
$request
->
validate
([
'content'
=>
'required|min:3'
,
...
...
@@ -261,7 +273,7 @@ class PageController extends Controller
'keys.max'
=>
'Keyword terlalu panjang'
]);
$data
=
$request
->
except
([
'_token'
,
'id'
,
'title_en'
,
'
content_en'
,
'title_de'
,
'content_de'
,
'title_sa'
,
'content_sa'
,
'title
_zh'
,
'content_zh'
,
'manual'
]);
$data
=
$request
->
except
([
'_token'
,
'id'
,
'title_en'
,
'
keys_en'
,
'content_en'
,
'title_de'
,
'keys_de'
,
'content_de'
,
'title_sa'
,
'keys_sa'
,
'content_sa'
,
'title_zh'
,
'keys
_zh'
,
'content_zh'
,
'manual'
]);
$dataEn
=
$request
->
except
([
'_token'
,
'id'
,
'manual'
]);
// $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content);
...
...
@@ -294,6 +306,7 @@ class PageController extends Controller
{
if
(
$manual
==
1
){
$dataEn
[
'title'
]
=
strip_tags
(
$data
[
'title_en'
]);
$dataEn
[
'keys'
]
=
strip_tags
(
$data
[
'keys_en'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]);
}
else
{
...
...
@@ -303,11 +316,15 @@ class PageController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]));
$dataEn
[
'content'
]
=
$content
;
}
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'keys'
]
=
$keys
;
}
$this
->
repoEn
->
update
(
$dataEn
,
$page
);
...
...
@@ -317,6 +334,7 @@ class PageController extends Controller
{
if
(
$manual
==
1
){
$dataDe
[
'title'
]
=
strip_tags
(
$data
[
'title_de'
]);
$dataDe
[
'keys'
]
=
strip_tags
(
$data
[
'keys_de'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]);
}
else
{
...
...
@@ -325,11 +343,15 @@ class PageController extends Controller
}
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]));
$dataDe
[
'content'
]
=
$content
;
}
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'keys'
]
=
$keys
;
}
$this
->
repoDe
->
update
(
$dataDe
,
$page
);
...
...
@@ -339,6 +361,7 @@ class PageController extends Controller
{
if
(
$manual
==
1
){
$dataSa
[
'title'
]
=
strip_tags
(
$data
[
'title_sa'
]);
$dataSa
[
'keys'
]
=
strip_tags
(
$data
[
'keys_sa'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]);
}
else
{
...
...
@@ -348,11 +371,15 @@ class PageController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]));
$dataSa
[
'content'
]
=
$content
;
}
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'keys'
]
=
$keys
;
}
$this
->
repoSa
->
update
(
$dataSa
,
$page
);
...
...
@@ -362,6 +389,7 @@ class PageController extends Controller
{
if
(
$manual
==
1
){
$dataZh
[
'title'
]
=
strip_tags
(
$data
[
'title_zh'
]);
$dataZh
[
'keys'
]
=
strip_tags
(
$data
[
'keys_zh'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]);
}
else
{
...
...
@@ -371,11 +399,15 @@ class PageController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'<b>'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'td'
,
'th'
,
'tr'
,
'iframe'
,
'section'
,
'small'
,
'button'
,
'span'
,
'style'
,
'h1'
,
'h2'
,
'h3'
,
'h4'
,
'h5'
,
'h6'
,
'thead'
,
'tbody'
]));
$dataZh
[
'content'
]
=
$content
;
}
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'keys'
]
=
$keys
;
}
$this
->
repoZh
->
update
(
$dataZh
,
$page
);
...
...
app/Http/Controllers/Webprofile/Backend/PostController.php
View file @
9ecb5e58
...
...
@@ -218,6 +218,8 @@ class PostController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -227,6 +229,7 @@ class PostController extends Controller
$dataEn
[
'post_id'
]
=
$post
->
id
;
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'keys'
]
=
$keys
;
$dataEn
[
'content'
]
=
$content
;
$this
->
repoEn
->
store
(
$dataEn
);
...
...
@@ -236,6 +239,7 @@ class PostController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -245,6 +249,7 @@ class PostController extends Controller
$dataDe
[
'post_id'
]
=
$post
->
id
;
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'keys'
]
=
$keys
;
$dataDe
[
'content'
]
=
$content
;
$this
->
repoDe
->
store
(
$dataDe
);
...
...
@@ -254,6 +259,7 @@ class PostController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -263,6 +269,7 @@ class PostController extends Controller
$dataSa
[
'post_id'
]
=
$post
->
id
;
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'keys'
]
=
$keys
;
$dataSa
[
'content'
]
=
$content
;
$this
->
repoSa
->
store
(
$dataSa
);
...
...
@@ -272,6 +279,7 @@ class PostController extends Controller
{
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'keys'
]));
if
(
$data
[
'content'
]
==
null
)
{
$data
[
'content'
]
=
'kosong'
;
...
...
@@ -281,6 +289,7 @@ class PostController extends Controller
$dataZh
[
'post_id'
]
=
$post
->
id
;
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'keys'
]
=
$keys
;
$dataZh
[
'content'
]
=
$content
;
$this
->
repoZh
->
store
(
$dataZh
);
...
...
@@ -356,6 +365,11 @@ class PostController extends Controller
$request
[
'title_de'
]
=
strip_tags
(
$request
->
title_de
);
$request
[
'title_sa'
]
=
strip_tags
(
$request
->
title_sa
);
$request
[
'title_zh'
]
=
strip_tags
(
$request
->
title_zh
);
$request
[
'keys'
]
=
strip_tags
(
$request
->
keys
);
$request
[
'keys_en'
]
=
strip_tags
(
$request
->
keys_en
);
$request
[
'keys_de'
]
=
strip_tags
(
$request
->
keys_de
);
$request
[
'keys_sa'
]
=
strip_tags
(
$request
->
keys_sa
);
$request
[
'keys_zh'
]
=
strip_tags
(
$request
->
keys_zh
);
$request
->
validate
([
'categories'
=>
'required'
,
...
...
@@ -372,7 +386,7 @@ class PostController extends Controller
]);
$data
=
$request
->
except
([
'_token'
,
'manual'
,
'id'
,
'title_en'
,
'
content_en'
,
'title_de'
,
'content_de'
,
'title_sa'
,
'content_sa'
,
'title
_zh'
,
'content_zh'
]);
$data
=
$request
->
except
([
'_token'
,
'manual'
,
'id'
,
'title_en'
,
'
keys_en'
,
'content_en'
,
'title_de'
,
'keys_de'
,
'content_de'
,
'title_sa'
,
'keys_sa'
,
'content_sa'
,
'title_zh'
,
'keys
_zh'
,
'content_zh'
]);
$dataEn
=
$request
->
except
([
'_token'
,
'id'
,
'manual'
]);
// $data['title'] = htmlspecialchars($request->title);
// $data['content'] = htmlspecialchars($request->content);
...
...
@@ -416,6 +430,7 @@ class PostController extends Controller
{
if
(
$manual
==
1
){
$dataEn
[
'title'
]
=
strip_tags
(
$data
[
'title_en'
]);
$dataEn
[
'keys'
]
=
strip_tags
(
$data
[
'keys_en'
]);
$dataEn
[
'content'
]
=
strip_tags
(
$data
[
'content_en'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]);
}
else
{
...
...
@@ -426,11 +441,15 @@ class PostController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGET
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]));
$dataEn
[
'content'
]
=
$content
;
}
$dataEn
[
'title'
]
=
$title
;
$dataEn
[
'keys'
]
=
$keys
;
}
$this
->
repoEn
->
update
(
$dataEn
,
$post
);
}
...
...
@@ -439,6 +458,7 @@ class PostController extends Controller
{
if
(
$manual
==
1
){
$dataDe
[
'title'
]
=
strip_tags
(
$data
[
'title_de'
]);
$dataDe
[
'keys'
]
=
strip_tags
(
$data
[
'keys_de'
]);
$dataDe
[
'content'
]
=
strip_tags
(
$data
[
'content_de'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]);
}
else
{
...
...
@@ -449,11 +469,15 @@ class PostController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETDE
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]));
$dataDe
[
'content'
]
=
$content
;
}
$dataDe
[
'title'
]
=
$title
;
$dataDe
[
'keys'
]
=
$keys
;
}
$this
->
repoDe
->
update
(
$dataDe
,
$post
);
}
...
...
@@ -462,6 +486,7 @@ class PostController extends Controller
{
if
(
$manual
==
1
){
$dataSa
[
'title'
]
=
strip_tags
(
$data
[
'title_sa'
]);
$dataSa
[
'keys'
]
=
strip_tags
(
$data
[
'keys_sa'
]);
$dataSa
[
'content'
]
=
strip_tags
(
$data
[
'content_sa'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]);
}
else
{
...
...
@@ -472,11 +497,15 @@ class PostController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETSA
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]));
$dataSa
[
'content'
]
=
$content
;
}
$dataSa
[
'title'
]
=
$title
;
$dataSa
[
'keys'
]
=
$keys
;
}
$this
->
repoSa
->
update
(
$dataSa
,
$post
);
}
...
...
@@ -485,6 +514,7 @@ class PostController extends Controller
{
if
(
$manual
==
1
){
$dataZh
[
'title'
]
=
strip_tags
(
$data
[
'title_zh'
]);
$dataZh
[
'keys'
]
=
strip_tags
(
$data
[
'keys_zh'
]);
$dataZh
[
'content'
]
=
strip_tags
(
$data
[
'content_zh'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]);
}
else
{
...
...
@@ -494,11 +524,15 @@ class PostController extends Controller
$trans
=
new
GoogleTranslate
();
$title
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'title'
]));
$keys
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'keys'
]));
if
(
strlen
(
$data
[
'content'
])
<
5000
)
{
$content
=
$trans
->
translate
(
$this
->
SOURCE
,
$this
->
TARGETZH
,
strip_tags
(
$data
[
'content'
],
[
'a'
,
'br'
,
'p'
,
'b'
,
'i'
,
'u'
,
'ul'
,
'li'
,
'ol'
,
'img'
,
'table'
,
'tr'
,
'td'
,
'th'
,
'iframe'
,
'section'
,
'span'
]));
$dataZh
[
'content'
]
=
$content
;
}
$dataZh
[
'title'
]
=
$title
;
$dataZh
[
'keys'
]
=
$keys
;
}
$this
->
repoZh
->
update
(
$dataZh
,
$post
);
}
...
...
resources/lang/en/label.php
View file @
9ecb5e58
...
...
@@ -15,6 +15,7 @@ return [
'status'
=>
'Status'
,
'action'
=>
'Action'
,
'title'
=>
'Title'
,
'keywords'
=>
'Keywords'
,
'category'
=>
'Category'
,
'date'
=>
'Date'
,
'sum'
=>
'Sum'
,
...
...
resources/lang/id/label.php
View file @
9ecb5e58
...
...
@@ -15,6 +15,7 @@ return [
'status'
=>
'Status'
,
'action'
=>
'Aksi'
,
'title'
=>
'Judul'
,
'keywords'
=>
'Kata Kunci'
,
'category'
=>
'Kategori'
,
'date'
=>
'Tanggal'
,
'sum'
=>
'Jumlah'
,
...
...
resources/views/webprofile/backend/pages/create.blade.php
View file @
9ecb5e58
...
...
@@ -33,7 +33,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
...
...
@@ -63,7 +63,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
...
...
resources/views/webprofile/backend/pages/edit.blade.php
View file @
9ecb5e58
...
...
@@ -157,7 +157,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
...
...
resources/views/webprofile/backend/pages/edit_per_bahasa.blade.php
View file @
9ecb5e58
...
...
@@ -29,7 +29,7 @@
<h3 class="
panel
-
title
"><strong>@lang('label.edit')</strong> @lang('feature.page')</h3>
</div>
<div class="
panel
-
body
">
<div class="
row
">
{{--
<div class="
row
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
Bahasa Indonesia
</div>
...
...
@@ -49,16 +49,48 @@
{{ Form::textarea('content', null, array('id'=>'content')) }}
</div>
</div>
</div>
</div>
--}}
<div class="
tabs
">
<ul class="
nav
nav
-
tabs
" role="
tablist
">
<li class="
active
"><a href="
#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li>
<li class="
active
"><a href="
#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<
li
class
=""><
a
href
=
"#inggris"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Inggris
</
a
></
li
>
<
li
class
=""><
a
href
=
"#jerman"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Jerman
</
a
></
li
>
<
li
class
=""><
a
href
=
"#arab"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Arab
</
a
></
li
>
<
li
class
=""><
a
href
=
"#cina"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Cina
</
a
></
li
>
</
ul
>
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
inggris
">
<div class="
tab
-
pane
active
" id="
indo
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
Bahasa Indonesia
</div>
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>trans('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
{{ Form::hidden('manual',
$manual
, array('id'=>'manual')) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
<div class="
block
">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual',
$manual
, array('id'=>'manual')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
inggris
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
English Language
</div>
...
...
@@ -76,6 +108,15 @@
<div class="
block
">
{{ Form::textarea('content_en',
$data->rEn
?
$data->rEn
->content : null, array('id'=>'content_en')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_en',
$data->rEn
?
$data->rEn
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
jerman
">
...
...
@@ -85,7 +126,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title_de',
$data->rDe
?
$data->rDe
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_de',
$data->rDe
?
$data->rDe
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
...
...
@@ -96,6 +137,15 @@
<div class="
block
">
{{ Form::textarea('content_de',
$data->rDe
?
$data->rDe
->content : null, array('id'=>'content_de')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_de',
$data->rDe
?
$data->rDe
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
arab
">
...
...
@@ -105,7 +155,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title_sa',
$data->rSa
?
$data->rSa
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_sa',
$data->rSa
?
$data->rSa
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
...
...
@@ -116,6 +166,15 @@
<div class="
block
">
{{ Form::textarea('content_sa',
$data->rSa
?
$data->rSa
->content : null, array('id'=>'content_sa')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_sa',
$data->rSa
?
$data->rSa
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
cina
">
...
...
@@ -125,7 +184,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title_zh',
$data->rZh
?
$data->rZh
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title_zh',
$data->rZh
?
$data->rZh
->title : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
...
...
@@ -136,6 +195,15 @@
<div class="
block
">
{{ Form::textarea('content_zh',
$data->rZh
?
$data->rZh
->content : null, array('id'=>'content_zh')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_zh',
$data->rZh
?
$data->rZh
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
</div>
...
...
@@ -144,7 +212,7 @@
</div>
</div>
<div class="
col
-
md
-
12
">
{{--
<div class="
col
-
md
-
12
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h3 class="
panel
-
title
">Keywords</h3>
...
...
@@ -169,7 +237,7 @@
<div class="
panel
-
footer
">
</div>
</div>
</div>
</div>
--}}
<div class="
col
-
md
-
12
">
<div class="
panel
panel
-
default
">
...
...
resources/views/webprofile/backend/posts/create.blade.php
View file @
9ecb5e58
...
...
@@ -33,7 +33,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
...
...
@@ -162,7 +162,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
...
...
resources/views/webprofile/backend/posts/edit.blade.php
View file @
9ecb5e58
...
...
@@ -261,7 +261,7 @@
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;')) }}
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;'
, 'required'
)) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
...
...
resources/views/webprofile/backend/posts/edit_per_bahasa.blade.php
View file @
9ecb5e58
...
...
@@ -29,7 +29,7 @@
<h3 class="
panel
-
title
"><strong>@lang('label.edit')</strong> @lang('feature.post')</h3>
</div>
<div class="
panel
-
body
">
<div class="
row
">
{{--
<div class="
row
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
Bahasa Indonesia
</div>
...
...
@@ -59,16 +59,57 @@
{{ Form::hidden('manual',
$manual
, array('id'=>'manual')) }}
</div>
</div>
</div>
</div>
--}}
<div class="
tabs
">
<ul class="
nav
nav
-
tabs
" role="
tablist
">
<li class="
active
"><a href="
#inggris" role="tab" data-toggle="tab" aria-expanded="true">Inggris</a></li>
<li class="
active
"><a href="
#indo" role="tab" data-toggle="tab" aria-expanded="true">Indonesia</a></li>
<
li
class
=""><
a
href
=
"#inggris"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Inggris
</
a
></
li
>
<
li
class
=""><
a
href
=
"#jerman"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Jerman
</
a
></
li
>
<
li
class
=""><
a
href
=
"#arab"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Arab
</
a
></
li
>
<
li
class
=""><
a
href
=
"#cina"
role
=
"tab"
data
-
toggle
=
"tab"
aria
-
expanded
=
"false"
>
Cina
</
a
></
li
>
</
ul
>
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
inggris
">
<div class="
tab
-
pane
active
" id="
indo
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
Bahasa Indonesia
</div>
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'title'
))
has
-
error
@
endif
">
<div class="
col
-
md
-
12
">
{{ Form::text('title', old('title'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.title'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('title'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('title')}
}
</label>
@endif
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'categories'
))
has
-
error
@
endif
" style="
margin
-
top
:
5
px
;
">
<div class="
col
-
md
-
12
">
{{ Form::select('categories',
$categories
, old('categories'), ['class' => 'form-control select2', 'style' => 'width: 100%; font-size: 14pt;', 'id' => 'categories', 'placeholder' => app('translator')->getFromJson('feature.category'), 'required']) }}
@if (
$errors->has
('categories'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('categories')}
}
</label>
@endif
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
<div class="
block
">
{{ Form::textarea('content', null, array('id'=>'content')) }}
{{ Form::hidden('manual',
$manual
, array('id'=>'manual')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys', old('keys'), array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
inggris
">
<div style="
padding
:
10
px
10
px
10
px
10
px
;
font
-
weight
:
bold
;
font
-
size
:
14
pt
;
">
English Language
</div>
...
...
@@ -86,6 +127,15 @@
<div class="
block
">
{{ Form::textarea('content_en',
$data->rEn
?
$data->rEn
->content : null, array('id'=>'content_en')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_en',
$data->rEn
?
$data->rEn
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
jerman
">
...
...
@@ -106,6 +156,15 @@
<div class="
block
">
{{ Form::textarea('content_de',
$data->rDe
?
$data->rDe
->content : null, array('id'=>'content_de')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_de',
$data->rDe
?
$data->rDe
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
arab
">
...
...
@@ -126,6 +185,15 @@
<div class="
block
">
{{ Form::textarea('content_sa',
$data->rSa
?
$data->rSa
->content : null, array('id'=>'content_sa')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_sa',
$data->rSa
?
$data->rSa
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
<div class="
tab
-
pane
" id="
cina
">
...
...
@@ -146,6 +214,15 @@
<div class="
block
">
{{ Form::textarea('content_zh',
$data->rZh
?
$data->rZh
->content : null, array('id'=>'content_zh')) }}
</div>
<div class="
form
-
group
@
if
(
$errors
->
has
(
'keys'
))
has
-
error
@
endif
">
<h3 class="
panel
-
title
">@lang('label.keywords')</h3>
<div class="
col
-
md
-
12
">
{{ Form::text('keys_zh',
$data->rZh
?
$data->rZh
->keys : null, array('class' => 'form-control', 'placeholder'=>app('translator')->getFromJson('label.keys'), 'style'=>'font-size: 14pt;', 'required')) }}
@if (
$errors->has
('keys'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('keys')}
}
</label>
@endif
</div>
</div>
</div>
</div>
</div>
...
...
@@ -247,7 +324,7 @@
</div>
</div>
</div>
<div class="
col
-
md
-
12
">
{{--
<div class="
col
-
md
-
12
">
<div class="
panel
panel
-
default
">
<div class="
panel
-
heading
">
<h3 class="
panel
-
title
">Keywords</h3>
...
...
@@ -272,7 +349,7 @@
<div class="
panel
-
footer
">
</div>
</div>
</div>
</div>
--}}
{!! Form::close() !!}
</div>
<!-- page end-->
...
...
resources/views/webprofile/front/jollyany/ar/page.blade.php
View file @
9ecb5e58
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master2'
)
@
section
(
'meta'
)
<
title
>
{{
$data
->
rSa
?
$data
->
rSa
->
title
:
$data
->
title
}}
</
title
>
{{
--
<
meta
name
=
"{{ Str::slug(
$data->rSa
->title) }}"
content
=
"custom"
/>
--
}}
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rSa
?
$data->rSa
->content:
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rSa
?
$data->rSa
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
{{
--
<
meta
property
=
"og:site_name"
content
=
"
{
{$setting['web_title']}
}
"
/>
<
meta
property
=
"og:title"
content
=
"
{
{$data->rSa->title}
}
"
/>
<
meta
property
=
"og:url"
content
=
"{{ url('page/'.
$data->slug
) }}"
/>
<
meta
property
=
"og:description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rSa
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
/>
<
meta
property
=
"og:locale"
content
=
"
{
{Session::get('selected_language')}
}
"
/>
<
meta
property
=
"og:image"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:secure_url"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:type"
content
=
"image/{{pathinfo(
$data->thumbnail
, PATHINFO_EXTENSION)}}"
/>
--
}}
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
...
...
resources/views/webprofile/front/jollyany/de/page.blade.php
View file @
9ecb5e58
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master2'
)
@
section
(
'meta'
)
<
title
>
{{
$data
->
rDe
?
$data
->
rDe
->
title
:
$data
->
title
}}
</
title
>
{{
--
<
meta
name
=
"{{ Str::slug(
$data->rDe
->title) }}"
content
=
"custom"
/>
--
}}
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rDe
?
$data->rDe
->content:
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rDe
?
$data->rDe
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
{{
--
<
meta
property
=
"og:site_name"
content
=
"
{
{$setting['web_title']}
}
"
/>
<
meta
property
=
"og:title"
content
=
"
{
{$data->rDe->title}
}
"
/>
<
meta
property
=
"og:url"
content
=
"{{ url('page/'.
$data->slug
) }}"
/>
<
meta
property
=
"og:description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rDe
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
/>
<
meta
property
=
"og:locale"
content
=
"
{
{Session::get('selected_language')}
}
"
/>
<
meta
property
=
"og:image"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:secure_url"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:type"
content
=
"image/{{pathinfo(
$data->thumbnail
, PATHINFO_EXTENSION)}}"
/>
--
}}
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
...
...
resources/views/webprofile/front/jollyany/en/page.blade.php
View file @
9ecb5e58
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master2'
)
@
section
(
'meta'
)
<
title
>
{{
$data
->
rEn
?
$data
->
rEn
->
title
:
$data
->
title
}}
</
title
>
{{
--
<
meta
name
=
"{{ Str::slug(
$data->rEn
->title) }}"
content
=
"custom"
/>
--
}}
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rEn
?
$data->rEn
->content:
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rEn
?
$data->rEn
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
{{
--
<
meta
property
=
"og:site_name"
content
=
"
{
{$setting['web_title']}
}
"
/>
<
meta
property
=
"og:title"
content
=
"
{
{$data->rEn->title}
}
"
/>
<
meta
property
=
"og:url"
content
=
"{{ url('page/'.
$data->slug
) }}"
/>
<
meta
property
=
"og:description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rEn
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
/>
<
meta
property
=
"og:locale"
content
=
"
{
{Session::get('selected_language')}
}
"
/>
<
meta
property
=
"og:image"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:secure_url"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:type"
content
=
"image/{{pathinfo(
$data->thumbnail
, PATHINFO_EXTENSION)}}"
/>
--
}}
<
link
rel
=
"alternate"
hreflang
=
"
{
{Session::get('selected_language')}
}
"
href
=
"{{ url('post/'.
$data->slug
) }}"
/>
<
link
rel
=
"alternate"
hreflang
=
"en-us"
href
=
"{{ url('') }}"
/>
<
link
rel
=
"canonical"
href
=
"{{ url('') }}"
/>
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
...
...
resources/views/webprofile/front/jollyany/page.blade.php
View file @
9ecb5e58
...
...
@@ -2,7 +2,7 @@
@
section
(
'meta'
)
<
title
>
{{
$data
?
$data
->
title
:
$setting
[
'web_title'
]}}
</
title
>
<
meta
name
=
"{{ Str::slug(
$data->title
) }}"
content
=
"custom"
/>
{{
--
<
meta
name
=
"{{ Str::slug(
$data->title
) }}"
content
=
"custom"
/>
--
}}
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
...
...
resources/views/webprofile/front/jollyany/zh/page.blade.php
View file @
9ecb5e58
@
extends
(
'webprofile.front.jollyany.master'
)
@
extends
(
'webprofile.front.jollyany.master2'
)
@
section
(
'meta'
)
<
title
>
{{
$data
->
rZh
?
$data
->
rZh
->
title
:
$data
->
title
}}
</
title
>
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rZh
?
$data->rZh
->content:
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rZh
?
$data->rZh
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
<
link
rel
=
"alternate"
hreflang
=
"
{
{Session::get('selected_language')}
}
"
href
=
"{{ url('post/'.
$data->slug
) }}"
/>
<
link
rel
=
"alternate"
hreflang
=
"en-us"
href
=
"{{ url('') }}"
/>
<
link
rel
=
"canonical"
href
=
"{{ url('') }}"
/>
{{
--
<
meta
property
=
"og:site_name"
content
=
"
{
{$setting['web_title']}
}
"
/>
<
meta
property
=
"og:title"
content
=
"
{
{$data->rZh->title}
}
"
/>
<
meta
property
=
"og:url"
content
=
"{{ url('page/'.
$data->slug
) }}"
/>
<
meta
property
=
"og:description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rZh
->content,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
/>
<
meta
property
=
"og:locale"
content
=
"
{
{Session::get('selected_language')}
}
"
/>
<
meta
property
=
"og:image"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:secure_url"
content
=
"{{
$setting['url_static']
. '/' .
$setting['directory']
. '/thumbnail/' .
$data->thumbnail
}}"
/>
<
meta
property
=
"og:image:type"
content
=
"image/{{pathinfo(
$data->thumbnail
, PATHINFO_EXTENSION)}}"
/>
--
}}
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
...
...
resources/views/webprofile/front/jollyany/zh/post.blade.php
View file @
9ecb5e58
@
extends
(
'webprofile.front.jollyany.master2'
)
<
title
>
{
!!
$data
->
rZh
?
$data
->
rZh
->
title
:
$data
->
title
!!
}
</
title
>
@
section
(
'meta'
)
<
title
>
{{
$
setting
[
'web_title'
]
}}
</
title
>
<
meta
name
=
"
{{ Str::slug(
$data->rZh
?
$data->rZh
->title:
$data->title
) }}"
content
=
"custom"
/
>
<!--
<
meta
name
=
"description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
--
>
<
meta
name
=
"description"
content
=
"
{
{$setting['web_title']
}
}
"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rZh
?
$data->rZh
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
<
title
>
{{
$
data
->
rZh
?
$data
->
rZh
->
title
:
$data
->
title
}}
</
title
>
<
meta
name
=
"
description"
content
=
"{!! strip_tags(substr(html_entity_decode(
$data->rZh
?
$data->rZh
->content:
$data->content
,ENT_COMPAT,"
UTF
-
8
"),0 , 200)) !!}"
>
<
meta
name
=
"keywords"
content
=
"{{
$data->rZh
?
$data->rZh
->keys:
$data->keys
}}"
>
<
meta
name
=
"author"
content
=
"{{
$setting['header_admin']
}}"
>
<
link
rel
=
"alternate"
hreflang
=
"
{
{Session::get('selected_language')}
}
"
href
=
"{{ url('post/'.
$data->slug
) }}"
/>
<
link
rel
=
"alternate"
hreflang
=
"en-us"
href
=
"{{ url('') }}"
/
>
<
link
rel
=
"canonical"
href
=
"{{ url('') }}"
/
>
@
endsection
@
section
(
'content'
)
<
section
class
="
post
-
wrapper
-
top
jt
-
shadow
clearfix
">
...
...
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