Commit 394d4a6ab332ea19fe6c707e4581715e597d3002

Authored by Yarik
1 parent 716f52bf

Commit

frontend/views/company/_company_list_view.php
@@ -11,9 +11,9 @@ $http_pattern = '/^https?.*$/'; @@ -11,9 +11,9 @@ $http_pattern = '/^https?.*$/';
11 <div class="command-block-foto"> 11 <div class="command-block-foto">
12 <?php 12 <?php
13 if(empty( $model->link )) { 13 if(empty( $model->link )) {
14 - echo ( $model->photo ? Html::img($model->photo) : '' ) . '<div class="hover-command-bg"></div>'; 14 + echo ( Html::img(\Yii::$app->user->identity->minImg($model->photo, 220, 220)) ) . '<div class="hover-command-bg"></div>';
15 } else { 15 } else {
16 - echo Html::a(( $model->photo ? Html::img($model->photo) : '' ) . '<div class="hover-command-bg"></div>', (preg_match($http_pattern, $model->link))?$model->link:'http://'.$model->link); 16 + echo Html::a((Html::img(\Yii::$app->user->identity->minImg($model->photo, 220, 220))) . '<div class="hover-command-bg"></div>', (preg_match($http_pattern, $model->link))?$model->link:'http://'.$model->link);
17 } 17 }
18 ?> 18 ?>
19 </div> 19 </div>
frontend/views/company/blog-list.php
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 use yii\widgets\ListView; 12 use yii\widgets\ListView;
13 13
14 $this->params[ 'company' ] = $company; 14 $this->params[ 'company' ] = $company;
15 - $this->title = 'My Yii Application'; 15 + $this->title = 'Proektant.net';
16 ?> 16 ?>
17 <div class="performer-vacancy-vacant-title-reclam-wr style"> 17 <div class="performer-vacancy-vacant-title-reclam-wr style">
18 18
frontend/views/company/common.php
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 use yii\widgets\ListView; 15 use yii\widgets\ListView;
16 16
17 $this->params[ 'company' ] = $company; 17 $this->params[ 'company' ] = $company;
18 - $this->title = 'My Yii Application'; 18 + $this->title = 'Proektant.net';
19 ?> 19 ?>
20 <div class="company-performer-title style">О компании</div> 20 <div class="company-performer-title style">О компании</div>
21 <div class="company-performer-txt style"> 21 <div class="company-performer-txt style">
frontend/views/company/gallery.php
1 <?php 1 <?php
2 use common\models\User; 2 use common\models\User;
3 - use yii\widgets\LinkPager;  
4 use yii\widgets\ListView; 3 use yii\widgets\ListView;
5 4
6 /** 5 /**
@@ -9,17 +8,18 @@ @@ -9,17 +8,18 @@
9 */ 8 */
10 9
11 $this->params[ 'company' ] = $company; 10 $this->params[ 'company' ] = $company;
12 - $this->title = 'My Yii Application'; 11 + $this->title = 'Proektant.net';
13 if(empty( $videos ) && empty( $gallery->getModels() )) { 12 if(empty( $videos ) && empty( $gallery->getModels() )) {
14 ?> 13 ?>
15 <div class="gallery-performer-wrapper style"> 14 <div class="gallery-performer-wrapper style">
16 - <div> 15 + <div class="gallery-performer-margin">
17 Галерей к просмотру не найдено 16 Галерей к просмотру не найдено
18 </div> 17 </div>
19 </div> 18 </div>
20 <?php 19 <?php
21 } else { 20 } else {
22 - if(!empty( $videos )) { ?> 21 + if(!empty( $videos )) {
  22 + ?>
23 <div class="video-performer-wrapper style"> 23 <div class="video-performer-wrapper style">
24 <div class="gallery-title">Видео: <?= count($videos) ?></div> 24 <div class="gallery-title">Видео: <?= count($videos) ?></div>
25 <div class="slider-video-wr"> 25 <div class="slider-video-wr">
@@ -42,7 +42,8 @@ @@ -42,7 +42,8 @@
42 </div> 42 </div>
43 </div> 43 </div>
44 </div> 44 </div>
45 - <?php } 45 + <?php
  46 + }
46 ?> 47 ?>
47 <div class="gallery-performer-wrapper style"> 48 <div class="gallery-performer-wrapper style">
48 <div class="gallery-performer-margin"> 49 <div class="gallery-performer-margin">
@@ -56,6 +57,7 @@ @@ -56,6 +57,7 @@
56 </div> 57 </div>
57 <?php 58 <?php
58 } 59 }
  60 +
