| @@ -43,11 +43,11 @@ | ||
| 43 | 43 | |
| 44 | 44 | $current_url = isset( $_SERVER['REQUEST_URI'] ) ? esc_url( $_SERVER['REQUEST_URI'] ) : ''; //phpcs:ignore |
| 45 | 45 | |
| 46 | 46 | // Render element HTML |
| 47 | - echo "<div {$this->render_attributes( '_root' )}>"; //phpcs:ignore | |
| 47 | + echo "<div {$this->render_attributes( '_root' )}>"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Bricks API attribute string; the only attribute this element sets is the fixed class bricks-postx-wrapper. | |
| 48 | 48 | if ( $id ) { |
| 49 | - echo ultimate_post()->build_css_for_inline_print( $id, true ); | |
| 49 | + echo ultimate_post()->build_css_for_inline_print( $id, true ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- <style> tag from build_css_for_inline_print(): integer post ID, CSS passed through wp_strip_all_tags(). | |
| 50 | 50 | echo '<div class="ultp-shortcode" data-postid="' . esc_attr( $id ) . '">'; |
| 51 | 51 | $args = array( |
| 52 | 52 | 'p' => $id, |
| 53 | 53 | 'post_type' => 'ultp_templates', |
| @@ -61,8 +61,9 @@ | ||
| 61 | 61 | wp_reset_postdata(); |
| 62 | 62 | } |
| 63 | 63 | echo '</div>'; |
| 64 | 64 | } elseif ( strpos( 'bricks=run', $current_url ) !== false || strpos( $current_url, 'bricks/v1/render_element' ) !== false ) { |
| 65 | + /* translators: %s: Menu path to the Saved Templates screen. */ | |
| 65 | 66 | echo '<p style="text-align:center; font-size: 20px;">' . sprintf( esc_html__( 'Pick a Template from your saved ones. Or create a template from: %s.', 'ultimate-post' ) . ' ', '<strong><i>' . esc_html__( 'Dashboard > PostX > Saved Templates', 'ultimate-post' ) . '</i></strong>' ) . '</p>'; |
| 66 | 67 | } |
| 67 | 68 | echo '</div>'; |
| 68 | 69 | } |