aboutsummaryrefslogtreecommitdiffstats
path: root/picture.php
diff options
context:
space:
mode:
authorchrisaga <chrisaga@piwigo.org>2005-12-03 17:33:38 +0000
committerchrisaga <chrisaga@piwigo.org>2005-12-03 17:33:38 +0000
commitdc3c040399475f7b68497919c39c90adcca4caa5 (patch)
tree3ccb0c670035f5cf94c6d849b78cb6a926fb2478 /picture.php
parent9731fc4ba5593b972aeac5d7f751253c3e82f840 (diff)
improve template : split theme from template itself
rest of the job : template (yoga), themes (clear dark), and php to handle them git-svn-id: http://piwigo.org/svn/trunk@960 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--picture.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/picture.php b/picture.php
index b41de7112..4cdafcf69 100644
--- a/picture.php
+++ b/picture.php
@@ -196,7 +196,7 @@ foreach (array('prev', 'current', 'next') as $i)
$cat_directory = dirname($row['path']);
$file_wo_ext = get_filename_wo_extension($row['file']);
- $icon = PHPWG_ROOT_PATH.'template/'.$user['template'].'/mimetypes/';
+ $icon = get_themeconf('mime_icon_dir');
$icon.= strtolower(get_extension($row['file'])).'.png';
if (isset($row['representative_ext']) and $row['representative_ext'] != '')
@@ -609,7 +609,7 @@ if ( !$user['is_the_guest'] )
$template->assign_block_vars(
'favorite',
array(
- 'FAVORITE_IMG' => PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/favorite.png',
+ 'FAVORITE_IMG' => get_themeconf('icon_dir').'/favorite.png',
'FAVORITE_HINT' =>$lang['add_favorites_hint'],
'FAVORITE_ALT' =>$lang['add_favorites_alt'],
'U_FAVORITE' => $url
@@ -624,7 +624,7 @@ if ( !$user['is_the_guest'] )
$template->assign_block_vars(
'favorite',
array(
- 'FAVORITE_IMG' => PHPWG_ROOT_PATH.'template/'.$user['template'].'/theme/del_favorite.png',
+ 'FAVORITE_IMG' => get_themeconf('icon_dir').'/del_favorite.png',
'FAVORITE_HINT' =>$lang['del_favorites_hint'],
'FAVORITE_ALT' =>$lang['del_favorites_alt'],
'U_FAVORITE'=> $url