Skip to content

Commit 51be558

Browse files
committed
Icon update fix.
1 parent faac045 commit 51be558

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

ReduxCore/framework.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2911,8 +2911,8 @@ public function section_menu( $k, $section, $suffix = "", $sections = array() )
29112911
}
29122912
$icon = ( ! isset ( $section['icon'] ) ) ? '<i class="el el-cog' . $icon_class . '"></i> ' : '<i class="' . $section['icon'] . $icon_class . '"></i> ';
29132913
}
2914-
if (strpos($icon,'el-icon-') !== false) {
2915-
$icon = str_replace('el-icon-', 'el el-', $icon);
2914+
if ( strpos( $icon, 'el-icon-' ) !== false ) {
2915+
$icon = str_replace( 'el-icon-', 'el el-', $icon );
29162916
}
29172917

29182918
$hide_section = '';
@@ -2981,6 +2981,9 @@ public function section_menu( $k, $section, $suffix = "", $sections = array() )
29812981
}
29822982
$icon = ( ! isset ( $sections[ $nextK ]['icon'] ) ) ? '' : '<i class="' . $sections[ $nextK ]['icon'] . $icon_class . '"></i> ';
29832983
}
2984+
if ( strpos( $icon, 'el-icon-' ) !== false ) {
2985+
$icon = str_replace( 'el-icon-', 'el el-', $icon );
2986+
}
29842987
$section[ $nextK ]['class'] = isset ( $section[ $nextK ]['class'] ) ? $section[ $nextK ]['class'] : '';
29852988
$string .= '<li id="' . $nextK . $suffix . '_section_group_li" class="redux-group-tab-link-li ' . $hide_sub . $section[ $nextK ]['class'] . ( $icon ? ' hasIcon' : '' ) . '">';
29862989
$string .= '<a href="javascript:void(0);" id="' . $nextK . $suffix . '_section_group_li_a" class="redux-group-tab-link-a" data-key="' . $nextK . '" data-rel="' . $nextK . $suffix . '">' . $icon . '<span class="group_title">' . $sections[ $nextK ]['title'] . '</span></a>';

0 commit comments

Comments
 (0)