Skip to content

Commit 978add4

Browse files
committed
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/
1 parent a57d206 commit 978add4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Http/Controllers/UserController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,11 +210,12 @@ public function showCSS(request $request)
210210
$title = Link::where('id', $linkId)->value('title');
211211
$order = Link::where('id', $linkId)->value('order');
212212
$custom_css = Link::where('id', $linkId)->value('custom_css');
213+
$custom_icon = Link::where('id', $linkId)->value('custom_icon');
213214
$buttonId = Link::where('id', $linkId)->value('button_id');
214215

215216
$buttons = Button::select('id', 'name')->get();
216217

217-
return view('studio/button-editor', ['custom_css' => $custom_css, 'buttonId' => $buttonId, 'buttons' => $buttons, 'link' => $link, 'title' => $title, 'order' => $order, 'id' => $linkId]);
218+
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]);
218219

219220
}
220221

0 commit comments

Comments
 (0)