PluginProbe
Post Grid / trunk
Post Grid vtrunk
2.3.23 2.2.57 2.2.58 2.2.59 2.2.6 2.2.60 2.2.61 2.2.62 2.2.63 2.2.63a 2.2.64 2.2.65 2.2.66 2.2.67 2.2.67-a 2.2.68 2.2.69 2.2.7 2.2.70 2.2.71 2.2.72 2.2.73 2.2.74 2.2.75 2.2.75a All 208 releases
post-grid / includes / dashboard.php

dashboard.php in Post Grid trunk, at includes/dashboard.php

45 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>