From 1426afc3964aed5a1a8c432903062f2e095d71f7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 2 Jan 2013 00:02:29 +0100 Subject: [PATCH] Revert "Merge remote branch 'acp.style/master'" This reverts commit 845907323978d1e5a5d499c4ca1224c8e6529af7, reversing changes made to 61d1f05a01c0bb5c54a366392c5213fcd5ad175e. --- .travis.yml | 2 +- acpMenu.xml | 32 -- acptemplates/styleAdd.tpl | 502 ----------------- acptemplates/styleExport.tpl | 75 --- acptemplates/styleImport.tpl | 60 -- acptemplates/styleList.tpl | 95 ---- acptemplates/styleVariableColor.tpl | 5 - acptemplates/styleVariableUnit.tpl | 12 - files/acp/js/WCF.ACP.Style.js | 240 -------- files/lib/acp/form/StyleAddForm.class.php | 541 ------------------- files/lib/acp/form/StyleEditForm.class.php | 137 ----- files/lib/acp/form/StyleExportForm.class.php | 197 ------- files/lib/acp/form/StyleImportForm.class.php | 91 ---- files/lib/acp/page/StyleListPage.class.php | 49 -- files/style/styleEditor.less | 37 -- language/de.xml | 96 ---- package.xml | 26 - userGroupOption.xml | 30 - 18 files changed, 1 insertion(+), 2226 deletions(-) delete mode 100644 acpMenu.xml delete mode 100644 acptemplates/styleAdd.tpl delete mode 100644 acptemplates/styleExport.tpl delete mode 100644 acptemplates/styleImport.tpl delete mode 100644 acptemplates/styleList.tpl delete mode 100644 acptemplates/styleVariableColor.tpl delete mode 100644 acptemplates/styleVariableUnit.tpl delete mode 100644 files/acp/js/WCF.ACP.Style.js delete mode 100644 files/lib/acp/form/StyleAddForm.class.php delete mode 100644 files/lib/acp/form/StyleEditForm.class.php delete mode 100644 files/lib/acp/form/StyleExportForm.class.php delete mode 100644 files/lib/acp/form/StyleImportForm.class.php delete mode 100644 files/lib/acp/page/StyleListPage.class.php delete mode 100644 files/style/styleEditor.less delete mode 100644 language/de.xml delete mode 100644 package.xml delete mode 100644 userGroupOption.xml diff --git a/.travis.yml b/.travis.yml index 8df00cd3a5..785349a614 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,4 @@ before_install: - pear install pear/PHP_CodeSniffer - phpenv rehash script: - - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" . + - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" . \ No newline at end of file diff --git a/acpMenu.xml b/acpMenu.xml deleted file mode 100644 index 433d9a45c7..0000000000 --- a/acpMenu.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - wcf.acp.menu.link.display - 1 - - - - - wcf.acp.menu.link.style - admin.style.canEditStyle,admin.style.canDeleteStyle - 1 - - - - - wcf.acp.menu.link.style - admin.style.canAddStyle - 2 - - - - - wcf.acp.menu.link.style - admin.style.canAddStyle - 3 - - - - diff --git a/acptemplates/styleAdd.tpl b/acptemplates/styleAdd.tpl deleted file mode 100644 index 6d93482c54..0000000000 --- a/acptemplates/styleAdd.tpl +++ /dev/null @@ -1,502 +0,0 @@ -{include file='header' pageTitle='wcf.acp.style.'|concat:$action} - - - - -
-
-

{lang}wcf.acp.style.{$action}{/lang}

-
-
- -{if $errorField} -

{lang}wcf.global.form.error{/lang}

-{/if} - -{if $success|isset} -

{lang}wcf.global.form.{$action}.success{/lang}

