Skip to content

Commit

Permalink
Dev: removed old logo settings (now function image() provide the nece…
Browse files Browse the repository at this point in the history
…ssary logic)
  • Loading branch information
LouisGac committed Jul 5, 2017
1 parent dd2caa6 commit 885f651
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions application/models/TemplateConfiguration.php
Expand Up @@ -28,9 +28,6 @@ class TemplateConfiguration extends CFormModel
/** @var string $sPackageName Name of the asset package of this template*/
public $sPackageName;

/** @var string $siteLogo Name of the logo file (like: logo.png) */
public $siteLogo;

/** @var string $path Path of this template */
public $path;

Expand Down Expand Up @@ -475,7 +472,6 @@ private function setThisTemplate()
$this->viewPath = (!empty($this->config->xpath("//viewdirectory"))) ? $this->path.DIRECTORY_SEPARATOR.$this->config->engine->viewdirectory.DIRECTORY_SEPARATOR : $this->path.DIRECTORY_SEPARATOR.$this->oMotherTemplate->config->engine->viewdirectory.DIRECTORY_SEPARATOR;
$this->filesPath = (!empty($this->config->xpath("//filesdirectory"))) ? $this->path.DIRECTORY_SEPARATOR.$this->config->engine->filesdirectory.DIRECTORY_SEPARATOR : $this->path.DIRECTORY_SEPARATOR.$this->oMotherTemplate->config->engine->filesdirectory.DIRECTORY_SEPARATOR;
$this->templateEditor = (!empty($this->config->xpath("//template_editor"))) ? $this->config->engine->template_editor : $this->oMotherTemplate->templateEditor;
$this->siteLogo = (!empty($this->config->xpath("//logo"))) ? $this->config->files->logo->filename : $this->oMotherTemplate->siteLogo;

// Options are optional
if (!empty($this->config->xpath("//options"))){
Expand Down
5 changes: 0 additions & 5 deletions templates/default/config.xml
Expand Up @@ -35,11 +35,6 @@
<print_css>
<filename>css/print_template.css</filename>
</print_css>

<!-- The logo is used for now only for Surveys List -->
<logo>
<filename>files/logo.png</filename>
</logo>
</files>

<!-- You can add here any option you want. It will be available in twig file via aSurveyInfo.options.youroptionname -->
Expand Down

0 comments on commit 885f651

Please sign in to comment.