Skip to content

Commit 99540e6

Browse files
committed
Apply browse layout checks to browse preview.
1 parent 4831a5a commit 99540e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

view/common/block-layout/browse-preview.phtml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
$this->headScript()->appendFile($this->assetUrl('js/browse.js'));
33
$translate = $this->plugin('translate');
44
$escape = $this->plugin('escapeHtml');
5-
$layoutSetting = $this->themeSetting('browse_layout');
5+
$layoutSetting = $this->themeSetting('browse_layout', 'grid');
66
$gridState = ($layoutSetting == 'togglegrid') ? 'disabled' : '';
77
$listState = ($layoutSetting == 'togglelist') ? 'disabled': '';
8-
$currentLayout = (!isset($layoutSetting) || strpos($layoutSetting, 'grid') !== false) ? 'grid' : 'list';
8+
$currentLayout = (strpos($layoutSetting, 'grid') !== false) ? 'grid' : 'list';
99
?>
1010
<div class="preview-block browse">
1111

0 commit comments

Comments
 (0)