Changeset 32192
- Timestamp:
- May 9, 2020, 4:10:57 PM (5 years ago)
- Location:
- extensions/photos_from_one_year_ago
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/photos_from_one_year_ago/main.inc.php
r32191 r32192 59 59 60 60 function section_init_pfoya(){ 61 global $tokens, $page, $conf, $template ;61 global $tokens, $page, $conf, $template, $user; 62 62 $testurl = explode('photos_from_', $_SERVER['REQUEST_URI']); 63 $template->assign('PFOAYALINK',make_index_url(array('section' => 'photos_from_one_year_ago'))); 63 64 if(!empty($testurl[1])){ 64 65 … … 162 163 163 164 } 165 if ($user['theme'] == 'bootstrapdefault'||$user['theme'] == 'bootstrap_darkroom'){ 166 $template->set_filename('PFOYA', realpath(PFOYA_PATH . 'pfoya_bootstrap.tpl')); 167 }else{ 168 $template->set_filename('PFOYA', realpath(PFOYA_PATH . 'pfoya.tpl')); 169 } 164 170 165 $template->set_filename('PFOYA', realpath(PFOYA_PATH . 'pfoya.tpl')); 171 166 172 $template->assign_var_from_handle('CONTENT', 'PFOYA'); 167 173
Note: See TracChangeset
for help on using the changeset viewer.