@@ -15,7 +15,7 @@ |
||
15 | 15 | /* @var $form yii\bootstrap\ActiveForm */ |
16 | 16 | /* @var $model \frontend\models\ContactForm */ |
17 | 17 | |
18 | -$this->title = Yii::t('writesdown', 'Contact') . ' - ' . Option::get('sitetitle'); |
|
18 | +$this->title = Yii::t('writesdown', 'Contact').' - '.Option::get('sitetitle'); |
|
19 | 19 | $this->params['breadcrumbs'][] = Yii::t('writesdown', 'Contact'); |
20 | 20 | ?> |
21 | 21 | <div class="single site-contact"> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /* @var $tags common\models\Term[] */ |
18 | 18 | /* @var $pages yii\data\Pagination */ |
19 | 19 | |
20 | -$this->title = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s]) . ' - ' . Option::get('sitetitle')); |
|
20 | +$this->title = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s]).' - '.Option::get('sitetitle')); |
|
21 | 21 | $this->params['breadcrumbs'][] = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s])); |
22 | 22 | $this->registerMetaTag([ |
23 | 23 | 'name' => 'robots', |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | <footer class="footer-meta"> |
72 | 72 | <?php $tags = $post->getTerms() |
73 | 73 | ->innerJoinWith([ |
74 | - 'taxonomy' => function ($query) { |
|
74 | + 'taxonomy' => function($query) { |
|
75 | 75 | /** @var $query \yii\db\ActiveQuery */ |
76 | 76 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
77 | 77 | }, |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | <?php foreach ($tags as $tag): ?> |
85 | 85 | <?= Html::a($tag->name, $tag->url, [ |
86 | 86 | 'class' => 'btn btn-xs btn-success', |
87 | - ]) . "\n" ?> |
|
87 | + ])."\n" ?> |
|
88 | 88 | <?php endforeach ?> |
89 | 89 | </h3> |
90 | 90 | <?php endif; ?> |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | /* @var $tags common\models\Term[] */ |
17 | 17 | /* @var $pages yii\data\Pagination */ |
18 | 18 | |
19 | -$this->title = Html::encode(Option::get('sitetitle') . ' - ' . Option::get('tagline')); |
|
19 | +$this->title = Html::encode(Option::get('sitetitle').' - '.Option::get('tagline')); |
|
20 | 20 | $this->params['breadcrumbs'][] = Html::encode(Option::get('sitetitle')); |
21 | 21 | ?> |
22 | 22 | <div class="archive site-index"> |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | <footer class="footer-meta"> |
65 | 65 | <?php $tags = $post->getTerms() |
66 | 66 | ->innerJoinWith([ |
67 | - 'taxonomy' => function ($query) { |
|
67 | + 'taxonomy' => function($query) { |
|
68 | 68 | /** @var $query \yii\db\ActiveQuery */ |
69 | 69 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
70 | 70 | }, |
@@ -35,7 +35,8 @@ discard block |
||
35 | 35 | ]) ?> |
36 | 36 | |
37 | 37 | </p> |
38 | - <?php else: ?> |
|
38 | + <?php else { |
|
39 | + : ?> |
|
39 | 40 | <p> |
40 | 41 | <?= Html::a('<strong>' . Yii::t('writesdown', 'Cancel Reply') . '</strong>', '#', [ |
41 | 42 | 'id' => 'cancel-reply', |
@@ -44,7 +45,9 @@ discard block |
||
44 | 45 | ]) ?> |
45 | 46 | |
46 | 47 | </p> |
47 | - <?php endif; ?> |
|
48 | + <?php endif; |
|
49 | +} |
|
50 | +?> |
|
48 | 51 | |
49 | 52 | <?php $form = ActiveForm::begin() ?> |
50 | 53 |
@@ -21,13 +21,13 @@ discard block |
||
21 | 21 | <?php if (!Yii::$app->user->isGuest): ?> |
22 | 22 | <p> |
23 | 23 | <?= Yii::t('writesdown', 'Login as {username}, {logout}{cancelReply}', [ |
24 | - 'username' => '<strong>' . Yii::$app->user->identity->username . '</strong>', |
|
24 | + 'username' => '<strong>'.Yii::$app->user->identity->username.'</strong>', |
|
25 | 25 | 'logout' => Html::a( |
26 | 26 | Yii::t('writesdown', '<strong>Sign Out</strong>'), |
27 | 27 | ['/site/logout'], |
28 | 28 | ['data-method' => 'post'] |
29 | 29 | ), |
30 | - 'cancelReply' => Html::a('<strong>' . Yii::t('writesdown', ', Cancel Reply') . '</strong>', '#', [ |
|
30 | + 'cancelReply' => Html::a('<strong>'.Yii::t('writesdown', ', Cancel Reply').'</strong>', '#', [ |
|
31 | 31 | 'id' => 'cancel-reply', |
32 | 32 | 'class' => 'cancel-reply', |
33 | 33 | 'style' => 'display:none;', |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | </p> |
38 | 38 | <?php else: ?> |
39 | 39 | <p> |
40 | - <?= Html::a('<strong>' . Yii::t('writesdown', 'Cancel Reply') . '</strong>', '#', [ |
|
40 | + <?= Html::a('<strong>'.Yii::t('writesdown', 'Cancel Reply').'</strong>', '#', [ |
|
41 | 41 | 'id' => 'cancel-reply', |
42 | 42 | 'class' => 'cancel-reply', |
43 | 43 | 'style' => 'display:none;', |
@@ -17,12 +17,12 @@ discard block |
||
17 | 17 | /* @var $tags common\models\Term[] */ |
18 | 18 | /* @var $pages yii\data\Pagination */ |
19 | 19 | |
20 | -$this->title = Html::encode($term->taxonomy->singular_name . ': ' . $term->name . ' - ' . Option::get('sitetitle')); |
|
20 | +$this->title = Html::encode($term->taxonomy->singular_name.': '.$term->name.' - '.Option::get('sitetitle')); |
|
21 | 21 | $this->params['breadcrumbs'][] = Html::encode($term->name); |
22 | 22 | ?> |
23 | 23 | <div class="archive term-view"> |
24 | 24 | <header id="archive-header" class="archive-header page-header"> |
25 | - <h1><?= Html::encode($term->taxonomy->singular_name . ': ' . $term->name) ?></h1> |
|
25 | + <h1><?= Html::encode($term->taxonomy->singular_name.': '.$term->name) ?></h1> |
|
26 | 26 | |
27 | 27 | <?php if ($term->description): ?> |
28 | 28 | <div class="description term-description"><?= $term->description ?></div> |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | <footer class="footer-meta"> |
69 | 69 | <?php $tags = $post->getTerms() |
70 | 70 | ->innerJoinWith([ |
71 | - 'taxonomy' => function ($query) { |
|
71 | + 'taxonomy' => function($query) { |
|
72 | 72 | /** @var $query \yii\db\ActiveQuery */ |
73 | 73 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
74 | 74 | }, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <?php foreach ($tags as $tag): ?> |
82 | 82 | <?= Html::a($tag->name, $tag->url, [ |
83 | 83 | 'class' => 'btn btn-xs btn-success', |
84 | - ]) . "\n" ?> |
|
84 | + ])."\n" ?> |
|
85 | 85 | <?php endforeach ?> |
86 | 86 | </h3> |
87 | 87 | <?php endif; ?> |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | /* @var $media common\models\Media */ |
14 | 14 | |
15 | -$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle')); |
|
15 | +$this->title = Html::encode($media->title.' - '.Option::get('sitetitle')); |
|
16 | 16 | |
17 | 17 | if ($media->mediaPost) { |
18 | 18 | $this->params['breadcrumbs'][] = [ |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | /* @var $metadata [] */ |
16 | 16 | /* @var $comment common\models\MediaComment */ |
17 | 17 | |
18 | -$this->title = Html::encode($media->title . ' - ' . Option::get('sitetitle')); |
|
18 | +$this->title = Html::encode($media->title.' - '.Option::get('sitetitle')); |
|
19 | 19 | |
20 | 20 | if ($media->mediaPost) { |
21 | 21 | $this->params['breadcrumbs'][] = [ |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | <div class="entry-content"> |
64 | 64 | <?= $media->content ?> |
65 | 65 | |
66 | - <?= Html::a($media->title, $media->uploadUrl . $metadata['versions']['full']['url']) ?> |
|
66 | + <?= Html::a($media->title, $media->uploadUrl.$metadata['versions']['full']['url']) ?> |
|
67 | 67 | |
68 | 68 | <?= $media->mediaPost |
69 | 69 | ? Html::tag('h3', Html::a('<span aria-hidden="true" class="glyphicon glyphicon-menu-left"></span>' |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /* @var $pages yii\data\Pagination */ |
19 | 19 | |
20 | 20 | $this->title = Html::encode(Yii::t('writesdown', 'All Posts By {user}', |
21 | - ['user' => $user->display_name]) . ' - ' . Option::get('sitetitle')); |
|
21 | + ['user' => $user->display_name]).' - '.Option::get('sitetitle')); |
|
22 | 22 | $this->params['breadcrumbs'][] = Html::encode(Yii::t('writesdown', 'All Posts by {user}', |
23 | 23 | ['user' => $user->display_name])); |
24 | 24 | ?> |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | <footer class="footer-meta"> |
69 | 69 | <?php $tags = $post->getTerms() |
70 | 70 | ->innerJoinWith([ |
71 | - 'taxonomy' => function ($query) { |
|
71 | + 'taxonomy' => function($query) { |
|
72 | 72 | /** @var $query \yii\db\ActiveQuery */ |
73 | 73 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
74 | 74 | }, |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <?php foreach ($tags as $tag): ?> |
82 | 82 | <?= Html::a($tag->name, $tag->url, [ |
83 | 83 | 'class' => 'btn btn-xs btn-success', |
84 | - ]) . "\n" ?> |
|
84 | + ])."\n" ?> |
|
85 | 85 | <?php endforeach ?> |
86 | 86 | </h3> |
87 | 87 | <?php endif; ?> |
@@ -145,8 +145,8 @@ |
||
145 | 145 | protected function displayComment($comment, $depth = 0) |
146 | 146 | { |
147 | 147 | echo Html::beginTag('div', [ |
148 | - 'id' => 'comment-' . $comment->id, |
|
149 | - 'class' => $comment->child ? 'parent depth-' . $depth : 'depth-' . $depth, |
|
148 | + 'id' => 'comment-'.$comment->id, |
|
149 | + 'class' => $comment->child ? 'parent depth-'.$depth : 'depth-'.$depth, |
|
150 | 150 | ]); |
151 | 151 | |
152 | 152 | if (Option::get('show_avatars')) { |