mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Idea annotator
This commit is contained in:
parent
98590f6871
commit
28bf9d80a3
@ -23,3 +23,6 @@ SilverStripe\Admin\LeftAndMain:
|
||||
SilverStripe\Forms\HTMLEditor\TinyMCEConfig:
|
||||
editor_css:
|
||||
- 'app/client/dist/css/app_editor.css'
|
||||
|
||||
SilverLeague\IDEAnnotator\DataObjectAnnotator:
|
||||
enabled: true
|
||||
|
@ -8,6 +8,10 @@ use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\ORM\ArrayList;
|
||||
use SilverStripe\UserForms\Model\Submission\SubmittedForm;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Dashboard\Dashboard
|
||||
*
|
||||
*/
|
||||
class Dashboard extends LeftAndMain
|
||||
{
|
||||
private static $menu_title = "Dashboard";
|
||||
|
@ -13,6 +13,11 @@ use SilverStripe\Core\Extension;
|
||||
use SilverStripe\Forms\CompositeField;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\AddressExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\AddressExtension $owner
|
||||
*/
|
||||
class AddressExtension extends Extension
|
||||
{
|
||||
public function updateFormFields(FieldList $fields)
|
||||
|
@ -7,6 +7,11 @@ use SilverStripe\Blog\Forms\GridField\GridFieldConfigBlogPost;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\BlogExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\BlogExtension $owner
|
||||
*/
|
||||
class BlogExtension extends DataExtension
|
||||
{
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
|
@ -13,6 +13,12 @@ use SilverStripe\Forms\CheckboxField;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\BlogPostExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\BlogPostExtension $owner
|
||||
* @property boolean $Featured
|
||||
*/
|
||||
class BlogPostExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -11,6 +11,10 @@ namespace A2nt\CMSNiceties\Extensions;
|
||||
use SilverStripe\ORM\HiddenClass;
|
||||
use Page;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\CMSMain_HiddenClass
|
||||
*
|
||||
*/
|
||||
class CMSMain_HiddenClass extends Page implements HiddenClass
|
||||
{
|
||||
|
||||
|
@ -9,6 +9,14 @@ use SilverStripe\Forms\TextareaField;
|
||||
use SilverStripe\Forms\TextField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\EmbeddedObjectExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\EmbeddedObjectExtension $owner
|
||||
* @property boolean $Autoplay
|
||||
* @property boolean $Loop
|
||||
* @property boolean $Controls
|
||||
*/
|
||||
class EmbeddedObjectExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -6,6 +6,11 @@ use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\Forms\Form;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\HtmlEditorFieldExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\HtmlEditorFieldExtension $owner
|
||||
*/
|
||||
class HtmlEditorFieldExtension extends DataExtension
|
||||
{
|
||||
public function updateMediaForm(Form $form)
|
||||
|
@ -10,6 +10,11 @@ use SilverStripe\Forms\TextareaField;
|
||||
use SilverStripe\Forms\TextField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\ImageExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\ImageExtension $owner
|
||||
*/
|
||||
class ImageExtension extends DataExtension
|
||||
{
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
|
@ -9,6 +9,11 @@ use SilverStripe\FontAwesome\FontAwesomeField;
|
||||
use SilverStripe\View\Requirements;
|
||||
use A2nt\CMSNiceties\Templates\DeferredRequirements;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\LeftAndMainExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\LeftAndMainExtension $owner
|
||||
*/
|
||||
class LeftAndMainExtension extends Extension
|
||||
{
|
||||
public function init()
|
||||
|
@ -2,14 +2,7 @@
|
||||
|
||||
namespace A2nt\CMSNiceties\Extensions;
|
||||
|
||||
use Dynamic\Elements\Blog\Elements\ElementBlogPosts;
|
||||
use Innoweb\Sitemap\Pages\SitemapPage;
|
||||
use Sheadawson\Linkable\Forms\LinkField;
|
||||
use Sheadawson\Linkable\Models\Link;
|
||||
use SilverStripe\AssetAdmin\Forms\UploadField;
|
||||
use SilverStripe\Assets\Image;
|
||||
use SilverStripe\Forms\CheckboxField;
|
||||
use SilverStripe\Forms\DropdownField;
|
||||
use SilverStripe\Forms\GridField\GridField;
|
||||
use SilverStripe\Forms\GridField\GridFieldConfig;
|
||||
use SilverStripe\Forms\GridField\GridFieldDeleteAction;
|
||||
@ -18,20 +11,20 @@ use SilverStripe\Forms\GridField\GridFieldEditButton;
|
||||
use SilverStripe\Forms\GridField\GridFieldToolbarHeader;
|
||||
use SilverStripe\Forms\HeaderField;
|
||||
use SilverStripe\Forms\LiteralField;
|
||||
use SilverStripe\Forms\TextareaField;
|
||||
use SilverStripe\Forms\TextField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\CMS\Model\SiteTree;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\TreeMultiselectField;
|
||||
use BetterBrief\GoogleMapField;
|
||||
use A2nt\CMSNiceties\Models\Holiday;
|
||||
use A2nt\CMSNiceties\Models\Notification;
|
||||
use A2nt\CMSNiceties\Models\OpeningHour;
|
||||
use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton;
|
||||
use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
|
||||
use Symbiote\GridFieldExtensions\GridFieldTitleHeader;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\NotificationsExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\NotificationsExtension $owner
|
||||
* @property boolean $ShowNotifications
|
||||
* @method \SilverStripe\ORM\DataList|\A2nt\CMSNiceties\Models\Notification[] Notifications()
|
||||
*/
|
||||
class NotificationsExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -29,6 +29,17 @@ use Symbiote\GridFieldExtensions\GridFieldAddNewInlineButton;
|
||||
use Symbiote\GridFieldExtensions\GridFieldEditableColumns;
|
||||
use Symbiote\GridFieldExtensions\GridFieldTitleHeader;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\OpenningHoursExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\OpenningHoursExtension $owner
|
||||
* @property boolean $ShowOpeningHours
|
||||
* @property string $OpenningHoursNote
|
||||
* @property int $OpeningHoursPageID
|
||||
* @method \SilverStripe\CMS\Model\SiteTree OpeningHoursPage()
|
||||
* @method \SilverStripe\ORM\DataList|\A2nt\CMSNiceties\Models\OpeningHour[] OpeningHours()
|
||||
* @method \SilverStripe\ORM\DataList|\A2nt\CMSNiceties\Models\Holiday[] Holidays()
|
||||
*/
|
||||
class OpenningHoursExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -8,6 +8,11 @@ use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use TractorCow\Fluent\Model\Locale;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\PageFluentExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\PageFluentExtension $owner
|
||||
*/
|
||||
class PageFluentExtension extends DataExtension
|
||||
{
|
||||
/**
|
||||
|
@ -7,6 +7,11 @@ use SilverStripe\Forms\CompositeField;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\TextField;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\PlaceholderFormExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\PlaceholderFormExtension $owner
|
||||
*/
|
||||
class PlaceholderFormExtension extends Extension
|
||||
{
|
||||
public function updateFormFields(FieldList $fields)
|
||||
|
@ -10,6 +10,11 @@ namespace A2nt\CMSNiceties\Extensions;
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\ShoppingCartControllerExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\ShoppingCartControllerExtension $owner
|
||||
*/
|
||||
class ShoppingCartControllerExtension extends DataExtension
|
||||
{
|
||||
public function updateAddResponse($request, $response, $product, $quantity)
|
||||
|
@ -18,6 +18,25 @@ use SilverStripe\Forms\DropdownField;
|
||||
|
||||
//use BetterBrief\GoogleMapField;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\SiteConfigExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\SiteConfigExtension $owner
|
||||
* @property string $ExtraCode
|
||||
* @property float $Longitude
|
||||
* @property float $Latitude
|
||||
* @property int $MapZoom
|
||||
* @property string $Description
|
||||
* @property string $Address
|
||||
* @property string $Suburb
|
||||
* @property string $State
|
||||
* @property string $ZipCode
|
||||
* @property int $PrivacyPolicyID
|
||||
* @property int $SitemapID
|
||||
* @method \SilverStripe\CMS\Model\SiteTree PrivacyPolicy()
|
||||
* @method \SilverStripe\CMS\Model\SiteTree Sitemap()
|
||||
* @method \SilverStripe\ORM\ManyManyList|\SilverStripe\CMS\Model\SiteTree[] Navigation()
|
||||
*/
|
||||
class SiteConfigExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -6,6 +6,12 @@ use SilverStripe\Forms\TextareaField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Forms\FieldList;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\SiteTreeExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\SiteTreeExtension $owner
|
||||
* @property string $ExtraCode
|
||||
*/
|
||||
class SiteTreeExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -16,6 +16,11 @@ use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\ToggleCompositeField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\SlideImageExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\SlideImageExtension $owner
|
||||
*/
|
||||
class SlideImageExtension extends DataExtension
|
||||
{
|
||||
|
||||
|
@ -15,6 +15,27 @@ use SilverStripe\Forms\TextField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
use SilverStripe\Security\Member;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\SocialExtension
|
||||
*
|
||||
* @property \A2nt\ElementalBasics\Models\TeamMember|\A2nt\CMSNiceties\Extensions\SocialExtension $owner
|
||||
* @property int $FacebookID
|
||||
* @property int $LinkedInID
|
||||
* @property int $PinterestID
|
||||
* @property int $InstagramID
|
||||
* @property int $TwitterID
|
||||
* @property int $YouTubeID
|
||||
* @property int $PublicEmailID
|
||||
* @property int $PhoneNumberID
|
||||
* @method \Sheadawson\Linkable\Models\Link Facebook()
|
||||
* @method \Sheadawson\Linkable\Models\Link LinkedIn()
|
||||
* @method \Sheadawson\Linkable\Models\Link Pinterest()
|
||||
* @method \Sheadawson\Linkable\Models\Link Instagram()
|
||||
* @method \Sheadawson\Linkable\Models\Link Twitter()
|
||||
* @method \Sheadawson\Linkable\Models\Link YouTube()
|
||||
* @method \Sheadawson\Linkable\Models\Link PublicEmail()
|
||||
* @method \Sheadawson\Linkable\Models\Link PhoneNumber()
|
||||
*/
|
||||
class SocialExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -4,6 +4,11 @@ namespace A2nt\CMSNiceties\Extensions;
|
||||
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\SubmittedFormEx
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Extensions\SubmittedFormEx $owner
|
||||
*/
|
||||
class SubmittedFormEx extends DataExtension
|
||||
{
|
||||
public function Title()
|
||||
|
@ -5,6 +5,10 @@ namespace A2nt\CMSNiceties\Extensions;
|
||||
use SilverStripe\ORM\HiddenClass;
|
||||
use SilverStripe\UserForms\Model\UserDefinedForm;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Extensions\UserDefinedForm_HiddenClass
|
||||
*
|
||||
*/
|
||||
class UserDefinedForm_HiddenClass extends UserDefinedForm implements HiddenClass
|
||||
{
|
||||
}
|
||||
|
@ -15,6 +15,14 @@ use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\ValidationResult;
|
||||
use SilverStripe\SiteConfig\SiteConfig;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Models\Holiday
|
||||
*
|
||||
* @property string $Title
|
||||
* @property string $Date
|
||||
* @property int $ParentID
|
||||
* @method \SilverStripe\SiteConfig\SiteConfig Parent()
|
||||
*/
|
||||
class Holiday extends DataObject
|
||||
{
|
||||
private static $table_name = 'Holiday';
|
||||
|
@ -8,13 +8,25 @@
|
||||
|
||||
namespace A2nt\CMSNiceties\Models;
|
||||
|
||||
use Dynamic\FlexSlider\Model\SlideImage;
|
||||
use Sheadawson\Linkable\Forms\LinkField;
|
||||
use Sheadawson\Linkable\Models\Link;
|
||||
use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\ValidationResult;
|
||||
use SilverStripe\SiteConfig\SiteConfig;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Models\Notification
|
||||
*
|
||||
* @property string $Title
|
||||
* @property string $Content
|
||||
* @property string $DateOn
|
||||
* @property string $DateOff
|
||||
* @property string $Area
|
||||
* @property int $ParentID
|
||||
* @property int $TargetLinkID
|
||||
* @method \SilverStripe\SiteConfig\SiteConfig Parent()
|
||||
* @method \Sheadawson\Linkable\Models\Link TargetLink()
|
||||
*/
|
||||
class Notification extends DataObject
|
||||
{
|
||||
private static $table_name = 'Notification';
|
||||
|
@ -15,6 +15,18 @@ use SilverStripe\ORM\DataObject;
|
||||
use SilverStripe\ORM\ValidationResult;
|
||||
use SilverStripe\SiteConfig\SiteConfig;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Models\OpeningHour
|
||||
*
|
||||
* @property string $Day
|
||||
* @property string $From
|
||||
* @property string $Till
|
||||
* @property string $Comment
|
||||
* @property string $DisplayStart
|
||||
* @property string $DisplayEnd
|
||||
* @property int $ParentID
|
||||
* @method \SilverStripe\SiteConfig\SiteConfig Parent()
|
||||
*/
|
||||
class OpeningHour extends DataObject
|
||||
{
|
||||
private static $table_name = 'OpeningHour';
|
||||
|
@ -91,15 +91,25 @@ class DeferredRequirements implements TemplateGlobalProvider
|
||||
self::loadJS($mainTheme.'.js');
|
||||
|
||||
// Custom controller requirements
|
||||
$curr_class = $class ?: get_class(Controller::curr());
|
||||
if (isset($config['custom_requirements'][$curr_class])) {
|
||||
foreach ($config['custom_requirements'][$curr_class] as $file) {
|
||||
$loadRequirement = static function ($file) {
|
||||
if (strpos($file, '.css')) {
|
||||
self::loadCSS($file);
|
||||
}
|
||||
if (strpos($file, '.js')) {
|
||||
self::loadJS($file);
|
||||
}
|
||||
};
|
||||
|
||||
$curr_class = $class ?: get_class(Controller::curr());
|
||||
if (isset($config['custom_requirements'][$curr_class])) {
|
||||
foreach ($config['custom_requirements'][$curr_class] as $file) {
|
||||
if (is_array($file)) {
|
||||
foreach ($file as $f) {
|
||||
$loadRequirement($f);
|
||||
}
|
||||
} else {
|
||||
$loadRequirement($file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,14 @@ if (!class_exists(Widget::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\BannerWidget
|
||||
*
|
||||
* @property int $ImageID
|
||||
* @property int $LinkID
|
||||
* @method \SilverStripe\Assets\Image Image()
|
||||
* @method \Sheadawson\Linkable\Models\Link Link()
|
||||
*/
|
||||
class BannerWidget extends Widget
|
||||
{
|
||||
private static $title = 'Banner';
|
||||
|
@ -14,6 +14,11 @@ if (!class_exists(Widget::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\ContentWidget
|
||||
*
|
||||
* @property string $Text
|
||||
*/
|
||||
class ContentWidget extends Widget
|
||||
{
|
||||
private static $title = 'Content';
|
||||
|
@ -14,6 +14,12 @@ if (!class_exists(Widget::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\ElementWidget
|
||||
*
|
||||
* @property int $ElementID
|
||||
* @method \DNADesign\Elemental\Models\BaseElement Element()
|
||||
*/
|
||||
class ElementWidget extends Widget
|
||||
{
|
||||
private static $title = 'Virtual Element';
|
||||
|
@ -16,6 +16,11 @@ if (!class_exists(Widget::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\LinksWidget
|
||||
*
|
||||
* @method \SilverStripe\ORM\ManyManyList|\Sheadawson\Linkable\Models\Link[] Links()
|
||||
*/
|
||||
class LinksWidget extends Widget
|
||||
{
|
||||
private static $title = 'Links';
|
||||
|
@ -10,6 +10,11 @@ if (!class_exists(Widget::class)) {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\SubmenuWidget
|
||||
*
|
||||
* @property boolean $TopLevelSubmenu
|
||||
*/
|
||||
class SubmenuWidget extends Widget
|
||||
{
|
||||
private static $title = 'Sub-Menu';
|
||||
|
@ -10,6 +10,12 @@ use SilverStripe\Forms\FieldList;
|
||||
use SilverStripe\Forms\TreeDropdownField;
|
||||
use SilverStripe\ORM\DataExtension;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\WidgetExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Widgets\WidgetExtension $owner
|
||||
* @property boolean $ShowTitle
|
||||
*/
|
||||
class WidgetExtension extends DataExtension
|
||||
{
|
||||
private static $db = [
|
||||
|
@ -9,6 +9,11 @@ use SilverStripe\Widgets\Forms\WidgetAreaEditor;
|
||||
use SilverStripe\Widgets\Model\Widget;
|
||||
use SilverStripe\Widgets\Model\WidgetArea;
|
||||
|
||||
/**
|
||||
* Class \A2nt\CMSNiceties\Widgets\WidgetPageExtension
|
||||
*
|
||||
* @property \A2nt\CMSNiceties\Widgets\WidgetPageExtension $owner
|
||||
*/
|
||||
class WidgetPageExtension extends \SilverStripe\Widgets\Extensions\WidgetPageExtension
|
||||
{
|
||||
public function updateCMSFields(FieldList $fields)
|
||||
|
Loading…
Reference in New Issue
Block a user