source: extensions/Junk/themeconf.inc.php @ 32006

Last change on this file since 32006 was 28081, checked in by Miklfe, 10 years ago

Theme Junk

File size: 1.1 KB
Line 
1<?php
2/*
3Theme Name: Junk
4Version: auto
5Description: theme for Piwigo.
6Theme URI: http://piwigo.org/ext/extension_view.php?eid=763
7Author:Miklfe [piwitheme.fr]
8Author URI: http://piwitheme.fr
9*/
10$themeconf = array(
11  'name'                => 'Junk',
12  'parent'              => 'default',
13  'local_head'  => 'local_head.tpl',
14
15);
16
17 add_event_handler('blockmanager_apply', 'ident' );
18   function ident( $menu_ref_arr )
19{
20    $menu = & $menu_ref_arr[0];
21        $block = $menu->get_block( 'mbIdentification' );
22       
23}
24
25
26
27add_event_handler('loc_begin_index', 'load_QuickRegister' );
28
29function load_QuickRegister()
30{
31        global $conf, $template;
32
33        include_once( PHPWG_ROOT_PATH.'include/common.inc.php' );
34
35        $registration_post_key = get_ephemeral_key(6);
36       
37$template->assign(array(
38  'U_HOME' => make_index_url(),
39        'F_KEY' => $registration_post_key,
40        'F_ACTION' => 'register.php',
41  'obligatory_user_mail_address' => $conf['obligatory_user_mail_address'],
42  ));
43}
44
45add_event_handler('init', 'load_Junk' );
46function load_Junk()
47{
48        include('junk.php');
49
50        global $conf, $template;
51  $config = unserialize( $conf['elegant'] );
52  $template->assign( 'elegant', $config );
53
54        }
Note: See TracBrowser for help on using the repository browser.