mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
MINOR: tweaking implementation
This commit is contained in:
parent
c8914cc779
commit
afecae4eba
@ -8,7 +8,7 @@ SilverStripe\Security\Member:
|
|||||||
---
|
---
|
||||||
Name: featuredpostswidget
|
Name: featuredpostswidget
|
||||||
Only:
|
Only:
|
||||||
moduleexists: widgets
|
moduleexists: silverstripe/widgets
|
||||||
---
|
---
|
||||||
SilverStripe\Blog\Model\BlogPost:
|
SilverStripe\Blog\Model\BlogPost:
|
||||||
extensions:
|
extensions:
|
||||||
|
@ -28,7 +28,5 @@ class BlogPostFeaturedExtension extends DataExtension
|
|||||||
'Root.PostOptions',
|
'Root.PostOptions',
|
||||||
CheckboxField::create('FeaturedInWidget', _t(__CLASS__ . '.FEATURED', 'Include Post in Feature Widget'))
|
CheckboxField::create('FeaturedInWidget', _t(__CLASS__ . '.FEATURED', 'Include Post in Feature Widget'))
|
||||||
);
|
);
|
||||||
|
|
||||||
return $fields;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace SilverStripe\Blog\Widgets;
|
|
||||||
|
|
||||||
use SilverStripe\Widgets\Model\WidgetController;
|
|
||||||
|
|
||||||
if (!class_exists(WidgetController::class)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
class BlogFeaturedPostsWidgetController extends WidgetController
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user