This commit is contained in:
2026-09-15 10:35:56 +08:00
commit 782f8ea7aa
4086 changed files with 631288 additions and 0 deletions
@@ -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>