phpBB

Code Changes

File: includes/acp/acp_styles.php

  Unmodified   Added   Modified   Removed
Line 646Line 646

// Set up styles list variables
// Addons should increase this number and update template variable


// Set up styles list variables
// Addons should increase this number and update template variable

		$this->styles_list_cols = 4;

		$this->styles_list_cols = 5;

		$this->template->assign_var('STYLES_LIST_COLS', $this->styles_list_cols);

// Show styles list

		$this->template->assign_var('STYLES_LIST_COLS', $this->styles_list_cols);

// Show styles list

Line 701Line 701

usort($styles, array($this, 'sort_styles'));



usort($styles, array($this, 'sort_styles'));


		$this->styles_list_cols = 3;

		$this->styles_list_cols = 4;

		$this->template->assign_vars(array(
'STYLES_LIST_COLS' => $this->styles_list_cols,
'STYLES_LIST_HIDE_COUNT' => true

		$this->template->assign_vars(array(
'STYLES_LIST_COLS' => $this->styles_list_cols,
'STYLES_LIST_HIDE_COUNT' => true

Line 958Line 958
		}

$style['_shown'] = true;

		}

$style['_shown'] = true;

 

$style_cfg = $this->read_style_cfg($style['style_path']);


// Generate template variables
$actions = array();
$row = array(
// Style data


// Generate template variables
$actions = array();
$row = array(
// Style data

			'STYLE_ID'		=> $style['style_id'],
'STYLE_NAME' => htmlspecialchars($style['style_name']),
'STYLE_PHPBB_VERSION' => $this->read_style_cfg($style['style_path'])['phpbb_version'],
'STYLE_PATH' => htmlspecialchars($style['style_path']),
'STYLE_COPYRIGHT' => strip_tags($style['style_copyright']),
'STYLE_ACTIVE' => $style['style_active'],


			'STYLE_ID'				=> $style['style_id'],
'STYLE_NAME' => htmlspecialchars($style['style_name']),
'STYLE_VERSION' => $style_cfg['style_version'] ?? '-',
'STYLE_PHPBB_VERSION' => $style_cfg['phpbb_version'],
'STYLE_PATH' => htmlspecialchars($style['style_path']),
'STYLE_COPYRIGHT' => strip_tags($style['style_copyright']),
'STYLE_ACTIVE' => $style['style_active'],


// Additional data


// Additional data

			'DEFAULT'		=> ($style['style_id'] && $style['style_id'] == $this->default_style),
'USERS' => (isset($style['_users'])) ? $style['_users'] : '',
'LEVEL' => $level,
'PADDING' => (4 + 16 * $level),

			'DEFAULT'			=> ($style['style_id'] && $style['style_id'] == $this->default_style),
'USERS' => (isset($style['_users'])) ? $style['_users'] : '',
'LEVEL' => $level,
'PADDING' => (4 + 16 * $level),

			'SHOW_COPYRIGHT'	=> ($style['style_id']) ? false : true,
'STYLE_PATH_FULL' => htmlspecialchars($this->styles_path_absolute . '/' . $style['style_path']) . '/',


			'SHOW_COPYRIGHT'	=> ($style['style_id']) ? false : true,
'STYLE_PATH_FULL' => htmlspecialchars($this->styles_path_absolute . '/' . $style['style_path']) . '/',