- 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.
27 lines
1.4 KiB
PHP
27 lines
1.4 KiB
PHP
<?
|
|
if ( is_array( $this -> pages ) )
|
|
{
|
|
|
|
echo '<ul class="level-' . $this -> level . '" id="submenu-' . $this -> page_id . '">';
|
|
foreach ( $this -> pages as $page )
|
|
{
|
|
$page['language']['seo_link'] ? $url = '/' . $page['language']['seo_link'] : $url = '/s-' . $page['id'] . '-' . \Shared\Helpers\Helpers::seo( $page['language']['title'] );
|
|
|
|
if ( $page['page_type'] == 3 and $page['link'] )
|
|
$url = $page['link'];
|
|
|
|
echo '<li id="link-' . $page['id'] . '" class="'; if ( $page['id'] == $this -> current_page ) echo ' active'; echo '">';
|
|
echo '<a href="';
|
|
if ( \Shared\Helpers\Helpers::get_session( 'current-lang' ) != ( new \Domain\Languages\LanguagesRepository( $GLOBALS['mdb'] ) )->defaultLanguage() and $url != '#' )
|
|
echo '/' . \Shared\Helpers\Helpers::get_session( 'current-lang' );
|
|
echo $url . '"'; if ( $page['language']['noindex'] ) echo 'rel="nofollow"'; echo ' title="' . $page['language']['title'] . '"'; if ( is_array( $page['pages'] ) ) echo "class='menu-trigger'"; echo '>';
|
|
echo $page['language']['title'];
|
|
if ( is_array( $page['pages'] ) and $this -> level == 0 )
|
|
echo '<i class="fa fa-chevron-down"></i>';
|
|
echo '</a>';
|
|
echo \front\Views\Menu::pages( $page['pages'], $this -> level + 1, $this -> current_page );
|
|
echo '</li>';
|
|
}
|
|
echo '</ul>';
|
|
}
|