diff --git a/public/store/controller/common/footer.php b/public/store/controller/common/footer.php index bca65a4..f2326b2 100644 --- a/public/store/controller/common/footer.php +++ b/public/store/controller/common/footer.php @@ -61,6 +61,20 @@ foreach(['name','email','telephone','address','open', 'comment'] as $item){ $data['config_' . $item] = $this->config->get('config_' . $item); } + $data['logo_text'] = $this->config->get('config_logo_text'); + + if ($this->request->server['HTTPS']) { + $server = $this->config->get('config_ssl'); + } else { + $server = $this->config->get('config_url'); + } + + if (is_file(DIR_IMAGE . $this->config->get('config_logo'))) { + $data['logo'] = $server . 'image/' . $this->config->get('config_logo'); + } else { + $data['logo'] = ''; + } + $this->load->model('localisation/zone'); foreach ($this->model_localisation_zone->getContacts() as $field => $value) { diff --git a/public/store/view/theme/dominik/template/common/footer.twig b/public/store/view/theme/dominik/template/common/footer.twig index 0f48f9a..a6f54f1 100644 --- a/public/store/view/theme/dominik/template/common/footer.twig +++ b/public/store/view/theme/dominik/template/common/footer.twig @@ -3,7 +3,7 @@
- +
{{ config_comment|nl2br }}