Version: current

     1 <?php
     2 /**
     3  * Description of AnnouncementDecorator
     4  *
     5  * @author inxo
     6  */
     7 class AnnouncementDecorator extends DataObjectDecorator {
     8     function ShowAnonsWidget($id=null,$count=null) {
     9         if(class_exists('Announcement'))
    10             return singleton('Announcement')->Widget($id,$count);
    11         return false;
    12     }
    13 }
    14

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -