File manager - Edit - /home/premiey/www/wp-content/plugins/ameliabooking/src/Infrastructure/WP/GutenbergBlock/AmeliaBookingGutenbergBlock.php
Back
<?php /** * @copyright © TMS-Plugins. All rights reserved. * @licence See LICENCE.md for license details. */ namespace AmeliaBooking\Infrastructure\WP\GutenbergBlock; use AmeliaBooking\Infrastructure\WP\Translations\BackendStrings; /** * Class AmeliaBookingGutenbergBlock * * @package AmeliaBooking\Infrastructure\WP\GutenbergBlock */ class AmeliaBookingGutenbergBlock extends GutenbergBlock { /** * Register Amelia Booking block for Gutenberg */ public static function registerBlockType() { wp_enqueue_script( 'amelia_booking_gutenberg_block', AMELIA_URL . 'public/js/gutenberg/amelia-booking/amelia-booking-gutenberg.js', array( 'wp-blocks', 'wp-components', 'wp-element', 'wp-editor') ); wp_localize_script( 'amelia_booking_gutenberg_block', 'wpAmeliaLabels', array_merge( BackendStrings::getCommonStrings(), BackendStrings::getWordPressStrings(), self::getEntitiesData() ) ); register_block_type( 'amelia/booking-gutenberg-block', array('editor_script' => 'amelia_booking_gutenberg_block') ); } }
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings