auto-template
2 years ago
element-pod_reference-content.php
2 years ago
element-pod_reference.php
2 years ago
element-view_template.php
7 years ago
functions-pod_reference.php
2 years ago
functions-view_template.php
2 years ago
element-view_template.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Frontier Template code editor metabox |
| 4 | * |
| 5 | * @package Pods_templates |
| 6 | */ |
| 7 | |
| 8 | $pods_output = ''; |
| 9 | if ( isset( $content ) ) { |
| 10 | |
| 11 | // WordPress will already call esc_textarea() if richedit is off, don't escape twice (see #3462) |
| 12 | if ( ! user_can_richedit() ) { |
| 13 | // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped |
| 14 | $pods_output = $content; |
| 15 | } else { |
| 16 | $pods_output = esc_textarea( $content ); |
| 17 | } |
| 18 | } |
| 19 | ?> |
| 20 | <div class="pods-compat-container"> |
| 21 | <textarea id="content" name="content"><?php echo $pods_output; // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?></textarea> |
| 22 | </div> |
| 23 |