headScript()->appendFile($this->assetUrl('js/browse.js')); $translate = $this->plugin('translate'); $layoutSetting = $this->themeSetting('browse_layout'); $gridState = ($layoutSetting == 'togglegrid') ? 'disabled' : ''; $listState = ($layoutSetting == 'togglelist') ? 'disabled': ''; $currentLayout = (!isset($layoutSetting) || strpos($layoutSetting, 'grid') !== false) ? 'grid' : 'list'; $isGrid = ($currentLayout == 'grid') ? true : false; $queryUrl = $this->url( 'site/resource', ['controller' => $this->resourceType, 'action' => 'browse'], ['query' => $this->query], true ); ?>