Создайте модуль HTML для панели управления в позиции status и вставите туда код
Create an HTML module for the control panel in the 'status' position and insert the code there.
<div class="footer uk-padding-small"> | |
<div class="uk-grid-small" uk-grid | |
radicalmart-cart="product" data-id="<?php echo $product->id; ?>" | |
data-key="p<?php echo $product->id; ?>" data-cart-product="1" | |
radicalmart-cart_buttons="container"> | |
<div class="uk-flex uk-flex-middle uk-width-1-3@m"> | |
<?php if (!$hidePrice): ?> | |
<?php if ($product->price['discount_enable']): ?> | |
<div class="uk-text-small uk-text-muted"> | |
<s><?php echo $product->price['base_string']; ?></s> |
<?php | |
use Joomla\CMS\Uri\Uri; | |
class JoomlaCLILinksFix | |
{ | |
/** | |
* Is URI already ReInstance. | |
* | |
* @var bool |
<input type="text" numbers-only > | |
<script> | |
document.addEventListener('DOMContentLoaded', function () { | |
document.querySelectorAll('input[numbers-only]').forEach(function (input) { | |
input.addEventListener('input', function () { | |
input.value = input.value.replace(/[^.\d]+/g, '').replace(/^([^.]*\.)|\./g, '$1'); | |
}); | |
}); | |
}); | |
</script> |
<div class="block-1" ratio-height="4:3"> | |
Block 4:3 width 250<br/> | |
<em>ratio-height="4:3"</em> | |
</div> | |
<div class="block-2" ratio-height="16:9"> | |
Block 16:9 width 500<br/> | |
<em>ratio-height="16:9"</em> | |
</div> | |
<div class="block-3" ratio-height="1:1"> | |
Block 1:1 width 750<br/> |
<?php | |
header('Content-type: image/svg+xml'); | |
$fill = (!empty($_GET['fill'])) ? '#' . str_replace('#', '', $_GET['fill']) : '#000000'; | |
$size = (isset($_GET['size']) && (int) $_GET['size']) ? (int) $_GET['size'] : 120; | |
?> | |
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="-100 -100 200 200" | |
width="<?php echo $size; ?>" height="<?php echo $size; ?>"> | |
<defs> | |
<g id="marker" transform="rotate(45)"> | |
<path d="M0 47A47 47 0 0 0 47 0L62 0A62 62 0 0 1 0 62Z" fill-opacity="0.7"/> |
<?php | |
defined('_JEXEC') or die; | |
use Joomla\CMS\Factory; | |
use Joomla\CMS\Installer\Installer; | |
use Joomla\CMS\Installer\InstallerAdapter; | |
use Joomla\CMS\Installer\InstallerHelper; | |
use Joomla\CMS\Language\Text; | |
use Joomla\CMS\Plugin\PluginHelper; |
.hook-form-misc() { | |
@internal-form-search-image: "../../images/icons/search.svg"; | |
.chzn-container { | |
font: inherit; | |
} | |
.chzn-container-single .chzn-single { | |
display: inline-block; | |
vertical-align: middle; | |
width: 100%; |
<?php | |
// Set uikit form | |
foreach ($this->form->getFieldsets() as $key => $fieldset) | |
{ | |
foreach ($this->form->getFieldset($key) as $field) | |
{ | |
$name = $field->fieldname; | |
$group = $field->group; | |
$type = strtolower($field->type); | |
$class = $this->form->getFieldAttribute($name, 'class', '', $group); |