Ignore:
Timestamp:
Sep 2, 2014, 2:49:41 PM (7 years ago)
Author:
JanisV
Message:

Added support for template engine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Fotorama/main.inc.php

    r27398 r29381  
    112112    $template->assign('current_rank', $page['current_rank']);
    113113    $template->assign(array('Fotorama' => $conf['Fotorama']));
    114     $template->set_filenames( array('slideshow' => realpath(FOTORAMA_PATH.'template/slideshow.tpl')));
     114    if (is_file('./themes/'.$user['theme'].'/template/fotorama.tpl'))
     115    {
     116      $template->set_filenames( array('slideshow' => realpath('./themes/'.$user['theme'].'/template/fotorama.tpl')));
     117    }
     118    else
     119    {
     120      $template->set_filenames( array('slideshow' => realpath(FOTORAMA_PATH.'template/slideshow.tpl')));
     121    }
    115122  }
    116123}
Note: See TracChangeset for help on using the changeset viewer.