X7ROOT File Manager
Current Path:
/home/gfecatvj/sites/restate/platform/core/base/helpers
home
/
gfecatvj
/
sites
/
restate
/
platform
/
core
/
base
/
helpers
/
📁
..
📄
action-filter.php
(1.69 KB)
📄
common.php
(2.83 KB)
📄
constants.php
(5.06 KB)
📄
meta-box.php
(1.78 KB)
📄
sort.php
(955 B)
Editing: common.php
<?php use Botble\Base\Facades\DashboardMenuFacade; use Botble\Base\Facades\PageTitleFacade; use Botble\Base\Supports\Editor; use Botble\Base\Supports\PageTitle; if (!function_exists('anchor_link')) { /** * @param string $link * @param string $name * @param array $options * @return string * @throws Throwable * @deprecated */ function anchor_link(?string $link, ?string $name, array $options = []): string { return Html::link($link, $name, $options); } } if (!function_exists('language_flag')) { /** * @param string $flag * @param string $name * @return string */ function language_flag(string $flag, ?string $name = null): string { return Html::image(url(BASE_LANGUAGE_FLAG_PATH . $flag . '.svg'), $name, ['title' => $name, 'width' => 16]); } } if (!function_exists('render_editor')) { /** * @param string $name * @param string|null $value * @param bool $withShortCode * @param array $attributes * @return string * @throws Throwable */ function render_editor(string $name, ?string $value = null, $withShortCode = false, array $attributes = []): string { return (new Editor)->render($name, $value, $withShortCode, $attributes); } } if (!function_exists('is_in_admin')) { /** * @return bool */ function is_in_admin(): bool { $isInAdmin = request()->segment(1) === config('core.base.general.admin_dir'); return apply_filters(IS_IN_ADMIN_FILTER, $isInAdmin); } } if (!function_exists('page_title')) { /** * @return PageTitle */ function page_title() { return PageTitleFacade::getFacadeRoot(); } } if (!function_exists('dashboard_menu')) { /** * @return \Botble\Base\Supports\DashboardMenu */ function dashboard_menu() { return DashboardMenuFacade::getFacadeRoot(); } } if (!function_exists('get_cms_version')) { /** * @return string */ function get_cms_version(): string { try { return trim(get_file_data(core_path('VERSION'), false)); } catch (Exception $exception) { return '5.6'; } } } if (!function_exists('platform_path')) { /** * @param string|null $path * @return string */ function platform_path($path = null): string { return base_path('platform/' . $path); } } if (!function_exists('core_path')) { /** * @param string|null $path * @return string */ function core_path($path = null): string { return platform_path('core/' . $path); } } if (!function_exists('package_path')) { /** * @param string|null $path * @return string */ function package_path($path = null): string { return platform_path('packages/' . $path); } }
Upload File
Create Folder