Add Font Awesome functionality
This commit is contained in:
committed by
Marc Alexander
parent
158e3e6954
commit
d0a74065c0
@@ -230,6 +230,16 @@ class helper
|
||||
*/
|
||||
public function assign_module_vars($row, $template_module)
|
||||
{
|
||||
$use_fa = 0;
|
||||
$fa_styles = explode(';', $this->config['board3_portal_fa_styles']);
|
||||
foreach ($fa_styles as $fa_style)
|
||||
{
|
||||
if ($this->user->style['style_name'] == $fa_style)
|
||||
{
|
||||
$use_fa = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (is_array($template_module))
|
||||
{
|
||||
$this->template->assign_block_vars('modules_' . $this->portal_columns->number_to_string($row['module_column']), array(
|
||||
@@ -240,6 +250,9 @@ class helper
|
||||
'MODULE_ID' => $row['module_id'],
|
||||
'IMAGE_WIDTH' => $row['module_image_width'],
|
||||
'IMAGE_HEIGHT' => $row['module_image_height'],
|
||||
'FA_ICON' => utf8_htmlspecialchars($row['module_fa_icon']),
|
||||
'FA_SIZE' => $row['module_fa_size'],
|
||||
'FA_ENABLED' => $use_fa,
|
||||
));
|
||||
}
|
||||
else
|
||||
@@ -251,6 +264,9 @@ class helper
|
||||
'IMAGE_HEIGHT' => $row['module_image_height'],
|
||||
'MODULE_ID' => $row['module_id'],
|
||||
'TITLE' => (isset($this->user->lang[$row['module_name']])) ? $this->user->lang[$row['module_name']] : utf8_normalize_nfc($row['module_name']),
|
||||
'FA_ICON' => utf8_htmlspecialchars($row['module_fa_icon']),
|
||||
'FA_SIZE' => $row['module_fa_size'],
|
||||
'FA_ENABLED' => $use_fa,
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user