From: Matthias Schmidt Date: Thu, 14 Jul 2016 18:00:18 +0000 (+0200) Subject: Add simple acl for media X-Git-Tag: 3.0.0_Beta_1~1131 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c14f5026ff8a8930cb55abd9dcd91e1ad4df6d4b;p=GitHub%2FWoltLab%2FWCF.git Add simple acl for media --- diff --git a/com.woltlab.wcf/objectType.xml b/com.woltlab.wcf/objectType.xml index 92f027c6b6..6c726a2bd1 100644 --- a/com.woltlab.wcf/objectType.xml +++ b/com.woltlab.wcf/objectType.xml @@ -1059,7 +1059,7 @@ - + com.woltlab.wcf.page com.woltlab.wcf.acl.simple @@ -1068,7 +1068,11 @@ com.woltlab.wcf.box com.woltlab.wcf.acl.simple - + + com.woltlab.wcf.media + com.woltlab.wcf.acl.simple + + diff --git a/com.woltlab.wcf/templates/__box.tpl b/com.woltlab.wcf/templates/__box.tpl index d6a72d066d..81d06a6d1b 100644 --- a/com.woltlab.wcf/templates/__box.tpl +++ b/com.woltlab.wcf/templates/__box.tpl @@ -1,5 +1,5 @@ -<{if $box->showHeader}section{else}div{/if} class="box{if $box->hasImage()} boxWithImage{/if}{if $box->cssClassName} {$box->cssClassName}{/if}" data-box-identifier="{@$box->identifier}"> - {if $box->hasImage()} +<{if $box->showHeader}section{else}div{/if} class="box{if $box->getImage()} boxWithImage{/if}{if $box->cssClassName} {$box->cssClassName}{/if}" data-box-identifier="{@$box->identifier}"> + {if $box->getImage()}
{if $box->hasLink()} {@$box->getImage()} diff --git a/com.woltlab.wcf/templates/aclSimple.tpl b/com.woltlab.wcf/templates/aclSimple.tpl new file mode 100644 index 0000000000..3fa5a97cea --- /dev/null +++ b/com.woltlab.wcf/templates/aclSimple.tpl @@ -0,0 +1,59 @@ +{if !$__aclSimplePrefix|isset}{assign var='__aclSimplePrefix' value=''}{/if} + +
+
+
+
+
    +
  1. + + +
  2. +
  3. + + +
  4. +
+
+
+
+ + + + diff --git a/com.woltlab.wcf/templates/languageChooser.tpl b/com.woltlab.wcf/templates/languageChooser.tpl index b3fb0a854d..d537396a51 100644 --- a/com.woltlab.wcf/templates/languageChooser.tpl +++ b/com.woltlab.wcf/templates/languageChooser.tpl @@ -1,9 +1,10 @@ +{if !$__languageChooserPrefix|isset}{assign var='__languageChooserPrefix' value=''}{/if} {if !$label|isset}{assign var='label' value='wcf.user.language'}{/if} {if $languages|count}
{lang}{$label}{/lang}
-
+
- + {include file='languageChooser' label='wcf.media.languageID'} - +
-
+
- +
- {include file='multipleLanguageInputJavascript' elementIdentifier='title' forceSelection=true} - + {include file='multipleLanguageInputJavascript' elementIdentifier='title'|concat:'_':$media->mediaID forceSelection=true} +
-
+
- +
- {include file='multipleLanguageInputJavascript' elementIdentifier='caption' forceSelection=true} - + {include file='multipleLanguageInputJavascript' elementIdentifier='caption'|concat:'_':$media->mediaID forceSelection=true} +
-
+
- +
- {include file='multipleLanguageInputJavascript' elementIdentifier='altText' forceSelection=true} - + {include file='multipleLanguageInputJavascript' elementIdentifier='altText'|concat:'_':$media->mediaID forceSelection=true} + {event name='dataFields'} +{include file='aclSimple'} +
diff --git a/com.woltlab.wcf/templates/mediaJavaScript.tpl b/com.woltlab.wcf/templates/mediaJavaScript.tpl index ccac490856..76d9aae80d 100644 --- a/com.woltlab.wcf/templates/mediaJavaScript.tpl +++ b/com.woltlab.wcf/templates/mediaJavaScript.tpl @@ -11,7 +11,6 @@ 'wcf.media.insert.imageSize.original': '{lang}wcf.media.insert.imageSize.original{/lang}', 'wcf.media.manager': '{lang}wcf.media.manager{/lang}', 'wcf.media.edit': '{lang}wcf.media.edit{/lang}', - 'wcf.media.imageDimensions.value': '{lang __literal=true}wcf.media.imageDimensions.value{/lang}', 'wcf.media.button.insert': '{lang}wcf.media.button.insert{/lang}', 'wcf.media.search.filetype': '{lang}wcf.media.search.filetype{/lang}', 'wcf.media.search.noResults': '{lang}wcf.media.search.noResults{/lang}' diff --git a/wcfsetup/install/files/acp/templates/aclSimple.tpl b/wcfsetup/install/files/acp/templates/aclSimple.tpl index 35a2d2b897..0ddd8d3a2c 100644 --- a/wcfsetup/install/files/acp/templates/aclSimple.tpl +++ b/wcfsetup/install/files/acp/templates/aclSimple.tpl @@ -1,34 +1,36 @@ +{if !$__aclSimplePrefix|isset}{assign var='__aclSimplePrefix' value=''}{/if} +
-
+
  1. - - + +
  2. - - + +
-