Skip to content

Commit 4dde05d

Browse files
committed
adds author and published date to post views
1 parent 5d36d5c commit 4dde05d

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ After upgraded to latest version follows these steps:
164164
- 0.3 - Small changes, packagist settings.
165165
- 0.1 - Initial release
166166

167-
This package is based on [WebDevEtc's](https://github.com/WebDevEtc/BlogEtc).
168-
169167
## Issues, support, bug reports, security issues
170168

171-
Please contact me on: [email protected]
169+
172170

173171

174172

src/BlogEtcServiceProvider.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
use Swis\Laravel\Fulltext\ModelObserver;
77
use WebDevEtc\BlogEtc\Models\BlogEtcPost;
88

9+
/**
10+
* @github https://github.com/vhessam
11+
*/
12+
913
class BlogEtcServiceProvider extends ServiceProvider
1014
{
1115
/**

src/Controllers/BlogEtcReaderController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/**
1414
* Class BlogEtcReaderController
1515
* All of the main public facing methods for viewing blog content (index, single posts)
16+
* @Author: [email protected] - added sub-category functionality
17+
* @github https://github.com/vhessam
1618
* @package WebDevEtc\BlogEtc\Controllers
1719
*/
1820
class BlogEtcReaderController extends Controller

src/Models/BlogEtcCategory.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
namespace WebDevEtc\BlogEtc\Models;
44

55
use Illuminate\Database\Eloquent\Model;
6+
/**
7+
* @author [email protected] - added sub-category functionality
8+
* @github https://github.com/vhessam
9+
* */
610

711
class BlogEtcCategory extends Model
812
{

src/Views/blogetc/partials/index_loop.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
<p>{!! mb_strimwidth($post->post_body_output(), 0, 400, "...") !!}</p>
1515

16+
<span class="light-text">Authored by: </span> {{$post->author->name}} <span class="light-text">Posted at: </span> {{date('d M Y ', strtotime($post->posted_at))}}
17+
1618
<div class='text-center'>
1719
<a href="{{$post->url()}}" class="btn btn-primary">View Post</a>
1820
</div>

0 commit comments

Comments
 (0)