| 1 |
<?php |
| 2 |
if (!defined('ABSPATH')) exit; // if direct access |
| 3 |
|
| 4 |
wp_enqueue_style('builder-output', post_grid_plugin_url . '/dist/output.css', [], time(), 'all'); |
| 5 |
|
| 6 |
|
| 7 |
wp_enqueue_style('wp-components'); |
| 8 |
wp_enqueue_style('animate'); |
| 9 |
|
| 10 |
wp_enqueue_script('pgpostgrid_builder-js'); |
| 11 |
|
| 12 |
wp_register_style('icofont-icons', post_grid_plugin_url . 'assets/css/icofont/icofont.min.css'); |
| 13 |
wp_enqueue_style('icofont-icons'); |
| 14 |
|
| 15 |
wp_register_style('bootstrap-icons', post_grid_plugin_url . 'assets/css/bootstrap-icons/bootstrap-icons.css'); |
| 16 |
|
| 17 |
wp_enqueue_style('bootstrap-icons'); |
| 18 |
wp_register_style('fontawesome-icons', post_grid_plugin_url . 'assets/css/fontawesome/css/all.min.css'); |
| 19 |
wp_enqueue_style('fontawesome-icons'); |
| 20 |
|
| 21 |
|
| 22 |
wp_register_style('pgcontent_slider_splide_core', post_grid_plugin_url . 'assets/css/splide-core.min.css'); |
| 23 |
|
| 24 |
wp_enqueue_style('pgcontent_slider_splide_core'); |
| 25 |
wp_enqueue_editor(); |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
wp_enqueue_script( |
| 30 |
'post_grid_builder_js', |
| 31 |
post_grid_plugin_url . 'build/index.js', |
| 32 |
[ |
| 33 |
'wp-blocks', |
| 34 |
'wp-editor', |
| 35 |
'wp-i18n', |
| 36 |
'wp-element', |
| 37 |
'wp-components', |
| 38 |
'wp-data', |
| 39 |
'wp-plugins', |
| 40 |
'wp-edit-post', |
| 41 |
], |
| 42 |
time() |
| 43 |
|
| 44 |
); |
| 45 |
|
| 46 |
wp_localize_script('post_grid_builder_js', 'post_grid_builder_js', array('post_grid_ajaxurl' => admin_url('admin-ajax.php'), '_wpnonce' => wp_create_nonce('wp_rest'))); |
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
?> |
| 54 |
<div class="wrap"> |
| 55 |
<div id="builder" class=""></div> |
| 56 |
</div> |