File manager - Edit - /home/linknsbh/cecil-hotel.net/platform/packages/shortcode/helpers/helpers.php
Back
<?php use Botble\Shortcode\Shortcode; use Illuminate\Support\HtmlString; if (! function_exists('shortcode')) { function shortcode(): Shortcode { return app('shortcode'); } } if (! function_exists('add_shortcode')) { function add_shortcode( string $key, string|null $name, string|null $description = null, string|null|callable|array $callback = null, string|null $previewImage = '' ): Shortcode { return shortcode()->register($key, $name, $description, $callback, $previewImage); } } if (! function_exists('do_shortcode')) { function do_shortcode(string $content): HtmlString { return shortcode()->compile($content, true); } } if (! function_exists('generate_shortcode')) { function generate_shortcode(string $name, array $attributes = []): string { return shortcode()->generateShortcode($name, $attributes); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0.72 |
proxy
|
phpinfo
|
Settings