Changeset 7402 for extensions/PWG_Stuffs/main.inc.php
- Timestamp:
- Oct 26, 2010, 4:37:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/main.inc.php
r3609 r7402 44 44 add_event_handler('loc_begin_picture', 'set_stuffs_on_picture'); 45 45 46 function set_is_homepage() 47 { 48 global $tokens, $page; 49 50 $next_token = 0; 51 $parsed_url = parse_section_url($tokens, $next_token); 52 if (!isset($parsed_url['section']) and !isset($page['chronology_field'])) 53 { 54 $page['is_homepage'] = true; 55 } 56 else 57 { 58 $page['is_homepage'] = false; 59 } 60 } 61 add_event_handler('loc_end_section_init', 'set_is_homepage'); 46 62 ?>
Note: See TracChangeset
for help on using the changeset viewer.