| @@ -1,5 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | +defined( 'ABSPATH' ) || exit; | |
| 3 | + | |
| 2 | 4 | add_action( 'et_builder_ready', 'ultp_postx_template_divi_modules' ); |
| 3 | 5 | |
| 4 | 6 | function ultp_postx_template_divi_modules() { |
| 5 | 7 | |
| @@ -44,9 +46,9 @@ | ||
| 44 | 46 | while ( $the_query->have_posts() ) { |
| 45 | 47 | $the_query->the_post(); |
| 46 | 48 | ob_start(); |
| 47 | 49 | if ( in_array( 'et-fb', $body_class ) ) { |
| 48 | - echo ultimate_post()->build_css_for_inline_print( $templates, true ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped | |
| 50 | + echo ultimate_post()->build_css_for_inline_print( $templates, 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(). | |
| 49 | 51 | } |
| 50 | 52 | the_content(); |
| 51 | 53 | $content = ob_get_clean(); |
| 52 | 54 | } |
| @@ -52,8 +54,9 @@ | ||
| 52 | 54 | } |
| 53 | 55 | wp_reset_postdata(); |
| 54 | 56 | } |
| 55 | 57 | } elseif ( in_array( 'et-fb', $body_class ) ) { |
| 58 | + /* translators: %s: Navigation path to the Saved Templates page. */ | |
| 56 | 59 | $content = '<p style="text-align:center;">' . 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>'; |
| 57 | 60 | } |
| 58 | 61 | |
| 59 | 62 | // Render module content |