@@ -135,17 +135,21 @@ class DashboardPanelCollection extends DashboardPanel
135135 if ($markup === 'actions__') {
136136 $content = $this->renderPageActions($page);
137137 }
138+ // Special case: page icon
139+ elseif ($markup === 'page_icon') {
140+ $content = $this->renderIcon($page->getIcon());
141+ }
138142 // Special case: page status
139143 elseif ($markup === 'status__') {
140144 $content = $this->renderStatusIcon($page);
141145 }
142146 // Special case: published status toggle
143- elseif (in_array( $markup, [ 'published__', 'visible__']) ) {
144- $content = $this->renderStatusToggle($page, $markup );
147+ elseif ($markup === 'published__') {
148+ $content = $this->renderStatusToggle($page, 'published' );
145149 }
146- // Special case: page icon
147- elseif ($markup === 'page_icon ') {
148- $content = $this->renderIcon ($page->getIcon() );
150+ // Special case: visible status toggle
151+ elseif ($markup === 'visible__ ') {
152+ $content = $this->renderStatusToggle ($page, 'visible' );
149153 }
150154 // Special case: system timestamps
151155 elseif (in_array($markup, ['modified', 'created'])) {
0 commit comments