Commit 59d6e2b6e01a3524fdf70fcf0a2729200ee10d29

Authored by Eugeny Galkovskiy
1 parent b85a0cc7

вернул top

Showing 1 changed file with 145 additions and 1 deletions   Show diff stats
frontend/views/layouts/main.php
... ... @@ -98,7 +98,151 @@
98 98 <?php } ?>
99 99 <div id="all">
100 100 <header>
101   -
  101 + <!-- *** TOP ***
  102 + _________________________________________________________ -->
  103 + <div id="top">
  104 + <div class="container">
  105 + <div class="row">
  106 + <div class="col-xs-5 contact">
  107 + <p class="hidden-sm hidden-xs">
  108 + <?php
  109 + if (!empty($settings->phone)) {
  110 + echo \Yii::t('app', 'Contact us on ');
  111 + echo Html::a($settings->phone, "tel: {$settings->phone}");
  112 + if (!empty($settings->email)) {
  113 + echo \Yii::t('app', ' or ');
  114 + echo Html::a($settings->email, "mailto:$settings->email");
  115 + }
  116 + }
  117 + ?>
  118 + </p>
  119 + <p class="hidden-md hidden-lg">
  120 + <a href="#" data-animate-hover="pulse"><i class="fa fa-phone"></i></a>
  121 + <a href="#" data-animate-hover="pulse"><i class="fa fa-envelope"></i></a>
  122 + </p>
  123 + </div>
  124 + <div class="col-xs-7">
  125 + <div class="social">
  126 + <?php
  127 + if (!empty($settings->facebook)) {
  128 + echo Html::a(
  129 + Html::icon(
  130 + 'facebook',
  131 + [
  132 + 'prefix' => 'fa fa-',
  133 + ]
  134 + ),
  135 + $settings->facebook,
  136 + [
  137 + 'class' => 'external facebook',
  138 + 'data' => [
  139 + 'animate-hover' => 'pulse',
  140 + ],
  141 + ]
  142 + );
  143 + }
  144 + ?>
  145 + <?php
  146 + if (!empty($settings->vk)) {
  147 + echo Html::a(
  148 + Html::icon(
  149 + 'vk',
  150 + [
  151 + 'prefix' => 'fa fa-',
  152 + ]
  153 + ),
  154 + $settings->vk,
  155 + [
  156 + 'class' => 'external vk',
  157 + 'data' => [
  158 + 'animate-hover' => 'pulse',
  159 + ],
  160 + ]
  161 + );
  162 + }
  163 + ?>
  164 + <?php
  165 + if (!empty($settings->google)) {
  166 + echo Html::a(
  167 + Html::icon(
  168 + 'google-plus',
  169 + [
  170 + 'prefix' => 'fa fa-',
  171 + ]
  172 + ),
  173 + $settings->google,
  174 + [
  175 + 'class' => 'external gplus',
  176 + 'data' => [
  177 + 'animate-hover' => 'pulse',
  178 + ],
  179 + ]
  180 + );
  181 + }
  182 + ?>
  183 + <?php
  184 + if (!empty($settings->twitter)) {
  185 + echo Html::a(
  186 + Html::icon(
  187 + 'twitter',
  188 + [
  189 + 'prefix' => 'fa fa-',
  190 + ]
  191 + ),
  192 + $settings->twitter,
  193 + [
  194 + 'class' => 'external twitter',
  195 + 'data' => [
  196 + 'animate-hover' => 'pulse',
  197 + ],
  198 + ]
  199 + );
  200 + }
  201 + ?>
  202 + <?php
  203 + if (!empty($settings->ok)) {
  204 + echo Html::a(
  205 + Html::icon(
  206 + 'odnoklassniki',
  207 + [
  208 + 'prefix' => 'fa fa-',
  209 + ]
  210 + ),
  211 + $settings->ok,
  212 + [
  213 + 'class' => 'external odnoklassniki',
  214 + 'data' => [
  215 + 'animate-hover' => 'pulse',
  216 + ],
  217 + ]
  218 + );
  219 + }
  220 + ?>
  221 + <?php
  222 + if (!empty($settings->email)) {
  223 + echo Html::a(
  224 + Html::icon(
  225 + 'envelope',
  226 + [
  227 + 'prefix' => 'fa fa-',
  228 + ]
  229 + ),
  230 + "mailto:$settings->email",
  231 + [
  232 + 'class' => 'email',
  233 + 'data' => [
  234 + 'animate-hover' => 'pulse',
  235 + ],
  236 + ]
  237 + );
  238 + }
  239 + ?>
  240 + </div>
  241 + </div>
  242 + </div>
  243 + </div>
  244 + </div>
  245 + <!-- *** TOP END *** -->
102 246 <!-- *** NAVBAR ***
103 247 _________________________________________________________ -->
104 248 <div class="navbar-affixed-top" data-spy="affix" data-offset-top="200">
... ...