{* ADMIN-only slideout sidebar for real-time theme customization *} {$settings = $theme_settings_config} {$array_name = "parent_settings"} {if $wa->param('app') == "site"} {$array_name = "settings"} {/if} {* QUICK LINKS ARRAY *} {$app = $wa->param('app')} {$action = $wa->param('action')} {$plugin = $wa->param('plugin')} {$quick_links = []} {if empty($plugin)} {if $app == 'shop' && $action == 'category' && !empty($category)} {$quick_links[] = [ "name" => "[s`Edit`]", "href" => "{$wa_backend_url}shop/?action=products#/products/category_id={$category.id}" ]} {elseif $app == 'shop' && $action == 'product' && !empty($product)} {$quick_links[] = [ "name" => "[s`Edit`]", "href" => "{$wa_backend_url}shop/?action=products#/product/{$product.id}/edit/" ]} {elseif $app == 'blog' && $action == 'post' && !empty($post)} {$quick_links[] = [ "name" => "[s`Edit`]", "href" => "{$wa_backend_url}blog/?module=post&id={$post.id}&action=edit" ]} {elseif $action == 'page'} {$href = false} {if $app == 'shop' && !empty($page.id)} {$href = "{$wa_backend_url}{$app}/?action=storefronts#/pages/{$page.id}"} {elseif $app == 'blog' && !empty($page.id)} {$href = "{$wa_backend_url}{$app}/?module=pages#/{$page.id}"} {/if} {if $href} {$quick_links[] = [ "name" => "[s`Edit`]", "href" => $href ]} {/if} {elseif $app == 'site' && !empty($page.id)} {$quick_links[] = [ "name" => "[s`Edit`]", "href" => "{$wa_backend_url}{$app}/#/pages/{$page.id}" ]} {/if} {/if} {if $settings} {* Settings Block for Admin *} {/if}