59 ?> 61 ?>
60 <script> 62 <script>
61 $( 63 $(
frontend/views/company/portfolio-view.php
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@
18 */ 18 */
19 $this->params[ 'company' ] = $user; 19 $this->params[ 'company' ] = $user;
20 20
21 - $this->title = 'My Yii Application'; 21 + $this->title = 'Proektant.net';
22 $rating = $portfolio->getRatingValue(); 22 $rating = $portfolio->getRatingValue();
23 if(!empty( $portfolio_user )) { 23 if(!empty( $portfolio_user )) {
24 $portfolio_user_gallery = $portfolio->ShowGallery($portfolio_user->gallery->photo); 24 $portfolio_user_gallery = $portfolio->ShowGallery($portfolio_user->gallery->photo);
frontend/views/company/portfolio.php
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 * @var int $filter_id 16 * @var int $filter_id
17 */ 17 */
18 $this->params[ 'company' ] = $company; 18 $this->params[ 'company' ] = $company;
19 - $this->title = 'My Yii Application'; 19 + $this->title = 'Proektant.net';
20 ?> 20 ?>
21 <div class="performer-vacancy-vacant-title-reclam-wr style"> 21 <div class="performer-vacancy-vacant-title-reclam-wr style">
22 22
frontend/views/company/project-list.php
@@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@
12 */ 12 */
13 $this->params[ 'company' ] = $company; 13 $this->params[ 'company' ] = $company;
14 14
15 - $this->title = 'My Yii Application'; 15 + $this->title = 'Proektant.net';
16 ?> 16 ?>
17 <div class="proektant-profile-content" style="width:100%"> 17 <div class="proektant-profile-content" style="width:100%">
18 <div class="search-worker-title style">Сейчас <?= $dataProvider->totalCount ?> предложений</div> 18 <div class="search-worker-title style">Сейчас <?= $dataProvider->totalCount ?> предложений</div>
frontend/views/company/review.php
@@ -8,7 +8,8 @@ @@ -8,7 +8,8 @@
8 use yii\web\View; 8 use yii\web\View;
9 9
10 $this->params[ 'company' ] = $company; 10 $this->params[ 'company' ] = $company;
11 - $this->title = 'My Yii Application'; 11 + $this->title = 'Proektant.net';
  12 +
12 ?> 13 ?>
13 <div class="performer-vacancy-vacant-title-reclam-wr style"> 14 <div class="performer-vacancy-vacant-title-reclam-wr style">
14 <?php 15 <?php
frontend/views/company/team.php
@@ -13,7 +13,8 @@ @@ -13,7 +13,8 @@
13 use yii\widgets\ListView; 13 use yii\widgets\ListView;
14 14
15 $this->params[ 'company' ] = $company; 15 $this->params[ 'company' ] = $company;
16 - $this->title = 'My Yii Application'; 16 + $this->title = 'Proektant.net';
  17 +
17 ?> 18 ?>
18 <div class="command-blocks-wr style"> 19 <div class="command-blocks-wr style">
19 <?= ListView::widget([ 20 <?= ListView::widget([
frontend/views/company/vacancy-list.php
@@ -11,7 +11,8 @@ @@ -11,7 +11,8 @@
11 use yii\widgets\ListView; 11 use yii\widgets\ListView;
12 12
13 $this->params[ 'company' ] = $company; 13 $this->params[ 'company' ] = $company;
14 - $this->title = 'My Yii Application'; 14 + $this->title = 'Proektant.net';
  15 +
15 ?> 16 ?>
16 <div class="performer-vacancy-vacant-title style">Вакансии</div> 17 <div class="performer-vacancy-vacant-title style">Вакансии</div>
17 18
frontend/views/company/vacancy-view.php
@@ -13,7 +13,8 @@ @@ -13,7 +13,8 @@
13 use yii\helpers\Url; 13 use yii\helpers\Url;
14 14
15 $this->params[ 'company' ] = $company; 15 $this->params[ 'company' ] = $company;
16 - $this->title = 'My Yii Application'; 16 + $this->title = 'Proektant.net';
  17 +
17 ?> 18 ?>
18 <div class="performer-vacancy-list style"> 19 <div class="performer-vacancy-list style">
19 <?php 20 <?php
frontend/views/layouts/gallery-company.php
@@ -3,10 +3,9 @@ @@ -3,10 +3,9 @@
3 use kartik\rating\StarRating; 3 use kartik\rating\StarRating;
4 use yii\helpers\Html; 4 use yii\helpers\Html;
5 use yii\helpers\Url; 5 use yii\helpers\Url;
6 - use yii\widgets\Breadcrumbs;  
7 use yii\widgets\Menu; 6 use yii\widgets\Menu;
8 7
9 - \frontend\assets\AdminAsset::register($this); 8 + \frontend\assets\AppAsset::register($this);
10 /* @var $content string */ 9 /* @var $content string */
11 $this->beginContent('@app/views/layouts/main.php'); 10 $this->beginContent('@app/views/layouts/main.php');
12 ?> 11 ?>
frontend/views/layouts/gallery.php
@@ -3,7 +3,6 @@ @@ -3,7 +3,6 @@
3 use kartik\rating\StarRating; 3 use kartik\rating\StarRating;
4 use yii\helpers\Html; 4 use yii\helpers\Html;
5 use yii\helpers\Url; 5 use yii\helpers\Url;
6 - use yii\widgets\Breadcrumbs;  
7 use yii\widgets\Menu; 6 use yii\widgets\Menu;
8 7
9 \frontend\assets\AppAsset::register($this); 8 \frontend\assets\AppAsset::register($this);
frontend/views/performer/blog-list.php
@@ -10,7 +10,8 @@ @@ -10,7 +10,8 @@
10 use yii\widgets\ListView; 10 use yii\widgets\ListView;
11 11
12 $this->params[ 'user' ] = $user; 12 $this->params[ 'user' ] = $user;
13 - $this->title = 'My Yii Application'; 13 + $this->title = 'Proektant.net';
  14 +
14 ?> 15 ?>
15 <div class="performer-vacancy-vacant-title-reclam-wr style"> 16 <div class="performer-vacancy-vacant-title-reclam-wr style">
16 17
frontend/views/performer/common.php
@@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
12 * @var int[] $geography 12 * @var int[] $geography
13 */ 13 */
14 $this->params[ 'user' ] = $user; 14 $this->params[ 'user' ] = $user;
15 -  
16 - $this->title = 'My Yii Application'; 15 +
  16 + $this->title = 'Proektant.net';
17 17
18 $geographyString = ''; 18 $geographyString = '';
19 19
frontend/views/performer/gallery.php
1 <?php 1 <?php
2 - 2 + use common\models\User;
3 use yii\widgets\ListView; 3 use yii\widgets\ListView;
4 4
5 /** 5 /**
@@ -7,7 +7,8 @@ @@ -7,7 +7,8 @@
7 */ 7 */
8 8
9 $this->params[ 'user' ] = $user; 9 $this->params[ 'user' ] = $user;
10 - $this->title = 'My Yii Application'; 10 + $this->title = 'Proektant.net';
  11 +
11 if(empty( $videos ) && empty( $gallery->getModels() )) { 12 if(empty( $videos ) && empty( $gallery->getModels() )) {
12 ?> 13 ?>
13 <div class="gallery-performer-wrapper style"> 14 <div class="gallery-performer-wrapper style">
@@ -29,7 +30,6 @@ @@ -29,7 +30,6 @@
29 <div class="iframe-video"> 30 <div class="iframe-video">
30 <iframe width="560" height="320" src="<?= $video[ 'youtube' ] ?>" frameborder="0" allowfullscreen></iframe> 31 <iframe width="560" height="320" src="<?= $video[ 'youtube' ] ?>" frameborder="0" allowfullscreen></iframe>
31 </div> 32 </div>
32 -  
33 <a href="#"></a><span></span> 33 <a href="#"></a><span></span>
34 </li> 34 </li>
35 <?php endforeach; ?> 35 <?php endforeach; ?>
frontend/views/performer/portfolio-view.php
@@ -19,8 +19,8 @@ @@ -19,8 +19,8 @@
19 * @var PortfolioUser $portfolio_user 19 * @var PortfolioUser $portfolio_user
20 */ 20 */
21 $this->params[ 'user' ] = $user; 21 $this->params[ 'user' ] = $user;
  22 + $this->title = 'Proektant.net';
22 23
23 - $this->title = 'My Yii Application';  
24 $rating = $portfolio->getRatingValue(); 24 $rating = $portfolio->getRatingValue();
25 if(!empty( $portfolio_user )) { 25 if(!empty( $portfolio_user )) {
26 $portfolio_user_gallery = $portfolio->ShowGallery($portfolio_user->gallery->photo); 26 $portfolio_user_gallery = $portfolio->ShowGallery($portfolio_user->gallery->photo);
frontend/views/performer/portfolio.php
@@ -10,7 +10,8 @@ @@ -10,7 +10,8 @@
10 * @var $portfolio yii\data\ArrayDataProvider 10 * @var $portfolio yii\data\ArrayDataProvider
11 */ 11 */
12 $this->params[ 'user' ] = $user; 12 $this->params[ 'user' ] = $user;
13 - $this->title = 'My Yii Application'; 13 + $this->title = 'Proektant.net';
  14 +
14 ?> 15 ?>
15 <div class="performer-vacancy-vacant-title-reclam-wr style"> 16 <div class="performer-vacancy-vacant-title-reclam-wr style">
16 17
frontend/views/performer/project-list.php
@@ -11,8 +11,8 @@ @@ -11,8 +11,8 @@
11 * @var ActiveDataProvider $dataProvider 11 * @var ActiveDataProvider $dataProvider
12 */ 12 */
13 $this->params[ 'user' ] = $user; 13 $this->params[ 'user' ] = $user;
  14 + $this->title = 'Proektant.net';
14 15
15 - $this->title = 'My Yii Application';  
16 ?> 16 ?>
17 <div class="proektant-profile-content" style="width:100%"> 17 <div class="proektant-profile-content" style="width:100%">
18 <div class="search-worker-title style">Сейчас <?= $dataProvider->totalCount ?> предложений</div> 18 <div class="search-worker-title style">Сейчас <?= $dataProvider->totalCount ?> предложений</div>
frontend/views/performer/review.php
@@ -8,7 +8,8 @@ @@ -8,7 +8,8 @@
8 use yii\web\View; 8 use yii\web\View;
9 9
10 $this->params[ 'user' ] = $user; 10 $this->params[ 'user' ] = $user;
11 - $this->title = 'My Yii Application'; 11 + $this->title = 'Proektant.net';
  12 +
12 ?> 13 ?>
13 <div class="performer-vacancy-vacant-title-reclam-wr style"> 14 <div class="performer-vacancy-vacant-title-reclam-wr style">
14 <?php 15 <?php
frontend/views/performer/workplace.php
@@ -6,7 +6,8 @@ @@ -6,7 +6,8 @@
6 use common\models\User; 6 use common\models\User;
7 7
8 $this->params[ 'user' ] = $user; 8 $this->params[ 'user' ] = $user;
9 - $this->title = 'My Yii Application'; 9 + $this->title = 'Proektant.net';
  10 +
10 ?> 11 ?>
11 <div class="performer-vacancy-vacant-title-reclam-wr style"> 12 <div class="performer-vacancy-vacant-title-reclam-wr style">
12 <div class="workplace-wr"> 13 <div class="workplace-wr">
frontend/views/search/performer.php
@@ -20,7 +20,8 @@ @@ -20,7 +20,8 @@
20 $active_key = array_keys($sort_array)[ 0 ]; 20 $active_key = array_keys($sort_array)[ 0 ];
21 $active_value = $sort_array[ $active_key ]; 21 $active_value = $sort_array[ $active_key ];
22 $sort_name = ( ( $active_value == 4 ) ? '-' : '' ) . $active_key; 22 $sort_name = ( ( $active_value == 4 ) ? '-' : '' ) . $active_key;
23 - $this->title = 'My Yii Application'; 23 + $this->title = 'Proektant.net';
  24 +
24 ?> 25 ?>
25 26
26 <div class="section-box content"> 27 <div class="section-box content">
frontend/views/search/project.php
@@ -16,8 +16,8 @@ @@ -16,8 +16,8 @@
16 use yii\web\View; 16 use yii\web\View;
17 use yii\widgets\ActiveForm; 17 use yii\widgets\ActiveForm;
18 use yii\widgets\ListView; 18 use yii\widgets\ListView;
  19 + $this->title = 'Proektant.net';
19 20
20 - $this->title = 'My Yii Application';  
21 ?> 21 ?>
22 22
23 <div class="section-box content"> 23 <div class="section-box content">
@@ -181,7 +181,7 @@ @@ -181,7 +181,7 @@
181 </div> 181 </div>
182 <div> 182 <div>
183 <?php 183 <?php
184 - 184 + /*
185 ?> 185 ?>
186 <div class="section-box" style="height: 720px; overflow: hidden"> 186 <div class="section-box" style="height: 720px; overflow: hidden">
187 <div class="map-settings-opacity"></div> 187 <div class="map-settings-opacity"></div>
@@ -367,7 +367,7 @@ @@ -367,7 +367,7 @@
367 </div> 367 </div>
368 <div id="map_canvas" style="width: 100%; height:100%;"></div> 368 <div id="map_canvas" style="width: 100%; height:100%;"></div>
369 <?php 369 <?php
370 - 370 + */
371 /* Решено убрать нижний слайдер 371 /* Решено убрать нижний слайдер
372 ?> 372 ?>
373 <div class="slider_map-wr"> 373 <div class="slider_map-wr">
frontend/views/search/vacancy.php
@@ -9,8 +9,8 @@ @@ -9,8 +9,8 @@
9 use yii\widgets\ListView; 9 use yii\widgets\ListView;
10 10
11 /* @var $this yii\web\View */ 11 /* @var $this yii\web\View */
  12 + $this->title = 'Proektant.net';
12 13
13 - $this->title = 'My Yii Application';  
14 ?> 14 ?>
15 15
16 <div class="section-box content"> 16 <div class="section-box content">
frontend/views/site/index.php
@@ -7,7 +7,8 @@ @@ -7,7 +7,8 @@
7 * @var $this yii\web\View 7 * @var $this yii\web\View
8 * @var $specializations common\models\Specialization 8 * @var $specializations common\models\Specialization
9 */ 9 */
10 - $this->title = 'My Yii Application'; 10 + $this->title = 'Proektant.net';
  11 +
11 ?> 12 ?>
12 <?php 13 <?php
13 CustomizeBootstrapAsset::register($this); 14 CustomizeBootstrapAsset::register($this);
@@ -60,6 +61,9 @@ @@ -60,6 +61,9 @@
60 </div> 61 </div>
61 </div> 62 </div>
62 </div> 63 </div>
  64 +<?php
  65 +/*
  66 +?>
63 <div class="section-box-2"> 67 <div class="section-box-2">
64 <div class="box-wr"> 68 <div class="box-wr">
65 <div class="box-all"> 69 <div class="box-all">
@@ -113,7 +117,9 @@ @@ -113,7 +117,9 @@
113 <div id="map_main" style="width: 100%; height:100%;"></div> 117 <div id="map_main" style="width: 100%; height:100%;"></div>
114 </div> 118 </div>
115 </div> 119 </div>
116 - 120 +<?php
  121 +*/
  122 +?>
117 <div class="section-box-4"> 123 <div class="section-box-4">
118 <div class="box-wr"> 124 <div class="box-wr">
119 <div class="box-all"> 125 <div class="box-all">
frontend/views/site/options.php
1 <?php 1 <?php
2 2
3 /* @var $this yii\web\View */ 3 /* @var $this yii\web\View */
  4 + $this->title = 'Proektant.net';
4 5
5 -$this->title = 'My Yii Application';  
6 ?> 6 ?>
7 <div id="content"> 7 <div id="content">
8 <form action="" method="post"> 8 <form action="" method="post">
frontend/views/tender/view.php
@@ -12,8 +12,8 @@ @@ -12,8 +12,8 @@
12 use yii\web\View; 12 use yii\web\View;
13 use yii\widgets\DetailView; 13 use yii\widgets\DetailView;
14 use yii\widgets\Pjax; 14 use yii\widgets\Pjax;
  15 + $this->title = 'Proektant.net';
15 16
16 - $this->title = 'My Yii Application';  
17 ?> 17 ?>
18 <div class="section-box content"> 18 <div class="section-box content">
19 <div class="section-box-tender"> 19 <div class="section-box-tender">
frontend/web/js/script.js
@@ -894,8 +894,12 @@ $(document).ready( @@ -894,8 +894,12 @@ $(document).ready(
894 $('.video-slider ul li').click( 894 $('.video-slider ul li').click(
895 function(e) 895 function(e)
896 { 896 {
897 - $('.video-full').append('<div class="closed-form"></div>')  
898 e.preventDefault() 897 e.preventDefault()
  898 + if(!$('#overlay').length) {
  899 + $('body').append('<div id="overlay"></div>');
  900 + }
  901 + $('.video-full').append('<div class="closed-form"></div>')
  902 +
899 $('#overlay').fadeIn( 903 $('#overlay').fadeIn(
900 400, function() 904 400, function()
901 { 905 {