helix3 = $helix3; $this->position = $this->helix3->getParam('logo_position', 'logo'); $this->load_pos = $this->helix3->getParam('logo_load_pos'); } public function renderFeature() { //Retina Image if( $this->helix3->getParam('logo_type') == 'image' ) { jimport('joomla.image.image'); if( $this->helix3->getParam('logo_image') ) { $path = JPATH_ROOT . '/' . $this->helix3->getParam('logo_image'); } else { $path = JPATH_ROOT . '/templates/' . $this->helix3->getTemplate() . '/images/presets/' . $this->helix3->Preset() . '/logo.png'; } if(file_exists($path)) { $image = new JImage( $path ); $width = $image->getWidth(); $height = $image->getHeight(); } else { $width = ''; $height = ''; } } $html = ''; $custom_logo_class = ''; $sitename = JFactory::getApplication()->get('sitename'); if( $this->helix3->getParam('mobile_logo') ) { $custom_logo_class = ' d-none d-lg-block'; } if( $this->helix3->getParam('logo_type') == 'image' ) { if( $this->helix3->getParam('logo_image') ) { $html .= ''; } else { $html .= ''; } } else { if( $this->helix3->getParam('logo_text') ) { $html .= '

' . $this->helix3->getParam('logo_text') . '

'; } else { $html .= '

' . $sitename . '

'; } if( $this->helix3->getParam('logo_slogan') ) { $html .= '

' . $this->helix3->getParam('logo_slogan') . '

'; } } return $html; } }