Commit 532a5337fc5ac7ad77665d16df330f30ed102794

Authored by Timur Kastemirov
1 parent 20377270

objects other

frontend/views/layouts/main.php
@@ -627,7 +627,7 @@ @@ -627,7 +627,7 @@
627 Yii::$app->controller->action->id === $controller->defaultAction || 627 Yii::$app->controller->action->id === $controller->defaultAction ||
628 Yii::$app->controller->action->id === 'search' 628 Yii::$app->controller->action->id === 'search'
629 ){ 629 ){
630 - echo (isset($this->params['h1']) && !empty($this->params['h1'])) ? 630 + echo (isset($this->params['h1'])) ?
631 $this->params['h1'] : 631 $this->params['h1'] :
632 "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file"; 632 "put \$this->params['h1'] in " . Yii::$app->controller->id . "/" . Yii::$app->controller->action->id . " view file";
633 } 633 }
frontend/views/object/view.php
@@ -117,7 +117,7 @@ @@ -117,7 +117,7 @@
117 ] 117 ]
118 ) ?>" 118 ) ?>"
119 > 119 >
120 - (название объекта) 120 + <?=$object->lang->object_name?>
121 </a> 121 </a>
122 </h3> 122 </h3>
123 </div> 123 </div>
frontend/views/site/legal.php
@@ -15,8 +15,8 @@ use yii\web\View; @@ -15,8 +15,8 @@ use yii\web\View;
15 MapAsset::register($this); 15 MapAsset::register($this);
16 $settings = Settings::getInstance(); 16 $settings = Settings::getInstance();
17 17
18 -$this->params['h1'] = \Yii::t('app', 'menu-legal');  
19 -$this->params[ 'breadcrumbs' ][] = $this->params['h1']; 18 +$this->params['h1'] = "";
  19 +$this->params[ 'breadcrumbs' ][] = \Yii::t('app', 'menu-legal');
20 20
21 $js = <<< JS 21 $js = <<< JS
22 window.lat = {$settings->lat}; 22 window.lat = {$settings->lat};