В displayimage.php есть такая строка:
$info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
Она из функции:
// Display picture information
function html_picinfo()
Используется она в файле:
./include/themes.inc.php
Вот в этом блоке:
if (!function_exists('theme_html_picinfo')) { //{THEMES}
function theme_html_picinfo(&$info)
Для изображений нужен блок:
if (!function_exists('theme_html_picinfo')) { //{THEMES}
function theme_html_picinfo(&$info)
{
global $lang_picinfo;
$html = '';
$html .= " <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
$template = " <tr><td class=\"tableb_compact\" valign=\"top\" >%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);
return $html;
}
} //{THEMES}
Как уже говорил Alex Revo, имя файла приходит в массиве $info.
Далее в шаблон $template подставляются переменны $key и $value , где:
$key = $lang_picinfo['Filename']
$value = $CURRENT_PIC_DATA['filename']
Соответственно, Вам нужно в вашу тему переносить данную функцию:
function theme_html_picinfo(&$info)
{
global $lang_picinfo;
$html = '';
$html .= " <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
$template = " <tr><td class=\"tableb_compact\" valign=\"top\" >%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);
return $html;
}
И уже с ней работать.
Работа будет заключаться в том, чтобы исключить из обработки нужный $key
Вот тут я без практики Вам не подскажу.
Попробуйте написать вот так в вашей теме:
function theme_html_picinfo(&$info)
{
global $lang_picinfo;
$html = '';
$html .= " <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
$template = " <tr><td class=\"tableb_compact\" valign=\"top\" >%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
foreach ($info as $key => $value){
if ($key == $lang_picinfo['Filename'])
//do nothing
}else{
$html .= sprintf($template, $key, $value);
}
}
return $html;
}