silverstripe-blog/code/forms/BlogAdminSidebar.php

19 lines
293 B
PHP
Raw Normal View History

2015-11-21 07:17:29 +01:00
<?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;
}
}