mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-22 01:38:49 -05:00
Improve strings for custom CSS
This commit is contained in:
@@ -181,7 +181,7 @@ class UserController extends Controller
|
||||
$user->style = (int)Request::get('theme');
|
||||
$css_url = Request::get('custom_css');
|
||||
if (isset($css_url) && filter_var($css_url, FILTER_VALIDATE_URL) === false) {
|
||||
return redirect()->back()->with(Toastr::warning('The CSS URL is invalid!', 'Error', ['options']));
|
||||
return redirect()->back()->with(Toastr::warning('The URL for the external CSS stylesheet is invalid, try it again with a valid URL.', 'Error', ['options']));
|
||||
} else {
|
||||
$user->custom_css = $css_url;
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@
|
||||
<br>
|
||||
<br>
|
||||
<div class="form-group">
|
||||
<label for="custom_css" class="control-label">Custom CSS URL</label>
|
||||
<input type="text" name="custom_css" class="form-control" value="@if($user->custom_css) {{ $user->custom_css }} @else @endif" placeholder="Custom CSS URL">
|
||||
<label for="custom_css" class="control-label">External CSS Stylesheet</label>
|
||||
<input type="text" name="custom_css" class="form-control" value="@if($user->custom_css) {{ $user->custom_css }}@endif" placeholder="CSS URL">
|
||||
</div>
|
||||
|
||||
<h3>Privacy Settings</h3>
|
||||
|
||||
Reference in New Issue
Block a user