". HTMega_Icon_manager::render_icon( $settings['term_icon_global'], [ 'aria-hidden' => 'true' ] )."
";
}else{
$termsIcons = "
".HTMega_Icon_manager::render_icon( $settings['term_icon_global'], [ 'aria-hidden' => 'true' ] )."
";
}
}elseif( $settings['icon_type_global'] === 'image' ){
$termsIcons = ( !empty( $settings['term_icon_image_global']['url'] ) ? "
get_render_attribute_string( 'icon_attr' ).">". Group_Control_Image_Size::get_attachment_image_html( $settings, 'term_icon_image_size_global', 'term_icon_image_global' ).'
' : '' );
}
// individual Icon and Image Manage
if($settings['add_custom_term_icon'] == 'yes'){
foreach($customIconImageList as $customIconImage){
if($customIconImage['term_id'] == $term->term_id){
if( $customIconImage['icon_type'] === 'icon' ){
if($customIconImage['term_icon']['library'] == 'svg'){
$termsIcons = "
". HTMega_Icon_manager::render_icon( $customIconImage['term_icon'], [ 'aria-hidden' => 'true' ] )."
";
}else{
$termsIcons = "
".HTMega_Icon_manager::render_icon( $customIconImage['term_icon'], [ 'aria-hidden' => 'true' ] )."
";
}
}elseif( $customIconImage['icon_type'] === 'image' ){
$termsIcons = ( !empty( $customIconImage['term_icon_image']['url'] ) ? "
get_render_attribute_string( 'icon_attr' ).">". Group_Control_Image_Size::get_attachment_image_html( $customIconImage, 'term_icon_image_size', 'term_icon_image' ).'
' : '' );
}
break;
}
}
}
//Exclude Terms List
$excludeTermsListCheck = false;
for($i = 0; $i < $excludeTermsListCount; $i++ ){
$excludeTermsListCheck = $excludeTermsList[$i] == $term->slug;
if( $excludeTermsListCheck == '1' ){
break;
}
}
if( $excludeTermsListCheck != '1' ):
if($settings['item_display'] == 'horizontal'): ?>
name) ?>
count) ?>
count ) ?>