Rev | Line | |
---|
[28081] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Theme Name: Junk |
---|
| 4 | Version: auto |
---|
| 5 | Description: theme for Piwigo. |
---|
| 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=763 |
---|
| 7 | Author:Miklfe [piwitheme.fr] |
---|
| 8 | Author 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 | |
---|
| 27 | add_event_handler('loc_begin_index', 'load_QuickRegister' ); |
---|
| 28 | |
---|
| 29 | function 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 | |
---|
| 45 | add_event_handler('init', 'load_Junk' ); |
---|
| 46 | function 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.