callouts
4 months ago
upgrade
4 months ago
widgets
4 months ago
components-admin.php
4 months ago
help-addons-row.php
4 months ago
help-addons.php
4 months ago
help.php
4 months ago
postbox-header.php
4 months ago
settings-reset.php
4 months ago
settings-settings.php
4 months ago
settings-tools.php
4 months ago
settings.php
4 months ago
setup-add.php
4 months ago
setup-edit.php
4 months ago
shortcode.php
4 months ago
view.php
4 months ago
setup-edit.php
40 lines
| 1 | <?php |
| 2 | |
| 3 | // Don't load directly. |
| 4 | if ( ! defined( 'ABSPATH' ) ) { |
| 5 | die( '-1' ); |
| 6 | } |
| 7 | |
| 8 | // phpcs:ignoreFile WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound |
| 9 | |
| 10 | // Prevent non-admins. |
| 11 | if ( ! pods_is_admin( 'pods' ) ) { |
| 12 | die( '-1' ); |
| 13 | } |
| 14 | |
| 15 | wp_enqueue_media(); |
| 16 | wp_enqueue_editor(); |
| 17 | |
| 18 | if ( |
| 19 | ( |
| 20 | function_exists( 'did_filter' ) |
| 21 | && ! did_filter( 'tiny_mce_before_init' ) |
| 22 | ) |
| 23 | || ! did_action( 'enqueue_block_editor_assets' ) |
| 24 | ) { |
| 25 | wp_tinymce_inline_scripts(); |
| 26 | } |
| 27 | |
| 28 | wp_enqueue_style( 'wp-edit-post' ); |
| 29 | |
| 30 | // Formatted data |
| 31 | $data = [ |
| 32 | 'fieldType' => 'edit-pod', |
| 33 | 'fieldEmbed' => false, |
| 34 | ]; |
| 35 | ?> |
| 36 | <div class="wrap pods-admin"> |
| 37 | <div id="icon-pods" class="icon32"><br /></div> |
| 38 | <script type="application/json" class="pods-dfv-field-data"><?php echo wp_json_encode( $data, JSON_HEX_TAG ); ?></script> |
| 39 | </div> |
| 40 |