@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | } |
36 | 36 | } |
37 | 37 | |
38 | -$this->title = Html::encode($post->title . ' - ' . Option::get('sitetitle')); |
|
38 | +$this->title = Html::encode($post->title.' - '.Option::get('sitetitle')); |
|
39 | 39 | $this->params['breadcrumbs'][] = [ |
40 | 40 | 'label' => Html::encode($post->postType->singular_name), |
41 | 41 | 'url' => ['/post/index', 'id' => $post->postType->id], |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | $category = $post->getTerms() |
45 | 45 | ->innerJoinWith([ |
46 | - 'taxonomy' => function ($query) { |
|
46 | + 'taxonomy' => function($query) { |
|
47 | 47 | /* @var $query \yii\db\ActiveQuery */ |
48 | 48 | $query->from(['taxonomy' => Taxonomy::tableName()]); |
49 | 49 | }, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
41 | -$this->title = Html::encode($post->title . ' - ' . Option::get('sitetitle')); |
|
41 | +$this->title = Html::encode($post->title.' - '.Option::get('sitetitle')); |
|
42 | 42 | $this->params['breadcrumbs'][] = [ |
43 | 43 | 'label' => Html::encode($post->postType->singular_name), |
44 | 44 | 'url' => ['/post/index', 'id' => $post->postType->id], |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $category = $post->getTerms() |
48 | 48 | ->innerJoinWith([ |
49 | - 'taxonomy' => function ($query) { |
|
49 | + 'taxonomy' => function($query) { |
|
50 | 50 | /* @var $query \yii\db\ActiveQuery */ |
51 | 51 | $query->from(['taxonomy' => Taxonomy::tableName()]); |
52 | 52 | }, |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | <footer class="footer-meta"> |
102 | 102 | <?php $tags = $post->getTerms() |
103 | 103 | ->innerJoinWith([ |
104 | - 'taxonomy' => function ($query) { |
|
104 | + 'taxonomy' => function($query) { |
|
105 | 105 | /** @var $query \yii\db\ActiveQuery */ |
106 | 106 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
107 | 107 | }, |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | <?php if ($tags): ?> |
113 | 113 | <h3> |
114 | 114 | <?php foreach ($tags as $tag): ?> |
115 | - <?= Html::a($tag->name, $tag->url, ['class' => 'badge']) . "\n" ?> |
|
115 | + <?= Html::a($tag->name, $tag->url, ['class' => 'badge'])."\n" ?> |
|
116 | 116 | <?php endforeach ?> |
117 | 117 | </h3> |
118 | 118 | <?php endif ?> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /* @var $tags common\models\Term[] */ |
19 | 19 | /* @var $pages yii\data\Pagination */ |
20 | 20 | |
21 | -$this->title = Html::encode($postType->plural_name . ' - ' . Option::get('sitetitle')); |
|
21 | +$this->title = Html::encode($postType->plural_name.' - '.Option::get('sitetitle')); |
|
22 | 22 | $this->params['breadcrumbs'][] = Html::encode($postType->plural_name); |
23 | 23 | |
24 | 24 | ?> |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | <footer class="footer-meta"> |
82 | 82 | <?php $tags = $post->getTerms() |
83 | 83 | ->innerJoinWith([ |
84 | - 'taxonomy' => function ($query) { |
|
84 | + 'taxonomy' => function($query) { |
|
85 | 85 | /** @var $query \yii\db\ActiveQuery */ |
86 | 86 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
87 | 87 | }, |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | <?php if ($tags): ?> |
93 | 93 | <h3> |
94 | 94 | <?php foreach ($tags as $tag): ?> |
95 | - <?= Html::a($tag->name, $tag->url, ['class' => 'badge']) . "\n" ?> |
|
95 | + <?= Html::a($tag->name, $tag->url, ['class' => 'badge'])."\n" ?> |
|
96 | 96 | <?php endforeach ?> |
97 | 97 | </h3> |
98 | 98 | <?php endif ?> |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /* @var $form yii\bootstrap\ActiveForm */ |
17 | 17 | /* @var $model \frontend\models\ContactForm */ |
18 | 18 | |
19 | -$this->title = Yii::t('writesdown', 'Contact') . ' - ' . Option::get('sitetitle'); |
|
19 | +$this->title = Yii::t('writesdown', 'Contact').' - '.Option::get('sitetitle'); |
|
20 | 20 | $this->params['breadcrumbs'][] = Yii::t('writesdown', 'Contact'); |
21 | 21 | ?> |
22 | 22 | <div class="single site-contact"> |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /* @var $image common\models\Media */ |
19 | 19 | /* @var $pages yii\data\Pagination */ |
20 | 20 | |
21 | -$this->title = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s]) . ' - ' . Option::get('sitetitle')); |
|
21 | +$this->title = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s]).' - '.Option::get('sitetitle')); |
|
22 | 22 | $this->params['breadcrumbs'][] = Html::encode(Yii::t('writesdown', 'Search Result: {s}', ['s' => $s])); |
23 | 23 | $this->registerMetaTag([ |
24 | 24 | 'name' => 'robots', |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | <footer class="footer-meta"> |
84 | 84 | <?php $tags = $post->getTerms() |
85 | 85 | ->innerJoinWith([ |
86 | - 'taxonomy' => function ($query) { |
|
86 | + 'taxonomy' => function($query) { |
|
87 | 87 | /** @var $query \yii\db\ActiveQuery */ |
88 | 88 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
89 | 89 | }, |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | <?php if ($tags): ?> |
95 | 95 | <h3> |
96 | 96 | <?php foreach ($tags as $tag): ?> |
97 | - <?= Html::a($tag->name, $tag->url, ['class' => 'badge']) . "\n" ?> |
|
97 | + <?= Html::a($tag->name, $tag->url, ['class' => 'badge'])."\n" ?> |
|
98 | 98 | <?php endforeach ?> |
99 | 99 | </h3> |
100 | 100 | <?php endif ?> |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | /* @var $image common\models\Media */ |
18 | 18 | /* @var $pages yii\data\Pagination */ |
19 | 19 | |
20 | -$this->title = Html::encode(Option::get('sitetitle') . ' - ' . Option::get('tagline')); |
|
20 | +$this->title = Html::encode(Option::get('sitetitle').' - '.Option::get('tagline')); |
|
21 | 21 | $this->params['breadcrumbs'][] = Html::encode(Option::get('sitetitle')); |
22 | 22 | ?> |
23 | 23 | <div class="archive site-index"> |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | <footer class="footer-meta"> |
73 | 73 | <?php $tags = $post->getTerms() |
74 | 74 | ->innerJoinWith([ |
75 | - 'taxonomy' => function ($query) { |
|
75 | + 'taxonomy' => function($query) { |
|
76 | 76 | /** @var $query \yii\db\ActiveQuery */ |
77 | 77 | return $query->from(['taxonomy' => Taxonomy::tableName()]); |
78 | 78 | }, |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | <?php if ($tags): ?> |
84 | 84 | <h3> |
85 | 85 | <?php foreach ($tags as $tag): ?> |
86 | - <?= Html::a($tag->name, $tag->url, ['class' => 'badge']) . "\n" ?> |
|
86 | + <?= Html::a($tag->name, $tag->url, ['class' => 'badge'])."\n" ?> |
|
87 | 87 | <?php endforeach ?> |
88 | 88 | </h3> |
89 | 89 | <?php endif ?> |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /* @var $message string */ |
17 | 17 | /* @var $exception Exception */ |
18 | 18 | |
19 | -$this->title = $name . ' - ' . Option::get('sitetitle'); |
|
19 | +$this->title = $name.' - '.Option::get('sitetitle'); |
|
20 | 20 | $this->params['breadcrumbs'][] = $name; |
21 | 21 | $this->registerMetaTag([ |
22 | 22 | 'name' => 'robots', |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | public function renderBox() |
40 | 40 | { |
41 | - echo Yii::$app->view->renderFile(__DIR__ . '/views/_form.php', [ |
|
41 | + echo Yii::$app->view->renderFile(__DIR__.'/views/_form.php', [ |
|
42 | 42 | 'model' => $this->model, |
43 | 43 | 'form' => $this->form |
44 | 44 | ]); |
@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | <?php if (!Yii::$app->user->isGuest): ?> |
23 | 23 | <p> |
24 | 24 | <?= Yii::t('writesdown', 'Login as {username}, {logout}{cancelReply}', [ |
25 | - 'username' => '<strong>' . Yii::$app->user->identity->username . '</strong>', |
|
25 | + 'username' => '<strong>'.Yii::$app->user->identity->username.'</strong>', |
|
26 | 26 | 'logout' => Html::a(Yii::t( |
27 | 27 | 'writesdown', '<strong>Sign Out</strong>'), |
28 | 28 | ['/site/logout'], |
29 | 29 | ['data-method' => 'post'] |
30 | 30 | ), |
31 | - 'cancelReply' => Html::a('<strong>' . Yii::t('writesdown', ', Cancel Reply') . '</strong>', '#', [ |
|
31 | + 'cancelReply' => Html::a('<strong>'.Yii::t('writesdown', ', Cancel Reply').'</strong>', '#', [ |
|
32 | 32 | 'id' => 'cancel-reply', |
33 | 33 | 'class' => 'cancel-reply', |
34 | 34 | 'style' => 'display:none;', |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | </p> |
39 | 39 | <?php else: ?> |
40 | 40 | <p> |
41 | - <?= Html::a('<strong>' . Yii::t('writesdown', 'Cancel Reply') . '</strong>', '#', [ |
|
41 | + <?= Html::a('<strong>'.Yii::t('writesdown', 'Cancel Reply').'</strong>', '#', [ |
|
42 | 42 | 'id' => 'cancel-reply', |
43 | 43 | 'class' => 'cancel-reply', |
44 | 44 | 'style' => 'display:none;', |