$styles = array(); if ($align) { $styles[] = 'text-align:' . $align; } $content = ''; if ($content_type == 'image' && $img) { $src = om_img_any_resize($img, $img_size); if ($src) { $content = '<img src="' . $src . '" class="om-moving-' . $animation . '" alt="" />'; } } elseif ($content_type == 'icon' && $icon_type && isset(${"icon_" . $icon_type})) { vc_icon_element_fonts_enqueue($icon_type); if ($color == 'om-theme-color') { $classes[] = 'om-hl-color'; } elseif ($color == 'custom') { if ($custom_color) { $styles[] = 'color:' . $custom_color; } } else { if ($tmp = om_wpb_get_std_color_code($color)) { $styles[] = 'color:' . $tmp; } } if (is_numeric($icon_size)) { $icon_size .= 'px'; } $content = '<i class="' . ${"icon_" . $icon_type} . ' om-moving-' . $animation . '"' . ($icon_size ? ' style="font-size:' . $icon_size . '"' : '') . '></i>'; } if ($content) { echo '<div class="' . implode(' ', $classes) . '"' . (!empty($styles) ? ' style="' . implode(';', $styles) . '"' : '') . '>' . $content . '</div>'; }
if ($bg_custom_color) { $styles[] = 'background-color:' . $bg_custom_color; } } else { if ($tmp = om_wpb_get_std_color_code($bg_color)) { $styles[] = 'background-color:' . $tmp; } } } if ($hover_bg_color) { if ($hover_bg_color == 'custom') { if ($hover_bg_custom_color) { $tag_attributes[] = 'data-hover-bg-color="' . $hover_bg_custom_color . '"'; } } else { if ($tmp = om_wpb_get_std_color_code($hover_bg_color)) { $tag_attributes[] = 'data-hover-bg-color="' . $tmp . '"'; } } } if ($text_color) { $styles[] = 'color:' . $text_color; } } else { $classes[] = 'om-hl-bg-color'; } $classes[] = 'om-cb-size-' . $size; $link = $link == '||' ? '' : $link; $link = vc_build_link($link); $a_href = $link['url']; $a_title = $link['title'];