Skip to content

Commit 974cc6e

Browse files
committed
Switched-to-global-Article
1 parent 58976c2 commit 974cc6e

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
],
1010
"require": {
1111
"php": ">=5.4.0",
12-
"illuminate/support": "4.2.*"
12+
"illuminate/support": "4.2.*"
1313
},
1414
"autoload": {
1515
"classmap": [

src/controllers/WritingController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php namespace Nonoesp\Writing;
22

3-
use Nonoesp\Writing\Article;
3+
//use Nonoesp\Writing\Article;
4+
use Article;
45

56
class WritingController extends \BaseController {
67

src/models/Article.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php namespace Nonoesp\Writing;
22

3-
use \Illuminate\Database\Eloquent\SoftDeletingTrait;
4-
53
class Article extends \Eloquent {
6-
use \SoftDeletingTrait;
4+
use \Illuminate\Database\Eloquent\SoftDeletingTrait;
75
use \Conner\Tagging\TaggableTrait;
86

97
protected $dates = ['deleted_at'];

src/views/partial/c-article.blade.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
31
<?php
42
53
/* [ c-article ]
@@ -98,10 +96,8 @@
9896
</p>
9997
@endif
10098

101-
{{-- Tags --}} tags
102-
<?php print_r($article->tagNames()); ?>
99+
{{-- Tags --}}
103100
@if (count($article->tagNames()) > 0)
104-
tags
105101
<p class="c-article__tags">{{ Writing::displayArticleTags($article->tagNames(), 'c-article__tag u-case-upper') }}</p>
106102
@endif
107103

0 commit comments

Comments
 (0)