Changeset 32192


Ignore:
Timestamp:
May 9, 2020, 4:10:57 PM (5 years ago)
Author:
ddtddt
Message:

[photos_from_one_year_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  
    5959
    6060function section_init_pfoya(){
    61   global $tokens, $page, $conf, $template;
     61  global $tokens, $page, $conf, $template, $user;
    6262  $testurl = explode('photos_from_', $_SERVER['REQUEST_URI']);
     63  $template->assign('PFOAYALINK',make_index_url(array('section' => 'photos_from_one_year_ago')));
    6364  if(!empty($testurl[1])){
    6465
     
    162163       
    163164  }     
     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          }
    164170       
    165   $template->set_filename('PFOYA', realpath(PFOYA_PATH . 'pfoya.tpl'));
     171
    166172  $template->assign_var_from_handle('CONTENT', 'PFOYA');
    167173       
Note: See TracChangeset for help on using the changeset viewer.