diff --git a/app/helpers.php b/app/helpers.php index 95878c09..c6111b47 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -16,15 +16,6 @@ if (! function_exists('get_base_url')) { } } -if (! function_exists('avatar')) { - function avatar(User $user, $size) - { - $fname = base64_encode($user->email).'.png?tid='.$user->avatar; - - return url("avatar/$size/$fname"); - } -} - if (! function_exists('webpack_assets')) { function webpack_assets($relativeUri) { @@ -107,20 +98,6 @@ if (! function_exists('bs_header_extra')) { } } -if (! function_exists('bs_favicon')) { - function bs_favicon() - { - // Fallback to default favicon - $url = Str::startsWith($url = (option('favicon_url') ?: config('options.favicon_url')), 'http') ? $url : url($url); - - return <<< ICONS - - - -ICONS; - } -} - if (! function_exists('bs_menu')) { function bs_menu($type) { @@ -224,34 +201,6 @@ if (! function_exists('bs_copyright')) { } } -if (! function_exists('bs_custom_copyright')) { - function bs_custom_copyright() - { - return get_string_replaced(option_localized('copyright_text'), [ - '{site_name}' => option_localized('site_name'), - '{site_url}' => option('site_url'), - ]); - } -} - -if (! function_exists('bs_role')) { - function bs_role(User $user = null) - { - $user = $user ?: auth()->user(); - - $roles = [ - User::NORMAL => 'normal', - User::BANNED => 'banned', - User::ADMIN => 'admin', - User::SUPER_ADMIN => 'super-admin', - ]; - - $role = Arr::get($roles, $user->permission); - - return trans("admin.users.status.$role"); - } -} - if (! function_exists('option')) { /** * Get / set the specified option value. diff --git a/resources/views/admin/master.blade.php b/resources/views/admin/master.blade.php index b81c4773..aa4ff3c8 100644 --- a/resources/views/admin/master.blade.php +++ b/resources/views/admin/master.blade.php @@ -4,7 +4,7 @@