Commit fe96bcdd0613839b22939945347b246f2316e4d9

Authored by Yarik
1 parent 76627175

Commit

frontend/views/layouts/main.php
@@ -169,15 +169,15 @@ @@ -169,15 +169,15 @@
169 'items' => [ 169 'items' => [
170 [ 170 [
171 'url' => [ '/projects' ], 171 'url' => [ '/projects' ],
172 - 'template' => '<a href="{url}" class="main-menu-icons-home"><span>' . count(\Yii::$app->user->identity->commentProjectsActive) . '</span></a>', 172 + 'template' => '<a href="{url}" class="main-menu-icons-home">'.((!empty(\Yii::$app->user->identity->commentProjectsActive))?('<span>' . count(\Yii::$app->user->identity->commentProjectsActive) . '</span>'):('')).'</a>',
173 ], 173 ],
174 [ 174 [
175 'url' => [ 'chat/list' ], 175 'url' => [ 'chat/list' ],
176 - 'template' => '<a href="{url}" class="main-menu-icons-edit"><span>' . \Yii::$app->user->identity->newMessagesCount . '</span></a>', 176 + 'template' => '<a href="{url}" class="main-menu-icons-edit">'.((!empty(\Yii::$app->user->identity->newMessagesCount))?('<span>' . \Yii::$app->user->identity->newMessagesCount . '</span>'):('')).'</a>',
177 ], 177 ],
178 [ 178 [
179 'url' => [ '/bookmarks' ], 179 'url' => [ '/bookmarks' ],
180 - 'template' => "<a href='{url}' class='main-menu-icons-copy'><span>" . count(\Yii::$app->user->identity->bookmarks) . "</span></a>", 180 + 'template' => '<a href="{url}" class="main-menu-icons-copy">'.((!empty(\Yii::$app->user->identity->bookmarks))?('<span>' . count(\Yii::$app->user->identity->bookmarks) . '</span>'):('')).'</a>',
181 ], 181 ],
182 ], 182 ],
183 ]); 183 ]);
frontend/views/site/registration.php
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 57
58 <div class="register-val-company"> 58 <div class="register-val-company">
59 <?php 59 <?php
60 - $model->type = '1'; 60 + $model->type = '2';
61 echo $form->field($model, 'type', [ 'options' => [ 'class' => 'check-radio-wr' ] ]) 61 echo $form->field($model, 'type', [ 'options' => [ 'class' => 'check-radio-wr' ] ])
62 ->label(false) 62 ->label(false)
63 ->radioList([ 63 ->radioList([