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
0f304e17
Commit
0f304e17
authored
4 years ago
by
Bagus Pambudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix rss dan progres autopost alia
parent
ba88a207
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
18 deletions
+21
-18
app/Http/Controllers/Webprofile/Backend/PostController.php
+15
-15
app/Repositories/Webprofile/AutopostRepository.php
+3
-0
resources/views/rss/feed.blade.php
+1
-1
resources/views/webprofile/backend/autopost/create.blade.php
+1
-1
resources/views/webprofile/backend/autopost/edit.blade.php
+1
-1
No files found.
app/Http/Controllers/Webprofile/Backend/PostController.php
View file @
0f304e17
...
@@ -164,21 +164,21 @@ class PostController extends Controller
...
@@ -164,21 +164,21 @@ class PostController extends Controller
// $this->socialRepo->sendLinkToFacebook(url('post/'.$data['slug']), $data['content']);
// $this->socialRepo->sendLinkToFacebook(url('post/'.$data['slug']), $data['content']);
if
(
$value
->
type
==
'twitter'
)
{
//
if ($value->type == 'twitter') {
//Social Share Twitter
//
//Social Share Twitter
Config
::
set
(
'larasap.twitter'
,
[
//
Config::set('larasap.twitter', [
'consurmer_key'
=>
$value
->
key_1
,
//
'consurmer_key' => $value->key_1,
'consurmer_secret'
=>
$value
->
key_2
,
//
'consurmer_secret' => $value->key_2,
'access_token'
=>
$value
->
key_3
,
//
'access_token' => $value->key_3,
'access_token_secret'
=>
$value
->
key_4
,
//
'access_token_secret' => $value->key_4,
]);
//
]);
if
(
$img
==
''
)
{
//
if ($img == '') {
$this
->
socialRepo
->
sendTextTweet
(
$setting
[
'header_admin'
]
.
'-'
.
$title
.
"
\n\n
"
.
$url
.
"
\n\n
"
.
$hashtag
);
//
$this->socialRepo->sendTextTweet($setting['header_admin'].'-'.$title."\n\n".$url."\n\n".$hashtag);
}
else
{
//
} else {
$this
->
socialRepo
->
sendTweetWithMedia
(
$setting
[
'header_admin'
]
.
'-'
.
$title
.
"
\n\n
"
.
$url
.
"
\n\n
"
.
$hashtag
,
[
$img
]);
//
$this->socialRepo->sendTweetWithMedia($setting['header_admin'].'-'.$title."\n\n".$url."\n\n".$hashtag, [$img]);
}
//
}
}
//
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
app/Repositories/Webprofile/AutopostRepository.php
View file @
0f304e17
...
@@ -61,6 +61,9 @@ class AutopostRepository extends Repository
...
@@ -61,6 +61,9 @@ class AutopostRepository extends Repository
$str
.=
'CHANNEL USERNAME => '
.
$row
->
key_3
.
'<br>'
;
$str
.=
'CHANNEL USERNAME => '
.
$row
->
key_3
.
'<br>'
;
$str
.=
'CHANNEL SIGNATURE => '
.
$row
->
key_4
.
'<br>'
;
$str
.=
'CHANNEL SIGNATURE => '
.
$row
->
key_4
.
'<br>'
;
$str
.=
'PROXY => '
.
$row
->
key_5
;
$str
.=
'PROXY => '
.
$row
->
key_5
;
}
elseif
(
$row
->
type
==
'alia'
)
{
$str
=
'URL => '
.
$row
->
key_1
.
'<br>'
;
$str
.=
'POSTS => '
.
$row
->
key_2
.
'<br>'
;
}
}
return
$str
;
return
$str
;
...
...
This diff is collapsed.
Click to expand it.
resources/views/rss/feed.blade.php
View file @
0f304e17
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
@foreach($posts as $post)
@foreach($posts as $post)
<item>
<item>
<title>
<![CDATA[{{ $post->title }}]]>
</title>
<title>
<![CDATA[{{ $post->title }}]]>
</title>
<link>
{{
$post->slug
}}
</link>
<link>
{{
url('post/'.$post['slug'])
}}
</link>
<description>
<![CDATA[{!! $post->content !!}]]>
</description>
<description>
<![CDATA[{!! $post->content !!}]]>
</description>
<category>
{{ $post->rCategory->name }}
</category>
<category>
{{ $post->rCategory->name }}
</category>
{{--
<author>
<![CDATA[{{ $post->slug }}]]>
</author>
--}}
{{--
<author>
<![CDATA[{{ $post->slug }}]]>
</author>
--}}
...
...
This diff is collapsed.
Click to expand it.
resources/views/webprofile/backend/autopost/create.blade.php
View file @
0f304e17
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<div class="
form
-
group
@
if
(
$errors
->
has
(
'type'
))
has
-
error
@
endif
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'type'
))
has
-
error
@
endif
">
<label class="
col
-
md
-
2
control
-
label
">Type</label>
<label class="
col
-
md
-
2
control
-
label
">Type</label>
<div class="
col
-
md
-
10
">
<div class="
col
-
md
-
10
">
{{ Form::select('type', ['facebook' => 'Facebook', 'twitter' => 'Twitter', 'telegram' => 'Telegram'], old('type'), array('class' => 'form-control fmtype', 'id' => 'type', 'placeholder' => '- Pilih -')) }}
{{ Form::select('type', ['facebook' => 'Facebook', 'twitter' => 'Twitter', 'telegram' => 'Telegram'
, 'alia' => 'Alia'
], old('type'), array('class' => 'form-control fmtype', 'id' => 'type', 'placeholder' => '- Pilih -')) }}
@if (
$errors->has
('type'))
@if (
$errors->has
('type'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('type')}
}
</label>
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('type')}
}
</label>
@endif
@endif
...
...
This diff is collapsed.
Click to expand it.
resources/views/webprofile/backend/autopost/edit.blade.php
View file @
0f304e17
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<div class="
form
-
group
@
if
(
$errors
->
has
(
'type'
))
has
-
error
@
endif
">
<div class="
form
-
group
@
if
(
$errors
->
has
(
'type'
))
has
-
error
@
endif
">
<label class="
col
-
md
-
2
control
-
label
">Type</label>
<label class="
col
-
md
-
2
control
-
label
">Type</label>
<div class="
col
-
md
-
10
">
<div class="
col
-
md
-
10
">
{{ Form::select('type', ['facebook' => 'Facebook', 'twitter' => 'Twitter', 'telegram' => 'Telegram'], old('type'), array('class' => 'form-control fmtype', 'id' => 'type', 'placeholder' => '- Pilih -')) }}
{{ Form::select('type', ['facebook' => 'Facebook', 'twitter' => 'Twitter', 'telegram' => 'Telegram'
, 'alia' => 'Alia'
], old('type'), array('class' => 'form-control fmtype', 'id' => 'type', 'placeholder' => '- Pilih -')) }}
@if (
$errors->has
('type'))
@if (
$errors->has
('type'))
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('type')}
}
</label>
<label id="
login
-
error
" class="
error
" for="
login
">
{
{$errors->first('type')}
}
</label>
@endif
@endif
...
...
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