Commit d36bdac697720e99e71846bd7d1c4fb3e555e886
1 parent
44bb2fe3
17.02.16
Showing
22 changed files
with
467 additions
and
670 deletions
Show diff stats
common/models/TeamSearch.php
| ... | ... | @@ -164,7 +164,7 @@ |
| 164 | 164 | 'between', |
| 165 | 165 | 'experience_from', |
| 166 | 166 | $this->experience_from_to ? ( date('Y') - $this->experience_from_to ) : ( date('Y') - 100 ), |
| 167 | - $this->experience_from_from ? ( date('Y') - $this->experience_from_from ) : date('Y'), | |
| 167 | + $this->experience_from_from ? ( date('Y') - $this->experience_from_from ) : date('Y'), | |
| 168 | 168 | ]); |
| 169 | 169 | |
| 170 | 170 | if(!empty( $this->link ) || $this->link === '0') { | ... | ... |
console/migrations/m160216_180149_tean_date_change.php
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +use yii\db\Migration; | |
| 4 | + | |
| 5 | +class m160216_180149_tean_date_change extends Migration | |
| 6 | +{ | |
| 7 | + public function up() | |
| 8 | + { | |
| 9 | + $this->dropColumn('team', 'experience_from'); | |
| 10 | + $this->addColumn('team', 'experience_from', $this->integer()); | |
| 11 | + } | |
| 12 | + | |
| 13 | + public function down() | |
| 14 | + { | |
| 15 | + $this->dropColumn('team', 'experience_from'); | |
| 16 | + $this->addColumn('team', 'experience_from', $this->timestamp()); | |
| 17 | + } | |
| 18 | +} | ... | ... |
frontend/config/main.php
| ... | ... | @@ -67,6 +67,7 @@ return [ |
| 67 | 67 | 'performer/portfolio/<performer_id:[\w-]+>/<filter:[\d]+>' => 'performer/portfolio-filter', |
| 68 | 68 | 'performer/blog-view/<performer_id:[\w-]+>/<link:[\w-]+>' => 'performer/blog-view', |
| 69 | 69 | 'performer/<action>/<performer_id:[\w-]+>' => 'performer/<action>', |
| 70 | + 'company/portfolio/<company_id:[\w-]+>/<filter:[\d]+>' => 'company/portfolio-filter', | |
| 70 | 71 | 'company/blog-view/<company_id:[\w-]+>/<link:[\w-]+>' => 'company/blog-view', |
| 71 | 72 | 'company/<action>/<company_id:[\w-]+>' => 'company/<action>', |
| 72 | 73 | ... | ... |
frontend/controllers/AccountsController.php
| ... | ... | @@ -591,14 +591,9 @@ |
| 591 | 591 | public function actionProjectsCreate() |
| 592 | 592 | { |
| 593 | 593 | $project = new Project(); |
| 594 | - $specialization = Specialization::find() | |
| 595 | - ->select([ | |
| 596 | - 'specialization_name', | |
| 597 | - 'specialization_id', | |
| 598 | - ]) | |
| 599 | - ->indexBy('specialization_id') | |
| 600 | - ->asArray() | |
| 601 | - ->column(); | |
| 594 | + | |
| 595 | + $specializations = Specialization::find()->where(['specialization_pid' => 0])->orderBy('specialization_id')->all(); | |
| 596 | + | |
| 602 | 597 | $payment = Payment::find() |
| 603 | 598 | ->select([ |
| 604 | 599 | 'name', |
| ... | ... | @@ -650,7 +645,7 @@ |
| 650 | 645 | } |
| 651 | 646 | return $this->render('_projects_form', [ |
| 652 | 647 | 'project' => $project, |
| 653 | - 'specialization' => $specialization, | |
| 648 | + 'specializations' => $specializations, | |
| 654 | 649 | 'payment' => $payment, |
| 655 | 650 | 'projects' => $projects, |
| 656 | 651 | ]); | ... | ... |
frontend/controllers/CompanyController.php
| 1 | 1 | <?php |
| 2 | 2 | namespace frontend\controllers; |
| 3 | 3 | |
| 4 | + | |
| 5 | +use common\models\Blog; | |
| 4 | 6 | use common\models\Fields; |
| 7 | +use common\models\Gallery; | |
| 8 | +use common\models\Portfolio; | |
| 9 | +use common\models\PortfolioSpecialization; | |
| 10 | +use common\models\Team; | |
| 5 | 11 | use Yii; |
| 6 | -use common\models\LoginForm; | |
| 7 | -use frontend\models\PasswordResetRequestForm; | |
| 8 | -use frontend\models\ResetPasswordForm; | |
| 9 | -use frontend\models\SignupForm; | |
| 10 | -use frontend\models\ContactForm; | |
| 11 | -use frontend\models\Options; | |
| 12 | -use frontend\models\OptionValues; | |
| 13 | -use yii\base\InvalidParamException; | |
| 14 | 12 | use yii\data\ActiveDataProvider; |
| 13 | +use yii\data\ArrayDataProvider; | |
| 14 | +use yii\data\Pagination; | |
| 15 | 15 | use yii\helpers\ArrayHelper; |
| 16 | 16 | use yii\web\BadRequestHttpException; |
| 17 | 17 | use yii\web\Controller; |
| 18 | -use yii\filters\VerbFilter; | |
| 19 | -use yii\filters\AccessControl; | |
| 20 | -use frontend\models\OptionsToValues; | |
| 21 | -use yii\validators\EmailValidator; | |
| 22 | 18 | use common\models\User; |
| 23 | -use yii\helpers\VarDumper; | |
| 24 | -use common\models\Page; | |
| 25 | -use frontend\models\Option; | |
| 26 | -use common\models\Social; | |
| 27 | - | |
| 28 | - | |
| 29 | 19 | /** |
| 30 | 20 | * Site controller |
| 31 | 21 | */ |
| ... | ... | @@ -78,8 +68,62 @@ class CompanyController extends Controller |
| 78 | 68 | { |
| 79 | 69 | $company = User::findOne($company_id); |
| 80 | 70 | |
| 71 | + if(!$company instanceof User){ | |
| 72 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 73 | + } | |
| 74 | + $projects = ArrayHelper::getColumn($company->portfolios,'portfolio_id'); | |
| 75 | + | |
| 76 | + | |
| 77 | + $filters = PortfolioSpecialization::find()->select(["specialization_id","COUNT('specialization_id') AS count"]) | |
| 78 | + ->where(["portfolio_id"=>$projects ])->groupBy("specialization_id")->all(); | |
| 79 | + | |
| 80 | + $portfolio = new ArrayDataProvider([ | |
| 81 | + 'allModels' => $company->portfolios, | |
| 82 | + 'pagination' => [ | |
| 83 | + 'pageSize' => 9, | |
| 84 | + ], | |
| 85 | + ]); | |
| 86 | + | |
| 81 | 87 | return $this->render('portfolio',[ |
| 82 | - 'company' => $company | |
| 88 | + 'company' => $company, | |
| 89 | + 'filters' => $filters, | |
| 90 | + 'portfolio' => $portfolio, | |
| 91 | + 'count' => count($company->portfolios) | |
| 92 | + ]); | |
| 93 | + } | |
| 94 | + | |
| 95 | + public function actionPortfolioFilter($performer_id, $filter){ | |
| 96 | + $company = User::findOne($performer_id); | |
| 97 | + | |
| 98 | + if(!$company instanceof User){ | |
| 99 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 100 | + } | |
| 101 | + $portfolios = ArrayHelper::getColumn($company->portfolios,'portfolio_id'); | |
| 102 | + | |
| 103 | + | |
| 104 | + $filters = PortfolioSpecialization::find()->select(["specialization_id","COUNT('specialization_id') AS count"]) | |
| 105 | + ->where(["portfolio_id"=>$portfolios ])->groupBy("specialization_id")->all(); | |
| 106 | + | |
| 107 | + | |
| 108 | + $filter_result = PortfolioSpecialization::find() | |
| 109 | + ->where(['specialization_id'=>$filter, | |
| 110 | + 'portfolio_id'=>$portfolios | |
| 111 | + ])->all(); | |
| 112 | + | |
| 113 | + | |
| 114 | + $portfolio = new ArrayDataProvider([ | |
| 115 | + 'allModels' => Portfolio::find()->where(['portfolio_id'=>ArrayHelper::getColumn($filter_result,'portfolio_id')])->all(), | |
| 116 | + 'pagination' => [ | |
| 117 | + 'pageSize' => 9, | |
| 118 | + ], | |
| 119 | + ]); | |
| 120 | + | |
| 121 | + return $this->render('portfolio',[ | |
| 122 | + 'company' => $company, | |
| 123 | + 'filters' => $filters, | |
| 124 | + 'portfolio' => $portfolio, | |
| 125 | + 'filter_id' => $filter, | |
| 126 | + 'count' => count($company->portfolios) | |
| 83 | 127 | ]); |
| 84 | 128 | } |
| 85 | 129 | |
| ... | ... | @@ -94,8 +138,32 @@ class CompanyController extends Controller |
| 94 | 138 | { |
| 95 | 139 | $company = User::findOne($company_id); |
| 96 | 140 | |
| 141 | + if(!$company instanceof User){ | |
| 142 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 143 | + } | |
| 144 | + | |
| 145 | + | |
| 146 | + $query = Team::find(['user_id'=>$company_id]); | |
| 147 | + | |
| 148 | + $countQuery = clone $query; | |
| 149 | + | |
| 150 | + $pagination = new Pagination(['totalCount' => $countQuery->count(), | |
| 151 | + 'pageSize' => 9, | |
| 152 | + ]); | |
| 153 | + | |
| 154 | + $team = $query->offset($pagination->offset) | |
| 155 | + ->limit($pagination->limit) | |
| 156 | + ->all(); | |
| 157 | + | |
| 158 | + $team = new ArrayDataProvider([ | |
| 159 | + 'allModels' => $team, | |
| 160 | + ]); | |
| 161 | + | |
| 162 | + | |
| 97 | 163 | return $this->render('team',[ |
| 98 | - 'company' => $company | |
| 164 | + 'company' => $company, | |
| 165 | + 'team' => $team, | |
| 166 | + 'pagination' => $pagination | |
| 99 | 167 | ]); |
| 100 | 168 | } |
| 101 | 169 | |
| ... | ... | @@ -103,17 +171,54 @@ class CompanyController extends Controller |
| 103 | 171 | { |
| 104 | 172 | $company = User::findOne($company_id); |
| 105 | 173 | |
| 174 | + if(!$company instanceof User){ | |
| 175 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 176 | + } | |
| 177 | + | |
| 178 | + | |
| 179 | + $query = Blog::find(['user_id'=>$company_id]); | |
| 180 | + | |
| 181 | + $countQuery = clone $query; | |
| 182 | + | |
| 183 | + $pagination = new Pagination(['totalCount' => $countQuery->count(), | |
| 184 | + 'pageSize' => 5, | |
| 185 | + ]); | |
| 186 | + | |
| 187 | + $article = $query->offset($pagination->offset) | |
| 188 | + ->limit($pagination->limit) | |
| 189 | + ->all(); | |
| 190 | + | |
| 191 | + $blog = new ArrayDataProvider([ | |
| 192 | + 'allModels' => $article, | |
| 193 | + ]); | |
| 194 | + | |
| 195 | + | |
| 106 | 196 | return $this->render('blog-list',[ |
| 107 | - 'company' => $company | |
| 197 | + 'company' => $company, | |
| 198 | + 'blog' => $blog, | |
| 199 | + 'pagination' => $pagination | |
| 108 | 200 | ]); |
| 109 | 201 | } |
| 110 | 202 | |
| 111 | - public function actionBlogView($company_id, $article_id) | |
| 203 | + | |
| 204 | + public function actionBlogView($company_id, $link) | |
| 112 | 205 | { |
| 113 | 206 | $company = User::findOne($company_id); |
| 114 | 207 | |
| 208 | + if(!$company instanceof User){ | |
| 209 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 210 | + } | |
| 211 | + | |
| 212 | + | |
| 213 | + $article = Blog::findOne(['link'=>$link,'user_id'=>$company_id]); | |
| 214 | + $article->view_count ++; | |
| 215 | + $article->save(); | |
| 216 | + | |
| 217 | + | |
| 115 | 218 | return $this->render('blog-view',[ |
| 116 | - 'company' => $company | |
| 219 | + 'company' => $company, | |
| 220 | + 'article' =>$article, | |
| 221 | + | |
| 117 | 222 | ]); |
| 118 | 223 | } |
| 119 | 224 | |
| ... | ... | @@ -160,13 +265,41 @@ class CompanyController extends Controller |
| 160 | 265 | ]); |
| 161 | 266 | } |
| 162 | 267 | |
| 268 | + | |
| 163 | 269 | public function actionGallery($company_id) |
| 164 | 270 | { |
| 165 | 271 | $company = User::findOne($company_id); |
| 166 | 272 | |
| 273 | + if(!$company instanceof User){ | |
| 274 | + throw new BadRequestHttpException('Пользователь не найден'); | |
| 275 | + } | |
| 276 | + | |
| 277 | + | |
| 278 | + $query = Gallery::find(['user_id'=>$company_id]); | |
| 279 | + | |
| 280 | + $countQuery = clone $query; | |
| 281 | + | |
| 282 | + $pagination = new Pagination(['totalCount' => $countQuery->count(), | |
| 283 | + 'pageSize' => 5, | |
| 284 | + ]); | |
| 285 | + | |
| 286 | + $gallery = $query->offset($pagination->offset) | |
| 287 | + ->limit($pagination->limit) | |
| 288 | + ->all(); | |
| 289 | + | |
| 290 | + $gallery = new ArrayDataProvider([ | |
| 291 | + 'allModels' => $gallery, | |
| 292 | + ]); | |
| 293 | + | |
| 294 | + $videos = Fields::getData($company->id,Gallery::className(),'youtube'); | |
| 295 | + | |
| 167 | 296 | $this->layout = 'gallery-company'; |
| 297 | + | |
| 168 | 298 | return $this->render('gallery',[ |
| 169 | - 'company' => $company | |
| 299 | + 'company' => $company, | |
| 300 | + 'gallery' =>$gallery, | |
| 301 | + 'pagination' => $pagination, | |
| 302 | + 'videos' => $videos | |
| 170 | 303 | ]); |
| 171 | 304 | } |
| 172 | 305 | } | ... | ... |
| 1 | +<?php | |
| 2 | + | |
| 3 | +namespace frontend\helpers; | |
| 4 | +use Yii; | |
| 5 | +use yii\helpers\BaseStringHelper; | |
| 6 | + | |
| 7 | + | |
| 8 | +class TextHelper extends BaseStringHelper | |
| 9 | +{ | |
| 10 | + public static function truncateHtmlText($string, $length, $suffix = '...', $encoding = null, $asHtml = false, $html = '<p></p>') | |
| 11 | + { | |
| 12 | + if ($asHtml) { | |
| 13 | + return static::truncateHtml($string, $length, $suffix, $encoding ?: Yii::$app->charset); | |
| 14 | + } | |
| 15 | + | |
| 16 | + if (mb_strlen($string, $encoding ?: Yii::$app->charset) > $length) { | |
| 17 | + return strip_tags(trim(mb_substr($string, 0, $length, $encoding ?: Yii::$app->charset)) . $suffix, $html); | |
| 18 | + } else { | |
| 19 | + return strip_tags($string, $html); | |
| 20 | + } | |
| 21 | + | |
| 22 | + | |
| 23 | + } | |
| 24 | +} | ... | ... |
frontend/views/accounts/_blog_form.php
| ... | ... | @@ -5,7 +5,8 @@ |
| 5 | 5 | use common\models\Blog; |
| 6 | 6 | use common\widgets\ImageUploader; |
| 7 | 7 | use mihaildev\ckeditor\CKEditor; |
| 8 | - use yii\helpers\Html; | |
| 8 | +use mihaildev\elfinder\ElFinder; | |
| 9 | +use yii\helpers\Html; | |
| 9 | 10 | use yii\widgets\ActiveForm; |
| 10 | 11 | |
| 11 | 12 | $this->title = 'Блог'; |
| ... | ... | @@ -36,7 +37,16 @@ |
| 36 | 37 | |
| 37 | 38 | <div class="input-blocks-wrapper full-blocks admin-editor-bl"> |
| 38 | 39 | <div class="input-blocks"> |
| 39 | - <?= $form->field($blog, 'description')->widget(CKEditor::className()) ?> | |
| 40 | + | |
| 41 | + <?= $form->field($blog, 'description')->widget(CKEditor::className(), | |
| 42 | + [ | |
| 43 | + 'editorOptions' => ElFinder::ckeditorOptions('elfinder',[ | |
| 44 | + 'preset' => 'full', //разработанны стандартные настройки basic, standard, full данную возможность не обязательно использовать | |
| 45 | + 'inline' => false, //по умолчанию false]), | |
| 46 | + 'filebrowserUploadUrl'=>Yii::$app->getUrlManager()->createUrl('file/uploader/images-upload') | |
| 47 | + ] | |
| 48 | + ) | |
| 49 | + ]) ?> | |
| 40 | 50 | </div> |
| 41 | 51 | </div> |
| 42 | 52 | ... | ... |
frontend/views/accounts/_projects_form.php
| ... | ... | @@ -33,8 +33,33 @@ |
| 33 | 33 | <?= $form->field($project, 'project_pid') |
| 34 | 34 | ->dropDownList($projects, [ 'prompt' => 'Родительский проект' ]) ?> |
| 35 | 35 | |
| 36 | -<?= $form->field($project, 'specializationInput') | |
| 37 | - ->checkboxList($specialization) ?> | |
| 36 | +<div class="input-blocks-wrapper"> | |
| 37 | + <ul class="content-menu-first"> | |
| 38 | + <?php foreach($specializations as $specialization):?> | |
| 39 | + <li data-img="<?= $specialization->image?>"> | |
| 40 | + <span data-menu-bg="<?= $specialization->background ?>" style="background: <?= $specialization->background ?>"></span><a href="#"><?= $specialization->specialization_name?></a> | |
| 41 | + <ul> | |
| 42 | + <?php foreach($specialization->children as $child_first):?> | |
| 43 | + | |
| 44 | + <?php if($child_first instanceof Specialization):?> | |
| 45 | + <li> | |
| 46 | + <a href="#"><?= $child_first->specialization_name?></a> | |
| 47 | + <ul> | |
| 48 | + <?php foreach($child_first->children as $child_second):?> | |
| 49 | + <?php if($child_first instanceof Specialization): ?> | |
| 50 | + <li><a href="#"><?= Html::checkbox('Portfolio[specializationInput][]', in_array($child_second->specialization_id, ArrayHelper::getColumn($portfolio->specializations,'specialization_id')),['value' => $child_second->specialization_id, 'label' =>$child_second->specialization_name])?></a></li> | |
| 51 | + <?php endif;?> | |
| 52 | + <?php endforeach; ?> | |
| 53 | + </ul> | |
| 54 | + </li> | |
| 55 | + <?php endif; ?> | |
| 56 | + <?php endforeach; ?> | |
| 57 | + | |
| 58 | + </ul> | |
| 59 | + </li> | |
| 60 | + <?php endforeach; ?> | |
| 61 | + </ul> | |
| 62 | +</div> | |
| 38 | 63 | |
| 39 | 64 | <div class="form-inline"> |
| 40 | 65 | Адрес: | ... | ... |
frontend/views/accounts/_team_form.php
| 1 | +<?php | |
| 2 | +use frontend\helpers\TextHelper; | |
| 3 | +use yii\helpers\Html; | |
| 4 | +use yii\helpers\StringHelper; | |
| 5 | +use yii\helpers\Url; | |
| 6 | + | |
| 7 | +?> | |
| 8 | +<div class="blog-post-wr"> | |
| 9 | + <div class="blog-post-title style"> | |
| 10 | + <?= Html::a($model->name, Url::toRoute(['company/blog-view','company_id'=>$this->params['company']->id,'link'=>$model->link]),['class'=>'blog-new-link']);?> | |
| 11 | + </div> | |
| 12 | + <div class="blog-post-icons-wr style"> | |
| 13 | + <div class="blog-post-date"> | |
| 14 | + <span></span><p><?= $model->dateCreate?></p> | |
| 15 | + </div> | |
| 16 | + <div class="blog-post-views"> | |
| 17 | + <span></span><p><?= $model->view_count?></p> | |
| 18 | + </div> | |
| 19 | + <div class="blog-post-comm-num"> | |
| 20 | + <span></span><p><?= $model->view_count?></p> | |
| 21 | + </div> | |
| 22 | + </div> | |
| 23 | + <div class="blog-post-content style"> | |
| 24 | + <?= Html::a(Html::img($model->cover), Url::toRoute(['/company/blog-view','company_id'=>$this->params['company']->id,'link'=>$model->link]));?> | |
| 25 | + <?= TextHelper::truncateHtmlText($model->description, 1300)?> | |
| 26 | + </div> | |
| 27 | + <?= Html::a('<span>Подробнее</span>', Url::toRoute(['company/blog-view','company_id'=>$this->params['company']->id,'link'=>$model->link]),['class'=>'blog-post-see-all style']);?> | |
| 28 | +</div> | |
| 0 | 29 | \ No newline at end of file | ... | ... |
| 1 | +<?php | |
| 2 | +use yii\helpers\Html; | |
| 3 | +use yii\helpers\Url; | |
| 4 | + | |
| 5 | + | |
| 6 | +?> | |
| 7 | +<div class="command-block-wrapper"> | |
| 8 | + <div class="command-block-wr-two"> | |
| 9 | + <div class="command-block-foto"> | |
| 10 | + <?= Html::a(($model->photo ? Html::img($model->photo) : '') . '<div class="hover-command-bg"></div>', Url::toRoute('#'))?> | |
| 11 | + </div> | |
| 12 | + <div class="command-block-name"><?= $model->user ?></div> | |
| 13 | + <div class="command-block-job"><?= $model->department->name ?></div> | |
| 14 | + <div class="command-block-line"> | |
| 15 | + <div class="command-block-line-left"></div> | |
| 16 | + <div class="command-block-line-right"></div> | |
| 17 | + </div> | |
| 18 | + </div> | |
| 19 | +</div> | |
| 0 | 20 | \ No newline at end of file | ... | ... |
| 1 | +<?php | |
| 2 | + use yii\helpers\Html; | |
| 3 | +?> | |
| 4 | +<div class="gallery-box"> | |
| 5 | + <a href="#" class="gallery-box-min"><?= Html::img($model->cover)?></a> | |
| 6 | + <div class="gallery-box-hidden"> | |
| 7 | + <div class="gallery-box-preview"> | |
| 8 | + <?php foreach($model->ShowGallery($model->photo ) as $image):?> | |
| 9 | + <span data-link="<?= $image ?>"></span> | |
| 10 | + <?php endforeach; ?> | |
| 11 | + | |
| 12 | + </div> | |
| 13 | + <div class="gallery-box-big"> | |
| 14 | + <?php foreach(explode(',', $model->photo ) as $image): ?> | |
| 15 | + <span data-link="<?= $model->minImg($image, 'original'); ?>"></span> | |
| 16 | + <?php endforeach; ?> | |
| 17 | + </div> | |
| 18 | + </div> | |
| 19 | +</div> | |
| 0 | 20 | \ No newline at end of file | ... | ... |
frontend/views/performer/portfolio_list_view.php renamed to frontend/views/company/_portfolio_list_view.php
frontend/views/company/blog-list.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use \yii\helpers\Html; |
| 4 | +use yii\widgets\LinkPager; | |
| 5 | +use yii\widgets\ListView; | |
| 4 | 6 | |
| 5 | 7 | /* @var $this yii\web\View */ |
| 6 | 8 | $this->params['company'] = $company; |
| 7 | 9 | $this->title = 'My Yii Application'; |
| 8 | 10 | ?> |
| 9 | 11 | <div class="performer-vacancy-vacant-title-reclam-wr style"> |
| 10 | - <div class="blog-post-wr"> | |
| 11 | - <div class="blog-post-title style"><p>Как обшить балкон вагонкой своими руками: пошаговая инструкция</p></div> | |
| 12 | - <div class="blog-post-icons-wr style"> | |
| 13 | - <div class="blog-post-date"> | |
| 14 | - <span></span><p>22.09.2015</p> | |
| 15 | - </div> | |
| 16 | - <div class="blog-post-views"> | |
| 17 | - <span></span><p>240</p> | |
| 18 | - </div> | |
| 19 | - <div class="blog-post-comm-num"> | |
| 20 | - <span></span><p>12</p> | |
| 21 | - </div> | |
| 22 | - </div> | |
| 23 | - <div class="blog-post-content style"> | |
| 24 | - <img src="/images/blog/blog-post-img.jpg" alt=""/> | |
| 25 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ.</p> | |
| 26 | - <p>Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно</p> | |
| 27 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ. Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.</p> | |
| 28 | - </div> | |
| 29 | - <a href="#" class="blog-post-see-all style"><span>Подробнее</span></a> | |
| 30 | - </div> | |
| 31 | 12 | |
| 32 | - <div class="blog-post-wr"> | |
| 33 | - <div class="blog-post-title style"><p>Как обшить балкон вагонкой своими руками: пошаговая инструкция</p></div> | |
| 34 | - <div class="blog-post-icons-wr style"> | |
| 35 | - <div class="blog-post-date"> | |
| 36 | - <span></span><p>22.09.2015</p> | |
| 37 | - </div> | |
| 38 | - <div class="blog-post-views"> | |
| 39 | - <span></span><p>240</p> | |
| 40 | - </div> | |
| 41 | - <div class="blog-post-comm-num"> | |
| 42 | - <span></span><p>12</p> | |
| 43 | - </div> | |
| 44 | - </div> | |
| 45 | - <div class="blog-post-content style"> | |
| 46 | - <img src="/images/blog/blog-post-img.jpg" alt=""/> | |
| 47 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ.</p> | |
| 48 | - <p>Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно</p> | |
| 49 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ. Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.</p> | |
| 50 | - </div> | |
| 51 | - <a href="#" class="blog-post-see-all style"><span>Подробнее</span></a> | |
| 52 | - </div> | |
| 53 | - | |
| 54 | - <div class="blog-post-wr"> | |
| 55 | - <div class="blog-post-title style"><p>Как обшить балкон вагонкой своими руками: пошаговая инструкция</p></div> | |
| 56 | - <div class="blog-post-icons-wr style"> | |
| 57 | - <div class="blog-post-date"> | |
| 58 | - <span></span><p>22.09.2015</p> | |
| 59 | - </div> | |
| 60 | - <div class="blog-post-views"> | |
| 61 | - <span></span><p>240</p> | |
| 62 | - </div> | |
| 63 | - <div class="blog-post-comm-num"> | |
| 64 | - <span></span><p>12</p> | |
| 65 | - </div> | |
| 66 | - </div> | |
| 67 | - <div class="blog-post-content style"> | |
| 68 | - <img src="/images/blog/blog-post-img.jpg" alt=""/> | |
| 69 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ.</p> | |
| 70 | - <p>Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно</p> | |
| 71 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне возможно выполнить своими силами — достаточно иметь в распоряжении необходимые инструменты и владеть базовыми навыками строительно-ремонтных работ. Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.</p> | |
| 72 | - </div> | |
| 73 | - <a href="#" class="blog-post-see-all style"><span>Подробнее</span></a> | |
| 74 | - </div> | |
| 13 | + <?= | |
| 14 | + ListView::widget( [ | |
| 15 | + 'dataProvider' => $blog, | |
| 16 | + 'itemView'=>'_blog_list_view', | |
| 17 | + 'summary'=>'', | |
| 18 | + ] ); | |
| 19 | + ?> | |
| 75 | 20 | </div> |
| 76 | 21 | <div class="navi-buttons-wr style"> |
| 77 | - <ul class="pagination"> | |
| 78 | - <li><a href="#">1</a></li> | |
| 79 | - <li><a href="#">2</a></li> | |
| 80 | - <li><a href="#">3</a></li> | |
| 81 | - <li><a href="#">4</a></li> | |
| 82 | - <li><a href="#">5</a></li> | |
| 83 | - <li class="dots-next"><a href="#">...</a></li> | |
| 84 | - <li><a href="#">156</a></li> | |
| 85 | - </ul> | |
| 22 | + <?= | |
| 23 | + LinkPager::widget([ | |
| 24 | + 'pagination' => $pagination, | |
| 25 | + ]); | |
| 26 | + ?> | |
| 86 | 27 | </div> |
| 87 | - | ... | ... |
frontend/views/company/blog-view.php
| 1 | 1 | <?php |
| 2 | - use \yii\helpers\Html; | |
| 2 | +use \yii\helpers\Html; | |
| 3 | 3 | |
| 4 | - /* @var $this yii\web\View */ | |
| 4 | +/* @var $this yii\web\View */ | |
| 5 | 5 | $this->params['company'] = $company; |
| 6 | - $this->title = 'My Yii Application'; | |
| 6 | + | |
| 7 | +$this->title = $article->name ; | |
| 7 | 8 | ?> |
| 8 | 9 | <div class="performer-vacancy-vacant-title-reclam-wr style"> |
| 9 | 10 | <div class="blog-post-wr"> |
| 10 | - <div class="blog-post-title style"><p>Как обшить балкон вагонкой своими руками: пошаговая | |
| 11 | - инструкция</p></div> | |
| 11 | + <div class="blog-post-title style"><p><?= $article->name ?></p></div> | |
| 12 | 12 | <div class="blog-post-icons-wr style"> |
| 13 | 13 | <div class="blog-post-date"> |
| 14 | 14 | <span></span> |
| 15 | - <p>22.09.2015</p> | |
| 15 | + <p><?= $article->dateCreate?></p> | |
| 16 | 16 | </div> |
| 17 | 17 | <div class="blog-post-views"> |
| 18 | 18 | <span></span> |
| 19 | - <p>240</p> | |
| 19 | + <p><?= $article->view_count?></p> | |
| 20 | 20 | </div> |
| 21 | 21 | <div class="blog-post-comm-num"> |
| 22 | 22 | <span></span> |
| 23 | - <p>12</p> | |
| 23 | + <p><?= $article->view_count?></p> | |
| 24 | 24 | </div> |
| 25 | 25 | </div> |
| 26 | 26 | <div class="blog-post-content style"> |
| 27 | - <img src="/images/blog/blog-post-img.jpg" alt=""/> | |
| 28 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне | |
| 29 | - возможно выполнить своими силами — достаточно иметь в распоряжении необходимые | |
| 30 | - инструменты и владеть базовыми навыками строительно-ремонтных работ.</p> | |
| 31 | - <p>Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из | |
| 32 | - плотно пригнанных элементов с качественно обработанной поверхностью. Толщина | |
| 33 | - евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 | |
| 34 | - мм.Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки | |
| 35 | - вполне возможно выполнить своими силами — достаточно</p> | |
| 36 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне | |
| 37 | - возможно выполнить своими силами — достаточно иметь в распоряжении необходимые | |
| 38 | - инструменты и владеть базовыми навыками строительно-ремонтных работ. Евровагонка — | |
| 39 | - удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно | |
| 40 | - пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки | |
| 41 | - составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.</p> | |
| 42 | - | |
| 43 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне | |
| 44 | - возможно выполнить своими силами — достаточно иметь в распоряжении необходимые | |
| 45 | - инструменты и владеть базовыми навыками строительно-ремонтных работ.</p> | |
| 46 | - <p>Евровагонка — удобная в монтаже фасонная доска, которая позволяет создать обшивку из | |
| 47 | - плотно пригнанных элементов с качественно обработанной поверхностью. Толщина | |
| 48 | - евровагонки составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 | |
| 49 | - мм.Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки | |
| 50 | - вполне возможно выполнить своими силами — достаточно</p> | |
| 51 | - <p>Балкон, обшитый вагонкой, выглядит аккуратно, стильно и уютно. Монтаж обшивки вполне | |
| 52 | - возможно выполнить своими силами — достаточно иметь в распоряжении необходимые | |
| 53 | - инструменты и владеть базовыми навыками строительно-ремонтных работ. Евровагонка — | |
| 54 | - удобная в монтаже фасонная доска, которая позволяет создать обшивку из плотно | |
| 55 | - пригнанных элементов с качественно обработанной поверхностью. Толщина евровагонки | |
| 56 | - составляет 125 мм, общая ширина (с гребнем) 960 мм, рабочая ширина 880 мм.</p> | |
| 27 | + <?= $article->description ?> | |
| 57 | 28 | </div> |
| 58 | 29 | </div> |
| 59 | -</div> | |
| 60 | 30 | \ No newline at end of file |
| 31 | +</div> | ... | ... |
frontend/views/company/gallery.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use \yii\helpers\Html; |
| 4 | +use yii\widgets\LinkPager; | |
| 5 | +use yii\widgets\ListView; | |
| 6 | + | |
| 7 | + | |
| 4 | 8 | |
| 5 | 9 | /* @var $this yii\web\View */ |
| 10 | + | |
| 11 | + | |
| 6 | 12 | $this->params['company'] = $company; |
| 7 | 13 | $this->title = 'My Yii Application'; |
| 8 | 14 | ?> |
| 9 | 15 | <div class="video-performer-wrapper style"> |
| 10 | - <div class="gallery-title">Видео: 12</div> | |
| 16 | + <div class="gallery-title">Видео: <?= count($videos)?></div> | |
| 11 | 17 | <div class="slider-video-wr"> |
| 12 | 18 | <div id="demo5" class="scroll-img video-slider"> |
| 13 | 19 | <ul> |
| 14 | - <li> | |
| 15 | - <div class="iframe-video"><iframe width="560" height="320" src="https://www.youtube.com/embed/0wAgwxcO1HY?showinfo=0&autoplay=0" frameborder="0" allowfullscreen></iframe></div> | |
| 16 | - | |
| 17 | - <a href="#"></a><span></span> | |
| 18 | - </li> | |
| 19 | - <li> | |
| 20 | - <div class="iframe-video"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/0wAgwxcO1HY" frameborder="0" allowfullscreen></iframe></div> | |
| 21 | - <a href="#"></a><span></span> | |
| 22 | - </li> | |
| 20 | + <?php foreach($videos as $video):?> | |
| 21 | + <li> | |
| 22 | + <div class="iframe-video"><iframe width="560" height="320" src="<?= $video['youtube'] ?>" frameborder="0" allowfullscreen></iframe></div> | |
| 23 | 23 | |
| 24 | - <li> | |
| 25 | - <div class="iframe-video"><iframe width="560" height="320" src="https://www.youtube.com/embed/0wAgwxcO1HY?showinfo=0&autoplay=0" frameborder="0" allowfullscreen></iframe></div> | |
| 26 | - <a href="#"></a><span></span> | |
| 27 | - </li> | |
| 28 | - <li> | |
| 29 | - <div class="iframe-video"><iframe width="100%" height="100%" src="https://www.youtube.com/embed/0wAgwxcO1HY" frameborder="0" allowfullscreen></iframe></div> | |
| 30 | - <a href="#"></a><span></span> | |
| 31 | - </li> | |
| 24 | + <a href="#"></a><span></span> | |
| 25 | + </li> | |
| 26 | + <?php endforeach; ?> | |
| 32 | 27 | |
| 33 | - <li> | |
| 34 | - <div class="iframe-video"><iframe width="560" height="320" src="https://www.youtube.com/embed/0wAgwxcO1HY?showinfo=0&autoplay=0" frameborder="0" allowfullscreen></iframe></div> | |
| 35 | - <a href="#"></a><span></span> | |
| 36 | - </li> | |
| 37 | 28 | </ul> |
| 38 | 29 | </div> |
| 39 | 30 | <div id="demo5-btn" class="text-center"> |
| ... | ... | @@ -45,116 +36,37 @@ $this->title = 'My Yii Application'; |
| 45 | 36 | |
| 46 | 37 | </div> |
| 47 | 38 | <div class="gallery-performer-wrapper style"> |
| 48 | - <div class="gallery-title">Фото: 130</div> | |
| 49 | 39 | <div class="gallery-performer-margin"> |
| 50 | - <div class="gallery-box"> | |
| 51 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-1.jpg" alt=""/></a> | |
| 52 | - <div class="gallery-box-hidden"> | |
| 53 | - <div class="gallery-box-preview"> | |
| 54 | - <span data-link="images/gallery-pic/gallery-preview/img-1.jpg"></span> | |
| 55 | - <span data-link="images/gallery-pic/gallery-preview/img-2.jpg"></span> | |
| 56 | - <span data-link="images/gallery-pic/gallery-preview/img-3.jpg"></span> | |
| 57 | - <span data-link="images/gallery-pic/gallery-preview/img-4.jpg"></span> | |
| 58 | - <span data-link="images/gallery-pic/gallery-preview/img-5.jpg"></span> | |
| 59 | - <span data-link="images/gallery-pic/gallery-preview/img-6.jpg"></span> | |
| 60 | - <span data-link="images/gallery-pic/gallery-preview/img-7.jpg"></span> | |
| 61 | - <span data-link="images/gallery-pic/gallery-preview/img-8.jpg"></span> | |
| 62 | - <span data-link="images/gallery-pic/gallery-preview/img-9.jpg"></span> | |
| 63 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-10.jpg"></span>--> | |
| 64 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-1.jpg"></span>--> | |
| 65 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-2.jpg"></span>--> | |
| 66 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-3.jpg"></span>--> | |
| 67 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-4.jpg"></span>--> | |
| 68 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-5.jpg"></span>--> | |
| 69 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-6.jpg"></span>--> | |
| 70 | - <!--<span data-link="images/gallery-pic/gallery-preview/img-7.jpg"></span>--> | |
| 71 | - | |
| 72 | - </div> | |
| 73 | - <div class="gallery-box-big"> | |
| 74 | - <span data-link="images/gallery-pic/gallery-big/img-big-1.jpg"></span> | |
| 75 | - <span data-link="images/gallery-pic/gallery-big/img-big-2.jpg"></span> | |
| 76 | - <span data-link="images/gallery-pic/gallery-big/img-big-3.jpg"></span> | |
| 77 | - <span data-link="images/gallery-pic/gallery-big/img-big-4.jpg"></span> | |
| 78 | - <span data-link="images/gallery-pic/gallery-big/img-big-5.jpg"></span> | |
| 79 | - <span data-link="images/gallery-pic/gallery-big/img-big-6.jpg"></span> | |
| 80 | - <span data-link="images/gallery-pic/gallery-big/img-big-7.jpg"></span> | |
| 81 | - <span data-link="images/gallery-pic/gallery-big/img-big-8.jpg"></span> | |
| 82 | - <span data-link="images/gallery-pic/gallery-big/img-big-9.jpg"></span> | |
| 83 | - <span data-link="images/gallery-pic/gallery-big/img-big-10.jpg"></span> | |
| 84 | - <span data-link="images/gallery-pic/gallery-big/img-big-1.jpg"></span> | |
| 85 | - <span data-link="images/gallery-pic/gallery-big/img-big-2.jpg"></span> | |
| 86 | - <span data-link="images/gallery-pic/gallery-big/img-big-3.jpg"></span> | |
| 87 | - <span data-link="images/gallery-pic/gallery-big/img-big-4.jpg"></span> | |
| 88 | - <span data-link="images/gallery-pic/gallery-big/img-big-5.jpg"></span> | |
| 89 | - <span data-link="images/gallery-pic/gallery-big/img-big-6.jpg"></span> | |
| 90 | - <span data-link="images/gallery-pic/gallery-big/img-big-7.jpg"></span> | |
| 91 | - </div> | |
| 92 | - </div> | |
| 93 | - </div> | |
| 94 | - | |
| 95 | - <div class="gallery-box"> | |
| 96 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-2.jpg" alt=""/></a> | |
| 97 | - <div class="gallery-box-hidden"> | |
| 98 | - <div class="gallery-box-preview"> | |
| 99 | - <span data-link="images/gallery-pic/gallery-preview/img-6.jpg"></span> | |
| 100 | - <span data-link="images/gallery-pic/gallery-preview/img-7.jpg"></span> | |
| 101 | - <span data-link="images/gallery-pic/gallery-preview/img-8.jpg"></span> | |
| 102 | - <span data-link="images/gallery-pic/gallery-preview/img-9.jpg"></span> | |
| 103 | - <span data-link="images/gallery-pic/gallery-preview/img-10.jpg"></span> | |
| 104 | - | |
| 105 | - </div> | |
| 106 | - <div class="gallery-box-big"> | |
| 107 | - <span data-link="images/gallery-pic/gallery-big/img-big-6.jpg"></span> | |
| 108 | - <span data-link="images/gallery-pic/gallery-big/img-big-7.jpg"></span> | |
| 109 | - <span data-link="images/gallery-pic/gallery-big/img-big-8.jpg"></span> | |
| 110 | - <span data-link="images/gallery-pic/gallery-big/img-big-9.jpg"></span> | |
| 111 | - <span data-link="images/gallery-pic/gallery-big/img-big-10.jpg"></span> | |
| 112 | - </div> | |
| 113 | - </div> | |
| 114 | - </div> | |
| 115 | - | |
| 116 | - <div class="gallery-box"> | |
| 117 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-3.jpg" alt=""/></a> | |
| 118 | - </div> | |
| 119 | - <div class="gallery-box"> | |
| 120 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-4.jpg" alt=""/></a> | |
| 121 | - </div> | |
| 122 | - <div class="gallery-box"> | |
| 123 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-1.jpg" alt=""/></a> | |
| 124 | - </div> | |
| 125 | - <div class="gallery-box"> | |
| 126 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-2.jpg" alt=""/></a> | |
| 127 | - </div> | |
| 128 | - <div class="gallery-box"> | |
| 129 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-3.jpg" alt=""/></a> | |
| 130 | - </div> | |
| 131 | - <div class="gallery-box"> | |
| 132 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-4.jpg" alt=""/></a> | |
| 133 | - </div> | |
| 134 | - <div class="gallery-box"> | |
| 135 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-1.jpg" alt=""/></a> | |
| 136 | - </div> | |
| 137 | - <div class="gallery-box"> | |
| 138 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-2.jpg" alt=""/></a> | |
| 139 | - </div> | |
| 140 | - <div class="gallery-box"> | |
| 141 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-3.jpg" alt=""/></a> | |
| 142 | - </div> | |
| 143 | - <div class="gallery-box"> | |
| 144 | - <a href="#" class="gallery-box-min"><img src="/images/gallery-pic/gal-img-4.jpg" alt=""/></a> | |
| 145 | - </div> | |
| 40 | + <?= | |
| 41 | + ListView::widget( [ | |
| 42 | + 'dataProvider' => $gallery, | |
| 43 | + 'itemView'=>'_gallery_list_view', | |
| 44 | + 'summary'=>'', | |
| 45 | + ] ); | |
| 46 | + ?> | |
| 146 | 47 | </div> |
| 147 | 48 | |
| 148 | 49 | <div class="navi-buttons-wr style gallery-style"> |
| 149 | - <ul class="pagination"> | |
| 150 | - <li><a href="#">1</a></li> | |
| 151 | - <li><a href="#">2</a></li> | |
| 152 | - <li><a href="#">3</a></li> | |
| 153 | - <li><a href="#">4</a></li> | |
| 154 | - <li><a href="#">5</a></li> | |
| 155 | - <li class="dots-next"><a href="#">...</a></li> | |
| 156 | - <li><a href="#">156</a></li> | |
| 157 | - </ul> | |
| 50 | + <?= | |
| 51 | + LinkPager::widget([ | |
| 52 | + 'pagination' => $pagination, | |
| 53 | + ]); | |
| 54 | + ?> | |
| 158 | 55 | </div> |
| 159 | 56 | |
| 160 | -</div> | |
| 161 | 57 | \ No newline at end of file |
| 58 | +</div> | |
| 59 | +<script> | |
| 60 | + $(function () { | |
| 61 | + $('#demo5').scrollbox({ | |
| 62 | + direction: 'h', | |
| 63 | + distance: 220, | |
| 64 | + autoPlay: false | |
| 65 | + }); | |
| 66 | + $('#demo5-backward').click(function () { | |
| 67 | + $('#demo5').trigger('backward'); | |
| 68 | + }); | |
| 69 | + $('#demo5-forward').click(function () { | |
| 70 | + $('#demo5').trigger('forward'); | |
| 71 | + }); | |
| 72 | + }); | |
| 73 | +</script> | |
| 162 | 74 | \ No newline at end of file | ... | ... |
frontend/views/company/portfolio.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +use yii\helpers\ArrayHelper; | |
| 3 | 4 | use \yii\helpers\Html; |
| 5 | +use yii\helpers\Url; | |
| 6 | +use yii\widgets\ListView; | |
| 4 | 7 | |
| 5 | -/* @var $this yii\web\View */ | |
| 8 | + | |
| 9 | +/* @var $this yii\web\View | |
| 10 | + * @var $portfolio yii\data\ArrayDataProvider | |
| 11 | + */ | |
| 6 | 12 | $this->params['company'] = $company; |
| 7 | 13 | $this->title = 'My Yii Application'; |
| 8 | 14 | ?> |
| 9 | 15 | <div class="performer-vacancy-vacant-title-reclam-wr style"> |
| 16 | + | |
| 10 | 17 | <div class="portfolio-project-wr style"> |
| 11 | - <div class="workplace-title style"><p>Проектов: 1054</p></div> | |
| 18 | + <div class="workplace-title style"><p>Проектов: <?= $portfolio->totalCount ?></p></div> | |
| 12 | 19 | <div class="portfolio-project-tags style"> |
| 13 | - <a href="#" class="active-tag">Все</a><a href="#">Дизайн интерьера (340)</a><a href="#">Архитектурное проектирование (15)</a><a href="#">3D-визуализация (155)</a><a href="#">Изготовление мебели (5)</a><a href="#">Декорирование стекол и зеркал (14)</a> | |
| 14 | - <a href="#">Ремонт квартиры под ключ (7)</a><a href="#">Строительство домов под ключ (12)</a><a href="#">Декорирование интерьера (30)</a><a href="#">Декорирование стен (5)</a> | |
| 20 | + <?= Html::a("Все ({$count})", ['performer/portfolio', 'performer_id'=> $company->id], | |
| 21 | + ['class'=> !isset($filter_id) || empty($filter_id) ? "active-tag" : ""]);?> | |
| 22 | + <a href="#" class="active-tag"></a> | |
| 23 | + <?php foreach($filters as $filter): ?> | |
| 24 | + <?= Html::a("{$filter->specialization->specialization_name} ({$filter->count})", | |
| 25 | + Url::toRoute(['company/portfolio-filter', 'performer_id'=> $company->id, 'filter' => $filter->specialization->specialization_id]), | |
| 26 | + ['class'=> isset($filter_id) && $filter->specialization->specialization_id == $filter_id ? "active-tag" : ""]);?> | |
| 27 | + <?php endforeach; ?> | |
| 28 | + | |
| 15 | 29 | </div> |
| 16 | 30 | </div> |
| 31 | + | |
| 17 | 32 | <div class="style"> |
| 18 | 33 | <div class="portfolio-project-blocks-wrapper"> |
| 19 | - <div class="portfolio-project-blocks-wr"> | |
| 20 | - <div class="portfolio-project-blocks-img-title"> | |
| 21 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-1.jpg" alt=""/></a></div> | |
| 22 | - <div class="portfolio-project-blocks-title-wr"> | |
| 23 | - <div class="portfolio-project-blocks-title"> | |
| 24 | - <a href="#">Отделка дома из бруса</a> | |
| 25 | - </div> | |
| 26 | - </div> | |
| 27 | - </div> | |
| 28 | - <div class="portfolio-project-views-wr"> | |
| 29 | - <div class="portfolio-project-views ico-views-bl"> | |
| 30 | - <div class="portfolio-project-views-img-wr"> | |
| 31 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 32 | - </div> | |
| 33 | - <div class="portfolio-project-views-txt">127</div> | |
| 34 | - </div> | |
| 35 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 36 | - <div class="portfolio-project-views-img-wr"> | |
| 37 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 38 | - </div> | |
| 39 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 40 | - </div> | |
| 41 | - <div class="ico-views-bl"> | |
| 42 | - <div class="portfolio-project-views-img-wr"> | |
| 43 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 44 | - </div> | |
| 45 | - <div class="portfolio-project-views-txt">14</div> | |
| 46 | - </div> | |
| 47 | - </div> | |
| 48 | - <div class="portfolio-project-blocks-tags"><a href="#">Деревянные дома</a></div> | |
| 49 | - </div> | |
| 50 | - <div class="portfolio-project-blocks-wr"> | |
| 51 | - <div class="portfolio-project-blocks-img-title"> | |
| 52 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-2.jpg" alt=""/></a></div> | |
| 53 | - <div class="portfolio-project-blocks-title-wr"> | |
| 54 | - <div class="portfolio-project-blocks-title"> | |
| 55 | - <a href="#">Квартира - студия в современном стиле </a> | |
| 56 | - </div> | |
| 57 | - </div> | |
| 58 | - </div> | |
| 59 | - <div class="portfolio-project-views-wr"> | |
| 60 | - <div class="portfolio-project-views ico-views-bl"> | |
| 61 | - <div class="portfolio-project-views-img-wr"> | |
| 62 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 63 | - </div> | |
| 64 | - <div class="portfolio-project-views-txt">127</div> | |
| 65 | - </div> | |
| 66 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 67 | - <div class="portfolio-project-views-img-wr"> | |
| 68 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 69 | - </div> | |
| 70 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 71 | - </div> | |
| 72 | - <div class="ico-views-bl"> | |
| 73 | - <div class="portfolio-project-views-img-wr"> | |
| 74 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 75 | - </div> | |
| 76 | - <div class="portfolio-project-views-txt">14</div> | |
| 77 | - </div> | |
| 78 | - </div> | |
| 79 | - <div class="portfolio-project-blocks-tags"><a href="#">Дизайн интерьера</a></div> | |
| 80 | - </div> | |
| 81 | - <div class="portfolio-project-blocks-wr"> | |
| 82 | - <div class="portfolio-project-blocks-img-title"> | |
| 83 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-1.jpg" alt=""/></a></div> | |
| 84 | - <div class="portfolio-project-blocks-title-wr"> | |
| 85 | - <div class="portfolio-project-blocks-title"> | |
| 86 | - <a href="#">Отделка дома из бруса</a> | |
| 87 | - </div> | |
| 88 | - </div> | |
| 89 | - </div> | |
| 90 | - <div class="portfolio-project-views-wr"> | |
| 91 | - <div class="portfolio-project-views ico-views-bl"> | |
| 92 | - <div class="portfolio-project-views-img-wr"> | |
| 93 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 94 | - </div> | |
| 95 | - <div class="portfolio-project-views-txt">127</div> | |
| 96 | - </div> | |
| 97 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 98 | - <div class="portfolio-project-views-img-wr"> | |
| 99 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 100 | - </div> | |
| 101 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 102 | - </div> | |
| 103 | - <div class="ico-views-bl"> | |
| 104 | - <div class="portfolio-project-views-img-wr"> | |
| 105 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 106 | - </div> | |
| 107 | - <div class="portfolio-project-views-txt">14</div> | |
| 108 | - </div> | |
| 109 | - </div> | |
| 110 | - <div class="portfolio-project-blocks-tags"><a href="#">Деревянные дома</a></div> | |
| 111 | - </div> | |
| 112 | - <div class="portfolio-project-blocks-wr"> | |
| 113 | - <div class="portfolio-project-blocks-img-title"> | |
| 114 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-2.jpg" alt=""/></a></div> | |
| 115 | - <div class="portfolio-project-blocks-title-wr"> | |
| 116 | - <div class="portfolio-project-blocks-title"> | |
| 117 | - <a href="#">Квартира - студия в современном стиле </a> | |
| 118 | - </div> | |
| 119 | - </div> | |
| 120 | - </div> | |
| 121 | - <div class="portfolio-project-views-wr"> | |
| 122 | - <div class="portfolio-project-views ico-views-bl"> | |
| 123 | - <div class="portfolio-project-views-img-wr"> | |
| 124 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 125 | - </div> | |
| 126 | - <div class="portfolio-project-views-txt">127</div> | |
| 127 | - </div> | |
| 128 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 129 | - <div class="portfolio-project-views-img-wr"> | |
| 130 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 131 | - </div> | |
| 132 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 133 | - </div> | |
| 134 | - <div class="ico-views-bl"> | |
| 135 | - <div class="portfolio-project-views-img-wr"> | |
| 136 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 137 | - </div> | |
| 138 | - <div class="portfolio-project-views-txt">14</div> | |
| 139 | - </div> | |
| 140 | - </div> | |
| 141 | - <div class="portfolio-project-blocks-tags"><a href="#">Дизайн интерьера</a></div> | |
| 142 | - </div> | |
| 143 | - <div class="portfolio-project-blocks-wr"> | |
| 144 | - <div class="portfolio-project-blocks-img-title"> | |
| 145 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-1.jpg" alt=""/></a></div> | |
| 146 | - <div class="portfolio-project-blocks-title-wr"> | |
| 147 | - <div class="portfolio-project-blocks-title"> | |
| 148 | - <a href="#">Отделка дома из бруса</a> | |
| 149 | - </div> | |
| 150 | - </div> | |
| 151 | - </div> | |
| 152 | - <div class="portfolio-project-views-wr"> | |
| 153 | - <div class="portfolio-project-views ico-views-bl"> | |
| 154 | - <div class="portfolio-project-views-img-wr"> | |
| 155 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 156 | - </div> | |
| 157 | - <div class="portfolio-project-views-txt">127</div> | |
| 158 | - </div> | |
| 159 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 160 | - <div class="portfolio-project-views-img-wr"> | |
| 161 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 162 | - </div> | |
| 163 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 164 | - </div> | |
| 165 | - <div class="ico-views-bl"> | |
| 166 | - <div class="portfolio-project-views-img-wr"> | |
| 167 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 168 | - </div> | |
| 169 | - <div class="portfolio-project-views-txt">14</div> | |
| 170 | - </div> | |
| 171 | - </div> | |
| 172 | - <div class="portfolio-project-blocks-tags"><a href="#">Деревянные дома</a></div> | |
| 173 | - </div> | |
| 174 | - <div class="portfolio-project-blocks-wr"> | |
| 175 | - <div class="portfolio-project-blocks-img-title"> | |
| 176 | - <div class="portfolio-project-blocks-img"><a href="#"><img src="/images/portfolio-project/portfolio-img-2.jpg" alt=""/></a></div> | |
| 177 | - <div class="portfolio-project-blocks-title-wr"> | |
| 178 | - <div class="portfolio-project-blocks-title"> | |
| 179 | - <a href="#">Квартира - студия в современном стиле </a> | |
| 180 | - </div> | |
| 181 | - </div> | |
| 182 | - </div> | |
| 183 | - <div class="portfolio-project-views-wr"> | |
| 184 | - <div class="portfolio-project-views ico-views-bl"> | |
| 185 | - <div class="portfolio-project-views-img-wr"> | |
| 186 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 187 | - </div> | |
| 188 | - <div class="portfolio-project-views-txt">127</div> | |
| 189 | - </div> | |
| 190 | - <div class="portfolio-project-rati ico-views-bl"> | |
| 191 | - <div class="portfolio-project-views-img-wr"> | |
| 192 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 193 | - </div> | |
| 194 | - <div class="portfolio-project-views-txt">10.0</div> | |
| 195 | - </div> | |
| 196 | - <div class="ico-views-bl"> | |
| 197 | - <div class="portfolio-project-views-img-wr"> | |
| 198 | - <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 199 | - </div> | |
| 200 | - <div class="portfolio-project-views-txt">14</div> | |
| 201 | - </div> | |
| 202 | - </div> | |
| 203 | - <div class="portfolio-project-blocks-tags"><a href="#">Дизайн интерьера</a></div> | |
| 204 | - </div> | |
| 205 | - | |
| 206 | - <div class="navi-buttons-wr style"> | |
| 207 | - <ul class="pagination"> | |
| 208 | - <li><a href="#">1</a></li> | |
| 209 | - <li><a href="#">2</a></li> | |
| 210 | - <li><a href="#">3</a></li> | |
| 211 | - <li><a href="#">4</a></li> | |
| 212 | - <li><a href="#">5</a></li> | |
| 213 | - <li class="dots-next"><a href="#">...</a></li> | |
| 214 | - <li><a href="#">156</a></li> | |
| 215 | - </ul> | |
| 216 | - </div> | |
| 34 | + <?= | |
| 35 | + ListView::widget( [ | |
| 36 | + 'dataProvider' => $portfolio, | |
| 37 | + 'itemView'=>'_portfolio_list_view', | |
| 38 | + 'layout' => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>" | |
| 39 | + ] ); | |
| 40 | + ?> | |
| 217 | 41 | |
| 218 | 42 | </div> |
| 219 | 43 | </div> |
| 44 | + | |
| 220 | 45 | </div> |
| 221 | 46 | \ No newline at end of file | ... | ... |
frontend/views/company/team.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use \yii\helpers\Html; |
| 4 | +use yii\widgets\LinkPager; | |
| 5 | +use yii\widgets\ListView; | |
| 4 | 6 | |
| 5 | 7 | /* @var $this yii\web\View */ |
| 6 | 8 | $this->params['company'] = $company; |
| 7 | 9 | $this->title = 'My Yii Application'; |
| 8 | 10 | ?> |
| 9 | 11 | <div class="command-blocks-wr style"> |
| 10 | - <div class="command-block-wrapper"> | |
| 11 | - <div class="command-block-wr-two"> | |
| 12 | - <div class="command-block-foto"> | |
| 13 | - <a href="#"> | |
| 14 | - <img src="/images/command/ded.jpg" alt=""/> | |
| 15 | - <!--не удалять блок hover-command-bg--> | |
| 16 | - <div class="hover-command-bg"></div> | |
| 17 | - </a> | |
| 18 | - </div> | |
| 19 | - <div class="command-block-name">Афанасий Петров</div> | |
| 20 | - <div class="command-block-job">директор</div> | |
| 21 | - <div class="command-block-line"> | |
| 22 | - <div class="command-block-line-left"></div> | |
| 23 | - <div class="command-block-line-right"></div> | |
| 24 | - </div> | |
| 25 | - </div> | |
| 26 | - </div> | |
| 27 | - | |
| 28 | - <div class="command-block-wrapper"> | |
| 29 | - <div class="command-block-wr-two"> | |
| 30 | - <div class="command-block-foto"> | |
| 31 | - <a href="#"> | |
| 32 | - <!--не удалять блок hover-command-bg--> | |
| 33 | - <div class="hover-command-bg"></div> | |
| 34 | - </a> | |
| 35 | - </div> | |
| 36 | - <div class="command-block-name">Афанасий Петров</div> | |
| 37 | - <div class="command-block-job">зам. начальника внутренне проектной документации</div> | |
| 38 | - <div class="command-block-line"> | |
| 39 | - <div class="command-block-line-left"></div> | |
| 40 | - <div class="command-block-line-right"></div> | |
| 41 | - </div> | |
| 42 | - </div> | |
| 43 | - </div> | |
| 44 | - | |
| 45 | - <div class="command-block-wrapper"> | |
| 46 | - <div class="command-block-wr-two"> | |
| 47 | - <div class="command-block-foto"> | |
| 48 | - <a href="#"> | |
| 49 | - <img src="/images/command/ded.jpg" alt=""/> | |
| 50 | - <!--не удалять блок hover-command-bg--> | |
| 51 | - <div class="hover-command-bg"></div> | |
| 52 | - </a> | |
| 53 | - </div> | |
| 54 | - <div class="command-block-name">Афанасий Петров</div> | |
| 55 | - <div class="command-block-job">директор</div> | |
| 56 | - <div class="command-block-line"> | |
| 57 | - <div class="command-block-line-left"></div> | |
| 58 | - <div class="command-block-line-right"></div> | |
| 59 | - </div> | |
| 60 | - </div> | |
| 61 | - </div> | |
| 12 | + <?= | |
| 13 | + ListView::widget( [ | |
| 14 | + 'dataProvider' => $team, | |
| 15 | + 'itemView'=>'_company_list_view', | |
| 16 | + 'summary'=>'', | |
| 17 | + ] ); | |
| 18 | + ?> | |
| 62 | 19 | |
| 63 | - <div class="command-block-wrapper"> | |
| 64 | - <div class="command-block-wr-two"> | |
| 65 | - <div class="command-block-foto"> | |
| 66 | - <a href="#"> | |
| 67 | - <!--не удалять блок hover-command-bg--> | |
| 68 | - <div class="hover-command-bg"></div> | |
| 69 | - </a> | |
| 70 | - </div> | |
| 71 | - <div class="command-block-name">Афанасий Петров</div> | |
| 72 | - <div class="command-block-job">зам. начальника внутренне проектной документации</div> | |
| 73 | - <div class="command-block-line"> | |
| 74 | - <div class="command-block-line-left"></div> | |
| 75 | - <div class="command-block-line-right"></div> | |
| 76 | - </div> | |
| 77 | - </div> | |
| 78 | - </div> | |
| 79 | - | |
| 80 | - <div class="command-block-wrapper"> | |
| 81 | - <div class="command-block-wr-two"> | |
| 82 | - <div class="command-block-foto"> | |
| 83 | - <a href="#"> | |
| 84 | - <img src="/images/command/ded.jpg" alt=""/> | |
| 85 | - <!--не удалять блок hover-command-bg--> | |
| 86 | - <div class="hover-command-bg"></div> | |
| 87 | - </a> | |
| 88 | - </div> | |
| 89 | - <div class="command-block-name">Афанасий Петров</div> | |
| 90 | - <div class="command-block-job">директор</div> | |
| 91 | - <div class="command-block-line"> | |
| 92 | - <div class="command-block-line-left"></div> | |
| 93 | - <div class="command-block-line-right"></div> | |
| 94 | - </div> | |
| 95 | - </div> | |
| 96 | - </div> | |
| 97 | - | |
| 98 | - <div class="command-block-wrapper"> | |
| 99 | - <div class="command-block-wr-two"> | |
| 100 | - <div class="command-block-foto"> | |
| 101 | - <a href="#"> | |
| 102 | - <!--не удалять блок hover-command-bg--> | |
| 103 | - <div class="hover-command-bg"></div> | |
| 104 | - </a> | |
| 105 | - </div> | |
| 106 | - <div class="command-block-name">Афанасий Петров</div> | |
| 107 | - <div class="command-block-job">зам. начальника внутренне проектной документации</div> | |
| 108 | - <div class="command-block-line"> | |
| 109 | - <div class="command-block-line-left"></div> | |
| 110 | - <div class="command-block-line-right"></div> | |
| 111 | - </div> | |
| 112 | - </div> | |
| 113 | - </div> | |
| 114 | - | |
| 115 | - <div class="command-block-wrapper"> | |
| 116 | - <div class="command-block-wr-two"> | |
| 117 | - <div class="command-block-foto"> | |
| 118 | - <a href="#"> | |
| 119 | - <img src="/images/command/ded.jpg" alt=""/> | |
| 120 | - <!--не удалять блок hover-command-bg--> | |
| 121 | - <div class="hover-command-bg"></div> | |
| 122 | - </a> | |
| 123 | - </div> | |
| 124 | - <div class="command-block-name">Афанасий Петров</div> | |
| 125 | - <div class="command-block-job">директор</div> | |
| 126 | - <div class="command-block-line"> | |
| 127 | - <div class="command-block-line-left"></div> | |
| 128 | - <div class="command-block-line-right"></div> | |
| 129 | - </div> | |
| 130 | - </div> | |
| 131 | - </div> | |
| 132 | - | |
| 133 | - <div class="command-block-wrapper"> | |
| 134 | - <div class="command-block-wr-two"> | |
| 135 | - <div class="command-block-foto"> | |
| 136 | - <a href="#"> | |
| 137 | - <!--не удалять блок hover-command-bg--> | |
| 138 | - <div class="hover-command-bg"></div> | |
| 139 | - </a> | |
| 140 | - </div> | |
| 141 | - <div class="command-block-name">Афанасий Петров</div> | |
| 142 | - <div class="command-block-job">зам. начальника внутренне проектной документации</div> | |
| 143 | - <div class="command-block-line"> | |
| 144 | - <div class="command-block-line-left"></div> | |
| 145 | - <div class="command-block-line-right"></div> | |
| 146 | - </div> | |
| 147 | - </div> | |
| 148 | - </div> | |
| 149 | - | |
| 150 | - <div class="command-block-wrapper"> | |
| 151 | - <div class="command-block-wr-two"> | |
| 152 | - <div class="command-block-foto"> | |
| 153 | - <a href="#"> | |
| 154 | - <img src="/images/command/ded.jpg" alt=""/> | |
| 155 | - <!--не удалять блок hover-command-bg--> | |
| 156 | - <div class="hover-command-bg"></div> | |
| 157 | - </a> | |
| 158 | - </div> | |
| 159 | - <div class="command-block-name">Афанасий Петров</div> | |
| 160 | - <div class="command-block-job">директор</div> | |
| 161 | - <div class="command-block-line"> | |
| 162 | - <div class="command-block-line-left"></div> | |
| 163 | - <div class="command-block-line-right"></div> | |
| 164 | - </div> | |
| 165 | - </div> | |
| 166 | - </div> | |
| 167 | 20 | |
| 168 | 21 | </div> |
| 169 | 22 | <div class="navi-buttons-wr style command-command-style"> |
| 170 | - <ul class="pagination"> | |
| 171 | - <li><a href="#">1</a></li> | |
| 172 | - <li><a href="#">2</a></li> | |
| 173 | - <li><a href="#">3</a></li> | |
| 174 | - <li><a href="#">4</a></li> | |
| 175 | - <li><a href="#">5</a></li> | |
| 176 | - <li class="dots-next"><a href="#">...</a></li> | |
| 177 | - <li><a href="#">156</a></li> | |
| 178 | - </ul> | |
| 23 | + <?= | |
| 24 | + LinkPager::widget([ | |
| 25 | + 'pagination' => $pagination, | |
| 26 | + ]); | |
| 27 | + ?> | |
| 179 | 28 | </div> |
| 180 | 29 | <?php |
| 181 | 30 | /*====Blocks for layout====*/ | ... | ... |
frontend/views/layouts/gallery-company.php
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +use yii\helpers\Html; | |
| 3 | 4 | use yii\widgets\Breadcrumbs; |
| 4 | 5 | use yii\widgets\Menu; |
| 5 | 6 | |
| ... | ... | @@ -8,7 +9,7 @@ use yii\widgets\Menu; |
| 8 | 9 | $this->beginContent('@app/views/layouts/main.php'); |
| 9 | 10 | ?> |
| 10 | 11 | <div class="section-box content"> |
| 11 | - <div class="section-box-14" style="background: url('/images/performar_vacancy/bg-14.jpg') 50% no-repeat ;"> | |
| 12 | + <div class="section-box-14" style="background: url('<?= $this->params['company']->userInfo->poster;?>') 50% no-repeat"> | |
| 12 | 13 | <div class="box-wr"> |
| 13 | 14 | <div class="box-all"> |
| 14 | 15 | <div class="performance-vacancy-call-back"> |
| ... | ... | @@ -101,7 +102,9 @@ $this->beginContent('@app/views/layouts/main.php'); |
| 101 | 102 | <div class="performance-vacancy-sidebar-comm style">30 отзывов</div> |
| 102 | 103 | <a href="#" class="performance-vacancy-sidebar-write style">написать отзыв</a> |
| 103 | 104 | </div> |
| 104 | - <div class="performer-vacancy-sidebar-img style"><img src="/images/performar_vacancy/ico-sidebar.jpg" alt=""/></div> | |
| 105 | + <div class="performer-vacancy-sidebar-img style"> | |
| 106 | + <?= Html::img($this->params['company']->userInfo->image);?> | |
| 107 | + </div> | |
| 105 | 108 | </div> |
| 106 | 109 | </div> |
| 107 | 110 | <div class="section-box-21"> |
| ... | ... | @@ -114,21 +117,5 @@ $this->beginContent('@app/views/layouts/main.php'); |
| 114 | 117 | </div> |
| 115 | 118 | </div> |
| 116 | 119 | </div> |
| 117 | - <?php | |
| 118 | - /*====Blocks created in view====*/ | |
| 119 | - if(isset($this->blocks['our_objects'])) { | |
| 120 | - echo $this->blocks['our_objects']; | |
| 121 | - } | |
| 122 | - if(isset($this->blocks['blog'])) { | |
| 123 | - echo $this->blocks['blog']; | |
| 124 | - } | |
| 125 | - if(isset($this->blocks['team'])) { | |
| 126 | - echo $this->blocks['team']; | |
| 127 | - } | |
| 128 | - if(isset($this->blocks['review'])) { | |
| 129 | - echo $this->blocks['review']; | |
| 130 | - } | |
| 131 | - /*====End of blocks created in view====*/ | |
| 132 | - ?> | |
| 133 | 120 | </div> |
| 134 | 121 | <?php $this->endContent() ?> |
| 135 | 122 | \ No newline at end of file | ... | ... |
frontend/views/performer/_blog_list_view.php
| 1 | 1 | <?php |
| 2 | +use frontend\helpers\TextHelper; | |
| 2 | 3 | use yii\helpers\Html; |
| 3 | 4 | use yii\helpers\StringHelper; |
| 4 | 5 | use yii\helpers\Url; |
| ... | ... | @@ -16,12 +17,12 @@ use yii\helpers\Url; |
| 16 | 17 | <span></span><p><?= $model->view_count?></p> |
| 17 | 18 | </div> |
| 18 | 19 | <div class="blog-post-comm-num"> |
| 19 | - <span></span><p>XX</p> | |
| 20 | + <span></span><p><?= $model->view_count?></p> | |
| 20 | 21 | </div> |
| 21 | 22 | </div> |
| 22 | 23 | <div class="blog-post-content style"> |
| 23 | 24 | <?= Html::a(Html::img($model->cover), Url::toRoute(['/performer/blog-view','performer_id'=>$this->params['user']->id,'link'=>$model->link]));?> |
| 24 | - <?= StringHelper::truncate($model->description, 1500, '...', null, true)?> | |
| 25 | + <?= TextHelper::truncateHtmlText($model->description, 1300)?> | |
| 25 | 26 | </div> |
| 26 | 27 | <?= Html::a('<span>Подробнее</span>', Url::toRoute(['performer/blog-view','performer_id'=>$this->params['user']->id,'link'=>$model->link]),['class'=>'blog-post-see-all style']);?> |
| 27 | 28 | </div> |
| 28 | 29 | \ No newline at end of file | ... | ... |
| 1 | +<?php | |
| 2 | +use yii\helpers\ArrayHelper; | |
| 3 | +use yii\helpers\Html; | |
| 4 | +use yii\helpers\StringHelper; | |
| 5 | + | |
| 6 | + | |
| 7 | +?> | |
| 8 | +<div class="portfolio-project-blocks-wr"> | |
| 9 | + <div class="portfolio-project-blocks-img-title"> | |
| 10 | + <div class="portfolio-project-blocks-img"> | |
| 11 | + <?= Html::a(Html::img($model->cover), '#');?> | |
| 12 | + </div> | |
| 13 | + <div class="portfolio-project-blocks-title-wr"> | |
| 14 | + <div class="portfolio-project-blocks-title"> | |
| 15 | + <a href="#"><?= $model->name?></a> | |
| 16 | + </div> | |
| 17 | + </div> | |
| 18 | + </div> | |
| 19 | + <div class="portfolio-project-views-wr"> | |
| 20 | + <div class="portfolio-project-views ico-views-bl"> | |
| 21 | + <div class="portfolio-project-views-img-wr"> | |
| 22 | + <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-1.png"/></div> | |
| 23 | + </div> | |
| 24 | + <div class="portfolio-project-views-txt">127</div> | |
| 25 | + </div> | |
| 26 | + <div class="portfolio-project-rati ico-views-bl"> | |
| 27 | + <div class="portfolio-project-views-img-wr"> | |
| 28 | + <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-2.png"/></div> | |
| 29 | + </div> | |
| 30 | + <div class="portfolio-project-views-txt">10.0</div> | |
| 31 | + </div> | |
| 32 | + <div class="ico-views-bl"> | |
| 33 | + <div class="portfolio-project-views-img-wr"> | |
| 34 | + <div class="portfolio-project-views-img"><img src="/images/portfolio-project/ico-3.png"/></div> | |
| 35 | + </div> | |
| 36 | + <div class="portfolio-project-views-txt">14</div> | |
| 37 | + </div> | |
| 38 | + </div> | |
| 39 | + <div class="portfolio-project-blocks-tags"><?= StringHelper::truncate(implode(', ',ArrayHelper::getColumn($model->specializations,'specialization_name')),20)?></div> | |
| 40 | +</div> | |
| 0 | 41 | \ No newline at end of file | ... | ... |
frontend/views/performer/portfolio.php
| ... | ... | @@ -34,7 +34,7 @@ $this->title = 'My Yii Application'; |
| 34 | 34 | <?= |
| 35 | 35 | ListView::widget( [ |
| 36 | 36 | 'dataProvider' => $portfolio, |
| 37 | - 'itemView'=>'portfolio_list_view', | |
| 37 | + 'itemView'=>'_portfolio_list_view', | |
| 38 | 38 | 'layout' => "{items}\n<div class='navi-buttons-wr style'>{pager}</div>" |
| 39 | 39 | ] ); |
| 40 | 40 | ?> | ... | ... |