$c->stash->{'cssfiles'} = [] unless $c->stash->{'cssfiles'};
push @{$c->stash->{'cssfiles'}}, 'impressum.css';
+ my $imp = {};
+ $imp->{'name'} = $c->config->{'impressum'}{'name'} || 'Frank Brehm';
+ $imp->{'google_map'} = $c->config->{'impressum'}{'google-map'};
+ $imp->{'country'} = $c->config->{'impressum'}{'country'} || 'Deutschland';
+ $imp->{'location'} = $c->config->{'impressum'}{'location'} || '12621 Berlin';
+ $imp->{'address'} = $c->config->{'impressum'}{'address'} || 'Ingolstädter Str. 1';
+ $imp->{'telephone'} = $c->config->{'impressum'}{'telephone'};
+ $imp->{'mobile'} = $c->config->{'impressum'}{'mobile'};
+ $imp->{'email'} = $c->config->{'impressum'}{'email'} || 'frank@brehm-online.com';
+
+ $imp->{'foto'} = {};
+ $imp->{'foto'}{'src'} = $c->config->{'impressum'}{'foto'}{'src'} || 'pic/FrankBrehm.jpg';
+ $imp->{'foto'}{'width'} = $c->config->{'impressum'}{'foto'}{'width'} || 112;
+ $imp->{'foto'}{'height'} = $c->config->{'impressum'}{'foto'}{'height'} || 120;
+
+ $c->stash->{'impressum'} = $imp;
+
+
$c->stash->{'template'} = 'impressum.tt2';
}
Impressum -->
[%- META title = 'Impressum' %]
<div id="impressum">
-<img src="[% path( '/static/pic/FrankBrehm.jpg' ) %]" id="foto" alt="Frank Brehm" />
-<h3>Frank Brehm</h3>
+<img src="[% path( '/static/' _ impressum.foto.src ) %]" id="foto" alt="[% impressum.name %]" />
+<h3>[% impressum.name %]</h3>
-<h4>Adresse:</h4>
-Ingolstädter Str. 1<br />
-12621 Berlin<br />
-Deutschland
+<div id="address">[% IF impressum.google_map %]<a href="[% impressum.google_map %]" target="_new"><img src="[% path( '/static/pic/search.png' ) %]" id="search" alt="Google Map Suche" title="Google Map Suche" /></a>
+[% END %]<h4>Adresse:</h4>
+[% impressum.address %]<br />
+[% impressum.location %]<br />
+[% impressum.country %]</div>
<h4>Kontakt:</h4>
<dl>
- <dt>Telefon:</dt>
- <dd>+49-(0)30-55870038</dd>
- <dt>Mobil:</dt>
- <dd>+49-(0)171-6439884</dd>
- <dt>Telefon:</dt>
- <dd><a href="mailto:frank@brehm-online.com">frank@brehm-online.com</a></dd>
+ [% IF impressum.telephone %]<dt>Telefon:</dt>
+ <dd>[% impressum.telephone %]</dd>
+ [% END %][% IF impressum.mobile %]<dt>Mobil:</dt>
+ <dd>[% impressum.mobile %]</dd>
+ [% END %]<dt>E-Mail:</dt>
+ <dd><a href="mailto:[% impressum.email %]">[% impressum.email %]</a></dd>
</dl>
<h4>Technische Details:</h4>
<p>Diese Anwendung wurde mit Hilfe von <a href="http://www.catalystframework.org/"><b>Perl Catalyst</b></a> erstellt.</p>
+<p>Verwendete Subsysteme:
+ <dl>
+ <dt>SQL to OO mapper:</dt>
+ <dd><a href="http://search.cpan.org/search?query=DBIx%3A%3AClass&mode=module">DBIx::Class</a> - Extensible and flexible object <-> relational mapper.</dd>
+ <dt>Template-Engine:</dt>
+ <dd><a href="http://search.cpan.org/~abw/Template-Toolkit-2.22/">Template Toolkit</a></dd>
+ <dt>Datenbank-Backend:</dt>
+ <dd><a href="http://www.mysql.com">MySQL</a></dd>
+ </dl>
+</p>
<p>Die Anwendung entspricht den Standards <i>HTML 4.01 Transitional</i> und <i>CSS 2.1</i>.</p>
<p><a href="http://validator.w3.org/check?uri=referer"><img
style="border: 0;" src="http://www.w3.org/Icons/valid-html401-blue"