mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
- ok, get away with the secondary style approach (styles can be mixed together easily with the acp)
- introduce a more generic approach of defining some additional variables through cfg files as well as the name, copyright and version fields - please note that at the moment this is in flux. I added it now for Tom because he needs the theme parameters. git-svn-id: file:///svn/phpbb/trunk@5372 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -507,7 +507,7 @@ function topic_generate_pagination($replies, $url)
|
||||
}
|
||||
else if ($times < $total_pages)
|
||||
{
|
||||
$pagination .= $user->theme['primary']['pagination_sep'];
|
||||
$pagination .= $user->theme['pagination_sep'];
|
||||
}
|
||||
$times++;
|
||||
}
|
||||
@@ -674,15 +674,7 @@ function display_attachments($forum_id, $blockname, &$attachment_data, &$update_
|
||||
{
|
||||
$attachment_tpl = array();
|
||||
|
||||
// Generate Template
|
||||
$style = 'primary';
|
||||
|
||||
if (!empty($user->theme['secondary']))
|
||||
{
|
||||
$style = (file_exists($phpbb_root_path . 'styles/' . $user->theme['primary']['template_path'] . '/template/attachment.html')) ? 'primary' : 'secondary';
|
||||
}
|
||||
|
||||
$template_filename = $phpbb_root_path . 'styles/' . $user->theme[$style]['template_path'] . '/template/attachment.html';
|
||||
$template_filename = $phpbb_root_path . 'styles/' . $user->theme['template_path'] . '/template/attachment.html';
|
||||
if (!($fp = @fopen($template_filename, 'rb')))
|
||||
{
|
||||
trigger_error('Could not load template file "' . $template_filename . '"');
|
||||
|
Reference in New Issue
Block a user