$font, 'font-weight' => $font_weight, 'text-transform' => $text_transform, 'font-style' => $font_style, 'font-size' => $font_size, 'line-height' => $line_height, ), TRUE, $tag ); } // Link if ( $link === 'post' ) { // Terms of selected taxonomy in Grid if ( $us_elm_context == 'grid_term' ) { global $us_grid_term; $link_atts = ' href="' . get_term_link( $us_grid_term ) . '"'; } else { $link_atts = ' href="' . apply_filters( 'the_permalink', get_permalink() ) . '"'; // Force opening in a new tab for "Link" post format if ( get_post_format() == 'link' ) { $link_atts .= ' target="_blank"'; } } } elseif ( $link === 'custom' ) { $link_atts = us_generate_link_atts( $custom_link ); } else { $link_atts = ''; } // Extra class for link color if ( ! empty( $link_atts ) AND $color_link ) { $classes .= ' color_link_inherit'; } // Schema.org markup $schema_markup = ''; if ( us_get_option( 'schema_markup' ) AND $us_elm_context == 'shortcode' ) { $schema_markup = ' itemprop="headline"'; } // Output the element $output = '<' . $tag . ' class="w-post-elm post_title' . $classes . '"' . $inline_css . $el_id . $schema_markup . '>'; if ( ! empty( $icon ) ) { $output .= us_prepare_icon_tag( $icon ); } if ( ! empty( $link_atts ) ) { $output .= ''; } if ( $us_elm_context == 'grid_term' ) { global $us_grid_term; $output .= $us_grid_term->name; } else { $output .= get_the_title(); } if ( ! empty( $link_atts ) ) { $output .= ''; } $output .= ''; echo $output;