Expanded controller for custom icon
Expanded user controller to get the custom icon of individual buttons as a variable for the Button Editor. This will be used to display a custom icon via Font Awesome. See: https://blog.littlelink-custom.com/upcoming-features/ And: https://blog.littlelink-custom.com/progress-of-the-new-button-editor/
This commit is contained in:
parent
a57d206f3c
commit
978add4b7b
|
@ -210,11 +210,12 @@ class UserController extends Controller
|
|||
$title = Link::where('id', $linkId)->value('title');
|
||||
$order = Link::where('id', $linkId)->value('order');
|
||||
$custom_css = Link::where('id', $linkId)->value('custom_css');
|
||||
$custom_icon = Link::where('id', $linkId)->value('custom_icon');
|
||||
$buttonId = Link::where('id', $linkId)->value('button_id');
|
||||
|
||||
$buttons = Button::select('id', 'name')->get();
|
||||
|
||||
return view('studio/button-editor', ['custom_css' => $custom_css, 'buttonId' => $buttonId, 'buttons' => $buttons, 'link' => $link, 'title' => $title, 'order' => $order, 'id' => $linkId]);
|
||||
return view('studio/button-editor', ['custom_icon' => $custom_icon, 'custom_css' => $custom_css, 'buttonId' => $buttonId, 'buttons' => $buttons, 'link' => $link, 'title' => $title, 'order' => $order, 'id' => $linkId]);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue