diff --git a/src/Application/Version.php b/src/Application/Version.php deleted file mode 100644 index f614b88..0000000 --- a/src/Application/Version.php +++ /dev/null @@ -1,35 +0,0 @@ -json(['version' => $version]); - } -} \ No newline at end of file diff --git a/src/Resources/config/pimcore/routing.yml b/src/Resources/config/pimcore/routing.yml index 466df2b..e69de29 100644 --- a/src/Resources/config/pimcore/routing.yml +++ b/src/Resources/config/pimcore/routing.yml @@ -1,4 +0,0 @@ -# Get bundle version -wvision.admin.version.get_version: - path: /admin/wvision/version/get-version - defaults: { _controller: WvisionBundle:Admin\Version:getVersion } diff --git a/src/Resources/public/pimcore/css/bundle.css b/src/Resources/public/pimcore/css/bundle.css deleted file mode 100644 index b9ea383..0000000 --- a/src/Resources/public/pimcore/css/bundle.css +++ /dev/null @@ -1,15 +0,0 @@ -#pimcore_menu_wvision svg * { - fill: #969696; -} - -#pimcore_menu_wvision:hover svg * { - fill: #fff; -} - -#pimcore_navigation li#pimcore_menu_wvision:hover:after { - background-color: #005fa8; -} - -.wvision_icon_about { - background: url('/bundles/wvision/pimcore/img/wvision.svg') center center no-repeat !important; -} \ No newline at end of file diff --git a/src/Resources/public/pimcore/img/logo.svg b/src/Resources/public/pimcore/img/logo.svg deleted file mode 100644 index 9b438b0..0000000 --- a/src/Resources/public/pimcore/img/logo.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Resources/public/pimcore/img/wvision.svg b/src/Resources/public/pimcore/img/wvision.svg deleted file mode 100644 index f2c17bf..0000000 --- a/src/Resources/public/pimcore/img/wvision.svg +++ /dev/null @@ -1 +0,0 @@ - diff --git a/src/Resources/public/pimcore/js/global.js b/src/Resources/public/pimcore/js/global.js deleted file mode 100644 index 3957ff6..0000000 --- a/src/Resources/public/pimcore/js/global.js +++ /dev/null @@ -1,67 +0,0 @@ -/** - * w-vision AG - * - * LICENSE - * - * For the full copyright and license information, please view the LICENSE.md - * file that is distributed with this source code. - * - * @copyright Copyright (c) 2018 w-vision AG (https://www.w-vision.ch) - */ - -pimcore.registerNS('pimcore.plugin.wvision'); -pimcore.registerNS('wvision.version'); - -pimcore.plugin.wvision = Class.create(pimcore.plugin.admin, { - getClassName: function () { - return 'pimcore.plugin.wvision'; - }, - - initialize: function () { - pimcore.plugin.broker.registerPlugin(this); - }, - - pimcoreReady: function (params, broker) { - var user = pimcore.globalmanager.get('user'); - var toolbar = pimcore.globalmanager.get('layout_toolbar'); - - if (user.admin === true) { - Ext.Ajax.request({ - url: '/admin/wvision/version/get-version', - success: function (response) { - var resp = Ext.decode(response.responseText); - wvision.version = resp; - - this._menu = new Ext.menu.Menu({ - items: [ - { - text: t('wvision_about'), - iconCls: 'wvision_icon_about', - handler: function () { - wvision.helpers.showAbout(); - }, - }, - ], - shadow: false, - cls: 'pimcore_navigation_flyout', - }); - - Ext.get('pimcore_navigation').down('ul').insertHtml('beforeEnd', '
  • ' + - '' + - '' + - '' + - '' + - '
  • '); - Ext.get('pimcore_menu_wvision').on('mousedown', function (e, el) { - toolbar.showSubMenu.call(this._menu, e, el); - }.bind(this)); - }.bind(this), - }); - } - } -}); - -var wvisionPlugin = new pimcore.plugin.wvision(); \ No newline at end of file diff --git a/src/Resources/public/pimcore/js/wvision/helpers.js b/src/Resources/public/pimcore/js/wvision/helpers.js deleted file mode 100644 index 23f3006..0000000 --- a/src/Resources/public/pimcore/js/wvision/helpers.js +++ /dev/null @@ -1,33 +0,0 @@ -/** - * w-vision - * - * LICENSE - * - * For the full copyright and license information, please view the LICENSE.md - * file that is distributed with this source code. - * - * @copyright Copyright (c) 2018 w-vision AG (https://www.w-vision.ch) - */ - -pimcore.registerNS('wvision.helpers.x'); - -wvision.helpers.showAbout = function () { - var html = '
    '; - html += '

    '; - html += '
    Version: ' + wvision.version.version + ''; - html += '

    © w-vision AG, Sursee, Switzerland (www.w-vision.ch)'; - html += '

    ' + t('wvision_about_contact') + ' | '; - html += '' + t('wvision_about_team') + ''; - html += '
    '; - - var win = new Ext.Window({ - title: t('wvision_about'), - width: 500, - height: 310, - bodyStyle: 'padding: 10px;', - modal: true, - html: html, - }); - - win.show(); -}; \ No newline at end of file diff --git a/src/Resources/translations/admin.de.yml b/src/Resources/translations/admin.de.yml deleted file mode 100644 index 5cdced7..0000000 --- a/src/Resources/translations/admin.de.yml +++ /dev/null @@ -1,9 +0,0 @@ -wvision: "Wvision" -wvision_install_failed: "Wvision Bundle konnte nicht installiert werden." -wvision_install_successfully: "Wvision Bundle wurde erfolgreich installiert." -wvision_uninstalled_successfully: "Wvision Bundle wurde erfolgreich deinstalliert." -wvision_uninstall_failed: "Wvision Bundle konnte nicht deinstalliert werden." - -wvision_about: "Über w-vision" -wvision_about_contact: "Kontakt" -wvision_about_team: "Team" \ No newline at end of file diff --git a/src/Resources/translations/admin.en.yml b/src/Resources/translations/admin.en.yml deleted file mode 100644 index 5c21041..0000000 --- a/src/Resources/translations/admin.en.yml +++ /dev/null @@ -1,9 +0,0 @@ -wvision: "Wvision" -wvision_install_failed: "Wvision Bundle could not be installed." -wvision_install_successfully: "Wvision Bundle has been successfully installed." -wvision_uninstalled_successfully: "Wvision Bundle has been successfully uninstalled." -wvision_uninstall_failed: "Wvision Bundle could not be uninstalled." - -wvision_about: "About w-vision" -wvision_about_contact: "Contact" -wvision_about_team: "Team" \ No newline at end of file diff --git a/src/Tool/Ics.php b/src/Tool/Ics.php index eebe544..6320fe1 100644 --- a/src/Tool/Ics.php +++ b/src/Tool/Ics.php @@ -58,10 +58,8 @@ public function set($key, $val = false) foreach ($key as $k => $v) { $this->set($k, $v); } - } else { - if (\in_array($key, self::$availableProperties, true)) { - $this->properties[$key] = $this->sanitizeVal($val, $key); - } + } else if (\in_array($key, self::$availableProperties, true)) { + $this->properties[$key] = $this->sanitizeVal($val, $key); } }