mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR: removed Gallery Module code from AssetTableField
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@70360 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
b9e07bba5b
commit
59d89be316
@ -108,34 +108,6 @@ class AssetTableField extends ComplexTableField {
|
||||
new LiteralField("ImageFull",
|
||||
"<img id='thumbnailImage' src='{$thumbnail}?r=" . rand(1,100000) . "' alt='{$childData->Name}' />" )
|
||||
);
|
||||
|
||||
if(class_exists('GalleryFile')) {
|
||||
$tab = $detailFormFields->findOrMakeTab("BottomRoot.GalleryOptions", _t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'));
|
||||
$tab->push(
|
||||
new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') )
|
||||
);
|
||||
}
|
||||
}
|
||||
else if (class_exists('GalleryFile')) {
|
||||
$tab = $detailFormFields->findOrMakeTab("BottomRoot.GalleryOptions", _t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'));
|
||||
if( $childData->Extension == 'swf' ) {
|
||||
$tab->push(
|
||||
new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ),
|
||||
new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ),
|
||||
new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') ),
|
||||
new HeaderField( 'SWFFileOptionsHeader', _t('AssetTableField.SWFFILEOPTIONS', 'SWF File Options') ),
|
||||
new CheckboxField( 'Embed', _t('AssetTableField.ISFLASH', 'Is A Flash Document') ),
|
||||
new CheckboxField( 'LimitDimensions', _t('AssetTableField.DIMLIMT', 'Limit The Dimensions In The Popup Window') )
|
||||
);
|
||||
}
|
||||
else {
|
||||
$tab = $detailFormFields->findOrMakeTab("BottomRoot.GalleryOptions", _t('AssetTableField.GALLERYOPTIONS', 'Gallery Options'));
|
||||
$tab->push(
|
||||
new TextField( "Content", _t('AssetTableField.CAPTION', 'Caption') ),
|
||||
new TextField( 'PopupWidth', _t('AssetTableField.POPUPWIDTH', 'Popup Width') ),
|
||||
new TextField( 'PopupHeight', _t('AssetTableField.POPUPHEIGHT', 'Popup Height') )
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if($childData && $childData->hasMethod('BackLinkTracking')) {
|
||||
|
Loading…
Reference in New Issue
Block a user