Commit 7191275504628573c7d18015d104b99363633f0b
1 parent
149959cb
Убрал маску с телефона, выронял figcapture
Showing
4 changed files
with
12 additions
and
6 deletions
 
Show diff stats
frontend/models/Feedback.php
| @@ -6,19 +6,19 @@ | @@ -6,19 +6,19 @@ | ||
| 6 | */ | 6 | */ | 
| 7 | 7 | ||
| 8 | namespace frontend\models; | 8 | namespace frontend\models; | 
| 9 | - | ||
| 10 | use artbox\core\models\Feedback as ArtboxCoreFeedback; | 9 | use artbox\core\models\Feedback as ArtboxCoreFeedback; | 
| 11 | 10 | ||
| 11 | + | ||
| 12 | class Feedback extends ArtboxCoreFeedback | 12 | class Feedback extends ArtboxCoreFeedback | 
| 13 | { | 13 | { | 
| 14 | - public function rules() | 14 | + public function rules() | 
| 15 | { | 15 | { | 
| 16 | return [ | 16 | return [ | 
| 17 | [ | 17 | [ | 
| 18 | [ | 18 | [ | 
| 19 | 'name', | 19 | 'name', | 
| 20 | 'email', | 20 | 'email', | 
| 21 | - 'phone', | 21 | + 'phone', | 
| 22 | ], | 22 | ], | 
| 23 | 'required', | 23 | 'required', | 
| 24 | 'on' => self::SCENARIO_DEFAULT, | 24 | 'on' => self::SCENARIO_DEFAULT, | 
| @@ -47,7 +47,6 @@ class Feedback extends ArtboxCoreFeedback | @@ -47,7 +47,6 @@ class Feedback extends ArtboxCoreFeedback | ||
| 47 | 'email', | 47 | 'email', | 
| 48 | 'message' => \Yii::t('app', 'Wrong email'), | 48 | 'message' => \Yii::t('app', 'Wrong email'), | 
| 49 | ], | 49 | ], | 
| 50 | - | ||
| 51 | [ | 50 | [ | 
| 52 | [ | 51 | [ | 
| 53 | 'name', | 52 | 'name', | 
| @@ -73,6 +72,7 @@ class Feedback extends ArtboxCoreFeedback | @@ -73,6 +72,7 @@ class Feedback extends ArtboxCoreFeedback | ||
| 73 | 'returnUrl', | 72 | 'returnUrl', | 
| 74 | 'safe', | 73 | 'safe', | 
| 75 | ], | 74 | ], | 
| 75 | + | ||
| 76 | ]; | 76 | ]; | 
| 77 | } | 77 | } | 
| 78 | 78 | 
frontend/views/gallery/index.php
| @@ -26,7 +26,8 @@ | @@ -26,7 +26,8 @@ | ||
| 26 | $gallery->image->getPath() | 26 | $gallery->image->getPath() | 
| 27 | )[ 0 ] ?>x<?= getimagesize($gallery->image->getPath() | 27 | )[ 0 ] ?>x<?= getimagesize($gallery->image->getPath() | 
| 28 | )[ 1 ] ?>"> | 28 | )[ 1 ] ?>"> | 
| 29 | - <figcaption class="image_figcapture"> <?=$gallery->language->title;?></figcaption> | 29 | + <figcaption class="image_figcapture figcaption_h_40px" | 
| 30 | + > <?= $gallery->language->title; ?></figcaption> | ||
| 30 | <img src="<?= ImageHelper::set($gallery->image->getPath()) | 31 | <img src="<?= ImageHelper::set($gallery->image->getPath()) | 
| 31 | ->cropResize(360, 216) | 32 | ->cropResize(360, 216) | 
| 32 | ->quality(82) | 33 | ->quality(82) | 
frontend/views/site/contact.php
| @@ -117,7 +117,7 @@ JS; | @@ -117,7 +117,7 @@ JS; | ||
| 117 | <h2> <?=\Yii::t('app', 'Contact form')?> </h2> | 117 | <h2> <?=\Yii::t('app', 'Contact form')?> </h2> | 
| 118 | </div> | 118 | </div> | 
| 119 | </div> | 119 | </div> | 
| 120 | - | 120 | + | 
| 121 | <div class="col-md-8 col-md-offset-2"> | 121 | <div class="col-md-8 col-md-offset-2"> | 
| 122 | <?=$module->renderForm($this)?> | 122 | <?=$module->renderForm($this)?> | 
| 123 | 123 | 
frontend/web/css/site.css
| @@ -124,3 +124,8 @@ a.desc:after { | @@ -124,3 +124,8 @@ a.desc:after { | ||
| 124 | font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | 124 | font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif; | 
| 125 | } | 125 | } | 
| 126 | 126 | ||
| 127 | +.figcaption_h_40px { | ||
| 128 | + display: block; | ||
| 129 | + height: 40px; | ||
| 130 | + | ||
| 131 | +} | ||
| 127 | \ No newline at end of file | 132 | \ No newline at end of file | 
