mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
[ticket/17283] Remove remaining parts using iconify
PHPBB3-17283
This commit is contained in:
@@ -211,7 +211,6 @@ class environment extends \Twig\Environment
|
||||
{
|
||||
$context['definition']->set('SCRIPTS', '__SCRIPTS_' . $placeholder_salt . '__');
|
||||
$context['definition']->set('STYLESHEETS', '__STYLESHEETS_' . $placeholder_salt . '__');
|
||||
$context['definition']->set('ICONIFY_ICONS', '__ICONIFY_ICONS_' . $placeholder_salt . '__');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -259,7 +258,6 @@ class environment extends \Twig\Environment
|
||||
{
|
||||
$output = str_replace('__STYLESHEETS_' . $placeholder_salt . '__', $this->assets_bag->get_stylesheets_content(), $output);
|
||||
$output = str_replace('__SCRIPTS_' . $placeholder_salt . '__', $this->assets_bag->get_scripts_content(), $output);
|
||||
$output = $this->assets_bag->inject_iconify_icons($output, '__ICONIFY_ICONS_' . $placeholder_salt . '__', $this->phpbb_config['allow_cdn']);
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
@@ -57,7 +57,7 @@ class icon extends AbstractExtension
|
||||
* Generate icon HTML for use in the template, depending on the mode.
|
||||
*
|
||||
* @param environment $environment Twig environment object
|
||||
* @param string $type Icon type (font|iconify|png|svg)
|
||||
* @param string $type Icon type (font|png|svg)
|
||||
* @param array|string $icon Icon name (eg. "bold")
|
||||
* @param string $title Icon title
|
||||
* @param bool $hidden Hide the icon title from view
|
||||
@@ -86,13 +86,6 @@ class icon extends AbstractExtension
|
||||
// Nothing to do here..
|
||||
break;
|
||||
|
||||
case 'iconify':
|
||||
$source = explode(':', $icon);
|
||||
$source = $source[0];
|
||||
$environment->get_assets_bag()->add_iconify_icon($icon);
|
||||
|
||||
break;
|
||||
|
||||
case 'png':
|
||||
$filesystem = $environment->get_filesystem();
|
||||
$root_path = $environment->get_web_root_path();
|
||||
@@ -137,7 +130,6 @@ class icon extends AbstractExtension
|
||||
|
||||
default:
|
||||
return '';
|
||||
break;
|
||||
}
|
||||
|
||||
// If no PNG or SVG icon was found, display a default 404 SVG icon.
|
||||
|
Reference in New Issue
Block a user