| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // if direct access |
| 3 |
wp_enqueue_style('post-grid-output', post_grid_plugin_url . 'dist/output.css', [], time(), 'all'); |
| 4 |
|
| 5 |
wp_enqueue_style('wp-components'); |
| 6 |
$post_grid_settings = get_option('post_grid_settings'); |
| 7 |
$disable_blocks = isset($post_grid_settings['disable_blocks']) ? $post_grid_settings['disable_blocks'] : []; |
| 8 |
wp_localize_script('post-grid-blocks', 'postGridDisabledBlocks', $disable_blocks); |
| 9 |
wp_enqueue_script( |
| 10 |
'post-grid-blocks', |
| 11 |
post_grid_plugin_url . 'build/index.js', |
| 12 |
[ |
| 13 |
'wp-blocks', |
| 14 |
'wp-editor', |
| 15 |
'wp-i18n', |
| 16 |
'wp-element', |
| 17 |
'wp-components', |
| 18 |
'wp-data', |
| 19 |
'wp-plugins', |
| 20 |
'wp-edit-post', |
| 21 |
], |
| 22 |
time() |
| 23 |
); |
| 24 |
if (defined("post_grid_pro_plugin_url")) { |
| 25 |
wp_enqueue_script( |
| 26 |
'post-grid-pro-blocks-build', |
| 27 |
post_grid_pro_plugin_url . 'build/index.js', |
| 28 |
[ |
| 29 |
'wp-blocks', |
| 30 |
'wp-editor', |
| 31 |
'wp-i18n', |
| 32 |
'wp-element', |
| 33 |
'wp-components', |
| 34 |
'wp-data' |
| 35 |
], |
| 36 |
time() |
| 37 |
); |
| 38 |
} |
| 39 |
$admin_email = get_option('admin_email'); |
| 40 |
$post_grid_license = get_option('post_grid_license'); |
| 41 |
$license_status = isset($post_grid_license['license_status']) ? $post_grid_license['license_status'] : ''; |
| 42 |
?> |
| 43 |
<div class="wrap"> |
| 44 |
<div id="cb-dashboard" class=""></div> |
| 45 |
</div> |