|
@@ -11,15 +11,15 @@ |
|
|
block discarded – undo |
|
11
|
11
|
} |
|
12
|
12
|
$title = Text::snippet($title, 50); |
|
13
|
13
|
$date = Date::humanize($record->created_at); |
|
14
|
|
- $categoryUrl = \App::$Alias->baseUrl . '/content/list/' . $record->cpath; |
|
15
|
|
- $categoryLink = '<a href="' . $categoryUrl . '">' . \App::$Translate->getLocaleText($record->ctitle) . '</a>'; |
|
16
|
|
- $newsLink = \App::$Alias->baseUrl . '/content/read/' . $record->cpath; |
|
17
|
|
- $newsLink = rtrim($newsLink, '/') . '/' . $record->path; |
|
|
14
|
+ $categoryUrl = \App::$Alias->baseUrl.'/content/list/'.$record->cpath; |
|
|
15
|
+ $categoryLink = '<a href="'.$categoryUrl.'">'.\App::$Translate->getLocaleText($record->ctitle).'</a>'; |
|
|
16
|
+ $newsLink = \App::$Alias->baseUrl.'/content/read/'.$record->cpath; |
|
|
17
|
+ $newsLink = rtrim($newsLink, '/').'/'.$record->path; |
|
18
|
18
|
|
|
19
|
19
|
echo '<div class="row"><div class="col-md-12">'; |
|
20
|
|
- echo '<a href="' . $newsLink . '">→ ' . $title . '</a><br />'; |
|
21
|
|
- echo '<small class="float-left">' . $categoryLink . '</small>'; |
|
22
|
|
- echo '<small class="float-right text-secondary">' . $date . '</small>'; |
|
|
20
|
+ echo '<a href="'.$newsLink.'">→ '.$title.'</a><br />'; |
|
|
21
|
+ echo '<small class="float-left">'.$categoryLink.'</small>'; |
|
|
22
|
+ echo '<small class="float-right text-secondary">'.$date.'</small>'; |
|
23
|
23
|
echo '</div></div>'; |
|
24
|
24
|
echo '<hr class="pretty" />'; |
|
25
|
25
|
} |
Please login to merge, or discard this patch.