进行了一些小优化
This commit is contained in:
@@ -31,7 +31,7 @@ final class FrontendRenderer {
|
||||
return;
|
||||
}
|
||||
$classes = ['aksrt-widget', 'aksrt-panel-wrap', 'aksrt-widget--' . $definition->slug(), 'aksrt-widget--' . $definition->size()];
|
||||
if ($definition->size() === 'sidebar' && $definition->slug() !== 'user_card') {
|
||||
if ($definition->size() === 'sidebar' && !in_array($definition->slug(), ['user_card', 'author_card'], true)) {
|
||||
$classes[] = 'aksrt-panel';
|
||||
}
|
||||
$device_class = WidgetVisibility::device_class($instance);
|
||||
|
||||
Reference in New Issue
Block a user