Ignore:
Timestamp:
Mar 14, 2012, 2:53:41 PM (13 years ago)
Author:
plg
Message:

import theme Simple version 2.5.3

add an option and admin page to choose the layout for albums (with description under or next to the album thumbnail)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/simple_themes/simple/themeconf.inc.php

    r13557 r13558  
    22/*
    33Theme Name: Simple Grey
    4 Version: 2.5.2
     4Version: 2.5.3
    55Description: Simple Grey
    66Theme URI: http://piwigo.org/ext/extension_view.php?eid=308
     
    2929
    3030// debug - do not combine files
    31 // $conf['template_combine_files'] = false;
     31$conf['template_combine_files'] = false;
     32
     33if (!isset($conf['simple']))
     34{
     35  $conf['simple'] = serialize(array('albumDisplay' => 'column'));
     36}
     37$conf['simple'] = unserialize($conf['simple']);
     38
     39add_event_handler('loc_begin_page_header', 'simple_set_config');
     40function simple_set_config()
     41{
     42  global $template, $conf;
     43 
     44  $template->assign('simple_conf', $conf['simple']);
     45}
    3246
    3347?>
Note: See TracChangeset for help on using the changeset viewer.