This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml;
/**
* Class Debugger
* @package WeltPixel\Backend\Block\Adminhtml
*/
class Debugger extends \Magento\Backend\Block\Widget\Grid\Container
{
protected function _construct()
{
$this->_controller = 'weltpixelbackend_debugger';
$this->_blockGroup = 'WeltPixel_Backend';
parent::_construct();
$this->removeButton('add');
$this->addButton(
'only-custom',
[
'label' => __("Only Custom Modules"),
'onclick' => 'setLocation(\'' . $this->getUrl('*/*/rewritescustom') . '\')',
'class' => 'primary'
]
);
$this->addButton(
'all-core',
[
'label' => __("All Magento Modules"),
'onclick' => 'setLocation(\'' . $this->getUrl('*/*/rewritesall') . '\')',
'class' => 'secondary'
]
);
}
}
@@ -0,0 +1,28 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\Grid\Renderer;
/**
* Class RewriteStatus
* @package WeltPixel\Backend\Block\Adminhtml\Grid\Renderer
*/
class RewriteStatus extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
{
/**
* Prepare link to display in grid
*
* @param \Magento\Framework\DataObject $row
* @return string
*/
public function render(\Magento\Framework\DataObject $row)
{
$statusClass = 'ok';
$statusMessage = __('OK');
if (!$row->getStatus()) {
$statusClass = 'nok';
$statusMessage = __('CHECK REWRITE');
}
return '<span class="rewrite-status rewrite-status-'.$statusClass.'">' . $statusMessage .'</span>';
}
}
@@ -0,0 +1,15 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
/**
* Class Extensions
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class Extensions extends \Magento\Config\Block\System\Config\Form\Fieldset
{
public function render(\Magento\Framework\Data\Form\Element\AbstractElement $element)
{
return '<iframe id="weltpixel_store" width="100%" src="https://www.weltpixel.com/store/index.html?id=' . uniqid() .'" ></iframe>';
}
}
@@ -0,0 +1,25 @@
<?php
/**
* @category WeltPixel
* @package WeltPixel_Backend
* @copyright Copyright (c) 2018 Weltpixel
* @author Weltpixel TEAM
*/
namespace WeltPixel\Backend\Block\Adminhtml\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class Disable
* @package WeltPixel\Backend\Block\System\Config\Form\Field
*/
class Disable extends \Magento\Config\Block\System\Config\Form\Field
{
protected function _getElementHtml(AbstractElement $element)
{
$element->setDisabled('disabled');
return $element->getElementHtml();
}
}
@@ -0,0 +1,24 @@
<?php
/**
* @category WeltPixel
* @package WeltPixel_Backend
* @copyright Copyright (c) 2018 Weltpixel
* @author Weltpixel TEAM
*/
namespace WeltPixel\Backend\Block\Adminhtml\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class EmptyField
* @package WeltPixel\Backend\Block\System\Config\Form\Field
*/
class EmptyField extends \Magento\Config\Block\System\Config\Form\Field
{
protected function _getElementHtml(AbstractElement $element)
{
return '';
}
}
@@ -0,0 +1,23 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class Notification
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class Notification extends Field
{
protected $_template = 'WeltPixel_Backend::system/config/notification.phtml';
/**
* @param AbstractElement $element
* @return string
*/
protected function _getElementHtml(AbstractElement $element)
{
return $this->_toHtml();
}
}
@@ -0,0 +1,37 @@
<?php
namespace WeltPixel\Backend\Block\Adminhtml\System\Config;
use Magento\Config\Block\System\Config\Form\Field;
use Magento\Framework\Data\Form\Element\AbstractElement;
/**
* Class SystemInformation
* @package WeltPixel\Backend\Block\Adminhtml\System\Config
*/
class SystemInformation extends Field
{
protected $_template = 'WeltPixel_Backend::system/config/information.phtml';
/**
* @param AbstractElement $element
* @return string
*/
protected function _getElementHtml(AbstractElement $element)
{
return $this->_toHtml();
}
/**
* @return string
*/
public function getMagentoMode() {
return $this->_appState->getMode();
}
/**
* @return string
*/
public function getMagentoPath() {
return $this->getRootDirectory()->getAbsolutePath();
}
}
@@ -0,0 +1,41 @@
<?php
namespace WeltPixel\Backend\Controller\Adminhtml;
abstract class Debugger extends \Magento\Backend\App\Action
{
/**
* Authorization level of a basic admin session
*
* @see _isAllowed()
*/
const ADMIN_RESOURCE = 'WeltPixel_Backend::WeltPixel_Debugger';
/**
* Core registry
*
* @var \Magento\Framework\Registry
*/
protected $_coreRegistry;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
*/
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
{
$this->_coreRegistry = $coreRegistry;
parent::__construct($context);
}
/**
* Init page
*
* @param \Magento\Backend\Model\View\Result\Page $resultPage
* @return \Magento\Backend\Model\View\Result\Page
*/
protected function initPage($resultPage)
{
$resultPage->setActiveMenu('WeltPixel_Backend::WeltPixel_Debugger');
return $resultPage;
}
}
@@ -0,0 +1,39 @@
<?php
namespace WeltPixel\Backend\Controller\Adminhtml\Debugger;
class Rewrites extends \WeltPixel\Backend\Controller\Adminhtml\Debugger
{
const ADMIN_RESOURCE = 'WeltPixel_Backend::WeltPixel_Debugger';
/**
* @var \Magento\Framework\View\Result\PageFactory
*/
protected $resultPageFactory;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\Registry $coreRegistry,
\Magento\Framework\View\Result\PageFactory $resultPageFactory
) {
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context, $coreRegistry);
}
/**
* Index action
*
* @return \Magento\Framework\Controller\ResultInterface
*/
public function execute()
{
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
$resultPage = $this->resultPageFactory->create();
$this->initPage($resultPage)->getConfig()->getTitle()->prepend(__('Check Rewrites / Preferences'));
return $resultPage;
}
}
@@ -0,0 +1,36 @@
<?php
namespace WeltPixel\Backend\Controller\Adminhtml\Debugger;
class Rewritesall extends \WeltPixel\Backend\Controller\Adminhtml\Debugger\Rewrites
{
/**
* @var \Magento\Framework\View\Result\PageFactory
*/
protected $resultPageFactory;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\Registry $coreRegistry,
\Magento\Framework\View\Result\PageFactory $resultPageFactory
)
{
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context, $coreRegistry, $resultPageFactory);
}
/**
* @return \Magento\Framework\Controller\ResultInterface
*/
public function execute()
{
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
$this->_session->setDebuggerRewite(true);
$resultRedirect = $this->resultRedirectFactory->create();
return $resultRedirect->setPath('*/*/rewrites');
}
}
@@ -0,0 +1,36 @@
<?php
namespace WeltPixel\Backend\Controller\Adminhtml\Debugger;
class Rewritescustom extends \WeltPixel\Backend\Controller\Adminhtml\Debugger\Rewrites
{
/**
* @var \Magento\Framework\View\Result\PageFactory
*/
protected $resultPageFactory;
/**
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $coreRegistry
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
\Magento\Framework\Registry $coreRegistry,
\Magento\Framework\View\Result\PageFactory $resultPageFactory
)
{
$this->resultPageFactory = $resultPageFactory;
parent::__construct($context, $coreRegistry, $resultPageFactory);
}
/**
* @return \Magento\Framework\Controller\ResultInterface
*/
public function execute()
{
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
$this->_session->setDebuggerRewite(false);
$resultRedirect = $this->resultRedirectFactory->create();
return $resultRedirect->setPath('*/*/rewrites');
}
}
+4
View File
@@ -0,0 +1,4 @@
Important notes:
- Extension files for Magento versions 2.4 or higher.
- Files NOT compatible with Magento version 2.0 - 2.3.x.
- Using different set of files for each Magento version for best performance.
+136
View File
@@ -0,0 +1,136 @@
<?php
namespace WeltPixel\Backend\Helper;
use Magento\Framework\App\ProductMetadataInterface;
use Magento\Cron\Model\ScheduleFactory;
/**
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Developer extends \Magento\Framework\App\Helper\AbstractHelper
{
/**
* @var ProductMetadataInterface
*/
protected $productMetaData;
/**
* @var ScheduleFactory
*/
protected $scheduleFactory;
/**
* @var \Magento\Framework\Stdlib\DateTime\DateTime
*/
protected $dateTime;
/**
* @var \Magento\Framework\Component\ComponentRegistrarInterface
*/
protected $componentRegistrar;
/**
* @var \Magento\Framework\Filesystem\Directory\ReadFactory
*/
protected $readFactory;
/**
* Constructor
*
* @param \Magento\Framework\App\Helper\Context $context
* @param ProductMetadataInterface $productMetadata
* @param ScheduleFactory $scheduleFactory
* @param \Magento\Framework\Stdlib\DateTime\DateTime $datetime
* @param \Magento\Framework\Component\ComponentRegistrarInterface $componentRegistrar
* @param \Magento\Framework\Filesystem\Directory\ReadFactory $readFactory
*/
public function __construct(
\Magento\Framework\App\Helper\Context $context,
ProductMetadataInterface $productMetadata,
ScheduleFactory $scheduleFactory,
\Magento\Framework\Stdlib\DateTime\DateTime $datetime,
\Magento\Framework\Component\ComponentRegistrarInterface $componentRegistrar,
\Magento\Framework\Filesystem\Directory\ReadFactory $readFactory
)
{
parent::__construct($context);
$this->productMetaData = $productMetadata;
$this->scheduleFactory = $scheduleFactory;
$this->dateTime = $datetime;
$this->componentRegistrar = $componentRegistrar;
$this->readFactory = $readFactory;
}
/**
* @return string
*/
public function getCurrentServerUser()
{
if (function_exists('get_current_user')) {
return get_current_user();
}
// Try POSIX (Linux/Unix)
if (function_exists('posix_geteuid') && function_exists('posix_getpwuid')) {
$userInfo = posix_getpwuid(posix_geteuid());
if (!empty($userInfo['name'])) {
return $userInfo['name'];
}
}
// Try environment variables
$user = getenv('USER') ?: getenv('USERNAME');
if (!empty($user)) {
return $user;
}
// Fallback: unknown
return 'unknown';
}
/**
* @return string
*/
public function getCurrentServerUserGroup()
{
if (function_exists('posix_getegid')) {
$groupid = posix_getegid();
$groupinfo = posix_getgrgid($groupid);
if (is_array($groupinfo)) {
return $groupinfo['name'];
}
}
return '-';
}
/**
* @return string
*/
public function getMagentoEdition()
{
return $this->productMetaData->getEdition() . ' ( ' . $this->productMetaData->getVersion() . ' )';
}
/**
* @param int $pageSize
* @return \Magento\Cron\Model\ResourceModel\Schedule\Collection mixed
*/
public function getLatestCronJobs($pageSize)
{
$scheduleCollection = $this->scheduleFactory->create()->getCollection();
$scheduleCollection->setOrder('schedule_id', 'DESC')
->setPageSize($pageSize);
return $scheduleCollection;
}
/**
* @return string
*/
public function getServerTime()
{
return $this->dateTime->gmtDate();
}
}
+141
View File
@@ -0,0 +1,141 @@
<?php
namespace WeltPixel\Backend\Helper;
use Magento\Framework\View\Design\Theme\ThemeProviderInterface;
use \Magento\Store\Api\StoreRepositoryInterface;
use \Magento\Store\Model\StoreManagerInterface;
/**
* @SuppressWarnings(PHPMD.TooManyFields)
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Utility extends \Magento\Framework\App\Helper\AbstractHelper
{
/** @var ThemeProviderInterface */
protected $themeProvider;
/** @var StoreRepositoryInterface */
protected $storeRepository;
/**
* @var StoreManagerInterface
*/
protected $storeManager;
/** @var array */
protected $storeThemesLocales = [];
/**
* Constructor
*
* @param \Magento\Framework\App\Helper\Context $context
* @param ThemeProviderInterface $themeProvider
* @param StoreRepositoryInterface $storeRepository
* @param StoreManagerInterface $storeManager
*/
public function __construct(
\Magento\Framework\App\Helper\Context $context,
ThemeProviderInterface $themeProvider,
StoreRepositoryInterface $storeRepository,
StoreManagerInterface $storeManager
)
{
parent::__construct($context);
$this->themeProvider = $themeProvider;
$this->storeRepository = $storeRepository;
$this->storeManager = $storeManager;
}
public function isPearlThemeUsed($storeCode = null)
{
$themeId = $this->scopeConfig->getValue(
\Magento\Framework\View\DesignInterface::XML_PATH_THEME_ID,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
$theme = $this->themeProvider->getThemeById($themeId);
$isPearlTheme = $this->_validatePearlTheme($theme);
return $isPearlTheme;
}
/**
* @param \Magento\Theme\Model\Theme $theme
* @return bool
*/
protected function _validatePearlTheme($theme)
{
$pearlThemePath = 'Pearl/weltpixel';
do {
if ($theme->getThemePath() == $pearlThemePath) {
return true;
}
$theme = $theme->getParentTheme();
} while ($theme);
return false;
}
/**
* @return array
*/
public function getStoreThemesLocales() {
if (count($this->storeThemesLocales)) {
return $this->storeThemesLocales;
}
$stores = $this->storeRepository->getList();
$result = [];
$isSingleStoreMode = $this->storeManager->isSingleStoreMode();
foreach ($stores as $store) {
$storeId = $store["store_id"];
$websiteId = $store["website_id"];
if (!$storeId) continue;
$storeCode = $store["code"];
$themeId = $this->scopeConfig->getValue(
\Magento\Framework\View\DesignInterface::XML_PATH_THEME_ID,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
$locale = $this->scopeConfig->getValue(
\Magento\Directory\Helper\Data::XML_PATH_DEFAULT_LOCALE,
\Magento\Store\Model\ScopeInterface::SCOPE_STORE,
$storeCode
);
if ($isSingleStoreMode) {
$themeId = $this->scopeConfig->getValue(
\Magento\Framework\View\DesignInterface::XML_PATH_THEME_ID,
\Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
$websiteId
);
$locale = $this->scopeConfig->getValue(
\Magento\Directory\Helper\Data::XML_PATH_DEFAULT_LOCALE,
\Magento\Store\Model\ScopeInterface::SCOPE_WEBSITE,
$websiteId
);
}
$theme = $this->themeProvider->getThemeById($themeId);
$result[$theme->getThemePath().'/'.$locale] = $storeCode;
}
$this->storeThemesLocales = $result;
return $this->storeThemesLocales;
}
/**
* @return false|\Magento\Csp\Helper\CspNonceProvider
*/
public function getCspNonceProvider()
{
if (class_exists(\Magento\Csp\Helper\CspNonceProvider::class)) {
return \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Csp\Helper\CspNonceProvider::class);
}
return false;
}
}
+22
View File
@@ -0,0 +1,22 @@
MIT License
Copyright (c) 2025 WeltPixel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace WeltPixel\Backend\Model\Config\Source;
/**
* @api
* @since 100.0.2
*/
class Yesno implements \Magento\Framework\Option\ArrayInterface
{
/**
* Options getter
*
* @return array
*/
public function toOptionArray()
{
return [['value' => 1, 'label' => __('Yes (Recommended)')], ['value' => 0, 'label' => __('No')]];
}
/**
* Get options in "key-value" format
*
* @return array
*/
public function toArray()
{
return [0 => __('No'), 1 => __('Yes (Recommended)')];
}
}
@@ -0,0 +1,227 @@
<?php
namespace WeltPixel\Backend\Model\ResourceModel\Debugger\Grid;
use Magento\Framework\Api\Search\SearchResultInterface;
use Magento\Framework\Search\AggregationInterface;
/**
* Class Collection
* @package WeltPixel\Bakcend\Model\ResourceModel\Debugger\Grid
*/
class Collection extends \Magento\Framework\Data\Collection implements SearchResultInterface
{
/**
* @var AggregationInterface
*/
protected $aggregations;
/**
* @var \WeltPixel\Backend\Model\Scanner
*/
protected $scanner;
/**
* @var \Magento\Backend\Model\Session
*/
protected $backendSession;
/**
* @var \Magento\Framework\DataObjectFactory
*/
protected $_dataObjectFactory;
/**
* @param \Magento\Backend\Model\Session $backendSession
* @param \WeltPixel\Backend\Model\Scanner $scanner
* @param \Magento\Framework\DataObjectFactory $dataObjectFactory
* @param \Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory
*
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
*/
public function __construct(
\Magento\Backend\Model\Session $backendSession,
\WeltPixel\Backend\Model\Scanner $scanner,
\Magento\Framework\DataObjectFactory $dataObjectFactory,
\Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory
)
{
parent::__construct(
$entityFactory
);
$this->_dataObjectFactory = $dataObjectFactory;
$this->scanner = $scanner;
$this->backendSession = $backendSession;
}
/**
* @return AggregationInterface
*/
public function getAggregations()
{
return $this->aggregations;
}
/**
* @param AggregationInterface $aggregations
* @return $this
*/
public function setAggregations($aggregations)
{
$this->aggregations = $aggregations;
}
/**
* Retrieve all ids for collection
* Backward compatibility with EAV collection
*
* @param int $limit
* @param int $offset
* @return array
*/
public function getAllIds($limit = null, $offset = null)
{
return $this->getConnection()->fetchCol($this->_getAllIdsSelect($limit, $offset), $this->_bindParams);
}
/**
* Get search criteria.
*
* @return \Magento\Framework\Api\SearchCriteriaInterface|null
*/
public function getSearchCriteria()
{
return null;
}
/**
* Set search criteria.
*
* @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria
* @return $this
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function setSearchCriteria(?\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria = null)
{
return $this;
}
/**
* Get total count.
*
* @return int
*/
public function getTotalCount()
{
return $this->getSize();
}
/**
* Set total count.
*
* @param int $totalCount
* @return $this
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function setTotalCount($totalCount)
{
return $this;
}
/**
* Set items list.
*
* @param \Magento\Framework\Api\ExtensibleDataInterface[] $items
* @return $this
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function setItems(?array $items = null)
{
return $this;
}
/**
* @return \Magento\Framework\DataObject[]
*/
public function getItems()
{
$this->_populateCollection();
return parent::getItems();
}
public function _populateCollection()
{
$rewritesOption = $this->backendSession->getDebuggerRewite(false);
$rewrites = $this->scanner->getRewrites($rewritesOption);
$filterCondition = $this->scanner->getData('filterCondition') ?? '';
$searchKey = str_replace("\\\\\\\\", "\\", $filterCondition);
if ($searchKey) {
foreach ($rewrites as $key => $value) {
if (strpos(strtolower($key), strtolower($searchKey)) === false) {
unset($rewrites[$key]);
}
}
}
foreach ($rewrites as $originalClass => $rewriteOptions) {
foreach ($rewriteOptions as $areaCode => $rewriteClasses) {
if (count($rewriteClasses) > 1) {
$status = false;
} else {
$status = true;
}
/**
* Exceptions
* Magento\Catalog\Block\Product\ImageBuilder class we rewrite in LazyLoading, OwlCarousel modules as well
* these modules are sold as standalone ones, so we rewrite the class also in CategoryPage module
* where we merge the functionalities from those 2 modules, in this case this rewrite is marked as Ok,
*/
if (($originalClass == 'Magento\Catalog\Block\Product\ImageFactory') &&
($areaCode == 'frontend')
) {
$checkRewriteStatus = true;
foreach ($rewriteClasses as $className) {
if (strpos($className, 'WeltPixel\\') === false ) {
$checkRewriteStatus = false;
}
}
$status = $checkRewriteStatus;
}
foreach ($rewriteClasses as $key => $rewriteClass) {
$item = $this->_dataObjectFactory->create();
if ($key) {
$item->setArea('');
$item->setOriginalClass('');
} else {
$item->setArea($areaCode);
$item->setOriginalClass($originalClass);
}
$item->setRewriteClass($rewriteClass);
$item->setStatus($status);
$this->addItem($item);
}
}
}
}
/**
* Filter applied only on the original_class column
*
* @param array|string $field
* @param array|int|string $condition
* @return $this
*/
public function addFieldToFilter($field, $condition)
{
$conditionValue = substr($condition['like'], 2, -2);
$this->scanner->setData('filterCondition', $conditionValue);
return $this;
}
}
+124
View File
@@ -0,0 +1,124 @@
<?php
namespace WeltPixel\Backend\Model;
class Scanner extends \Magento\Framework\Model\AbstractModel
{
/**
* @var \Magento\Framework\App\Config\FileResolver
*/
protected $fileResolver;
/**
* @var \Magento\Framework\App\AreaList
*/
protected $areaList;
/**
* Direct usage of \Magento\Setup\Module\Di\Code\Scanner\ConfigurationScanner
* caused error on compilation
* Argument 1 passed to Magento\\Setup\\Module\\Di\\Code\\Scanner\\ConfigurationScanner::__construct()
* must be an instance of Magento\\Framework\\App\\Config\\FileResolver,
* instance of Magento\\Framework\\ObjectManager\\ObjectManager given
*
* so FileResolver and AreaList injected directly insetad
*
* @param \Magento\Framework\Model\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Framework\App\Config\FileResolver $fileResolver
* @param \Magento\Framework\App\AreaList $areaList
*/
public function __construct(
\Magento\Framework\Model\Context $context,
\Magento\Framework\Registry $registry,
\Magento\Framework\App\Config\FileResolver $fileResolver,
\Magento\Framework\App\AreaList $areaList
)
{
parent::__construct($context, $registry);
$this->fileResolver = $fileResolver;
$this->areaList = $areaList;
}
/**
* \Magento\Setup\Module\Di\Code\Scanner\ConfigurationScanner scan usage,
* because the original class injection is causing error on compilation
*
* @param $fileName
* @return array
*/
public function getScannedFiles($fileName) {
$files = [];
$areaCodes = array_merge(
['primary', \Magento\Framework\App\Area::AREA_GLOBAL],
$this->areaList->getCodes()
);
foreach ($areaCodes as $area) {
$files = array_merge_recursive(
$files,
$this->fileResolver->get($fileName, $area)->toArray()
);
}
return array_keys($files);
}
/**
* @param bool $all
* @return array
*/
public function getRewrites($all = false)
{
$diFiles = $this->getScannedFiles('di.xml');
$moduleFiles = $this->getScannedFiles('module.xml');
array_walk($moduleFiles, function (&$item) {
$item = str_replace('/module.xml', '', $item);
});
if (!$all) {
foreach ($diFiles as $key => $file) {
preg_match('/(.*\/etc)/', $file, $matches);
$resultKey = $matches[1];
if (!in_array($resultKey, $moduleFiles) ||
(strpos($file, '/vendor/magento') !== false)
) {
unset($diFiles[$key]);
}
}
}
$rewrites = $this->_collectRewriteEntities($diFiles);
return $rewrites;
}
/**
* @param array $files
* @return array
*/
protected function _collectRewriteEntities(array $files)
{
$rewrites = [];
foreach ($files as $fileName) {
$areaCode = 'global';
preg_match('/\/etc\/(.*)\/di.xml/', $fileName, $matches);
if (isset($matches[1])) {
$areaCode = $matches[1];
}
$dom = new \DOMDocument();
$dom->loadXML(file_get_contents($fileName));
$xpath = new \DOMXPath($dom);
/** @var $node \DOMNode */
foreach ($xpath->query('//preference') as $node) {
$originalClass = $node->getAttribute('for');
$rewriteClass = $node->getAttribute('type');
if (!isset($rewrites[$originalClass]) || !isset($rewrites[$originalClass][$areaCode]) || !in_array($rewriteClass, $rewrites[$originalClass][$areaCode])) {
$rewrites[$originalClass][$areaCode][] = $rewriteClass;
}
}
}
return $rewrites;
}
}
@@ -0,0 +1,80 @@
<?php
namespace WeltPixel\Backend\Plugin\Category;
use Magento\Eav\Model\Config;
use Magento\Framework\App\Request\Http as HttpRequest;
class DataProvider
{
/**
* @var Config
*/
private $eavConfig;
/**
* @var HttpRequest
*/
private $request;
/**
* DataProvider constructor.
* @param Config $eavConfig
* @param HttpRequest $request
*/
public function __construct(
Config $eavConfig,
HttpRequest $request
) {
$this->eavConfig = $eavConfig;
$this->request = $request;
}
/**
* @param \Magento\Catalog\Model\Category\DataProvider $subject
* @param array $result
* @return array
*/
public function afterPrepareMeta(\Magento\Catalog\Model\Category\DataProvider $subject, $result)
{
$fullActionName = $this->request->getFullActionName();
if ($fullActionName == 'catalog_category_edit') {
$result = array_merge_recursive($result, $this->_prepareFieldsMeta(
$result,
$this->_getFieldsMap(),
$subject->getAttributesMeta($this->eavConfig->getEntityType('catalog_category'))
));
}
return $result;
}
/**
* Prepare fields meta based on xml declaration of form and fields metadata
*
* @param array $originalResult
* @param array $fieldsMap
* @param array $fieldsMeta
* @return array
*/
protected function _prepareFieldsMeta($originalResult, $fieldsMap, $fieldsMeta)
{
$result = [];
foreach ($fieldsMap as $fieldSet => $fields) {
foreach ($fields as $field) {
if (isset($fieldsMeta[$field]) && (!isset($originalResult[$fieldSet]['children'][$field]))) {
$result[$fieldSet]['children'][$field]['arguments']['data']['config'] = $fieldsMeta[$field];
}
}
}
return $result;
}
/**
* Rewrite this in all subclassess, provide the list with category attributes
* @return array
*/
protected function _getFieldsMap()
{
return [];
}
}
@@ -0,0 +1,17 @@
<?php
namespace WeltPixel\Backend\Plugin\CategoryStaging;
class DataProvider
{
/**
* @param \Magento\Catalog\Model\Category\DataProvider $subject
* @param array $result
* @return array
*/
public function afterPrepareMeta(\Magento\Catalog\Model\Category\DataProvider $subject, $result)
{
unset($result['weltpixel_options']);
unset($result['weltpixel_megamenu']);
return $result;
}
}
+38
View File
@@ -0,0 +1,38 @@
<?php
namespace WeltPixel\Backend\Plugin;
use Magento\Framework\App\Config\ScopeConfigInterface;
class ScopeConfig
{
public function afterIsSetFlag(
ScopeConfigInterface $subject,
$result,
$path,
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
$scopeCode = null
) {
if ($path == 'csp/mode/storefront/report_only') {
if ($subject->getValue('weltpixel_backend_developer/csp/change_system_value')) {
$result = (boolean) $subject->getValue('weltpixel_backend_developer/csp/report_only');
}
}
return $result;
}
public function afterGetValue(
ScopeConfigInterface $subject,
$result,
$path,
$scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
$scopeCode = null
) {
if (preg_match('/^csp\/mode\/storefront_[^\/]+\/report_only$/', $path)) {
if ($subject->getValue('weltpixel_backend_developer/csp/change_system_value')) {
$result = (boolean) $subject->getValue('weltpixel_backend_developer/csp/report_only');
}
}
return $result;
}
}
+22
View File
@@ -0,0 +1,22 @@
# magento2-weltpixel-backend
### Installation
With composer:
```sh
$ composer config repositories.weltpixel-magento2-weltpixel-backend git https://github.com/Weltpixel/magento2-weltpixel-backend.git
$ composer require weltpixel/magento2-weltpixel-backend:dev-master
```
Manually:
Copy the zip into the app/code/WeltPixel/Backend directory
#### After installation by either means, enable the extension by running following commands:
```sh
$ php bin/magento module:enable WeltPixel_Backend --clear-static-content
$ php bin/magento setup:upgrade
```
@@ -0,0 +1,83 @@
<?php
namespace WeltPixel\Backend\Setup\Patch\Data;
use Magento\Framework\Setup\ModuleDataSetupInterface;
use Magento\Framework\Setup\Patch\DataPatchInterface;
use Magento\Framework\Setup\Patch\PatchVersionInterface;
use Magento\Framework\App\Config\Storage\WriterInterface;
class GenerateCronExpression implements DataPatchInterface, PatchVersionInterface
{
const UPDATE_CRON_STRING_PATH = "weltpixel/crontab/license";
/** @var WriterInterface */
private $configWriter;
/**
* @var ModuleDataSetupInterface $moduleDataSetup
*/
private $moduleDataSetup;
/**
* @param ModuleDataSetupInterface $moduleDataSetup
* @param WriterInterface $configWriter
*/
public function __construct(
ModuleDataSetupInterface $moduleDataSetup,
WriterInterface $configWriter)
{
$this->moduleDataSetup = $moduleDataSetup;
$this->configWriter = $configWriter;
}
/**
* {@inheritdoc}
*/
public function apply()
{
$this->moduleDataSetup->startSetup();
$cronExpression = $this->_generateCronExpression();
$this->configWriter->save(self::UPDATE_CRON_STRING_PATH, $cronExpression);
$this->moduleDataSetup->endSetup();
}
/**
* {@inheritdoc}
*/
public static function getVersion()
{
return '1.1.1';
}
/**
* @inheritdoc
*/
public function getAliases()
{
return [];
}
/**
* @inheritdoc
*/
public static function getDependencies()
{
return [];
}
/**
* @return string
*/
protected function _generateCronExpression()
{
$minute = rand(0, 59);
$hour = rand(-2, 6);
$dayOfWeek = rand(0, 6);
if ($hour < 0) {
$hour += 24;
}
return $minute . ' ' . $hour . ' * * ' . $dayOfWeek;
}
}
@@ -0,0 +1,85 @@
<?php
namespace WeltPixel\Backend\Setup\Patch\Schema;
use Magento\Framework\Setup\SchemaSetupInterface;
use Magento\Framework\Setup\Patch\SchemaPatchInterface;
use Magento\Framework\Setup\Patch\PatchVersionInterface;
class AddLicenseTable implements SchemaPatchInterface, PatchVersionInterface
{
/**
* @var SchemaSetupInterface $schemaSetup
*/
private $schemaSetup;
/**
* @param SchemaSetupInterface $schemaSetup
*/
public function __construct(SchemaSetupInterface $schemaSetup)
{
$this->schemaSetup = $schemaSetup;
}
/**
* {@inheritdoc}
*/
public function apply()
{
$installer = $this->schemaSetup;
$this->schemaSetup->startSetup();
/**
* Create table 'weltpixel_license'
*/
$table = $installer->getConnection()->newTable(
$installer->getTable('weltpixel_license')
)->addColumn(
'id',
\Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
null,
['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true],
'Id'
)->addColumn(
'module_name',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
255,
[],
'Module Name'
)->addColumn(
'license_key',
\Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
1024,
[],
'License Key'
)->setComment(
'WeltPixel License'
);
$installer->getConnection()->createTable($table);
$this->schemaSetup->endSetup();
}
/**
* {@inheritdoc}
*/
public static function getVersion()
{
return '1.1.1';
}
/**
* @inheritdoc
*/
public function getAliases()
{
return [];
}
/**
* @inheritdoc
*/
public static function getDependencies()
{
return [];
}
}
+18
View File
@@ -0,0 +1,18 @@
{
"name": "weltpixel/magento2-weltpixel-backend",
"description": "WeltPixel Backend Module",
"require": {
"magento/module-admin-notification": "*"
},
"type": "magento2-module",
"version": "1.16.0",
"license": "MIT",
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"WeltPixel\\Backend\\": ""
}
}
}
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin" >
<resource id="WeltPixel_Backend::WeltPixel" title="WeltPixel" sortOrder="200" >
<resource id="WeltPixel_Backend::WeltPixel_HelpCenter" title="WeltPixel HelpCenter" sortOrder="2" />
<resource id="WeltPixel_Backend::WeltPixel_Debugger" title="WeltPixel Debugger" sortOrder="5" >
<resource id="WeltPixel_Backend::WeltPixel_Debugger_Rewrites" title="Rewrites" sortOrder="1" />
<resource id="WeltPixel_Backend::WeltPixel_Debugger_Modules" title="Extensions Version" sortOrder="5" />
<resource id="WeltPixel_Backend::WeltPixel_Debugger_Developer" title="Developer" sortOrder="25" />
</resource>
<resource id="WeltPixel_Backend::Pearl_Theme_Options" title="Pearl Theme Options" sortOrder="5" />
</resource>
<resource id="Magento_Backend::stores">
<resource id="Magento_Backend::stores_settings">
<resource id="Magento_Config::config">
<resource id="WeltPixel_Backend::DocumentationSettings" title="WeltPixel DocumentationSettings" sortOrder="0" />
<resource id="WeltPixel_Backend::DeveloperSettings" title="WeltPixel Developer" sortOrder="1000" />
</resource>
</resource>
</resource>
</resource>
</resources>
</acl>
</config>
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\CatalogStaging\Model\Category\DataProvider">
<plugin name="weltpixel-backend-categorystaging-dataprovider" type="WeltPixel\Backend\Plugin\CategoryStaging\DataProvider" sortOrder="1" />
</type>
</config>
+55
View File
@@ -0,0 +1,55 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="WeltPixel_Backend::WeltPixel" title="WeltPixel" module="WeltPixel_Backend" sortOrder="200" resource="WeltPixel_Backend::WeltPixel"/>
<add
id="WeltPixel_Backend::WeltPixel_HelpCenter"
title="WeltPixel Help Center"
module="WeltPixel_Backend"
action="adminhtml/system_config/edit/section/weltpixel_backend_config/"
sortOrder="1"
parent="WeltPixel_Backend::WeltPixel"
resource="WeltPixel_Backend::WeltPixel_HelpCenter"
/>
<add
id="WeltPixel_Backend::WeltPixel_Debugger"
title="WeltPixel Debugger"
module="WeltPixel_Backend"
sortOrder="3"
parent="WeltPixel_Backend::WeltPixel"
resource="WeltPixel_Backend::WeltPixel_Debugger"
/>
<add
id="WeltPixel_Backend::WeltPixel_Debugger_Rewrites"
title="Rewrites"
module="WeltPixel_Backend"
action="weltpixel_backend/debugger/rewrites"
sortOrder="2"
parent="WeltPixel_Backend::WeltPixel_Debugger"
resource="WeltPixel_Backend::WeltPixel_Debugger_Rewrites"
/>
<add
id="WeltPixel_Backend::WeltPixel_Debugger_Developer"
title="Developer"
module="WeltPixel_Backend"
action="adminhtml/system_config/edit/section/weltpixel_backend_developer/"
sortOrder="25"
parent="WeltPixel_Backend::WeltPixel_Debugger"
resource="WeltPixel_Backend::WeltPixel_Debugger_Developer"
/>
<add
id="WeltPixel_Backend::Pearl_Theme_Options"
title="Pearl Theme Options"
module="WeltPixel_Backend"
sortOrder="3"
parent="WeltPixel_Backend::WeltPixel"
resource="WeltPixel_Backend::Pearl_Theme_Options"
/>
</menu>
</config>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="admin">
<route id="weltpixel_backend" frontName="weltpixel_backend">
<module name="WeltPixel_Backend" />
</route>
</router>
</config>
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="weltpixel" translate="label" sortOrder="2000" class="weltpixel-tab">
<label>WeltPixel</label>
</tab>
<section id="weltpixel_backend_developer" translate="label" type="text" sortOrder="1000" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Developer</label>
<tab>weltpixel</tab>
<resource>WeltPixel_Backend::DeveloperSettings</resource>
<group id="system_information" translate="label" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
<label>System Information</label>
<field id="infromation_details" translate="button_label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<frontend_model>WeltPixel\Backend\Block\Adminhtml\System\Config\SystemInformation</frontend_model>
</field>
</group>
<group id="csp" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Content Security Policies</label>
<field id="change_system_value" translate="label comment" type="select" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Change Magento Default Mode</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment>Only available from 2.3.5 version.</comment>
</field>
<field id="report_only" translate="label" type="select" sortOrder="0" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Report Only</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<depends>
<field id="change_system_value">1</field>
</depends>
</field>
</group>
</section>
</system>
</config>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
<weltpixel_backend_developer>
<csp>
<change_system_value>0</change_system_value>
<report_only>1</report_only>
</csp>
</weltpixel_backend_developer>
</default>
</config>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<csp_whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd">
<policies>
<policy id="frame-src">
<values>
<value id="weltpixel_documentation" type="host">*.weltpixel.com</value>
</values>
</policy>
</policies>
</csp_whitelist>
+11
View File
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="WeltPixel\Backend\Model\ResourceModel\Debugger\Grid\Collection">
<arguments>
<argument name="mainTable" xsi:type="string">weltpixel_debugger</argument>
<argument name="eventPrefix" xsi:type="string">weltpixel_debugger_grid_collection</argument>
<argument name="eventObject" xsi:type="string">weltpixel_debugger_grid_collection</argument>
<argument name="resourceModel" xsi:type="string">Magento\Framework\DataObject </argument>
</arguments>
</type>
</config>
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Framework\App\Config\ScopeConfigInterface">
<plugin name="weltpixel-backend-scopeconfig"
type="WeltPixel\Backend\Plugin\ScopeConfig" sortOrder="10"/>
</type>
</config>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="WeltPixel_Backend">
<sequence>
<module name="Magento_AdminNotification"/>
</sequence>
</module>
</config>
+33
View File
@@ -0,0 +1,33 @@
"Only Custom Modules","Only Custom Modules"
"All Magento Modules","All Magento Modules"
OK,OK
"CHECK REWRITE","CHECK REWRITE"
N/A,N/A
"Up to Date","Up to Date"
"Update needed","Update needed"
Modules,Modules
"Check Rewrites / Preferences","Check Rewrites / Preferences"
Valid,Valid
Invalid,Invalid
"Yes (Recommended)","Yes (Recommended)"
No,No
Enabled,Enabled
"Current Version","Current Version"
"Latest Version","Latest Version"
"Theme module","Theme module"
Themes,Themes
WeltPixel,WeltPixel
"WeltPixel Documentation","WeltPixel Documentation"
"Recommended Solutions:","Recommended Solutions:"
Developer,Developer
"System Information","System Information"
Logs,Logs
"Enable broken reference logs","Enable broken reference logs"
"Content Security Policies","Content Security Policies"
"Change Magento Default Mode","Change Magento Default Mode"
"Only available from 2.3.5 version.","Only available from 2.3.5 version."
"Report Only","Report Only"
Area,Area
"Original Class","Original Class"
"Rewrite Class","Rewrite Class"
Status,Status
1 Only Custom Modules Only Custom Modules
2 All Magento Modules All Magento Modules
3 OK OK
4 CHECK REWRITE CHECK REWRITE
5 N/A N/A
6 Up to Date Up to Date
7 Update needed Update needed
8 Modules Modules
9 Check Rewrites / Preferences Check Rewrites / Preferences
10 Valid Valid
11 Invalid Invalid
12 Yes (Recommended) Yes (Recommended)
13 No No
14 Enabled Enabled
15 Current Version Current Version
16 Latest Version Latest Version
17 Theme module Theme module
18 Themes Themes
19 WeltPixel WeltPixel
20 WeltPixel Documentation WeltPixel Documentation
21 Recommended Solutions: Recommended Solutions:
22 Developer Developer
23 System Information System Information
24 Logs Logs
25 Enable broken reference logs Enable broken reference logs
26 Content Security Policies Content Security Policies
27 Change Magento Default Mode Change Magento Default Mode
28 Only available from 2.3.5 version. Only available from 2.3.5 version.
29 Report Only Report Only
30 Area Area
31 Original Class Original Class
32 Rewrite Class Rewrite Class
33 Status Status
+7
View File
@@ -0,0 +1,7 @@
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'WeltPixel_Backend',
__DIR__
);
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<head>
<link src="WeltPixel_Backend::jscolor/jscolor.js"/>
</head>
</page>
@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceContainer name="before.body.end">
<block class="Magento\Backend\Block\Template" template="WeltPixel_Backend::helpcenter/init.phtml"/>
<block class="Magento\Backend\Block\Template" template="WeltPixel_Backend::menu/adjustments.phtml"/>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<update handle="styles"/>
<body>
<referenceContainer name="content">
<block class="WeltPixel\Backend\Block\Adminhtml\Debugger" name="weltpixel_rewrites_grid">
<block class="Magento\Backend\Block\Widget\Grid" name="weltpixel_rewrites_grid.grid" as="grid">
<arguments>
<argument name="dataSource" xsi:type="object">WeltPixel\Backend\Model\ResourceModel\Debugger\Grid\Collection</argument>
<argument name="pager_visibility" xsi:type="string">0</argument>
</arguments>
<block class="Magento\Backend\Block\Widget\Grid\ColumnSet" name="weltpixel_rewrites_grid.grid.columnSet" as="grid.columnSet">
<arguments>
<argument name="filter_visibility" xsi:type="string">1</argument>
</arguments>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="area">
<arguments>
<argument name="header" xsi:type="string" translate="true">Area</argument>
<argument name="index" xsi:type="string">area</argument>
<argument name="sortable" xsi:type="string">0</argument>
<argument name="filter" xsi:type="string">0</argument>
</arguments>
</block>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="original_class">
<arguments>
<argument name="header" xsi:type="string" translate="true">Original Class</argument>
<argument name="index" xsi:type="string">original_class</argument>
<argument name="sortable" xsi:type="string">0</argument>
<!--<argument name="filter" xsi:type="string">0</argument>-->
</arguments>
</block>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="rewrite_class">
<arguments>
<argument name="header" xsi:type="string" translate="true">Rewrite Class</argument>
<argument name="index" xsi:type="string">rewrite_class</argument>
<argument name="sortable" xsi:type="string">0</argument>
<argument name="filter" xsi:type="string">0</argument>
</arguments>
</block>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="status">
<arguments>
<argument name="header" xsi:type="string" translate="true">Status</argument>
<argument name="filter" xsi:type="string">0</argument>
<argument name="sortable" xsi:type="string">0</argument>
<argument name="renderer" xsi:type="string">WeltPixel\Backend\Block\Adminhtml\Grid\Renderer\RewriteStatus</argument>
<argument name="header_css_class" xsi:type="string">col-rewrite-status</argument>
</arguments>
</block>
</block>
</block>
</block>
</referenceContainer>
</body>
</page>
@@ -0,0 +1,16 @@
<?php
/** @var \WeltPixel\Backend\Helper\Utility $wpHelper */
$wpHelper = $this->helper('WeltPixel\Backend\Helper\Utility');
$cspNonceProvider = $wpHelper->getCspNonceProvider();
?>
<div>
<input type="hidden" name="wp_base_url_jscolor" id="wp_base_url_jscolor" value="<?php /* @noEscape */ echo $this->getViewFileUrl('WeltPixel_Backend::jscolor'); ?>" />
</div>
<script<?php if ($cspNonceProvider): ?> nonce="<?= $block->escapeHtmlAttr($cspNonceProvider->generateNonce()) ?>"<?php endif; ?>>
requirejs(['jquery' ],
function ($) {
$(document).ready(function() {
$('.item-weltpixel-helpcenter a').attr('href', 'https://support.weltpixel.com/hc/en-us').attr('target', '_blank');
});
});
</script>
@@ -0,0 +1,43 @@
<?php
/** @var \WeltPixel\Backend\Helper\Utility $wpHelper */
$wpHelper = $this->helper('WeltPixel\Backend\Helper\Utility');
$cspNonceProvider = $wpHelper->getCspNonceProvider();
?>
<script<?php if ($cspNonceProvider): ?> nonce="<?= $block->escapeHtmlAttr($cspNonceProvider->generateNonce()) ?>"<?php endif; ?>>
requirejs(['jquery' ],
function ($) {
$(document).ready(function() {
var wpSubmenu = $('#menu-weltpixel-backend-weltpixel > .submenu');
function wpAdjustMenuWidth() {
var windowWidth = $(window).width() - 80;
if (wpSubmenu && wpSubmenu.length) {
if (wpSubmenu[0].scrollWidth > windowWidth) {
wpSubmenu.css({
'overflow-x': 'scroll',
'width': windowWidth - 20,
'max-width': windowWidth - 20
});
} else {
wpSubmenu.css({
'overflow-x': 'initial',
'width': 'initial',
'max-width': 'initial'
});
}
}
}
wpAdjustMenuWidth();
$(window).resize(function(){
wpAdjustMenuWidth();
});
$(wpSubmenu).on('scroll', function(event) {
$('.action-close').css('right', ( -1 * wpSubmenu.scrollLeft()) + 'px');
});
});
});
</script>
@@ -0,0 +1,70 @@
<?php
/** @var $block \WeltPixel\Backend\Block\Adminhtml\System\Config\SystemInformation */
/** @var \WeltPixel\Backend\Helper\Developer $developerHelper */
$developerHelper = $this->helper('WeltPixel\Backend\Helper\Developer');
$cronjoblimit = 100;
$scheduleCollection = $developerHelper->getLatestCronJobs($cronjoblimit);
/** @var \WeltPixel\Backend\Helper\Utility $wpHelper */
$wpHelper = $this->helper('WeltPixel\Backend\Helper\Utility');
$cspNonceProvider = $wpHelper->getCspNonceProvider();
?>
<div class="col-xs-12 system-infromation-container">
<div class="col-xs-6 information-label">Magento Mode</div>
<div class="col-xs-6"><?php echo $block->escapeHtml(ucfirst($this->getMagentoMode())); ?></div>
<div class="col-xs-6 information-label">Magento Installation Path</div>
<div class="col-xs-6"><?php echo $block->escapeHtml($this->getMagentoPath()); ?></div>
<div class="col-xs-6 information-label">Magento Edition</div>
<div class="col-xs-6"><?php echo $block->escapeHtml($developerHelper->getMagentoEdition()); ?></div>
<div class="col-xs-6 information-label">PHP Version</div>
<div class="col-xs-6"><?php echo $block->escapeHtml(phpversion()) ?></div>
<div class="col-xs-6 information-label">Server User</div>
<div class="col-xs-6"><?php echo $block->escapeHtml($developerHelper->getCurrentServerUser()); ?></div>
<div class="col-xs-6 information-label">Server User Group</div>
<div class="col-xs-6"><?php echo $block->escapeHtml($developerHelper->getCurrentServerUserGroup()); ?></div>
<div class="col-xs-6 information-label">Current Time</div>
<div class="col-xs-6"><?php echo $block->escapeHtml($developerHelper->getServerTime()); ?></div>
<div class="col-xs-6 information-label">Latest Cron Jobs (<?php echo $block->escapeHtml($cronjoblimit) ?>)</div>
<div class="col-xs-6"></div>
<div class="col-xs-12 cronjob-header">
<table>
<thead>
<tr>
<th class="job-code">Job Code</th>
<th class="status">Status</th>
<th class="created-at">Created At</th>
<th class="scheduled-at">Scheduled At</th>
<th class="executed-at">Executed At</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div class="col-xs-12 cronjob-details">
<table>
<tbody>
<?php foreach ($scheduleCollection->getItems() as $item ) : ?>
<tr>
<td class="job-code"><?php /* @noEscape */ echo $item->getJobCode(); ?> </td>
<td class="status"><?php /* @noEscape */ echo $item->getStatus(); ?> </td>
<td class="created-at"><?php /* @noEscape */ echo $item->getCreatedAt(); ?> </td>
<td class="scheduled-at"><?php /* @noEscape */ echo $item->getScheduledAt(); ?> </td>
<td class="executed-at"><?php /* @noEscape */ echo ($item->getExecutedAt()) ? $item->getExecutedAt() : '-' ?> </td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
<script<?php if ($cspNonceProvider): ?> nonce="<?= $block->escapeHtmlAttr($cspNonceProvider->generateNonce()) ?>"<?php endif; ?>>
requirejs(['jquery'],function($) {
$(document).ready(function() {
$('#row_weltpixel_backend_developer_system_information_infromation_details .label').hide();
$('#row_weltpixel_backend_developer_system_information_infromation_details .value').css('width', '100%');
});
});
</script>
@@ -0,0 +1,4 @@
<div>
<p>1. After changing theme settings make sure to clear related caches: Regenerate Pearl Theme CSS, Flush Magento Cache, Clear Browser Cache (if necessary also Flush JS/CSS Cache, Flush Catalog Images Files, Flush Cache Storage)</p>
<p>2. Make sure you are changing the settings on the right store view, settings may be different in default config vs. storeview</p>
</div>
@@ -0,0 +1,364 @@
@weltpixel_store_color: #FFF;
#nav {
li.item-weltpixel {
> a {
&:before {
content: '';
background-image: url("../WeltPixel_Backend/images/WeltPixel_logo.svg");
background-repeat: no-repeat;
background-size: 70px;
background-position: center;
height: 50px;
}
> span {
font-size: 0px;
}
}
.submenu {
.submenu-title {
background-image: url("../WeltPixel_Backend/images/WeltPixel_logo.svg");
background-repeat: no-repeat;
padding-left: 80px;
height: 80px;
font-size: 0px;
margin-bottom: 15px;
background-size: 120px;
}
.item-weltpixel-documentation {
a {
&:after {
content: '\e60d';
font-family: 'Admin Icons';
margin-left: 10px;
}
}
}
.item-weltpixel-helpcenter {
a {
&:after {
content: '\e633';
font-family: 'Admin Icons';
margin-left: 10px;
vertical-align: baseline;
font-size: 13px;
}
}
}
.item-weltpixel-debugger {
.submenu-group-title {
&:after {
content: '\e613';
font-family: 'Admin Icons';
margin-left: 10px;
color: #FFF;
}
}
}
.item-pearl-theme-options {
display: none;
&.parent {
display: block
}
}
.parent {
margin-bottom: 1em;
.submenu-group-title {
margin-bottom: 0px;
padding: 0.7rem 0.5rem;
}
}
li {
min-width: 20rem;
&.level-1 {
margin-left: 0.5rem;
margin-right: 0.5rem;
a {
padding: 0.5rem 0.5rem;
font-size: 13px;
}
}
}
}
}
}
.config-nav {
.item-weltpixel-documentation {
a {
&:after {
content: '\e60d';
font-family: 'Admin Icons';
margin-left: 10px;
}
}
}
.weltpixel-tab {
.admin__page-nav-title {
strong {margin-left: 50px;}
&:before {
content: '';
background-image: url("../WeltPixel_Backend/images/WeltPixel_logo_dark.svg");
background-repeat: no-repeat;
background-size: 40px;
background-position: 0px 0px;
height: 30px;
position: absolute;
width: 50px;
top: 14px;
}
}
}
}
#weltpixel_store {
border: none;
height: 1500px;
}
.section-config {
&.weltpixel-recommended-header {
.admin__collapsible-block {
display: block !important;
a {
font-weight: normal;
text-transform: uppercase;
&:before {
content: '' !important;
}
}
table {
td.label {
display: none;
}
td.value {
width: 100%;
}
}
}
}
}
iframe#launcher {
display: none !important;
}
.col-rewrite-status {width: 160px;}
.rewrite-status, .license-status {
width: 100%;
display: block;
text-align: center;
padding: 5px;
font-weight: bold;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
color: #FFF;
}
.rewrite-status-nok, .license-status-nok {
background-color: #ff0000;
}
.rewrite-status-ok, .license-status-ok {
background-color: #00aa00;
}
.module-title {
font-size: 16px;
}
.module-theme-info {
font-size: 12px;
font-style: italic;
font-weight: bold;
}
.license-container {
.admin__table-secondary {
background-color: #FFF;
tbody tr td {
background-color: #FFF;
}
}
.admin_table_filled {
background-color: #f1f1f1;
tbody tr td {
background-color: #f1f1f1;
}
}
th {
&.license-name {
width: 24%;
}
&.license-key {
width: 68%;
}
&.license-validity {
width: 8%;
}
}
td {
&.license-name {
width: 24%;
font-size: 16px;
}
&.license-key {
width: 68%;
word-break: break-all;
}
&.license-validity {
width: 8%;
}
}
.license-input {
width: 85%;
margin-right: 20px;
}
}
.system-infromation-container {
div {
margin: 5px 0;
}
.information-label {
text-align: right;
font-weight: bold;
padding-right: 2%;
width: 47%;
}
.cronjob-header {
padding: 10px;
border: 1px solid;
border-bottom: none;
margin: 0;
margin-top: 20px;
table {
th, td {
text-align: right;
}
th {
&.job-code {
width: 43%;
}
&.status {
width: 8%;
}
&.created-at {
width: 16%;
}
&.scheduled-at {
width: 16%;
}
&.executed-at {
width: 17%;
}
}
}
}
.cronjob-details {
margin-top: 0px;
border: 1px solid;
padding: 10px;
height: 300px;
overflow-y: scroll;
table {
th, td {
text-align: right;
}
td {
&.job-code {
width: 43%;
}
&.status {
width: 8%;
}
&.created-at {
width: 16%;
}
&.scheduled-at {
width: 16%;
}
&.executed-at {
width: 17%;
}
}
}
}
}
.license-pmsg {
padding: 20px 10px;
font-weight:700;
color: #fff;
letter-spacing:1px;
&.invalid-license-pmsg {
background: #f30d49;
}
&.valid-license-pmsg {
background: #359639;
}
}
.tfa-google-auth {
.message-error {
display: none;
}
}
.section-config.weltpixel-module-information-header {
.admin__collapsible-block {
display: block !important;
a {
font-weight: normal;
text-transform: initial;
&:before {
content: '' !important;
}
}
table {
td.label {
display: none;
}
td.value {
padding-top: 0;
width: 100%;
}
}
.wp-module-version {
color: #1c8ecb;
font-weight: 600;
}
.message {
width: fit-content;
p {
margin: 0;
}
}
strong {
&.old-version {
color: red;
}
&.current-version {
color: green;
}
}
.request-feature-button {
padding: 20px 0 0 0;
#request_feature {
background-color: #073756;
border: #fff;
padding: 10px 15px;
color: #FFF;
font-weight: 600;
&:hover {
background-color: #2f5e7d;
box-shadow: 0 0 10px #073756;
}
}
}
}
}
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="69px" height="42px" viewBox="0 0 69 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41 (35326) - http://www.bohemiancoding.com/sketch -->
<title>logo_white</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="weltpixel_homepage-2" transform="translate(-80.000000, -14.000000)" fill="#FFFFFF">
<g id="1_header">
<g id="menu">
<g id="logo_white" transform="translate(80.000000, 14.000000)">
<path d="M68.3067033,29.10096 C67.5730033,29.2078691 66.9842033,29.2613236 66.5334033,29.2613236 C65.9369367,29.2613236 65.47847,29.1628145 65.1580033,28.9719055 C64.83677,28.7741236 64.6083033,28.5144873 64.4626367,28.1876509 C64.3254033,27.8608145 64.2564033,27.1300145 64.2564033,25.9807418 L64.2564033,12.1337236 L68.3067033,12.1337236 L68.3067033,9.01274182 L64.2564033,9.01274182 L64.2564033,0.737978182 L60.2429033,3.14419636 L60.2429033,9.01274182 L57.2866367,9.01274182 L57.2866367,12.1337236 L60.2429033,12.1337236 L60.2429033,25.7592873 C60.2429033,28.1647418 60.4123367,29.74776 60.74047,30.4945964 C61.06937,31.2483055 61.63517,31.8569236 62.4371033,32.3135782 C63.2467033,32.7786327 64.3783033,33.0061964 65.8449367,33.0061964 C66.7396367,33.0061964 67.7562367,32.8847782 68.88707,32.6480509 L68.3067033,29.10096 Z M53.2923033,32.6946327 L57.3196033,32.6946327 L57.3196033,0.000305454545 L53.2923033,0.000305454545 L53.2923033,32.6946327 Z M34.9835367,18.5734691 C35.1215367,16.5108873 35.81767,14.8591418 37.0788367,13.6251055 C38.3392367,12.3925964 39.89787,11.7763418 41.74707,11.7763418 C43.7879367,11.7763418 45.4531367,12.5521964 46.73807,14.09856 C47.57067,15.0867055 48.0828033,16.5872509 48.2591367,18.5734691 L34.9835367,18.5734691 Z M48.2131367,25.0666691 C47.6013367,26.7642327 46.7764033,27.9975055 45.7299033,28.7664873 C44.6826367,29.5431055 43.4207033,29.9310327 41.9464033,29.9310327 C39.9584367,29.9310327 38.30857,29.2384145 36.97917,27.8531782 C35.6482367,26.4755782 34.9076367,24.48096 34.7627367,21.8777236 L52.49267,21.8777236 C52.5080033,21.4050327 52.5149033,21.0476509 52.5149033,20.8040509 C52.5149033,16.8988145 51.5067367,13.8618327 49.4896367,11.7076145 C47.4794367,9.55339636 44.87967,8.47285091 41.7018367,8.47285091 C38.4159033,8.47285091 35.74867,9.57630545 33.6848033,11.7763418 C31.6286033,13.9756145 30.5974367,17.0660509 30.5974367,21.0552873 C30.5974367,24.9070691 31.61327,27.8989964 33.65337,30.0295418 C35.68657,32.1616145 38.44657,33.2268873 41.9234033,33.2268873 C44.6826367,33.2268873 46.9512033,32.5571782 48.73217,31.2253964 C50.50547,29.8852145 51.71987,28.0043782 52.3784367,25.5767782 L48.2131367,25.0666691 Z M7.27543667,32.6946327 L-0.00023,9.01274182 L4.16583667,9.01274182 L7.94780333,22.6848873 L9.35463667,27.7691782 C9.41597,27.5103055 9.82843667,25.8814691 10.58437,22.8819055 L14.36787,9.01274182 L18.51017,9.01274182 L22.07057,22.7452145 L23.2627367,27.2743418 L24.62357,22.6993964 L28.69687,9.01274182 L32.6176033,9.01274182 L25.1817033,32.6946327 L21.00107,32.6946327 L17.2183367,18.5123782 L16.29297,14.4704509 L11.4867367,32.6946327 L7.27543667,32.6946327 Z" id="Fill-1"></path>
<path d="M8.43854667,39.2631273 C8.55431333,39.2852727 8.65704667,39.3013091 8.74674667,39.312 C8.83721333,39.3234545 8.91311333,39.3288 8.97674667,39.3288 C9.20444667,39.3288 9.40071333,39.2409818 9.56631333,39.0661091 C9.73114667,38.8904727 9.81241333,38.6636727 9.81241333,38.3849455 C9.81241333,38.1925091 9.77408,38.0145818 9.69511333,37.8504 C9.61614667,37.6854545 9.50421333,37.5625091 9.36008,37.4808 C9.21594667,37.3990909 9.05188,37.3578545 8.86864667,37.3578545 C8.75671333,37.3578545 8.61334667,37.3792364 8.43854667,37.4204727 L8.43854667,39.2631273 Z M8.43854667,39.4494545 L8.43854667,40.7407636 C8.43854667,41.0187273 8.46921333,41.1920727 8.52978,41.2600364 C8.61334667,41.3554909 8.73984667,41.4036 8.90774667,41.4036 L9.07794667,41.4036 L9.07794667,41.5242545 L7.17201333,41.5242545 L7.17201333,41.4036 L7.33991333,41.4036 C7.52774667,41.4036 7.66191333,41.3425091 7.74241333,41.2203273 C7.78688,41.1531273 7.80911333,40.9935273 7.80911333,40.7407636 L7.80911333,37.8778909 C7.80911333,37.5991636 7.77921333,37.4258182 7.72018,37.3578545 C7.63508,37.2624 7.50781333,37.2142909 7.33991333,37.2142909 L7.17201333,37.2142909 L7.17201333,37.0936364 L8.80348,37.0936364 C9.20061333,37.0936364 9.51418,37.1341091 9.74418,37.2158182 C9.97418,37.2982909 10.16738,37.4349818 10.3253133,37.6297091 C10.48248,37.8236727 10.5614467,38.0527636 10.5614467,38.3192727 C10.5614467,38.6797091 10.4418467,38.9744727 10.20188,39.2012727 C9.96268,39.4280727 9.62381333,39.5410909 9.18681333,39.5410909 C9.08024667,39.5410909 8.96371333,39.5334545 8.83798,39.5181818 C8.71378,39.5029091 8.58114667,39.48 8.43854667,39.4494545 L8.43854667,39.4494545 Z" id="Fill-4"></path>
<path d="M23.4870633,41.4034473 L23.4870633,41.5241018 L21.58113,41.5241018 L21.58113,41.4034473 L21.73753,41.4034473 C21.92153,41.4034473 22.0556967,41.3499927 22.1392633,41.2438473 C22.19063,41.1735927 22.2166967,41.0063564 22.2166967,40.7406109 L22.2166967,37.8777382 C22.2166967,37.6539927 22.2036633,37.5058473 22.17453,37.4333018 C22.1522967,37.3790836 22.10783,37.3317382 22.0395967,37.2927927 C21.9437633,37.2408655 21.84333,37.2149018 21.73753,37.2149018 L21.58113,37.2149018 L21.58113,37.0934836 L23.4870633,37.0934836 L23.4870633,37.2149018 L23.3260633,37.2149018 C23.14513,37.2149018 23.0124967,37.2675927 22.92893,37.3745018 C22.8744967,37.4439927 22.8468967,37.6119927 22.8468967,37.8777382 L22.8468967,40.7406109 C22.8468967,40.96512 22.8614633,41.1125018 22.88983,41.1850473 C22.9112967,41.2392655 22.9580633,41.2858473 23.02783,41.3255564 C23.1213633,41.3782473 23.22103,41.4034473 23.3260633,41.4034473 L23.4870633,41.4034473 Z" id="Fill-6"></path>
<path d="M37.0096067,39.0707673 L37.9648733,40.48884 C38.2286067,40.8805855 38.42564,41.1287673 38.5536733,41.2318582 C38.6817067,41.3364764 38.84424,41.3929855 39.0412733,41.4036764 L39.0412733,41.5243309 L37.13074,41.5243309 L37.13074,41.4036764 C37.2580067,41.4021491 37.35154,41.3884036 37.4128733,41.3647309 C37.45964,41.34564 37.49644,41.3150945 37.52634,41.2753855 C37.5554733,41.2349127 37.5715733,41.1929127 37.5715733,41.1516764 C37.5715733,41.10204 37.56084,41.0524036 37.5409067,41.0020036 C37.5255733,40.9645855 37.4657733,40.8691309 37.36074,40.7141127 L36.60634,39.5762945 L35.6740733,40.7668036 C35.57594,40.8935673 35.5176733,40.9775673 35.4969733,41.0203309 C35.47704,41.0615673 35.46784,41.1066218 35.46784,41.1516764 C35.46784,41.2211673 35.4969733,41.2799673 35.5567733,41.3257855 C35.61504,41.37084 35.72774,41.3975673 35.8948733,41.4036764 L35.8948733,41.5243309 L34.3163067,41.5243309 L34.3163067,41.4036764 C34.4274733,41.3929855 34.5233067,41.37084 34.6045733,41.3349491 C34.74104,41.27844 34.86984,41.2020764 34.99174,41.1066218 C35.1144067,41.0104036 35.25394,40.8637855 35.4118733,40.66524 L36.46144,39.3449127 L35.5866733,38.0673491 C35.3474733,37.7206582 35.1450733,37.4946218 34.9794733,37.3861855 C34.81234,37.2777491 34.6206733,37.22124 34.40524,37.2143673 L34.40524,37.0937127 L36.46144,37.0937127 L36.46144,37.2143673 C36.28664,37.22124 36.1662733,37.2494945 36.10264,37.2991309 C36.03824,37.3495309 36.0068067,37.4052764 36.0068067,37.4656036 C36.0068067,37.5465491 36.0581733,37.6641491 36.1632067,37.8191673 L36.8447733,38.8348036 L37.6359733,37.8390218 C37.7279733,37.7206582 37.7847067,37.6404764 37.80464,37.5969491 C37.8261067,37.5534218 37.83684,37.5083673 37.83684,37.4633127 C37.83684,37.4167309 37.8238067,37.3762582 37.7969733,37.3418945 C37.7640067,37.2960764 37.7226067,37.2640036 37.6727733,37.2456764 C37.6221733,37.2265855 37.5186733,37.2166582 37.36074,37.2143673 L37.36074,37.0937127 L38.9393067,37.0937127 L38.9393067,37.2143673 C38.81434,37.22124 38.7123733,37.2410945 38.6334067,37.2731673 C38.51534,37.3235673 38.40724,37.3907673 38.30834,37.4762945 C38.2109733,37.5610582 38.0722067,37.7183673 37.89204,37.9459309 L37.0096067,39.0707673 Z" id="Fill-8"></path>
<path d="M51.1390433,37.3354036 L51.1390433,39.0871855 L52.1165433,39.0871855 C52.3710767,39.0871855 52.5397433,39.04824 52.62561,38.97264 C52.7390767,38.8726036 52.80271,38.6962036 52.8157433,38.4426764 L52.9368767,38.4426764 L52.9368767,39.9852218 L52.8157433,39.9852218 C52.78431,39.7698764 52.75441,39.6316582 52.7237433,39.5705673 C52.68541,39.4942036 52.6194767,39.43464 52.53131,39.3903491 C52.4408433,39.3475855 52.3028433,39.32544 52.1165433,39.32544 L51.1390433,39.32544 L51.1390433,40.7862764 C51.1390433,40.9817673 51.1482433,41.1024218 51.16511,41.1436582 C51.1827433,41.1871855 51.21341,41.2207855 51.2563433,41.2452218 C51.3015767,41.2704218 51.38361,41.28264 51.5070433,41.28264 L52.2614433,41.28264 C52.5121433,41.28264 52.6953767,41.2650764 52.80961,41.2307127 C52.92231,41.1963491 53.03271,41.1276218 53.1377433,41.0245309 C53.2726767,40.8886036 53.4114433,40.68624 53.5540433,40.4128582 L53.6851433,40.4128582 L53.3002767,41.5239491 L49.87251,41.5239491 L49.87251,41.4032945 L50.0304433,41.4032945 C50.1354767,41.4032945 50.2343767,41.3788582 50.3286767,41.3284582 C50.3984433,41.2940945 50.4467433,41.24064 50.4712767,41.1719127 C50.4965767,41.1024218 50.50961,40.9588582 50.50961,40.7435127 L50.50961,37.86384 C50.50961,37.5835855 50.4812433,37.41024 50.4237433,37.3453309 C50.3455433,37.2575127 50.2136767,37.2147491 50.0304433,37.2147491 L49.87251,37.2147491 L49.87251,37.0933309 L53.3002767,37.0933309 L53.3508767,38.0639127 L53.2228433,38.0639127 C53.1760767,37.8310036 53.1254767,37.6698764 53.06951,37.5835855 C53.0135433,37.4965309 52.93151,37.4300945 52.82111,37.3842764 C52.7344767,37.35144 52.5803767,37.3354036 52.3603433,37.3354036 L51.1390433,37.3354036 Z" id="Fill-11"></path>
<path d="M68.3067033,40.2997636 L68.4148033,40.3219091 L68.0345367,41.5246364 L64.5891367,41.5246364 L64.5891367,41.4032182 L64.75627,41.4032182 C64.9441033,41.4032182 65.0798033,41.3421273 65.1603033,41.2207091 C65.2063033,41.1512182 65.2293033,40.9893273 65.2293033,40.7365636 L65.2293033,37.8775091 C65.2293033,37.6010727 65.1986367,37.4284909 65.1373033,37.3582364 C65.0522033,37.2620182 64.9257033,37.2146727 64.75627,37.2146727 L64.5891367,37.2146727 L64.5891367,37.0932545 L66.60317,37.0932545 L66.60317,37.2146727 C66.3678033,37.2116182 66.2022033,37.2337636 66.10637,37.2795818 C66.0113033,37.3254 65.9469033,37.3834364 65.9116367,37.4529273 C65.87637,37.5224182 65.8595033,37.6896545 65.8595033,37.9538727 L65.8595033,40.7365636 C65.8595033,40.9175455 65.87637,41.0427818 65.9116367,41.1099818 C65.9377033,41.1558 65.9791033,41.1886364 66.03277,41.2107818 C66.0872033,41.2329273 66.25817,41.2436182 66.5449033,41.2436182 L66.8692033,41.2436182 C67.21037,41.2436182 67.4503367,41.2184182 67.5883367,41.1687818 C67.72557,41.1183818 67.85207,41.0298 67.9655367,40.9022727 C68.0790033,40.7755091 68.1932367,40.5731455 68.3067033,40.2997636" id="Fill-13"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="69px" height="42px" viewBox="0 0 69 42" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 41 (35326) - http://www.bohemiancoding.com/sketch -->
<title>logo_white</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="weltpixel_homepage-2" transform="translate(-80.000000, -14.000000)" fill="#000000">
<g id="1_header">
<g id="menu">
<g id="logo_white" transform="translate(80.000000, 14.000000)">
<path d="M68.3067033,29.10096 C67.5730033,29.2078691 66.9842033,29.2613236 66.5334033,29.2613236 C65.9369367,29.2613236 65.47847,29.1628145 65.1580033,28.9719055 C64.83677,28.7741236 64.6083033,28.5144873 64.4626367,28.1876509 C64.3254033,27.8608145 64.2564033,27.1300145 64.2564033,25.9807418 L64.2564033,12.1337236 L68.3067033,12.1337236 L68.3067033,9.01274182 L64.2564033,9.01274182 L64.2564033,0.737978182 L60.2429033,3.14419636 L60.2429033,9.01274182 L57.2866367,9.01274182 L57.2866367,12.1337236 L60.2429033,12.1337236 L60.2429033,25.7592873 C60.2429033,28.1647418 60.4123367,29.74776 60.74047,30.4945964 C61.06937,31.2483055 61.63517,31.8569236 62.4371033,32.3135782 C63.2467033,32.7786327 64.3783033,33.0061964 65.8449367,33.0061964 C66.7396367,33.0061964 67.7562367,32.8847782 68.88707,32.6480509 L68.3067033,29.10096 Z M53.2923033,32.6946327 L57.3196033,32.6946327 L57.3196033,0.000305454545 L53.2923033,0.000305454545 L53.2923033,32.6946327 Z M34.9835367,18.5734691 C35.1215367,16.5108873 35.81767,14.8591418 37.0788367,13.6251055 C38.3392367,12.3925964 39.89787,11.7763418 41.74707,11.7763418 C43.7879367,11.7763418 45.4531367,12.5521964 46.73807,14.09856 C47.57067,15.0867055 48.0828033,16.5872509 48.2591367,18.5734691 L34.9835367,18.5734691 Z M48.2131367,25.0666691 C47.6013367,26.7642327 46.7764033,27.9975055 45.7299033,28.7664873 C44.6826367,29.5431055 43.4207033,29.9310327 41.9464033,29.9310327 C39.9584367,29.9310327 38.30857,29.2384145 36.97917,27.8531782 C35.6482367,26.4755782 34.9076367,24.48096 34.7627367,21.8777236 L52.49267,21.8777236 C52.5080033,21.4050327 52.5149033,21.0476509 52.5149033,20.8040509 C52.5149033,16.8988145 51.5067367,13.8618327 49.4896367,11.7076145 C47.4794367,9.55339636 44.87967,8.47285091 41.7018367,8.47285091 C38.4159033,8.47285091 35.74867,9.57630545 33.6848033,11.7763418 C31.6286033,13.9756145 30.5974367,17.0660509 30.5974367,21.0552873 C30.5974367,24.9070691 31.61327,27.8989964 33.65337,30.0295418 C35.68657,32.1616145 38.44657,33.2268873 41.9234033,33.2268873 C44.6826367,33.2268873 46.9512033,32.5571782 48.73217,31.2253964 C50.50547,29.8852145 51.71987,28.0043782 52.3784367,25.5767782 L48.2131367,25.0666691 Z M7.27543667,32.6946327 L-0.00023,9.01274182 L4.16583667,9.01274182 L7.94780333,22.6848873 L9.35463667,27.7691782 C9.41597,27.5103055 9.82843667,25.8814691 10.58437,22.8819055 L14.36787,9.01274182 L18.51017,9.01274182 L22.07057,22.7452145 L23.2627367,27.2743418 L24.62357,22.6993964 L28.69687,9.01274182 L32.6176033,9.01274182 L25.1817033,32.6946327 L21.00107,32.6946327 L17.2183367,18.5123782 L16.29297,14.4704509 L11.4867367,32.6946327 L7.27543667,32.6946327 Z" id="Fill-1"></path>
<path d="M8.43854667,39.2631273 C8.55431333,39.2852727 8.65704667,39.3013091 8.74674667,39.312 C8.83721333,39.3234545 8.91311333,39.3288 8.97674667,39.3288 C9.20444667,39.3288 9.40071333,39.2409818 9.56631333,39.0661091 C9.73114667,38.8904727 9.81241333,38.6636727 9.81241333,38.3849455 C9.81241333,38.1925091 9.77408,38.0145818 9.69511333,37.8504 C9.61614667,37.6854545 9.50421333,37.5625091 9.36008,37.4808 C9.21594667,37.3990909 9.05188,37.3578545 8.86864667,37.3578545 C8.75671333,37.3578545 8.61334667,37.3792364 8.43854667,37.4204727 L8.43854667,39.2631273 Z M8.43854667,39.4494545 L8.43854667,40.7407636 C8.43854667,41.0187273 8.46921333,41.1920727 8.52978,41.2600364 C8.61334667,41.3554909 8.73984667,41.4036 8.90774667,41.4036 L9.07794667,41.4036 L9.07794667,41.5242545 L7.17201333,41.5242545 L7.17201333,41.4036 L7.33991333,41.4036 C7.52774667,41.4036 7.66191333,41.3425091 7.74241333,41.2203273 C7.78688,41.1531273 7.80911333,40.9935273 7.80911333,40.7407636 L7.80911333,37.8778909 C7.80911333,37.5991636 7.77921333,37.4258182 7.72018,37.3578545 C7.63508,37.2624 7.50781333,37.2142909 7.33991333,37.2142909 L7.17201333,37.2142909 L7.17201333,37.0936364 L8.80348,37.0936364 C9.20061333,37.0936364 9.51418,37.1341091 9.74418,37.2158182 C9.97418,37.2982909 10.16738,37.4349818 10.3253133,37.6297091 C10.48248,37.8236727 10.5614467,38.0527636 10.5614467,38.3192727 C10.5614467,38.6797091 10.4418467,38.9744727 10.20188,39.2012727 C9.96268,39.4280727 9.62381333,39.5410909 9.18681333,39.5410909 C9.08024667,39.5410909 8.96371333,39.5334545 8.83798,39.5181818 C8.71378,39.5029091 8.58114667,39.48 8.43854667,39.4494545 L8.43854667,39.4494545 Z" id="Fill-4"></path>
<path d="M23.4870633,41.4034473 L23.4870633,41.5241018 L21.58113,41.5241018 L21.58113,41.4034473 L21.73753,41.4034473 C21.92153,41.4034473 22.0556967,41.3499927 22.1392633,41.2438473 C22.19063,41.1735927 22.2166967,41.0063564 22.2166967,40.7406109 L22.2166967,37.8777382 C22.2166967,37.6539927 22.2036633,37.5058473 22.17453,37.4333018 C22.1522967,37.3790836 22.10783,37.3317382 22.0395967,37.2927927 C21.9437633,37.2408655 21.84333,37.2149018 21.73753,37.2149018 L21.58113,37.2149018 L21.58113,37.0934836 L23.4870633,37.0934836 L23.4870633,37.2149018 L23.3260633,37.2149018 C23.14513,37.2149018 23.0124967,37.2675927 22.92893,37.3745018 C22.8744967,37.4439927 22.8468967,37.6119927 22.8468967,37.8777382 L22.8468967,40.7406109 C22.8468967,40.96512 22.8614633,41.1125018 22.88983,41.1850473 C22.9112967,41.2392655 22.9580633,41.2858473 23.02783,41.3255564 C23.1213633,41.3782473 23.22103,41.4034473 23.3260633,41.4034473 L23.4870633,41.4034473 Z" id="Fill-6"></path>
<path d="M37.0096067,39.0707673 L37.9648733,40.48884 C38.2286067,40.8805855 38.42564,41.1287673 38.5536733,41.2318582 C38.6817067,41.3364764 38.84424,41.3929855 39.0412733,41.4036764 L39.0412733,41.5243309 L37.13074,41.5243309 L37.13074,41.4036764 C37.2580067,41.4021491 37.35154,41.3884036 37.4128733,41.3647309 C37.45964,41.34564 37.49644,41.3150945 37.52634,41.2753855 C37.5554733,41.2349127 37.5715733,41.1929127 37.5715733,41.1516764 C37.5715733,41.10204 37.56084,41.0524036 37.5409067,41.0020036 C37.5255733,40.9645855 37.4657733,40.8691309 37.36074,40.7141127 L36.60634,39.5762945 L35.6740733,40.7668036 C35.57594,40.8935673 35.5176733,40.9775673 35.4969733,41.0203309 C35.47704,41.0615673 35.46784,41.1066218 35.46784,41.1516764 C35.46784,41.2211673 35.4969733,41.2799673 35.5567733,41.3257855 C35.61504,41.37084 35.72774,41.3975673 35.8948733,41.4036764 L35.8948733,41.5243309 L34.3163067,41.5243309 L34.3163067,41.4036764 C34.4274733,41.3929855 34.5233067,41.37084 34.6045733,41.3349491 C34.74104,41.27844 34.86984,41.2020764 34.99174,41.1066218 C35.1144067,41.0104036 35.25394,40.8637855 35.4118733,40.66524 L36.46144,39.3449127 L35.5866733,38.0673491 C35.3474733,37.7206582 35.1450733,37.4946218 34.9794733,37.3861855 C34.81234,37.2777491 34.6206733,37.22124 34.40524,37.2143673 L34.40524,37.0937127 L36.46144,37.0937127 L36.46144,37.2143673 C36.28664,37.22124 36.1662733,37.2494945 36.10264,37.2991309 C36.03824,37.3495309 36.0068067,37.4052764 36.0068067,37.4656036 C36.0068067,37.5465491 36.0581733,37.6641491 36.1632067,37.8191673 L36.8447733,38.8348036 L37.6359733,37.8390218 C37.7279733,37.7206582 37.7847067,37.6404764 37.80464,37.5969491 C37.8261067,37.5534218 37.83684,37.5083673 37.83684,37.4633127 C37.83684,37.4167309 37.8238067,37.3762582 37.7969733,37.3418945 C37.7640067,37.2960764 37.7226067,37.2640036 37.6727733,37.2456764 C37.6221733,37.2265855 37.5186733,37.2166582 37.36074,37.2143673 L37.36074,37.0937127 L38.9393067,37.0937127 L38.9393067,37.2143673 C38.81434,37.22124 38.7123733,37.2410945 38.6334067,37.2731673 C38.51534,37.3235673 38.40724,37.3907673 38.30834,37.4762945 C38.2109733,37.5610582 38.0722067,37.7183673 37.89204,37.9459309 L37.0096067,39.0707673 Z" id="Fill-8"></path>
<path d="M51.1390433,37.3354036 L51.1390433,39.0871855 L52.1165433,39.0871855 C52.3710767,39.0871855 52.5397433,39.04824 52.62561,38.97264 C52.7390767,38.8726036 52.80271,38.6962036 52.8157433,38.4426764 L52.9368767,38.4426764 L52.9368767,39.9852218 L52.8157433,39.9852218 C52.78431,39.7698764 52.75441,39.6316582 52.7237433,39.5705673 C52.68541,39.4942036 52.6194767,39.43464 52.53131,39.3903491 C52.4408433,39.3475855 52.3028433,39.32544 52.1165433,39.32544 L51.1390433,39.32544 L51.1390433,40.7862764 C51.1390433,40.9817673 51.1482433,41.1024218 51.16511,41.1436582 C51.1827433,41.1871855 51.21341,41.2207855 51.2563433,41.2452218 C51.3015767,41.2704218 51.38361,41.28264 51.5070433,41.28264 L52.2614433,41.28264 C52.5121433,41.28264 52.6953767,41.2650764 52.80961,41.2307127 C52.92231,41.1963491 53.03271,41.1276218 53.1377433,41.0245309 C53.2726767,40.8886036 53.4114433,40.68624 53.5540433,40.4128582 L53.6851433,40.4128582 L53.3002767,41.5239491 L49.87251,41.5239491 L49.87251,41.4032945 L50.0304433,41.4032945 C50.1354767,41.4032945 50.2343767,41.3788582 50.3286767,41.3284582 C50.3984433,41.2940945 50.4467433,41.24064 50.4712767,41.1719127 C50.4965767,41.1024218 50.50961,40.9588582 50.50961,40.7435127 L50.50961,37.86384 C50.50961,37.5835855 50.4812433,37.41024 50.4237433,37.3453309 C50.3455433,37.2575127 50.2136767,37.2147491 50.0304433,37.2147491 L49.87251,37.2147491 L49.87251,37.0933309 L53.3002767,37.0933309 L53.3508767,38.0639127 L53.2228433,38.0639127 C53.1760767,37.8310036 53.1254767,37.6698764 53.06951,37.5835855 C53.0135433,37.4965309 52.93151,37.4300945 52.82111,37.3842764 C52.7344767,37.35144 52.5803767,37.3354036 52.3603433,37.3354036 L51.1390433,37.3354036 Z" id="Fill-11"></path>
<path d="M68.3067033,40.2997636 L68.4148033,40.3219091 L68.0345367,41.5246364 L64.5891367,41.5246364 L64.5891367,41.4032182 L64.75627,41.4032182 C64.9441033,41.4032182 65.0798033,41.3421273 65.1603033,41.2207091 C65.2063033,41.1512182 65.2293033,40.9893273 65.2293033,40.7365636 L65.2293033,37.8775091 C65.2293033,37.6010727 65.1986367,37.4284909 65.1373033,37.3582364 C65.0522033,37.2620182 64.9257033,37.2146727 64.75627,37.2146727 L64.5891367,37.2146727 L64.5891367,37.0932545 L66.60317,37.0932545 L66.60317,37.2146727 C66.3678033,37.2116182 66.2022033,37.2337636 66.10637,37.2795818 C66.0113033,37.3254 65.9469033,37.3834364 65.9116367,37.4529273 C65.87637,37.5224182 65.8595033,37.6896545 65.8595033,37.9538727 L65.8595033,40.7365636 C65.8595033,40.9175455 65.87637,41.0427818 65.9116367,41.1099818 C65.9377033,41.1558 65.9791033,41.1886364 66.03277,41.2107818 C66.0872033,41.2329273 66.25817,41.2436182 66.5449033,41.2436182 L66.8692033,41.2436182 C67.21037,41.2436182 67.4503367,41.2184182 67.5883367,41.1687818 C67.72557,41.1183818 67.85207,41.0298 67.9655367,40.9022727 C68.0790033,40.7755091 68.1932367,40.5731455 68.3067033,40.2997636" id="Fill-13"></path>
</g>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

File diff suppressed because it is too large Load Diff