silverstripe-blog/code/forms/BlogAdminSidebar.php
2015-02-02 10:32:40 +00:00

13 lines
224 B
PHP

<?php
class BlogAdminSidebar extends FieldGroup {
public function isOpen() {
$sidebar = Cookie::get('blog-admin-sidebar');
if($sidebar == 1 || is_null($sidebar)) {
return true;
}
return false;
}
}