Commit 1ff5f258633a765d6a07e186fe94a9bcb96f4382
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
62 additions
and
3 deletions
Show diff stats
frontend/views/layouts/main.php
| ... | ... | @@ -63,6 +63,24 @@ |
| 63 | 63 | <?= Html::csrfMetaTags() ?> |
| 64 | 64 | <title><?= !empty(Html::encode($seo->title))?Html::encode($seo->title):(isset($this->params['title'])?$this->params['title']:'')?></title> |
| 65 | 65 | <?php $this->head() ?> |
| 66 | + <style> | |
| 67 | + html,body{padding:0!important;margin:0!important;} | |
| 68 | + #heading-breadcrumbs{background: #986dbd;color:#fff;} | |
| 69 | + #heading-breadcrumbs h1{color:#fff;} | |
| 70 | + #heading-breadcrumbs ul li a span{color: #c1a7d7;} | |
| 71 | + #heading-breadcrumbs .breadcrumb>.active{color: #d6c5e5;} | |
| 72 | + #heading-breadcrumbs .breadcrumb>li+li:before{color: #d6c5e5;} | |
| 73 | + #back-to-top {background: #8f67b1;} | |
| 74 | + #back-to-top:hover {background: #653d87;} | |
| 75 | + .owl-item .item {position: relative;height: 0;padding-bottom: 59%;max-height: 500px;overflow: hidden;} | |
| 76 | + .owl-item .item .itemimage {position: absolute;width: 100%;height: 100%;background-position: center center;background-size: cover;} | |
| 77 | + .owl-carousel .owl-wrapper-outer{background-color: #e8e7e9;} | |
| 78 | + @media(max-width:767px){ | |
| 79 | + .dropdown-menu li a{max-width: 100%;display: block;white-space: normal;} | |
| 80 | + .btn-template-transparent-primary{margin: 10px 0px;} | |
| 81 | + } | |
| 82 | + .navbar-affixed-top.affix{z-index:10000;} | |
| 83 | + </style> | |
| 66 | 84 | </head> |
| 67 | 85 | <body> |
| 68 | 86 | <?php $this->beginBody() ?> |
| ... | ... | @@ -97,8 +115,15 @@ _________________________________________________________ --> |
| 97 | 115 | ?> |
| 98 | 116 | </p> |
| 99 | 117 | <p class="hidden-md hidden-lg"> |
| 100 | - <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a> | |
| 101 | - <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a> | |
| 118 | + <?php | |
| 119 | + if (!empty($settings->phone)) { | |
| 120 | + $phone = str_replace(' ', '', $settings->phone); | |
| 121 | + echo '<a href="tel:'.$phone.'" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>'; | |
| 122 | + if (!empty($settings->email)) { | |
| 123 | + echo '<a href="mailto:'.$settings->email.'" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>'; | |
| 124 | + } | |
| 125 | + } | |
| 126 | + ?> | |
| 102 | 127 | </p> |
| 103 | 128 | </div> |
| 104 | 129 | <div class="col-xs-7"> | ... | ... |
frontend/views/page/view.php
| ... | ... | @@ -42,7 +42,7 @@ |
| 42 | 42 | |
| 43 | 43 | <?php foreach ($images as $image) { ?> |
| 44 | 44 | <div class="item"> |
| 45 | - <img class="img-responsive" src="<?= $image->getUrl() ?>" alt=""> | |
| 45 | + <div class="itemimage" style="background-image:url(<?= $image->getUrl() ?>)"></div> | |
| 46 | 46 | </div> |
| 47 | 47 | <?php } ?> |
| 48 | 48 | ... | ... |
frontend/web/css/custom.css
| 1 | 1 | /* your styles go here */ |
| 2 | 2 | /* CSS used here will be applied after bootstrap.css */ |
| 3 | +html,body{padding:0!important;margin:0!important;} | |
| 3 | 4 | .modal-header-success { |
| 4 | 5 | color: #fff; |
| 5 | 6 | padding: 9px 15px; |
| ... | ... | @@ -202,4 +203,37 @@ span.panel-title{ |
| 202 | 203 | } |
| 203 | 204 | @media(max-width:1199px){ |
| 204 | 205 | #error-page br{display:none;} |
| 206 | +} | |
| 207 | +.navbar-affixed-top.affix{z-index:10000;} | |
| 208 | +#heading-breadcrumbs{background: #986dbd;color:#fff;} | |
| 209 | +#heading-breadcrumbs h1{color:#fff;} | |
| 210 | +#heading-breadcrumbs ul li a span{color: #c1a7d7;} | |
| 211 | +#heading-breadcrumbs .breadcrumb>.active{color: #d6c5e5;} | |
| 212 | +#heading-breadcrumbs .breadcrumb>li+li:before{color: #d6c5e5;} | |
| 213 | +#back-to-top {background: #8f67b1;} | |
| 214 | +#back-to-top:hover {background: #653d87;} | |
| 215 | +.owl-carousel .owl-wrapper-outer{background-color: #e8e7e9;} | |
| 216 | +.owl-item .item { | |
| 217 | + position: relative; | |
| 218 | + height: 0; | |
| 219 | + padding-bottom: 59%; | |
| 220 | + max-height: 500px; | |
| 221 | + overflow: hidden; | |
| 222 | +} | |
| 223 | +.owl-item .item .itemimage { | |
| 224 | + position: absolute; | |
| 225 | + width: 100%; | |
| 226 | + height: 100%; | |
| 227 | + background-position: center center; | |
| 228 | + background-size: cover; | |
| 229 | +} | |
| 230 | +@media(max-width:767px){ | |
| 231 | + .dropdown-menu li a{ | |
| 232 | + max-width: 100%; | |
| 233 | + display: block; | |
| 234 | + white-space: normal; | |
| 235 | + } | |
| 236 | + .btn-template-transparent-primary{ | |
| 237 | + margin: 10px 0px; | |
| 238 | + } | |
| 205 | 239 | } |
| 206 | 240 | \ No newline at end of file | ... | ... |