Esempio n. 1
0
	<?php 
    }
    ?>
    <div class="content-width">
    
        <div id="logo" class="top-bar-logo<?php 
    if (is_private_gate()) {
        ?>
 text-align-left<?php 
    }
    ?>
"><a href="<?php 
    echo CHV\Login::isLoggedUser() ? CHV\Settings::get('logged_user_logo_link') == 'user_profile' ? CHV\Login::getUser()['url'] : G\get_base_url() : G\get_base_url();
    ?>
"><img class="replace-svg" src="<?php 
    echo CHV\get_system_image_url(CHV\getSetting(CHV\getSetting('logo_vector_enable') ? 'logo_vector' : 'logo_image'));
    ?>
" alt="<?php 
    echo CHV\getSetting('website_name');
    ?>
"></a></div>
        
		<?php 
    if (CHV\getSetting('website_mode') == 'public' or CHV\getSetting('website_mode') == 'private' and CHV\Login::getUser()) {
        ?>
        <ul class="top-bar-left float-left">
			
			<li data-action="top-bar-menu-full" data-nav="mobile-menu" class="top-btn-el phone-show hidden">
				<span class="top-btn-text"><span class="icon icon-menu3"></span></span>
			</li>
			
Esempio n. 2
0
 public function setCategory(array $category)
 {
     $this->category = $category;
     if (!isset($this->user)) {
         $this->overrideElements(array('title' => $this->category['name'], 'description' => $this->category['description'] ?: 'No description', 'url' => $this->category['url']));
         $this->setLogo(array('url' => CHV\get_system_image_url(CHV\getSetting('logo_image')), 'title' => $this->category['name'], 'link' => $this->category['url']));
     }
 }