diff --git a/code/AssetTableField.php b/code/AssetTableField.php index de656cb4..cb9a874d 100755 --- a/code/AssetTableField.php +++ b/code/AssetTableField.php @@ -108,34 +108,6 @@ class AssetTableField extends ComplexTableField { new LiteralField("ImageFull", "{$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')) {