Skip to content

Commit

Permalink
Use new icon API functions - plugins
Browse files Browse the repository at this point in the history
Replace hardcoded fontawesome <i> tags with new print_icon() or
icon_get() calls.

Fixes #27828
  • Loading branch information
dregad committed Jan 8, 2021
1 parent 5672b90 commit 09477d8
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion plugins/MantisCoreFormatting/pages/config.php
Expand Up @@ -43,7 +43,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-text-width"></i>
<?php print_icon( 'fa-text-width', 'ace-icon' ); ?>
<?php echo lang_get( 'plugin_format_title' ) . ': ' . lang_get( 'plugin_format_config' )?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/category_graph.php
Expand Up @@ -70,7 +70,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_imp_category_title' ) ?>
</h4>
</div>
Expand Down
6 changes: 3 additions & 3 deletions plugins/MantisGraph/pages/developer_graph.php
Expand Up @@ -41,15 +41,15 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_developer_title' ) ?>
</h4>
</div>

<div class="col-md-6 col-xs-12" style="padding: 20px;">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php print_icon( 'fa-bar-chart', 'ace-icon' ); ?>
<?php echo plugin_lang_get('graph_topdev') ?>
</h4>
</div>
Expand All @@ -63,7 +63,7 @@
<div class="col-md-6 col-xs-12" style="padding: 20px;">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php print_icon( 'fa-bar-chart', 'ace-icon' ); ?>
<?php echo plugin_lang_get('graph_opendev') ?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/issues_trend_graph.php
Expand Up @@ -41,7 +41,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_issues_trend_title' ) ?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/priority_graph.php
Expand Up @@ -44,7 +44,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_imp_priority_title' ) ?>
</h4>
</div>
Expand Down
4 changes: 2 additions & 2 deletions plugins/MantisGraph/pages/reporter_graph.php
Expand Up @@ -41,15 +41,15 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_reporter_title' ) ?>
</h4>
</div>

<div class="col-md-12 col-xs-12" style="padding: 20px;">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart"></i>
<?php print_icon( 'fa-bar-chart', 'ace-icon' ); ?>
<?php echo plugin_lang_get('graph_topreporter_fixed') ?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/resolution_graph.php
Expand Up @@ -44,7 +44,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_imp_resolution_title' ) ?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/severity_graph.php
Expand Up @@ -43,7 +43,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_imp_severity_title' ) ?>
</h4>
</div>
Expand Down
2 changes: 1 addition & 1 deletion plugins/MantisGraph/pages/status_graph.php
Expand Up @@ -43,7 +43,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-bar-chart-o"></i>
<?php print_icon( 'fa-bar-chart-o', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'graph_imp_status_title' ) ?>
</h4>
</div>
Expand Down
8 changes: 4 additions & 4 deletions plugins/XmlImportExport/pages/config_page.php
Expand Up @@ -18,10 +18,10 @@
<fieldset>
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-exchange"></i>
<?php echo plugin_lang_get( 'config_title' ) ?>
</h4>
<h4 class="widget-title lighter">
<?php print_icon( 'fa-exchange', 'ace-icon' ); ?>
<?php echo plugin_lang_get( 'config_title' ) ?>
</h4>
</div>

<?php echo form_security_field( 'plugin_XmlImportExport_config' ) ?>
Expand Down
2 changes: 1 addition & 1 deletion plugins/XmlImportExport/pages/import.php
Expand Up @@ -55,7 +55,7 @@
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<i class="ace-icon fa fa-upload"></i>
<?php print_icon( 'fa-upload', 'ace-icon' ); ?>
<?php
printf(
plugin_lang_get( 'importing_in_project' ),
Expand Down

0 comments on commit 09477d8

Please sign in to comment.