/home/techb158/immovalet.com/platform/core/base/helpers
NameSizeModeActions
action-filter.php17290644editdlrm
common.php30770644editdlrm
constants.php52500644editdlrm
meta-box.php20190644editdlrm
sort.php10950644editdlrm
Edit: /home/techb158/immovalet.com/platform/core/base/helpers/common.php (3077B)
$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')) { /** * @param bool $force * @return bool */ function is_in_admin($force = false): bool { $prefix = BaseHelper::getAdminPrefix(); $segments = array_slice(request()->segments(), 0, count(explode('/', $prefix))); $isInAdmin = implode('/', $segments) === $prefix; return $force ? $isInAdmin : 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.14'; } } } 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); } }