Commit 86d3a6cfcf2ebbf7afdb1dcd13128b104ca251f5
1 parent
5cdf7baf
-Url manager done
Showing
1 changed file
with
435 additions
and
433 deletions
Show diff stats
frontend/views/layouts/main.php
| ... | ... | @@ -43,459 +43,461 @@ |
| 43 | 43 | $logo = $logo_img->getImagePathPrivate() ?? $logo; |
| 44 | 44 | } |
| 45 | 45 | } |
| 46 | + | |
| 47 | + $this->registerMetaTag( | |
| 48 | + [ | |
| 49 | + 'name' => 'description', | |
| 50 | + 'content' => $seo->desc, | |
| 51 | + ] | |
| 52 | + ) | |
| 46 | 53 | ?> |
| 47 | 54 | |
| 48 | 55 | <?php $this->beginPage() ?> |
| 49 | - | |
| 50 | - <!DOCTYPE html> | |
| 51 | - <html lang="<?= \Yii::$app->language ?>"> | |
| 52 | - <head> | |
| 53 | - <meta charset="<?= \Yii::$app->charset ?>"> | |
| 54 | - <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 55 | - <!-- Responsivity for older IE --> | |
| 56 | - <!--[if lt IE 9]> | |
| 57 | - <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> | |
| 58 | - <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
| 59 | - <![endif]--> | |
| 60 | - <?= Html::csrfMetaTags() ?> | |
| 61 | - <title><?= Html::encode($seo->title) ?></title> | |
| 62 | - <?php $this->head() ?> | |
| 63 | - </head> | |
| 64 | - <body> | |
| 65 | - <?php $this->beginBody() ?> | |
| 66 | - <div id="all"> | |
| 67 | - <header> | |
| 68 | - <!-- *** TOP *** | |
| 69 | - _________________________________________________________ --> | |
| 70 | - <div id="top"> | |
| 71 | - <div class="container"> | |
| 72 | - <div class="row"> | |
| 73 | - <div class="col-xs-5 contact"> | |
| 74 | - <p class="hidden-sm hidden-xs"> | |
| 75 | - <?php | |
| 76 | - if (!empty( $settings->phone )) { | |
| 77 | - echo \Yii::t('app', 'Contact us on '); | |
| 78 | - echo Html::a($settings->phone, "tel: {$settings->phone}"); | |
| 79 | - if (!empty( $settings->email )) { | |
| 80 | - echo \Yii::t('app', ' or '); | |
| 81 | - echo Html::a($settings->email, "mailto:$settings->email"); | |
| 82 | - } | |
| 83 | - } | |
| 84 | - ?> | |
| 85 | - </p> | |
| 86 | - <p class="hidden-md hidden-lg"> | |
| 87 | - <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a> | |
| 88 | - <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a> | |
| 89 | - </p> | |
| 90 | - </div> | |
| 91 | - <div class="col-xs-7"> | |
| 92 | - <div class="social"> | |
| 93 | - <?php | |
| 94 | - if (!empty( $settings->facebook )) { | |
| 95 | - echo Html::a( | |
| 96 | - Html::icon( | |
| 97 | - 'facebook', | |
| 98 | - [ | |
| 99 | - 'prefix' => 'fa fa-', | |
| 100 | - ] | |
| 101 | - ), | |
| 102 | - $settings->facebook, | |
| 103 | - [ | |
| 104 | - 'class' => 'external facebook', | |
| 105 | - 'data' => [ | |
| 106 | - 'animate-hover' => 'pulse', | |
| 107 | - ], | |
| 108 | - ] | |
| 109 | - ); | |
| 110 | - } | |
| 111 | - ?> | |
| 112 | - <?php | |
| 113 | - if (!empty( $settings->vk )) { | |
| 114 | - echo Html::a( | |
| 115 | - Html::icon( | |
| 116 | - 'vk', | |
| 117 | - [ | |
| 118 | - 'prefix' => 'fa fa-', | |
| 119 | - ] | |
| 120 | - ), | |
| 121 | - $settings->vk, | |
| 122 | - [ | |
| 123 | - 'class' => 'external vk', | |
| 124 | - 'data' => [ | |
| 125 | - 'animate-hover' => 'pulse', | |
| 126 | - ], | |
| 127 | - ] | |
| 128 | - ); | |
| 129 | - } | |
| 130 | - ?> | |
| 131 | - <?php | |
| 132 | - if (!empty( $settings->google )) { | |
| 133 | - echo Html::a( | |
| 134 | - Html::icon( | |
| 135 | - 'google-plus', | |
| 136 | - [ | |
| 137 | - 'prefix' => 'fa fa-', | |
| 138 | - ] | |
| 139 | - ), | |
| 140 | - $settings->google, | |
| 141 | - [ | |
| 142 | - 'class' => 'external gplus', | |
| 143 | - 'data' => [ | |
| 144 | - 'animate-hover' => 'pulse', | |
| 145 | - ], | |
| 146 | - ] | |
| 147 | - ); | |
| 148 | - } | |
| 149 | - ?> | |
| 150 | - <?php | |
| 151 | - if (!empty( $settings->twitter )) { | |
| 152 | - echo Html::a( | |
| 153 | - Html::icon( | |
| 154 | - 'twitter', | |
| 155 | - [ | |
| 156 | - 'prefix' => 'fa fa-', | |
| 157 | - ] | |
| 158 | - ), | |
| 159 | - $settings->twitter, | |
| 160 | - [ | |
| 161 | - 'class' => 'external twitter', | |
| 162 | - 'data' => [ | |
| 163 | - 'animate-hover' => 'pulse', | |
| 164 | - ], | |
| 165 | - ] | |
| 166 | - ); | |
| 167 | - } | |
| 168 | - ?> | |
| 169 | - <?php | |
| 170 | - if (!empty( $settings->ok )) { | |
| 171 | - echo Html::a( | |
| 172 | - Html::icon( | |
| 173 | - 'odnoklassniki', | |
| 174 | - [ | |
| 175 | - 'prefix' => 'fa fa-', | |
| 176 | - ] | |
| 177 | - ), | |
| 178 | - $settings->ok, | |
| 179 | - [ | |
| 180 | - 'class' => 'external odnoklassniki', | |
| 181 | - 'data' => [ | |
| 182 | - 'animate-hover' => 'pulse', | |
| 183 | - ], | |
| 184 | - ] | |
| 185 | - ); | |
| 186 | - } | |
| 187 | - ?> | |
| 188 | - <?php | |
| 189 | - if (!empty( $settings->email )) { | |
| 190 | - echo Html::a( | |
| 191 | - Html::icon( | |
| 192 | - 'envelope', | |
| 193 | - [ | |
| 194 | - 'prefix' => 'fa fa-', | |
| 195 | - ] | |
| 196 | - ), | |
| 197 | - "mailto:$settings->email", | |
| 198 | - [ | |
| 199 | - 'class' => 'email', | |
| 200 | - 'data' => [ | |
| 201 | - 'animate-hover' => 'pulse', | |
| 202 | - ], | |
| 203 | - ] | |
| 204 | - ); | |
| 205 | - } | |
| 206 | - ?> | |
| 207 | - </div> | |
| 208 | - </div> | |
| 209 | - </div> | |
| 210 | - </div> | |
| 211 | - </div> | |
| 212 | - <!-- *** TOP END *** --> | |
| 213 | - | |
| 214 | - <!-- *** NAVBAR *** | |
| 215 | - _________________________________________________________ --> | |
| 216 | - <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200"> | |
| 217 | - | |
| 218 | - <div class="navbar navbar-default yamm" role="navigation" id="navbar"> | |
| 219 | - | |
| 220 | - <div class="container"> | |
| 221 | - <div class="navbar-header"> | |
| 222 | - | |
| 223 | - <a class="navbar-brand home" href="<?php echo Url::home(); ?>"> | |
| 224 | - <?php | |
| 225 | - echo ImageHelper::set($logo) | |
| 226 | - ->setHeight(42) | |
| 227 | - ->renderImage( | |
| 228 | - [ | |
| 229 | - 'alt' => $settings->name, | |
| 230 | - ] | |
| 231 | - ) | |
| 232 | - ?> | |
| 233 | - </a> | |
| 234 | - <div class="navbar-buttons"> | |
| 235 | - <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation"> | |
| 236 | - <span class="sr-only">Toggle navigation</span> | |
| 237 | - <i class="fa fa-align-justify"></i> | |
| 238 | - </button> | |
| 239 | - </div> | |
| 240 | - </div> | |
| 241 | - | |
| 242 | - <div class="navbar-collapse collapse" id="navigation"> | |
| 243 | - <?php | |
| 244 | - $pagesLinks = []; | |
| 245 | - foreach ($pages as $page) { | |
| 246 | - $route = [ | |
| 247 | - 'page/view', | |
| 248 | - 'id' => $page->id, | |
| 249 | - ]; | |
| 250 | - if (!empty( $page->lang->alias ) && !empty( $page->lang->alias->route )) { | |
| 251 | - $route = Json::decode($page->lang->alias->route); | |
| 252 | - } | |
| 253 | - $pagesLinks[] = [ | |
| 254 | - 'label' => $page->lang->title, | |
| 255 | - 'url' => $route, | |
| 256 | - ]; | |
| 257 | - } | |
| 258 | - echo Nav::widget( | |
| 259 | - [ | |
| 260 | - 'items' => [ | |
| 261 | - [ | |
| 262 | - 'label' => \Yii::t('app', 'Home'), | |
| 263 | - 'url' => Url::home(), | |
| 264 | - ], | |
| 265 | - [ | |
| 266 | - 'label' => \Yii::t('app', 'Pages'), | |
| 267 | - 'items' => $pagesLinks, | |
| 268 | - 'visible' => count($pagesLinks), | |
| 269 | - ], | |
| 270 | - [ | |
| 271 | - 'label' => \Yii::t('app', 'Contatcs'), | |
| 272 | - 'url' => [ 'site/contact' ], | |
| 273 | - ], | |
| 274 | - [ | |
| 275 | - 'label' => \Yii::t('app', 'About'), | |
| 276 | - 'url' => [ 'site/about' ], | |
| 277 | - ], | |
| 278 | - ], | |
| 279 | - 'options' => [ | |
| 280 | - 'class' => 'nav navbar-nav navbar-right', | |
| 281 | - ], | |
| 282 | - ] | |
| 283 | - ); | |
| 284 | - ?> | |
| 285 | - </div> | |
| 286 | - | |
| 287 | - | |
| 288 | - <div class="collapse clearfix" id="search"> | |
| 289 | - | |
| 290 | - <form class="navbar-form" role="search"> | |
| 291 | - <div class="input-group"> | |
| 292 | - <input type="text" class="form-control" placeholder="Search"> | |
| 293 | - <span class="input-group-btn"> | |
| 56 | + | |
| 57 | + <!DOCTYPE html> | |
| 58 | + <html lang="<?= \Yii::$app->language ?>"> | |
| 59 | + <head> | |
| 60 | + <meta charset="<?= \Yii::$app->charset ?>"> | |
| 61 | + <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| 62 | + <?= Html::csrfMetaTags() ?> | |
| 63 | + <title><?= Html::encode($seo->title) ?></title> | |
| 64 | + <?php $this->head() ?> | |
| 65 | + </head> | |
| 66 | + <body> | |
| 67 | + <?php $this->beginBody() ?> | |
| 68 | + <div id="all"> | |
| 69 | + <header> | |
| 70 | + <!-- *** TOP *** | |
| 71 | +_________________________________________________________ --> | |
| 72 | + <div id="top"> | |
| 73 | + <div class="container"> | |
| 74 | + <div class="row"> | |
| 75 | + <div class="col-xs-5 contact"> | |
| 76 | + <p class="hidden-sm hidden-xs"> | |
| 77 | + <?php | |
| 78 | + if (!empty($settings->phone)) { | |
| 79 | + echo \Yii::t('app', 'Contact us on '); | |
| 80 | + echo Html::a($settings->phone, "tel: {$settings->phone}"); | |
| 81 | + if (!empty($settings->email)) { | |
| 82 | + echo \Yii::t('app', ' or '); | |
| 83 | + echo Html::a($settings->email, "mailto:$settings->email"); | |
| 84 | + } | |
| 85 | + } | |
| 86 | + ?> | |
| 87 | + </p> | |
| 88 | + <p class="hidden-md hidden-lg"> | |
| 89 | + <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a> | |
| 90 | + <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a> | |
| 91 | + </p> | |
| 92 | + </div> | |
| 93 | + <div class="col-xs-7"> | |
| 94 | + <div class="social"> | |
| 95 | + <?php | |
| 96 | + if (!empty($settings->facebook)) { | |
| 97 | + echo Html::a( | |
| 98 | + Html::icon( | |
| 99 | + 'facebook', | |
| 100 | + [ | |
| 101 | + 'prefix' => 'fa fa-', | |
| 102 | + ] | |
| 103 | + ), | |
| 104 | + $settings->facebook, | |
| 105 | + [ | |
| 106 | + 'class' => 'external facebook', | |
| 107 | + 'data' => [ | |
| 108 | + 'animate-hover' => 'pulse', | |
| 109 | + ], | |
| 110 | + ] | |
| 111 | + ); | |
| 112 | + } | |
| 113 | + ?> | |
| 114 | + <?php | |
| 115 | + if (!empty($settings->vk)) { | |
| 116 | + echo Html::a( | |
| 117 | + Html::icon( | |
| 118 | + 'vk', | |
| 119 | + [ | |
| 120 | + 'prefix' => 'fa fa-', | |
| 121 | + ] | |
| 122 | + ), | |
| 123 | + $settings->vk, | |
| 124 | + [ | |
| 125 | + 'class' => 'external vk', | |
| 126 | + 'data' => [ | |
| 127 | + 'animate-hover' => 'pulse', | |
| 128 | + ], | |
| 129 | + ] | |
| 130 | + ); | |
| 131 | + } | |
| 132 | + ?> | |
| 133 | + <?php | |
| 134 | + if (!empty($settings->google)) { | |
| 135 | + echo Html::a( | |
| 136 | + Html::icon( | |
| 137 | + 'google-plus', | |
| 138 | + [ | |
| 139 | + 'prefix' => 'fa fa-', | |
| 140 | + ] | |
| 141 | + ), | |
| 142 | + $settings->google, | |
| 143 | + [ | |
| 144 | + 'class' => 'external gplus', | |
| 145 | + 'data' => [ | |
| 146 | + 'animate-hover' => 'pulse', | |
| 147 | + ], | |
| 148 | + ] | |
| 149 | + ); | |
| 150 | + } | |
| 151 | + ?> | |
| 152 | + <?php | |
| 153 | + if (!empty($settings->twitter)) { | |
| 154 | + echo Html::a( | |
| 155 | + Html::icon( | |
| 156 | + 'twitter', | |
| 157 | + [ | |
| 158 | + 'prefix' => 'fa fa-', | |
| 159 | + ] | |
| 160 | + ), | |
| 161 | + $settings->twitter, | |
| 162 | + [ | |
| 163 | + 'class' => 'external twitter', | |
| 164 | + 'data' => [ | |
| 165 | + 'animate-hover' => 'pulse', | |
| 166 | + ], | |
| 167 | + ] | |
| 168 | + ); | |
| 169 | + } | |
| 170 | + ?> | |
| 171 | + <?php | |
| 172 | + if (!empty($settings->ok)) { | |
| 173 | + echo Html::a( | |
| 174 | + Html::icon( | |
| 175 | + 'odnoklassniki', | |
| 176 | + [ | |
| 177 | + 'prefix' => 'fa fa-', | |
| 178 | + ] | |
| 179 | + ), | |
| 180 | + $settings->ok, | |
| 181 | + [ | |
| 182 | + 'class' => 'external odnoklassniki', | |
| 183 | + 'data' => [ | |
| 184 | + 'animate-hover' => 'pulse', | |
| 185 | + ], | |
| 186 | + ] | |
| 187 | + ); | |
| 188 | + } | |
| 189 | + ?> | |
| 190 | + <?php | |
| 191 | + if (!empty($settings->email)) { | |
| 192 | + echo Html::a( | |
| 193 | + Html::icon( | |
| 194 | + 'envelope', | |
| 195 | + [ | |
| 196 | + 'prefix' => 'fa fa-', | |
| 197 | + ] | |
| 198 | + ), | |
| 199 | + "mailto:$settings->email", | |
| 200 | + [ | |
| 201 | + 'class' => 'email', | |
| 202 | + 'data' => [ | |
| 203 | + 'animate-hover' => 'pulse', | |
| 204 | + ], | |
| 205 | + ] | |
| 206 | + ); | |
| 207 | + } | |
| 208 | + ?> | |
| 209 | + </div> | |
| 210 | + </div> | |
| 211 | + </div> | |
| 212 | + </div> | |
| 213 | + </div> | |
| 214 | + <!-- *** TOP END *** --> | |
| 215 | + | |
| 216 | + <!-- *** NAVBAR *** | |
| 217 | + _________________________________________________________ --> | |
| 218 | + <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200"> | |
| 219 | + | |
| 220 | + <div class="navbar navbar-default yamm" role="navigation" id="navbar"> | |
| 221 | + | |
| 222 | + <div class="container"> | |
| 223 | + <div class="navbar-header"> | |
| 224 | + | |
| 225 | + <a class="navbar-brand home" href="<?php echo Url::home(); ?>"> | |
| 226 | + <?php | |
| 227 | + echo ImageHelper::set($logo) | |
| 228 | + ->setHeight(42) | |
| 229 | + ->renderImage( | |
| 230 | + [ | |
| 231 | + 'alt' => $settings->name, | |
| 232 | + ] | |
| 233 | + ) | |
| 234 | + ?> | |
| 235 | + </a> | |
| 236 | + <div class="navbar-buttons"> | |
| 237 | + <button type="button" class="navbar-toggle btn-template-main" data-toggle="collapse" data-target="#navigation"> | |
| 238 | + <span class="sr-only">Toggle navigation</span> | |
| 239 | + <i class="fa fa-align-justify"></i> | |
| 240 | + </button> | |
| 241 | + </div> | |
| 242 | + </div> | |
| 243 | + | |
| 244 | + <div class="navbar-collapse collapse" id="navigation"> | |
| 245 | + <?php | |
| 246 | + $pagesLinks = []; | |
| 247 | + foreach ($pages as $page) { | |
| 248 | + $route = [ | |
| 249 | + 'page/view', | |
| 250 | + 'id' => $page->id, | |
| 251 | + ]; | |
| 252 | + if (!empty($page->lang->alias) && !empty($page->lang->alias->route)) { | |
| 253 | + $route = Json::decode($page->lang->alias->route); | |
| 254 | + } | |
| 255 | + $pagesLinks[] = [ | |
| 256 | + 'label' => $page->lang->title, | |
| 257 | + 'url' => $route, | |
| 258 | + ]; | |
| 259 | + } | |
| 260 | + echo Nav::widget( | |
| 261 | + [ | |
| 262 | + 'items' => [ | |
| 263 | + [ | |
| 264 | + 'label' => \Yii::t('app', 'Home'), | |
| 265 | + 'url' => [ 'site/index' ], | |
| 266 | + ], | |
| 267 | + [ | |
| 268 | + 'label' => \Yii::t('app', 'Pages'), | |
| 269 | + 'items' => $pagesLinks, | |
| 270 | + 'visible' => count($pagesLinks), | |
| 271 | + ], | |
| 272 | + [ | |
| 273 | + 'label' => \Yii::t('app', 'Contatcs'), | |
| 274 | + 'url' => [ 'site/contact' ], | |
| 275 | + ], | |
| 276 | + [ | |
| 277 | + 'label' => \Yii::t('app', 'About'), | |
| 278 | + 'url' => [ 'site/about' ], | |
| 279 | + ], | |
| 280 | + ], | |
| 281 | + 'options' => [ | |
| 282 | + 'class' => 'nav navbar-nav navbar-right', | |
| 283 | + ], | |
| 284 | + ] | |
| 285 | + ); | |
| 286 | + ?> | |
| 287 | + </div> | |
| 288 | + | |
| 289 | + | |
| 290 | + <div class="collapse clearfix" id="search"> | |
| 291 | + | |
| 292 | + <form class="navbar-form" role="search"> | |
| 293 | + <div class="input-group"> | |
| 294 | + <input type="text" class="form-control" placeholder="Search"> | |
| 295 | + <span class="input-group-btn"> | |
| 294 | 296 | |
| 295 | 297 | <button type="submit" class="btn btn-template-main"><i class="fa fa-search"></i></button> |
| 296 | 298 | |
| 297 | 299 | </span> |
| 298 | - </div> | |
| 299 | - </form> | |
| 300 | - | |
| 301 | - </div> | |
| 302 | - <!--/.nav-collapse --> | |
| 303 | - | |
| 304 | - </div> | |
| 305 | - | |
| 306 | - | |
| 307 | - </div> | |
| 308 | - <!-- /#navbar --> | |
| 309 | - | |
| 310 | 300 | </div> |
| 311 | - | |
| 312 | - <!-- *** NAVBAR END *** --> | |
| 313 | - | |
| 314 | - </header> | |
| 315 | - | |
| 316 | - <!-- *** FeedBack MODAL *** | |
| 317 | - _________________________________________________________ --> | |
| 301 | + </form> | |
| 318 | 302 | |
| 319 | - <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true"> | |
| 320 | - <div class="modal-dialog"> | |
| 321 | - | |
| 322 | - <div class="modal-content"> | |
| 323 | - <div class="modal-header"> | |
| 324 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 325 | - <h3 class="modal-title" id="Login">Feedback</h3> | |
| 326 | - </div> | |
| 327 | - <div class="modal-body"> | |
| 328 | - | |
| 329 | - <?php $form = ActiveForm::begin( | |
| 330 | - [ | |
| 331 | - 'id' => 'feedback-form', | |
| 332 | - 'method' => 'POST', | |
| 333 | - 'action' => '/site/feedback', | |
| 334 | - ] | |
| 335 | - ); ?> | |
| 336 | - | |
| 337 | - <?= $form->field($feedback, 'name') | |
| 338 | - ->textInput(); ?> | |
| 339 | - | |
| 340 | - <?= $form->field($feedback, 'email') | |
| 341 | - ->textInput(); ?> | |
| 342 | - | |
| 343 | - <?= $form->field($feedback, 'phone') | |
| 344 | - ->textInput(); ?> | |
| 345 | - | |
| 346 | - <?= $form->field($feedback, 'message') | |
| 347 | - ->textarea( | |
| 348 | - [ | |
| 349 | - 'rows' => 4, | |
| 350 | - ] | |
| 351 | - ); ?> | |
| 352 | - | |
| 353 | - <p class="text-center"> | |
| 354 | - <?= Html::submitButton( | |
| 355 | - 'Send', | |
| 356 | - [ | |
| 357 | - 'class' => 'send-form btn btn-lg btn-template-primary', | |
| 358 | - ] | |
| 359 | - ) ?> | |
| 360 | - </p> | |
| 361 | - | |
| 362 | - <?php ActiveForm::end(); ?> | |
| 363 | - | |
| 364 | - </div> | |
| 365 | - </div> | |
| 366 | - </div> | |
| 367 | 303 | </div> |
| 304 | + <!--/.nav-collapse --> | |
| 305 | + | |
| 306 | + </div> | |
| 307 | + | |
| 308 | + | |
| 309 | + </div> | |
| 310 | + <!-- /#navbar --> | |
| 311 | + | |
| 312 | + </div> | |
| 313 | + | |
| 314 | + <!-- *** NAVBAR END *** --> | |
| 315 | + | |
| 316 | + </header> | |
| 317 | + | |
| 318 | + <!-- *** FeedBack MODAL *** | |
| 319 | +_________________________________________________________ --> | |
| 320 | + | |
| 321 | + <div class="modal fade" id="feedback-modal" tabindex="-1" role="dialog" aria-labelledby="Login" aria-hidden="true"> | |
| 322 | + <div class="modal-dialog"> | |
| 323 | + | |
| 324 | + <div class="modal-content"> | |
| 325 | + <div class="modal-header"> | |
| 326 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 327 | + <h3 class="modal-title" id="Login">Feedback</h3> | |
| 328 | + </div> | |
| 329 | + <div class="modal-body"> | |
| 330 | + | |
| 331 | + <?php $form = ActiveForm::begin( | |
| 332 | + [ | |
| 333 | + 'id' => 'feedback-form', | |
| 334 | + 'method' => 'POST', | |
| 335 | + 'action' => '/site/feedback', | |
| 336 | + ] | |
| 337 | + ); ?> | |
| 338 | + | |
| 339 | + <?= $form->field($feedback, 'name') | |
| 340 | + ->textInput(); ?> | |
| 341 | + | |
| 342 | + <?= $form->field($feedback, 'email') | |
| 343 | + ->textInput(); ?> | |
| 344 | + | |
| 345 | + <?= $form->field($feedback, 'phone') | |
| 346 | + ->textInput(); ?> | |
| 347 | + | |
| 348 | + <?= $form->field($feedback, 'message') | |
| 349 | + ->textarea( | |
| 350 | + [ | |
| 351 | + 'rows' => 4, | |
| 352 | + ] | |
| 353 | + ); ?> | |
| 368 | 354 | |
| 369 | - <!-- *** FeedBack MODAL END *** --> | |
| 370 | - | |
| 371 | - <!-- *** FeedBack MODAL *** | |
| 372 | - _________________________________________________________ --> | |
| 355 | + <p class="text-center"> | |
| 356 | + <?= Html::submitButton( | |
| 357 | + 'Send', | |
| 358 | + [ | |
| 359 | + 'class' => 'send-form btn btn-lg btn-template-primary', | |
| 360 | + ] | |
| 361 | + ) ?> | |
| 362 | + </p> | |
| 363 | + | |
| 364 | + <?php ActiveForm::end(); ?> | |
| 365 | + | |
| 366 | + </div> | |
| 367 | + </div> | |
| 368 | + </div> | |
| 369 | + </div> | |
| 370 | + | |
| 371 | + <!-- *** FeedBack MODAL END *** --> | |
| 372 | + | |
| 373 | + <!-- *** FeedBack MODAL *** | |
| 374 | +_________________________________________________________ --> | |
| 375 | + | |
| 376 | + <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true"> | |
| 377 | + <div class="modal-dialog"> | |
| 378 | + | |
| 379 | + <div class="modal-content"> | |
| 380 | + <div class="modal-header"> | |
| 381 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 382 | + <h3 class="modal-title" id="Success">Success</h3> | |
| 383 | + </div> | |
| 384 | + <div class="modal-body"> | |
| 373 | 385 | |
| 374 | - <div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="Success" aria-hidden="true"> | |
| 375 | - <div class="modal-dialog"> | |
| 376 | - | |
| 377 | - <div class="modal-content"> | |
| 378 | - <div class="modal-header"> | |
| 379 | - <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | |
| 380 | - <h3 class="modal-title" id="Success">Success</h3> | |
| 381 | - </div> | |
| 382 | - <div class="modal-body"> | |
| 383 | - | |
| 384 | - <p>Thank for your reply, we will call you, maybe.</p> | |
| 385 | - <p class="text-center"> | |
| 386 | - <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button> | |
| 387 | - </p> | |
| 388 | - </div> | |
| 389 | - </div> | |
| 386 | + <p>Thank for your reply, we will call you, maybe.</p> | |
| 387 | + <p class="text-center"> | |
| 388 | + <button type="button" class="btn btn-template-primary" data-dismiss="modal">Close</button> | |
| 389 | + </p> | |
| 390 | + </div> | |
| 391 | + </div> | |
| 392 | + </div> | |
| 393 | + </div> | |
| 394 | + | |
| 395 | + <!-- *** FeedBack MODAL END *** --> | |
| 396 | + | |
| 397 | + <!-- *** Breadcrumbs *** --> | |
| 398 | + <?php | |
| 399 | + if (!$isHome) { | |
| 400 | + ?> | |
| 401 | + <div id="heading-breadcrumbs"> | |
| 402 | + <div class="container"> | |
| 403 | + <div class="row"> | |
| 404 | + <div class="col-md-7"> | |
| 405 | + <h1><?= $seo->h1 ?></h1> | |
| 406 | + </div> | |
| 407 | + <div class="col-md-5"> | |
| 408 | + <?= Breadcrumbs::widget( | |
| 409 | + [ | |
| 410 | + 'links' => isset($this->params[ 'breadcrumbs' ]) ? $this->params[ 'breadcrumbs' ] : [], | |
| 411 | + ] | |
| 412 | + ) ?> | |
| 413 | + | |
| 414 | + </div> | |
| 390 | 415 | </div> |
| 416 | + </div> | |
| 391 | 417 | </div> |
| 392 | - | |
| 393 | - <!-- *** FeedBack MODAL END *** --> | |
| 394 | - | |
| 395 | - <!-- *** Breadcrumbs *** --> | |
| 418 | + <?php | |
| 419 | + } | |
| 420 | + ?> | |
| 421 | + <!-- *** Breadcrumbs END *** --> | |
| 422 | + | |
| 423 | + <?= $content ?> | |
| 424 | + | |
| 425 | + <!-- *** FOOTER *** | |
| 426 | +_________________________________________________________ --> | |
| 427 | + | |
| 428 | + <footer id="footer"> | |
| 429 | + <div class="container"> | |
| 430 | + <div class="col-md-6 col-sm-12"> | |
| 396 | 431 | <?php |
| 397 | - if (!$isHome) { | |
| 432 | + if (!empty($settings->about)) { | |
| 398 | 433 | ?> |
| 399 | - <div id="heading-breadcrumbs"> | |
| 400 | - <div class="container"> | |
| 401 | - <div class="row"> | |
| 402 | - <div class="col-md-7"> | |
| 403 | - <h1><?= $seo->h1 ?></h1> | |
| 404 | - </div> | |
| 405 | - <div class="col-md-5"> | |
| 406 | - <?= Breadcrumbs::widget( | |
| 407 | - [ | |
| 408 | - 'links' => isset( $this->params[ 'breadcrumbs' ] ) ? $this->params[ 'breadcrumbs' ] : [], | |
| 409 | - ] | |
| 410 | - ) ?> | |
| 411 | - | |
| 412 | - </div> | |
| 413 | - </div> | |
| 414 | - </div> | |
| 415 | - </div> | |
| 434 | + <h4><?php echo \Yii::t('app', 'About us'); ?></h4> | |
| 435 | + <p><?php echo $settings->about; ?></p> | |
| 416 | 436 | <?php |
| 417 | 437 | } |
| 418 | 438 | ?> |
| 419 | - <!-- *** Breadcrumbs END *** --> | |
| 420 | - | |
| 421 | - <?= $content ?> | |
| 422 | - | |
| 423 | - <!-- *** FOOTER *** | |
| 424 | - _________________________________________________________ --> | |
| 425 | - | |
| 426 | - <footer id="footer"> | |
| 427 | - <div class="container"> | |
| 428 | - <div class="col-md-6 col-sm-12"> | |
| 429 | - <?php | |
| 430 | - if (!empty( $settings->about )) { | |
| 431 | - ?> | |
| 432 | - <h4><?php echo \Yii::t('app', 'About us'); ?></h4> | |
| 433 | - <p><?php echo $settings->about; ?></p> | |
| 434 | - <?php | |
| 435 | - } | |
| 436 | - ?> | |
| 437 | - <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal">Contact us!</a> | |
| 438 | - </div> | |
| 439 | - | |
| 440 | - <div class="col-md-4 col-sm-12 col-md-offset-2"> | |
| 441 | - | |
| 442 | - <h4><?php echo \Yii::t('app', 'Contact'); ?></h4> | |
| 443 | - | |
| 444 | - <p> | |
| 445 | - <?php | |
| 446 | - if (!empty( $settings->office )) { | |
| 447 | - echo \Yii::t( | |
| 448 | - 'app', | |
| 449 | - 'Office {office}', | |
| 450 | - [ | |
| 451 | - 'office' => $settings->office, | |
| 452 | - ] | |
| 453 | - ) . Html::tag('br'); | |
| 454 | - } | |
| 455 | - if (!empty( $settings->street )) { | |
| 456 | - echo $settings->street; | |
| 457 | - if (!empty( $settings->house )) { | |
| 458 | - echo " " . $settings->house; | |
| 459 | - } | |
| 460 | - echo Html::tag('br'); | |
| 461 | - } | |
| 462 | - if (!empty( $settings->city )) { | |
| 463 | - echo $settings->city; | |
| 464 | - echo Html::tag('br'); | |
| 465 | - } | |
| 466 | - if (!empty( $settings->country )) { | |
| 467 | - echo Html::tag('strong', $settings->country); | |
| 468 | - } | |
| 469 | - ?> | |
| 470 | - </p> | |
| 471 | - | |
| 472 | - <?= Html::a( | |
| 473 | - 'Go to contact page', | |
| 474 | - [ 'site/contact' ], | |
| 475 | - [ | |
| 476 | - 'class' => 'btn btn-small btn-template-transparent-primary', | |
| 477 | - ] | |
| 478 | - ) ?> | |
| 479 | - | |
| 480 | - <hr class="hidden-md hidden-lg hidden-sm"> | |
| 481 | - | |
| 482 | - </div> | |
| 483 | - | |
| 484 | - <div class="col-md-12"> | |
| 485 | - <p class="pull-left">© <?= date('Y') ?>. <?= $settings->name; ?></p> | |
| 486 | - </div> | |
| 487 | - </div> | |
| 488 | - <!-- /.container --> | |
| 489 | - </footer> | |
| 490 | - <!-- /#footer --> | |
| 491 | - | |
| 492 | - <!-- *** FOOTER END *** --> | |
| 439 | + <a href="#" class="btn btn-template-transparent-primary" data-toggle="modal" data-target="#feedback-modal">Contact us!</a> | |
| 440 | + </div> | |
| 441 | + | |
| 442 | + <div class="col-md-4 col-sm-12 col-md-offset-2"> | |
| 443 | + | |
| 444 | + <h4><?php echo \Yii::t('app', 'Contact'); ?></h4> | |
| 445 | + | |
| 446 | + <p> | |
| 447 | + <?php | |
| 448 | + if (!empty($settings->office)) { | |
| 449 | + echo \Yii::t( | |
| 450 | + 'app', | |
| 451 | + 'Office {office}', | |
| 452 | + [ | |
| 453 | + 'office' => $settings->office, | |
| 454 | + ] | |
| 455 | + ) . Html::tag('br'); | |
| 456 | + } | |
| 457 | + if (!empty($settings->street)) { | |
| 458 | + echo $settings->street; | |
| 459 | + if (!empty($settings->house)) { | |
| 460 | + echo " " . $settings->house; | |
| 461 | + } | |
| 462 | + echo Html::tag('br'); | |
| 463 | + } | |
| 464 | + if (!empty($settings->city)) { | |
| 465 | + echo $settings->city; | |
| 466 | + echo Html::tag('br'); | |
| 467 | + } | |
| 468 | + if (!empty($settings->country)) { | |
| 469 | + echo Html::tag('strong', $settings->country); | |
| 470 | + } | |
| 471 | + ?> | |
| 472 | + </p> | |
| 493 | 473 | |
| 494 | - <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span> | |
| 474 | + <?= Html::a( | |
| 475 | + 'Go to contact page', | |
| 476 | + [ 'site/contact' ], | |
| 477 | + [ | |
| 478 | + 'class' => 'btn btn-small btn-template-transparent-primary', | |
| 479 | + ] | |
| 480 | + ) ?> | |
| 481 | + | |
| 482 | + <hr class="hidden-md hidden-lg hidden-sm"> | |
| 483 | + | |
| 484 | + </div> | |
| 495 | 485 | |
| 486 | + <div class="col-md-12"> | |
| 487 | + <p class="pull-left">© <?= date('Y') ?>. <?= $settings->name; ?></p> | |
| 496 | 488 | </div> |
| 497 | - <!-- /#all --> | |
| 498 | - <?php $this->endBody() ?> | |
| 499 | - </body> | |
| 500 | - </html> | |
| 489 | + </div> | |
| 490 | + <!-- /.container --> | |
| 491 | + </footer> | |
| 492 | + <!-- /#footer --> | |
| 493 | + | |
| 494 | + <!-- *** FOOTER END *** --> | |
| 495 | + | |
| 496 | + <span id="back-to-top" title="Back to top"><i class="fa fa-arrow-up"></i></span> | |
| 497 | + | |
| 498 | + </div> | |
| 499 | + <!-- /#all --> | |
| 500 | + <?php $this->endBody() ?> | |
| 501 | + </body> | |
| 502 | + </html> | |
| 501 | 503 | <?php $this->endPage() ?> |
| 502 | 504 | \ No newline at end of file | ... | ... |