Archived
1
0
Fork 0

make themes configurable (fixes #50)

* gallery.ini:
  - remove theme specific configuration
  - add default theme name
 * includes/galleryfunctions.php:
  - implement theme initialization
  - configure common parameters from theme
 * includes/theme.class.php:
  - implement a simple theme class
 * index.php:
  - assign $gallery to template
 * themes/default_horizontal/theme.ini:
  - add theme specific configuration
 * themes/default_horizontal/theme.php:
  - use $content['gallery'] instead of undefined $gallery
This commit is contained in:
Jan Dittberner 2009-07-11 11:53:43 +00:00
parent 0ed421b1ce
commit fcea03a800
6 changed files with 83 additions and 6 deletions

View file

@ -0,0 +1,4 @@
themename=Horizontal default theme
themetype=horizontal
previewsize=311
thumbsize=67

View file

@ -22,7 +22,7 @@
<ul id="menu"><?php
foreach ($content['gallerylinks'] as $data) {
printf('<li class="menu%s"><a class="menu" href="%s">%s </a></li>',
($data['gallery'] == $gallery) ? ' active' : '',
($data['gallery'] == $content['gallery']) ? ' active' : '',
$data['url'], $data['label']);
} ?></ul>
<div id="content_container">