| @@ -1,5 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | -defined( 'ABSPATH' ) || exit; | |
| 2 | +defined('ABSPATH') || exit; | |
| 3 | 3 | |
| 4 | -$attr['titleTag'] = in_array( $attr['titleTag'], ultimate_post()->ultp_allowed_block_tags() ) ? $attr['titleTag'] : 'h3'; | |
| 5 | -$post_loop .= '<' . $attr['titleTag'] . ' class="ultp-block-title ' . ( $attr['titleStyle'] == 'none' ? '' : ' ultp-title-' . sanitize_html_class( $attr['titleStyle'] ) ) . '"><a href="' . $titlelink . '" ' . ( $attr['openInTab'] ? 'target="_blank"' : '' ) . '>' . esc_html( $title ) . '</a></' . $attr['titleTag'] . '>'; | |
| 4 | +$post_loop .= '<'.$attr['titleTag'].' class="ultp-block-title"><a href="'.$titlelink.'" '.($attr['openInTab'] ? 'target="_blank"' : '').'>'.$title.'</a></'.$attr['titleTag'].'>'; | |