From e5a9483e7403bf9dba121319f87a8032c3d690f5 Mon Sep 17 00:00:00 2001 From: Sacha Judd Date: Mon, 14 Jan 2019 13:25:52 +1300 Subject: [PATCH] NEW Add font-icon for site tree blog holder and posts --- src/Model/Blog.php | 8 ++++---- src/Model/BlogPost.php | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/Model/Blog.php b/src/Model/Blog.php index 0ea3047..b8d5000 100644 --- a/src/Model/Blog.php +++ b/src/Model/Blog.php @@ -130,7 +130,7 @@ class Blog extends Page implements PermissionProvider */ private static $description = 'Adds a blog to your website.'; - private static $icon = 'silverstripe/blog:client/images/site-tree-icon.png'; + private static $icon_class = 'font-icon-p-posts'; /** * {@inheritdoc} @@ -369,7 +369,7 @@ class Blog extends Page implements PermissionProvider ->setDescription( _t( __CLASS__ . '.UsersEditorsFieldDescription', - 'An editor has control over specific Blogs, and all posts included within it. + 'An editor has control over specific Blogs, and all posts included within it. Short of being able to assign other editors to a blog, they are able to handle most changes to their assigned blog.

Editors have these permissions:
@@ -395,7 +395,7 @@ class Blog extends Page implements PermissionProvider Writers have these permissions:

Update or publish any BlogPost they have authored or have been assigned to
- Assign/unassign any member as an author of a particular BlogPost they have authored or have been + Assign/unassign any member as an author of a particular BlogPost they have authored or have been assigned to' ) ); @@ -410,7 +410,7 @@ class Blog extends Page implements PermissionProvider ->setDescription( _t( __CLASS__ . '.UsersContributorsFieldDescription', - 'Contributors have the ability to create or edit BlogPosts, but are unable to publish without + 'Contributors have the ability to create or edit BlogPosts, but are unable to publish without authorisation of an editor. They are also unable to assign other contributing authors to any of their BlogPosts.

diff --git a/src/Model/BlogPost.php b/src/Model/BlogPost.php index 5e2721d..189fa30 100644 --- a/src/Model/BlogPost.php +++ b/src/Model/BlogPost.php @@ -55,6 +55,11 @@ class BlogPost extends Page */ private static $table_name = 'BlogPost'; + /** + * @var string + */ + private static $icon_class = 'font-icon-p-post'; + /** * @var array */