-{/if} - -{hascontent} -
- -
-{/hascontent} - -
-
- - - {* general *} -
-
- {lang}wcf.acp.style.general.data{/lang} - - -
-
- - {if $errorField == 'styleName'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.styleName.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'authorName'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.authorName.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'copyright'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.copyright.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'styleVersion'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.styleVersion.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'styleDate'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.styleDate.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'license'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.license.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'authorURL'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.authorURL.{$errorType}{/lang} - {/if} - - {/if} -
- - -
-
- - {if $errorField == 'styleDescription'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.styleDescription.{$errorType}{/lang} - {/if} - - {/if} -
- -
- -
- {lang}wcf.acp.style.general.files{/lang} - - -
-
- -
- {if $errorField == 'image'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.image.{$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.image.description{/lang} -
- - {hascontent} - -
-
- - {if $errorField == 'templateGroupID'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.templateGroupID.{$errorType}{/lang} - {/if} - - {/if} -
- - {/hascontent} - -
-
- - {if $errorField == 'iconPath'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.iconPath.{$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.iconPath.description{/lang} -
- - -
-
- - {if $errorField == 'imagePath'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.error.imagePath.{$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.imagePath.description{/lang} -
- -
-
- - {* globals *} -
- {* layout *} -
- {lang}wcf.acp.style.globals.layout{/lang} - -
-
-
-
-
-
-
- - -
-
-
-
-
-
-
- - -
-
-
-
-
-
- - {lang}wcf.acp.style.globals.pageLogo.description{/lang} -
-
-
- - {* font *} -
- {lang}wcf.acp.style.globals.font{/lang} - -
-
-
- - -
-
-
-
-
- -
-
-
-
- - {* colors *} -
-
- {lang}wcf.acp.style.colors.page{/lang} - - {* page *} -
    -
  • {include file='styleVariableColor' variableName='wcfPageBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfPageColor' languageVariable='color'}
  • -
  • {include file='styleVariableColor' variableName='wcfPageLinkColor' languageVariable='linkColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfPageLinkHoverColor' languageVariable='linkHoverColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.content{/lang} - - {* content *} -
    -
  • {include file='styleVariableColor' variableName='wcfContentBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfColor' languageVariable='color'}
  • -
  • {include file='styleVariableColor' variableName='wcfDimmedColor' languageVariable='dimmedColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfLinkColor' languageVariable='linkColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfLinkHoverColor' languageVariable='linkHoverColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.container{/lang} - - {* general *} -
    -
  • {include file='styleVariableColor' variableName='wcfContainerBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfContainerAccentBackgroundColor' languageVariable='accentBackgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfContainerBorderColor' languageVariable='borderColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfContainerHoverBackgroundColor' languageVariable='hoverBackgroundColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.userPanel{/lang} - - {* user panel *} -
    -
  • {include file='styleVariableColor' variableName='wcfUserPanelBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfUserPanelColor' languageVariable='color'}
  • -
  • {include file='styleVariableColor' variableName='wcfUserPanelHoverBackgroundColor' languageVariable='hoverBackgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfUserPanelHoverColor' languageVariable='hoverColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.tabular{/lang} - - {* general *} -
    -
  • {include file='styleVariableColor' variableName='wcfTabularBoxBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfTabularBoxColor' languageVariable='color'}
  • -
  • {include file='styleVariableColor' variableName='wcfTabularBoxHoverColor' languageVariable='hoverColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.buttons{/lang} - - {* default button *} -
    -
  • {include file='styleVariableColor' variableName='wcfButtonBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonBorderColor' languageVariable='borderColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonColor' languageVariable='color'}
  • -
- - {* button:hover *} -
    -
  • {include file='styleVariableColor' variableName='wcfButtonHoverBackgroundColor' languageVariable='hoverBackgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonHoverBorderColor' languageVariable='hoverBorderColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonHoverColor' languageVariable='hoverColor'}
  • -
- - {* primary button *} -
    -
  • {include file='styleVariableColor' variableName='wcfButtonPrimaryBackgroundColor' languageVariable='primaryBackgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonPrimaryBorderColor' languageVariable='primaryBorderColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfButtonPrimaryColor' languageVariable='primaryColor'}
  • -
-
- -
- {lang}wcf.acp.style.colors.formInput{/lang} - - {* default button *} -
    -
  • {include file='styleVariableColor' variableName='wcfInputBackgroundColor' languageVariable='backgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfInputBorderColor' languageVariable='borderColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfInputColor' languageVariable='color'}
  • -
  • {include file='styleVariableColor' variableName='wcfInputHoverBackgroundColor' languageVariable='hoverBackgroundColor'}
  • -
  • {include file='styleVariableColor' variableName='wcfInputHoverBorderColor' languageVariable='hoverBorderColor'}
  • -
-
-
- - {* advanced *} -
-

{lang}wcf.acp.style.advanced.syntax{/lang}

- -
- {lang}wcf.acp.style.advanced.individualLess{/lang} - - - {lang}wcf.acp.style.advanced.individualLess.description{/lang} -
- - - {lang}wcf.acp.style.advanced.overrideLess{/lang} - -

{lang}wcf.acp.style.advanced.overrideLess.warning{/lang}

- - - {if $errorField == 'overrideLess'} - - {lang}wcf.acp.style.advanced.overrideLess.error{/lang} - {implode from=$errorType item=error}{lang}wcf.acp.style.advanced.overrideLess.error.{$error.error}{/lang}{/implode} - - {/if} - {lang}wcf.acp.style.advanced.overrideLess.description{/lang} - -
-
- -
- - -
-
- -{include file='footer'} \ No newline at end of file diff --git a/acptemplates/styleExport.tpl b/acptemplates/styleExport.tpl deleted file mode 100644 index 897665f45e..0000000000 --- a/acptemplates/styleExport.tpl +++ /dev/null @@ -1,75 +0,0 @@ -{include file='header' pageTitle='wcf.acp.style.exportStyle'} - -
-
-

{lang}wcf.acp.style.exportStyle{/lang}

-
-
- -
- -
- -
-
-
- {lang}wcf.acp.style.exportStyle.components{/lang} - {lang}wcf.acp.style.exportStyle.components.description{/lang} - -
-
- -
-
-
-
- -
-
-
-
- -
-
-
- -
- {lang}wcf.acp.style.exportStyle.asPackage{/lang} - {lang}wcf.acp.style.exportStyle.asPackage.description{/lang} - -
-
- -
-
- -
- -
-
- - {if $errorField == 'packageName'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.packageName.error.{$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.packageName.description{/lang} -
- -
-
- -
- -
-
- -{include file='footer'} \ No newline at end of file diff --git a/acptemplates/styleImport.tpl b/acptemplates/styleImport.tpl deleted file mode 100644 index c1e034b276..0000000000 --- a/acptemplates/styleImport.tpl +++ /dev/null @@ -1,60 +0,0 @@ -{include file='header' pageTitle='wcf.acp.style.importStyle'} - -
-
-

{lang}wcf.acp.style.importStyle{/lang}

-
-
- -{if $success|isset} -

{lang}wcf.global.form.add.success{/lang}

-{/if} - -{hascontent} -
- -
-{/hascontent} - -
-
-
- {lang}wcf.acp.style.import.source{/lang} - - -
-
- - {if $errorField == 'source'} - - {if $errorType == 'empty'} - {lang}wcf.global.form.error.empty{/lang} - {else} - {lang}wcf.acp.style.import.source.error.{@$errorType}{/lang} - {/if} - - {/if} - {lang}wcf.acp.style.import.source.upload.description{/lang} -
- - - {event name='sourceFields'} -
- - {event name='fieldsets'} -
- -
- -
-
- -{include file='footer'} \ No newline at end of file diff --git a/acptemplates/styleList.tpl b/acptemplates/styleList.tpl deleted file mode 100644 index 18cf438a2f..0000000000 --- a/acptemplates/styleList.tpl +++ /dev/null @@ -1,95 +0,0 @@ -{include file='header' pageTitle='wcf.acp.style.list'} - - - - -
-
-

{lang}wcf.acp.style.list{/lang}

-
-
- -
- {pages print=true assign=pagesLinks controller="StyleList" link="pageNo=%d"} - - {hascontent} - - {/hascontent} -
- -
-
    - {foreach from=$objects item=style} -
  1. -
    - -
    -
    -

    {$style->styleName}

    - {if $style->styleDescription}

    {$style->styleDescription}

    {/if} -
    -
      -
    • - {if !$style->isDefault} -
    • -
    • -
    • - {/if} -
    -
    -
    {lang}wcf.acp.style.users{/lang}
    -
    {#$style->users}
    -
    -
    -
    {lang}wcf.acp.style.styleVersion{/lang}
    -
    {$style->styleVersion} ({$style->styleDate})
    -
    -
    -
    {lang}wcf.acp.style.authorName{/lang}
    -
    {if $style->authorURL}{$style->authorName}{else}{$style->authorName}{/if}
    -
    -
    -
    -
  2. - {/foreach} -
-
- -
- {@$pagesLinks} - - {hascontent} - - {/hascontent} -
- -{include file='footer'} diff --git a/acptemplates/styleVariableColor.tpl b/acptemplates/styleVariableColor.tpl deleted file mode 100644 index beffc0709e..0000000000 --- a/acptemplates/styleVariableColor.tpl +++ /dev/null @@ -1,5 +0,0 @@ -
-
{lang}wcf.acp.style.colors.{$languageVariable}{/lang}
-
- -
\ No newline at end of file diff --git a/acptemplates/styleVariableUnit.tpl b/acptemplates/styleVariableUnit.tpl deleted file mode 100644 index e9c76b52da..0000000000 --- a/acptemplates/styleVariableUnit.tpl +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
- - -
-
\ No newline at end of file diff --git a/files/acp/js/WCF.ACP.Style.js b/files/acp/js/WCF.ACP.Style.js deleted file mode 100644 index a920152285..0000000000 --- a/files/acp/js/WCF.ACP.Style.js +++ /dev/null @@ -1,240 +0,0 @@ -/** - * ACP Style related classes. - * - * @author Alexander Ebert - * @copyright 2001-2012 WoltLab GmbH - * @license GNU Lesser General Public License - */ -WCF.ACP.Style = { }; - -/** - * Handles style duplicating. - * - * @param integer styleID - */ -WCF.ACP.Style.CopyStyle = Class.extend({ - /** - * style id - * @var integer - */ - _styleID: 0, - - /** - * Initializes the WCF.ACP.Style.CopyStyle class. - * - * @param integer styleID - */ - init: function(styleID) { - this._styleID = styleID; - - var self = this; - $('.jsCopyStyle').click(function() { - WCF.System.Confirmation.show(WCF.Language.get('wcf.acp.style.copyStyle.confirmMessage'), $.proxy(self._copy, self)); - }); - }, - - /** - * Invokes the style duplicating process. - * - * @param string action - */ - _copy: function(action) { - if (action === 'confirm') { - new WCF.Action.Proxy({ - autoSend: true, - data: { - actionName: 'copy', - className: 'wcf\\data\\style\\StyleAction', - objectIDs: [ this._styleID ] - }, - success: $.proxy(this._success, this) - }); - } - }, - - /** - * Redirects to newly created style. - * - * @param object data - * @param string textStatus - * @param jQuery jqXHR - */ - _success: function(data, textStatus, jqXHR) { - window.location = data.returnValues.redirectURL; - } -}); - -/** - * Handles the preview image upload. - * - * @param integer styleID - * @param string tmpHash - */ -WCF.ACP.Style.ImageUpload = WCF.Upload.extend({ - /** - * upload button - * @var jQuery - */ - _button: null, - - /** - * preview image - * @var jQuery - */ - _image: null, - - /** - * style id - * @var integer - */ - _styleID: 0, - - /** - * tmp hash - * @var string - */ - _tmpHash: '', - - /** - * @see WCF.Upload.init() - */ - init: function(styleID, tmpHash) { - this._styleID = parseInt(styleID) || 0; - this._tmpHash = tmpHash; - - this._button = $('#uploadImage'); - this._image = $('#styleImage'); - - this._super(this._button, undefined, 'wcf\\data\\style\\StyleAction'); - }, - - /** - * @see WCF.Upload._initFile() - */ - _initFile: function(file) { - return this._image; - }, - - /** - * @see WCF.Upload._getParameters() - */ - _getParameters: function() { - return { - styleID: this._styleID, - tmpHash: this._tmpHash - }; - }, - - /** - * @see WCF.Upload._success() - */ - _success: function(uploadID, data) { - if (data.returnValues.url) { - // show image - this._image.attr('src', data.returnValues.url); - - // hide error - this._button.next('.innerError').remove(); - - // show success message - var $notification = new WCF.System.Notification(WCF.Language.get('wcf.acp.style.image.success')); - $notification.show(); - } - else if (data.returnValues.errorType) { - // show error - this._getInnerErrorElement().text(WCF.Language.get('wcf.acp.style.image.error.' + data.returnValues.errorType)); - } - }, - - /** - * Returns error display element. - * - * @return jQuery - */ - _getInnerErrorElement: function() { - var $span = this._button.next('.innerError'); - if (!$span.length) { - $span = $('').insertAfter(this._button); - } - - return $span; - } -}); - -/** - * Handles style list management buttons. - */ -WCF.ACP.Style.List = Class.extend({ - /** - * action proxy - * @var WCF.Action.Proxy - */ - _proxy: null, - - /** - * Initializes the WCF.ACP.Style.List class. - */ - init: function() { - this._proxy = new WCF.Action.Proxy({ - success: $.proxy(this._success, this) - }); - - $('.styleList .buttonList').each($.proxy(function(index, list) { - var $list = $(list); - var $styleID = $list.data('styleID'); - - var self = this; - $list.find('.jsSetAsDefault').click(function() { self._click('setAsDefault', $styleID); }); - $list.find('.jsDelete').click(function(event) { self._delete(event, $styleID); }); - }, this)); - }, - - /** - * Executes actions. - * - * @param string actionName - * @param integer styleID - */ - _click: function(actionName, styleID) { - this._proxy.setOption('data', { - actionName: actionName, - className: 'wcf\\data\\style\\StyleAction', - objectIDs: [ styleID ] - }); - this._proxy.sendRequest(); - }, - - /** - * Prepares to delete a style. - * - * @param object event - * @param integer styleID - */ - _delete: function(event, styleID) { - var $confirmMessage = $(event.currentTarget).data('confirmMessage'); - if ($confirmMessage) { - var self = this; - WCF.System.Confirmation.show($confirmMessage, function(action) { - if (action === 'confirm') { - self._click('delete', styleID); - } - }); - } - else { - // invoke action directly - this._click('delete', styleID); - } - }, - - /** - * Reloads the page after an action was executed successfully. - * - * @param object data - * @param string textStatus - * @param jQuery jqXHR - */ - _success: function (data, textStatus, jqXHR) { - // reload page - window.location.reload(); - } -}); diff --git a/files/lib/acp/form/StyleAddForm.class.php b/files/lib/acp/form/StyleAddForm.class.php deleted file mode 100644 index ac00328227..0000000000 --- a/files/lib/acp/form/StyleAddForm.class.php +++ /dev/null @@ -1,541 +0,0 @@ - - * @package com.woltlab.wcf.acp.style - * @subpackage acp.form - * @category Community Framework - */ -class StyleAddForm extends AbstractForm { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.style.add'; - - /** - * author's name - * @var string - */ - public $authorName = ''; - - /** - * author's URL - * @var string - */ - public $authorURL = ''; - - /** - * list of available font families - * @var array - */ - public $availableFontFamilies = array( - 'Arial, Helvetica, sans-serif' => 'Arial', - 'Chicago, Impact, Compacta, sans-serif' => 'Chicago', - '"Comic Sans MS", sans-serif' => 'Comic Sans', - '"Courier New", Courier, monospace' => 'Courier New', - 'Geneva, Arial, Helvetica, sans-serif' => 'Geneva', - 'Georgia, "Times New Roman", Times, serif' => 'Georgia', - 'Helvetica, Verdana, sans-serif' => 'Helvetica', - 'Impact, Compacta, Chicago, sans-serif' => 'Impact', - '"Lucida Sans", "Lucida Grande", Monaco, Geneva, sans-serif' => 'Lucida', - 'Tahoma, Arial, Helvetica, sans-serif' => 'Tahoma', - '"Times New Roman", Times, Georgia, serif' => 'Times New Roman', - '"Trebuchet MS", Arial, sans-serif' => 'Trebuchet MS', - 'Verdana, Helvetica, sans-serif' => 'Verdana' - ); - - /** - * list of available template groups - * @var array - */ - public $availableTemplateGroups = array(); - - /** - * list of available units - * @var array - */ - public $availableUnits = array('px', 'em', '%', 'pt'); - - /** - * list of color variables - * @var array - */ - public $colors = array(); - - /** - * copyright message - * @var string - */ - public $copyright = ''; - - /** - * font family - * @var string - */ - public $fontFamily = ''; - - /** - * list of global variables - * @var array - */ - public $globals = array(); - - /** - * icon path - * @var string - */ - public $iconPath = 'icon/'; - - /** - * image path - * @var string - */ - public $imagePath = 'images/'; - - /** - * license name - * @var string - */ - public $license = ''; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.style.canAddStyle'); - - /** - * last change date - * @var string - */ - public $styleDate = '0000-00-00'; - - /** - * description - * @var string - */ - public $styleDescription = ''; - - /** - * style name - * @var string - */ - public $styleName = ''; - - /** - * version number - * @var string - */ - public $styleVersion = ''; - - /** - * template group id - * @var integer - */ - public $templateGroupID = 0; - - /** - * temporary image hash - * @var string - */ - public $tmpHash = ''; - - /** - * list of variables and their value - * @var array - */ - public $variables = array(); - - /** - * list of specialized variables - * @var array - */ - public $specialVariables = array(); - - /** - * @see wcf\page\IPage::readParameters() - */ - public function readParameters() { - parent::readParameters(); - - $this->setVariables(); - $this->readStyleVariables(); - - $templateGroupList = new TemplateGroupList(); - $templateGroupList->sqlLimit = 0; - $templateGroupList->sqlOrderBy = "template_group.templateGroupName ASC"; - $templateGroupList->readObjects(); - $this->availableTemplateGroups = $templateGroupList->getObjects(); - - if (isset($_REQUEST['tmpHash'])) { - $this->tmpHash = StringUtil::trim($_REQUEST['tmpHash']); - } - if (empty($this->tmpHash)) { - $this->tmpHash = StringUtil::getRandomID(); - } - } - - /** - * @see wcf\form\IForm::readFormParameters() - */ - public function readFormParameters() { - parent::readFormParameters(); - - // ignore everything except well-formed rgba() - $regEx = new Regex('rgba\(\d{1,3}, \d{1,3}, \d{1,3}, (1|1\.00?|0|0?\.[0-9]{1,2})\)'); - foreach ($this->colors as $variableName) { - if (isset($_POST[$variableName]) && $regEx->match($_POST[$variableName])) { - $this->variables[$variableName] = $_POST[$variableName]; - } - } - - // read variables with units, e.g. 13px - foreach ($this->globals as $variableName) { - if (isset($_POST[$variableName]) && is_numeric($_POST[$variableName])) { - if (isset($_POST[$variableName.'_unit']) && in_array($_POST[$variableName.'_unit'], $this->availableUnits)) { - $this->variables[$variableName] = $_POST[$variableName].$_POST[$variableName.'_unit']; - } - } - } - - // read specialized variables - foreach ($this->specialVariables as $variableName) { - if (isset($_POST[$variableName])) $this->variables[$variableName] = StringUtil::trim($_POST[$variableName]); - } - $this->variables['useFluidLayout'] = (isset($_POST['useFluidLayout'])) ? 1 : 0; - - // style data - if (isset($_POST['authorName'])) $this->authorName = StringUtil::trim($_POST['authorName']); - if (isset($_POST['authorURL'])) $this->authorURL = StringUtil::trim($_POST['authorURL']); - if (isset($_POST['copyright'])) $this->copyright = StringUtil::trim($_POST['copyright']); - if (isset($_POST['iconPath'])) $this->iconPath = StringUtil::trim($_POST['iconPath']); - if (isset($_POST['imagePath'])) $this->imagePath = StringUtil::trim($_POST['imagePath']); - if (isset($_POST['license'])) $this->license = StringUtil::trim($_POST['license']); - if (isset($_POST['styleDate'])) $this->styleDate = StringUtil::trim($_POST['styleDate']); - if (isset($_POST['styleDescription'])) $this->styleDescription = StringUtil::trim($_POST['styleDescription']); - if (isset($_POST['styleName'])) $this->styleName = StringUtil::trim($_POST['styleName']); - if (isset($_POST['styleVersion'])) $this->styleVersion = StringUtil::trim($_POST['styleVersion']); - if (isset($_POST['templateGroupID'])) $this->templateGroupID = intval($_POST['templateGroupID']); - } - - /** - * @see wcf\form\IForm::validate() - */ - public function validate() { - parent::validate(); - - if (empty($this->authorName)) { - throw new UserInputException('authorName'); - } - - if (empty($this->license)) { - throw new UserInputException('license'); - } - - // validate date - if (empty($this->styleDate)) { - throw new UserInputException('styleDate'); - } - else { - try { - DateUtil::validateDate($this->styleDate); - } - catch (SystemException $e) { - throw new UserInputException('styleDate', 'notValid'); - } - } - - if (empty($this->styleName)) { - throw new UserInputException('styleName'); - } - - // validate version - if (empty($this->styleVersion)) { - throw new UserInputException('styleVersion'); - } - else if (!Package::isValidVersion($this->styleVersion)) { - throw new UserInputException('styleVersion', 'notValid'); - } - - // validate template group id - if ($this->templateGroupID) { - if (!isset($this->availableTemplateGroups[$this->templateGroupID])) { - throw new UserInputException('templateGroupID'); - } - } - - // ensure icon path is below WCF_DIR/icon/ - if ($this->iconPath) { - $relativePath = FileUtil::unifyDirSeperator(FileUtil::getRelativePath(WCF_DIR.'icon/', WCF_DIR.$this->iconPath)); - if (strpos($relativePath, '../') !== false) { - throw new UserInputException('iconPath', 'notValid'); - } - } - - // ensure image path is below WCF_DIR/images/ - if ($this->imagePath) { - $relativePath = FileUtil::unifyDirSeperator(FileUtil::getRelativePath(WCF_DIR.'images/', WCF_DIR.$this->imagePath)); - if (strpos($relativePath, '../') !== false) { - throw new UserInputException('imagePath', 'notValid'); - } - } - - if (!empty($this->variables['overrideLess'])) { - $this->parseOverrides(); - } - } - - /** - * Validates LESS-variable overrides. - * - * If an override is invalid, unknown or matches a variable covered by - * the style editor itself, it will be silently discarded. - */ - protected function parseOverrides() { - // get available variables - $sql = "SELECT variableName - FROM wcf".WCF_N."_style_variable"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(); - $variables = array(); - while ($row = $statement->fetchArray()) { - $variables[] = $row['variableName']; - } - - $lines = explode("\n", StringUtil::unifyNewlines($this->variables['overrideLess'])); - $regEx = new Regex('^@([a-zA-Z]+): ?([@a-zA-Z0-9 ,\.\(\)\%\#]+);$'); - $errors = array(); - foreach ($lines as $index => &$line) { - $line = StringUtil::trim($line); - - // ignore empty lines - if (empty($line)) { - unset($lines[$index]); - continue; - } - - if ($regEx->match($line)) { - $matches = $regEx->getMatches(); - - // cannot override variables covered by style editor - if (in_array($matches[1], $this->colors) || in_array($matches[1], $this->globals) || in_array($matches[1], $this->specialVariables)) { - $errors[] = array( - 'error' => 'predefined', - 'text' => $matches[1] - ); - } - else if (!in_array($matches[1], $variables)) { - // unknown style variable - $errors[] = array( - 'error' => 'unknown', - 'text' => $matches[1] - ); - } - else { - $this->variables[$matches[1]] = $matches[2]; - } - } - else { - // not valid - $errors[] = array( - 'error' => 'notValid', - 'text' => $line - ); - } - } - - $this->variables['overrideLess'] = implode("\n", $lines); - - if (!empty($errors)) { - throw new UserInputException('overrideLess', $errors); - } - } - - /** - * @see wcf\page\IPage::readData() - */ - public function readData() { - parent::readData(); - - // parse global (unit) variables - foreach ($this->globals as $variableName) { - $unit = ''; - $value = $this->variables[$variableName]; - $i = strlen($value) - 1; - while ($i >= 0) { - $unit = $value[$i] . $unit; - if (in_array($unit, $this->availableUnits)) { - $this->variables[$variableName] = str_replace($unit, '', $value); - $this->variables[$variableName.'_unit'] = $unit; - break; - } - - $i--; - } - } - - if (empty($_POST)) { - $this->styleDate = date('Y-m-d', TIME_NOW); - } - } - - /** - * Sets available variables - */ - protected function setVariables() { - // set color variables - $this->colors = array( - 'wcfButtonBackgroundColor', - 'wcfButtonBorderColor', - 'wcfButtonColor', - 'wcfButtonHoverBackgroundColor', - 'wcfButtonHoverBorderColor', - 'wcfButtonHoverColor', - 'wcfButtonPrimaryBackgroundColor', - 'wcfButtonPrimaryBorderColor', - 'wcfButtonPrimaryColor', - 'wcfColor', - 'wcfContainerAccentBackgroundColor', - 'wcfContainerBackgroundColor', - 'wcfContainerBorderColor', - 'wcfContainerHoverBackgroundColor', - 'wcfContentBackgroundColor', - 'wcfDimmedColor', - 'wcfInputBackgroundColor', - 'wcfInputBorderColor', - 'wcfInputColor', - 'wcfInputHoverBackgroundColor', - 'wcfInputHoverBorderColor', - 'wcfLinkColor', - 'wcfLinkHoverColor', - 'wcfPageBackgroundColor', - 'wcfPageColor', - 'wcfPageLinkColor', - 'wcfPageLinkHoverColor', - 'wcfTabularBoxBackgroundColor', - 'wcfTabularBoxColor', - 'wcfTabularBoxHoverColor', - 'wcfUserPanelBackgroundColor', - 'wcfUserPanelColor', - 'wcfUserPanelHoverBackgroundColor', - 'wcfUserPanelHoverColor', - ); - - // set global variables - $this->globals = array( - 'wcfBaseFontSize', - 'wcfLayoutFixedWidth', - 'wcfLayoutFluidGap' - ); - - // set specialized variables - $this->specialVariables = array( - 'individualLess', - 'overrideLess', - 'pageLogo', - 'useFluidLayout' - ); - - EventHandler::getInstance()->fireAction($this, 'setVariables'); - } - - /** - * Reads style variable values. - */ - protected function readStyleVariables() { - $sql = "SELECT variableName, defaultValue - FROM wcf".WCF_N."_style_variable"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(); - while ($row = $statement->fetchArray()) { - $this->variables[$row['variableName']] = $row['defaultValue']; - } - } - - /** - * @see wcf\form\IForm::save() - */ - public function save() { - parent::save(); - - $this->objectAction = new StyleAction(array(), 'create', array( - 'data' => array( - 'styleName' => $this->styleName, - 'templateGroupID' => $this->templateGroupID, - 'disabled' => 1, // styles are disabled by default - 'styleDescription' => ($this->styleDescription ? $this->styleDescription : null), - 'styleVersion' => $this->styleVersion, - 'styleDate' => $this->styleDate, - 'imagePath' => $this->imagePath, - 'copyright' => $this->copyright, - 'license' => $this->license, - 'authorName' => $this->authorName, - 'authorURL' => $this->authorURL, - 'iconPath' => $this->iconPath - ), - 'tmpHash' => $this->tmpHash, - 'variables' => $this->variables - )); - $this->objectAction->executeAction(); - - // call saved event - $this->saved(); - - // reset variables - $this->authorName = $this->authorURL = $this->copyright = $this->fontFamily = $this->image = ''; - $this->license = $this->styleDate = $this->styleDescription = $this->styleName = $this->styleVersion = ''; - - $this->iconPath = 'icon/'; - $this->imagePath = 'images/'; - $this->templateGroupID = 0; - - // reload variables - $this->readStyleVariables(); - - WCF::getTPL()->assign('success', true); - } - - /** - * @see wcf\page\IPage::assignVariables() - */ - public function assignVariables() { - parent::assignVariables(); - - WCF::getTPL()->assign(array( - 'action' => 'add', - 'authorName' => $this->authorName, - 'authorURL' => $this->authorURL, - 'availableFontFamilies' => $this->availableFontFamilies, - 'availableTemplateGroups' => $this->availableTemplateGroups, - 'availableUnits' => $this->availableUnits, - 'copyright' => $this->copyright, - 'fontFamily' => $this->fontFamily, - 'iconPath' => $this->iconPath, - 'imagePath' => $this->imagePath, - 'license' => $this->license, - 'styleDate' => $this->styleDate, - 'styleDescription' => $this->styleDescription, - 'styleName' => $this->styleName, - 'styleVersion' => $this->styleVersion, - 'templateGroupID' => $this->templateGroupID, - 'tmpHash' => $this->tmpHash, - 'variables' => $this->variables - )); - } -} diff --git a/files/lib/acp/form/StyleEditForm.class.php b/files/lib/acp/form/StyleEditForm.class.php deleted file mode 100644 index e3cd72ad8b..0000000000 --- a/files/lib/acp/form/StyleEditForm.class.php +++ /dev/null @@ -1,137 +0,0 @@ - - * @package com.woltlab.wcf.acp.style - * @subpackage acp.form - * @category Community Framework - */ -class StyleEditForm extends StyleAddForm { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.style'; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.style.canEditStyle'); - - /** - * style object - * @var wcf\data\style\Style - */ - public $style = null; - - /** - * style id - * @var integer - */ - public $styleID = 0; - - /** - * @see wcf\page\IPage::readParameters() - */ - public function readParameters() { - if (isset($_REQUEST['id'])) $this->styleID = intval($_REQUEST['id']); - $this->style = new Style($this->styleID); - if (!$this->style->styleID) { - throw new IllegalLinkException(); - } - - parent::readParameters(); - } - - /** - * @see wcf\acp\form\StyleAddForm::readStyleVariables() - */ - protected function readStyleVariables() { - $this->variables = $this->style->getVariables(); - - // fix empty values ~"" - foreach ($this->variables as &$variableValue) { - if ($variableValue == '~""') { - $variableValue = ''; - } - } - unset($variableValue); - } - - /** - * @see wcf\page\IPage::readData() - */ - public function readData() { - parent::readData(); - - if (empty($_POST)) { - $this->authorName = $this->style->authorName; - $this->authorURL = $this->style->authorURL; - $this->copyright = $this->style->copyright; - $this->iconPath = $this->style->iconPath; - $this->imagePath = $this->style->imagePath; - $this->license = $this->style->license; - $this->styleDate = $this->style->styleDate; - $this->styleDescription = $this->style->styleDescription; - $this->styleName = $this->style->styleName; - $this->styleVersion = $this->style->styleVersion; - $this->templateGroupID = $this->style->templateGroupID; - } - } - - /** - * @see wcf\form\IForm::save() - */ - public function save() { - AbstractForm::saved(); - - $this->objectAction = new StyleAction(array($this->style), 'update', array( - 'data' => array( - 'styleName' => $this->styleName, - 'templateGroupID' => $this->templateGroupID, - 'styleDescription' => ($this->styleDescription ? $this->styleDescription : null), - 'styleVersion' => $this->styleVersion, - 'styleDate' => $this->styleDate, - 'imagePath' => $this->imagePath, - 'copyright' => $this->copyright, - 'license' => $this->license, - 'authorName' => $this->authorName, - 'authorURL' => $this->authorURL, - 'iconPath' => $this->iconPath - ), - 'tmpHash' => $this->tmpHash, - 'variables' => $this->variables - )); - $this->objectAction->executeAction(); - - // call saved event - $this->saved(); - - // reload style object to update preview image - $this->style = new Style($this->style->styleID); - - WCF::getTPL()->assign('success', true); - } - - /** - * @see wcf\page\IPage::assignVariables() - */ - public function assignVariables() { - parent::assignVariables(); - - WCF::getTPL()->assign(array( - 'action' => 'edit', - 'style' => $this->style, - 'styleID' => $this->styleID - )); - } -} diff --git a/files/lib/acp/form/StyleExportForm.class.php b/files/lib/acp/form/StyleExportForm.class.php deleted file mode 100644 index 8dbee48091..0000000000 --- a/files/lib/acp/form/StyleExportForm.class.php +++ /dev/null @@ -1,197 +0,0 @@ - - * @package com.woltlab.wcf.acp.style - * @subpackage acp.form - * @category Community Framework - */ -class StyleExportForm extends AbstractForm { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.style'; - - /** - * true, if style has custom icons - * @var boolean - */ - public $canExportIcons = false; - - /** - * true, if style has custom images - * @var boolean - */ - public $canExportImages = false; - - /** - * true, if style has custom templates - * @var boolean - */ - public $canExportTemplates = false; - - /** - * export style as installable package - * @var boolean - */ - public $exportAsPackage = false; - - /** - * true, if icons should be exported - * @var boolean - */ - public $exportIcons = false; - - /** - * true, if images should be exported - * @var boolean - */ - public $exportImages = false; - - /** - * true, if templates should be exported - * @var boolean - */ - public $exportTemplates = false; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.style.canEditStyle'); - - /** - * package identifier - * @var string - */ - public $packageName = ''; - - /** - * style object - * @var wcf\data\style\Style - */ - public $style = null; - - /** - * style id - * @var integer - */ - public $styleID = 0; - - /** - * @see wcf\page\IPage::readParameters() - */ - public function readParameters() { - parent::readParameters(); - - if (isset($_REQUEST['id'])) $this->styleID = intval($_REQUEST['id']); - $this->style = new Style($this->styleID); - if (!$this->style->styleID) { - throw new IllegalLinkException(); - } - - if ($this->style->iconPath && $this->style->iconPath != 'icon/') $this->canExportIcons = true; - if ($this->style->imagePath && $this->style->imagePath != 'images/') $this->canExportImages = true; - if ($this->style->templateGroupID) $this->canExportTemplates = true; - } - - /** - * @see wcf\form\IForm::readFormParameters() - */ - public function readFormParameters() { - parent::readFormParameters(); - - if ($this->canExportIcons && isset($_POST['exportIcons'])) $this->exportIcons = true; - if ($this->canExportImages && isset($_POST['exportImages'])) $this->exportImages = true; - if ($this->canExportTemplates && isset($_POST['exportTemplates'])) $this->exportTemplates = true; - - if (isset($_POST['exportAsPackage'])) { - $this->exportAsPackage = true; - - if (isset($_POST['packageName'])) $this->packageName = StringUtil::trim($_POST['packageName']); - } - } - - /** - * @see wcf\form\IForm::validate() - */ - public function validate() { - parent::validate(); - - if ($this->exportAsPackage) { - if (empty($this->packageName)) { - throw new UserInputException('packageName'); - } - - if (!Package::isValidPackageName($this->packageName)) { - throw new UserInputException('packageName', 'notValid'); - } - - // 3rd party packages may never have com.woltlab.* as name - if (strpos($this->packageName, 'com.woltlab.') === 0) { - throw new UserInputException('packageName', 'reserved'); - } - } - } - - /** - * @see wcf\form\IForm::save() - */ - public function save() { - parent::save(); - - // get style filename - $filename = str_replace(' ', '-', preg_replace('/[^a-z0-9 _-]/', '', StringUtil::toLowerCase($this->style->styleName))); - - // send headers - header('Content-Type: application/x-gzip; charset=utf-8'); - - if ($this->exportAsPackage) { - header('Content-Disposition: attachment; filename="'.$this->packageName.'.tar.gz"'); - } - else { - header('Content-Disposition: attachment; filename="'.$filename.'-style.tgz"'); - } - - // export style - $styleEditor = new StyleEditor($this->style); - $styleEditor->export($this->exportTemplates, $this->exportImages, $this->exportIcons, $this->packageName); - - // call saved event - $this->saved(); - - exit; - } - - /** - * @see wcf\form\IForm::assignVariables() - */ - public function assignVariables() { - parent::assignVariables(); - - WCF::getTPL()->assign(array( - 'canExportIcons' => $this->canExportIcons, - 'canExportImages' => $this->canExportImages, - 'canExportTemplates' => $this->canExportTemplates, - 'exportAsPackage' => $this->exportAsPackage, - 'exportIcons' => $this->exportIcons, - 'exportImages' => $this->exportImages, - 'exportTemplates' => $this->exportTemplates, - 'packageName' => $this->packageName, - 'style' => $this->style, - 'styleID' => $this->styleID - )); - } -} diff --git a/files/lib/acp/form/StyleImportForm.class.php b/files/lib/acp/form/StyleImportForm.class.php deleted file mode 100644 index 2c9ce89552..0000000000 --- a/files/lib/acp/form/StyleImportForm.class.php +++ /dev/null @@ -1,91 +0,0 @@ - - * @package com.woltlab.wcf.acp.style - * @subpackage acp.form - * @category Community Framework - */ -class StyleImportForm extends AbstractForm { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.style.import'; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.style.canAddStyle'); - - /** - * upload data - * @var array - */ - public $source = array(); - - /** - * style editor object - * @var wcf\data\style\StyleEditor - */ - public $style = null; - - /** - * @see wcf\form\IForm::readFormParameters() - */ - public function readFormParameters() { - parent::readFormParameters(); - - if (isset($_FILES['source'])) $this->source = $_FILES['source']; - } - - /** - * @see wcf\form\IForm::validate() - */ - public function validate() { - parent::validate(); - - if (empty($this->source['name'])) { - throw new UserInputException('source'); - } - - if (empty($this->source['tmp_name'])) { - throw new UserInputException('source', 'uploadFailed'); - } - - // get filename - $this->source['name'] = FileUtil::getTemporaryFilename('style_', preg_replace('!^.*(?=\.(?:tar\.gz|tgz|tar)$)!i', '', basename($this->source['name']))); - - if (!@move_uploaded_file($this->source['tmp_name'], $this->source['name'])) { - throw new UserInputException('source', 'uploadFailed'); - } - } - - /** - * @see wcf\form\IForm::save() - */ - public function save() { - parent::save(); - - try { - $this->style = StyleEditor::import($this->source['name']); - } - catch (\Exception $e) { - @unlink($this->source['name']); - } - - @unlink($this->source['name']); - $this->saved(); - - WCF::getTPL()->assign('success', true); - } -} diff --git a/files/lib/acp/page/StyleListPage.class.php b/files/lib/acp/page/StyleListPage.class.php deleted file mode 100644 index e83d9f0f6e..0000000000 --- a/files/lib/acp/page/StyleListPage.class.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @package com.woltlab.wcf.acp.style - * @subpackage acp.page - * @category Community Framework - */ -class StyleListPage extends MultipleLinkPage { - /** - * @see wcf\page\AbstractPage::$activeMenuItem - */ - public $activeMenuItem = 'wcf.acp.menu.link.style.list'; - - /** - * @see wcf\page\AbstractPage::$neededPermissions - */ - public $neededPermissions = array('admin.style.canEditStyle', 'admin.style.canDeleteStyle'); - - /** - * @see wcf\page\MultipleLinkPage::$objectListClassName - */ - public $objectListClassName = 'wcf\data\style\StyleList'; - - /** - * @see wcf\page\MultipleLinkPage::$sortField - */ - public $sortField = 'style.styleName'; - - /** - * @see wcf\page\MultipleLinkPage::$sortOrder - */ - public $sortOrder = 'ASC'; - - /** - * @see wcf\page\MultipleLinkPage::initObjectList() - */ - public function initObjectList() { - parent::initObjectList(); - - $this->objectList->sqlSelects = "(SELECT COUNT(*) FROM wcf".WCF_N."_user WHERE styleID = style.styleID) AS users"; - } -} diff --git a/files/style/styleEditor.less b/files/style/styleEditor.less deleted file mode 100644 index 820c8a1b02..0000000000 --- a/files/style/styleEditor.less +++ /dev/null @@ -1,37 +0,0 @@ -.colorPreview { - border: 1px solid @wcfContainerBorderColor; - border-radius: @wcfContainerBorderRadius; - display: inline-block; - - &:hover { - .boxShadow(0, 0, @wcfContainerBorderColor, 15px, 0); - } - - > div { - border: 2px solid rgba(255, 255, 255, 1); - border-radius: @wcfContainerBorderRadius; - cursor: pointer; - display: block; - height: 60px; - width: 200px; - } -} - -.colorList { - > li { - float: left; - padding: @wcfGapSmall; - - > figure > figcaption { - font-size: 85%; - margin-bottom: @wcfGapSmall; - text-align: center; - } - } - - &:after { - clear: both; - content: ""; - display: block; - } -} diff --git a/language/de.xml b/language/de.xml deleted file mode 100644 index f5352f0e45..0000000000 --- a/language/de.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - getPath()}acp/dereferrer.php?url=http://www.lesscss.org">LESS verwenden. Bitte beachten Sie, dass der Stil nicht erzeugt werden kann, wenn der LESS-Code ungültig ist.]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - styleName}“ wirklich duplizieren?]]> - styleName}“ wirklich löschen?]]> - - - iconPath})]]> - imagePath})]]> - - - - styleName}“ als Paket exportieren möchten. Pakete können über die Paketverwaltung installiert oder in den WoltLab® Plugin-Store hochgeladen werden.]]> - - styleName}“ mit exportiert werden sollen]]> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/package.xml b/package.xml deleted file mode 100644 index 6d2d5883f9..0000000000 --- a/package.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - Style Administration - packageDecription cannot be NULL. - 1.0.0 Alpha 1 - 2012-10-08 - - - - WoltLab GmbH - http://www.woltlab.com - - - - com.woltlab.wcf - - - - acptemplates.tar - files.tar - acpMenu.xml - language/*.xml - userGroupOption.xml - - diff --git a/userGroupOption.xml b/userGroupOption.xml deleted file mode 100644 index 8719464e19..0000000000 --- a/userGroupOption.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - -- 2.20.1