Ignore:
Timestamp:
10/04/10 20:58:57 (9 years ago)
Author:
pab
Message:

theme switch compatible with piwigo 2.1.* (with CZ, UK localization)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/theme_switch/trunk/main.inc.php

    r7072 r7093  
    44// | Theme switch plugin                                                   | 
    55// +-----------------------------------------------------------------------+ 
    6 // | Copyright(C) 2008      Pavel Budka                http://pbudka.co.cc | 
     6// | Copyright(C) 2010      Pavel Budka               http://budkovi.ic.cz | 
    77// +-----------------------------------------------------------------------+ 
    88// | This program is free software; you can redistribute it and/or modify  | 
     
    2323/* 
    2424Plugin Name: Theme Switch 
    25 Version: 2.0.a 
    26 Description: Switch to another template/theme from flags on your gallery home page. Edit file main.inc.php for configuration. Based on Language switch 
     25Version: 2.1. 
     26Description: Lets logged or unlogged user change appearance of gallery (via switching to different theme) on gallery home page. Based on Language switch. The switch can show theme names or theme icons, depends on configuration. See details in a file main.inc.php. 
    2727Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=257 
    2828Author: Pavel Budka 
    29 Author URI: http://pbudka.co.cc 
     29Author URI: http://budkovi.ic.cz 
    3030*/ 
    3131 
     
    3535 
    3636// If you want user to choose from icons then use following handler.  
    37 // Only themes which have gif icon provided in icons plugin directory will be provided to users. 
    38 // Gif file name must be the same as theme's name and must be stored in sub directory named according to template's name.   
     37// Only themes which have screenshot.png icon provided will be provided to users. 
    3938 
    40 add_event_handler('loc_end_index', array(&$theme_controler, '_flags'), 95 ); 
     39// add_event_handler('loc_end_index', array(&$theme_controler, '_flags'), 95 ); 
    4140 
    4241// If you want user to choose using select control then use following handler. 
    4342// All available themes will be provided to users.  
    4443 
    45 // add_event_handler('loc_end_index', array(&$theme_controler, '_select'), 95 ); 
     44add_event_handler('loc_end_index', array(&$theme_controler, '_select'), 95 ); 
     45 
     46// this is preparation for future version with configuration  
     47// add_event_handler('get_admin_plugin_menu_links', array(&$theme_controler,'_theme_admin')); 
    4648 
    4749?> 
Note: See TracChangeset for help on using the changeset viewer.