silverstripe-blog/code/forms/BlogAdminSidebar.php
Christopher Pitt 787c02a19d Clean up
2015-05-11 10:11:21 +12:00

17 lines
256 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;
}
}