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
6820ff46
Commit
6820ff46
authored
4 years ago
by
Bagus Pambudi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add image rss
parent
23703bec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletions
+10
-1
app/Http/Controllers/RssFeedController.php
+2
-1
resources/views/rss/feed.blade.php
+3
-0
resources/views/webprofile/front/jollyany/master.blade.php
+5
-0
No files found.
app/Http/Controllers/RssFeedController.php
View file @
6820ff46
...
@@ -8,7 +8,7 @@ class RssFeedController extends Controller
...
@@ -8,7 +8,7 @@ class RssFeedController extends Controller
{
{
$posts
=
Posts
::
where
(
'post_status'
,
't'
)
->
$posts
=
Posts
::
where
(
'post_status'
,
't'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
orderBy
(
'created_at'
,
'desc'
)
->
limit
(
5
0
)
->
get
();
limit
(
1
0
)
->
get
();
return
response
()
->
view
(
'rss.feed'
,
compact
(
'posts'
))
->
header
(
'Content-Type'
,
'application/xml'
);
return
response
()
->
view
(
'rss.feed'
,
compact
(
'posts'
))
->
header
(
'Content-Type'
,
'application/xml'
);
}
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/views/rss/feed.blade.php
View file @
6820ff46
...
@@ -9,6 +9,9 @@
...
@@ -9,6 +9,9 @@
<language>
en
</language>
<language>
en
</language>
<pubDate>
{{ now() }}
</pubDate>
<pubDate>
{{ now() }}
</pubDate>
@foreach($posts as $post)
@foreach($posts as $post)
<image>
<url>
{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}
</url>
</image>
<item>
<item>
<title>
{{ $post->title }}
</title>
<title>
{{ $post->title }}
</title>
<link>
{{ url('post/'.$post['slug'])}}
</link>
<link>
{{ url('post/'.$post['slug'])}}
</link>
...
...
This diff is collapsed.
Click to expand it.
resources/views/webprofile/front/jollyany/master.blade.php
View file @
6820ff46
...
@@ -23,6 +23,11 @@
...
@@ -23,6 +23,11 @@
}
}
ul
.dropdown-menu
{
}
div
#navbar-collapse-1
.navbar-collapse.collapse.navbar-right
{
div
#navbar-collapse-1
.navbar-collapse.collapse.navbar-right
{
margin-left
:
150px
;
margin-left
:
150px
;
...
...
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