mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
19 lines
293 B
PHP
19 lines
293 B
PHP
<?php
|
|
|
|
class BlogAdminSidebar extends FieldGroup
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function isOpen()
|
|
{
|
|
$sidebar = Cookie::get('blog-admin-sidebar');
|
|
|
|
if ($sidebar == 1 || is_null($sidebar)) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|