X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/vendor/botble/shortcode/helpers
home
/
gfecatvj
/
sites
/
restate
/
vendor
/
botble
/
shortcode
/
helpers
/
📁
..
📄
helpers.php
(1.04 KB)
Editing: helpers.php
<?php if (!function_exists('shortcode')) { /** * @return \Botble\Shortcode\Shortcode */ function shortcode() { return app('shortcode'); } } if (!function_exists('add_shortcode')) { /** * @param string $key * @param string $name * @param null|string $description * @param Callable|string $callback * @return \Botble\Shortcode\Shortcode */ function add_shortcode($key, $name, $description = null, $callback = null) { return shortcode()->register($key, $name, $description, $callback); } } if (!function_exists('do_shortcode')) { /** * @param string $content * @return string */ function do_shortcode($content) { return shortcode()->compile($content); } } if (!function_exists('generate_shortcode')) { /** * @param string $name * @param array $attributes * @return string */ function generate_shortcode($name, array $attributes = []) { return shortcode()->generateShortcode($name, $attributes); } }
Upload File
Create Folder