Текстовый логотип для витрины сайта

This commit is contained in:
Konstantin
2026-05-30 15:08:45 +03:00
parent d01fb5bc5f
commit 7cd87e901f
6 changed files with 25 additions and 6 deletions
+2 -1
View File
@@ -44,6 +44,7 @@ foreach(['name','email','telephone','address','open', 'comment'] as $item){
$data['direction'] = $this->language->get('direction');
$data['name'] = $this->config->get('config_name');
$data['logo_text'] = $this->config->get('config_logo_text');
if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) {
$data['logo'] = $server . 'image/' . $this->config->get('config_logo');
@@ -117,7 +118,7 @@ foreach(['name','email','telephone','address','open', 'comment'] as $item){
}
}
$data['city_list_url'] = 'index.php?route=common/city';
$data['city_list_url'] = $this->url->link('common/city');
return $this->load->view('common/header', $data);
}
@@ -78,7 +78,7 @@
</div>
</div>
</div>
<div class="col-auto"><a class="logo" href="{{ home }}">{{ name|upper }}</a></div>
<div class="col-auto"><a class="logo" href="{{ home }}">{% if logo %}<img src="{{ logo }}" alt="{{ logo_text ? logo_text : name }}">{% elseif logo_text %}{{ logo_text }}{% else %}{{ name|upper }}{% endif %}</a></div>
<div class="col d-flex justify-content-end">
<ul class="menu">
@@ -108,4 +108,3 @@
</div>
</header>