- Created `Articles` class for rendering article views including full articles, miniature lists, and news sections. - Added `Banners` class for handling banner displays. - Introduced `Languages` class for rendering language options. - Implemented `Menu` class for rendering page and menu structures. - Developed `Newsletter` class for newsletter rendering. - Created `Scontainers` class for rendering specific containers. - Added `ShopCategory` class for managing shop category views and pagination. - Implemented `ShopClient` class for client-related views including address management and login forms. - Created `ShopPaymentMethod` class for displaying payment methods in the basket. - Added `ShopProduct` class for generating product URLs. - Introduced `ShopSearch` class for rendering a simple search form. - Added `.htaccess` file in the plugins directory to enhance security by restricting access to sensitive files and directories.
31 lines
1.8 KiB
PHP
31 lines
1.8 KiB
PHP
<?php
|
|
global $lang_id;
|
|
$attributeRepo = new \Domain\Attribute\AttributeRepository( $GLOBALS['mdb'] );
|
|
$attribute_details = $attributeRepo->frontAttributeDetails( (int)$this -> attribute['id'], $lang_id );
|
|
if ( $attribute_details['type'] == 0 )
|
|
{
|
|
?>
|
|
<div class="attribute-container fradio-group attribute-<?= \Shared\Helpers\Helpers::seo( $attribute_details['language']['name'] );?>" level="<?= $this -> level;?>" order="<?= $this -> order;?>" attribute="<?= \Shared\Helpers\Helpers::seo( $attribute_details['language']['name'] );?>" attribute-name="<?= $attribute_details['language']['name'];?>">
|
|
<p class="attribute-label"><?= $attribute_details['language']['name'];?>:</p>
|
|
<? foreach ( $this -> attribute['values'] as $value ):?>
|
|
<div class="fradio">
|
|
<input type="radio" id="<?= $this -> attribute['id'];?>-<?= $value['id'];?>" <? if ( $value['is_default'] ):?>checked="checked"<? endif;?> require="true" value="<?= $this -> attribute['id'];?>-<?= $value['id'];?>" name="<?= \Shared\Helpers\Helpers::seo( $attribute_details['language']['name'] );?>">
|
|
<label for="<?= $this -> attribute['id'];?>-<?= $value['id'];?>" order="<?= $this -> order;?>"><?= ( new \Domain\Attribute\AttributeRepository( $GLOBALS['mdb'] ) )->getAttributeValueById( $value['id'], $lang_id );?></label>
|
|
</div>
|
|
<? if ( $value['is_default'] ):?>
|
|
<script class="footer" type="text/javascript">
|
|
$( function()
|
|
{
|
|
<? if ( $this -> level == $this -> max_level ):?>
|
|
var refresh = true;
|
|
<? else:?>
|
|
var refresh = false;
|
|
<? endif;?>
|
|
fradio_label_click( $( "label[for='<?= $this -> attribute['id'];?>-<?= $value['id'];?>']" ), refresh );
|
|
});
|
|
</script>
|
|
<? endif;?>
|
|
<? endforeach;?>
|
|
</div>
|
|
<?
|
|
}
|