helix3 = $helix; $this->position = 'helixpreloader'; } public function renderFeature() { $app = JFactory::getApplication(); //Load Helix $helix3_path = JPATH_PLUGINS . '/system/helix3/core/helix3.php'; if (file_exists($helix3_path)) { require_once($helix3_path); $getHelix3 = helix3::getInstance(); } else { die('Please install and activate helix plugin'); } $output = ''; if ($getHelix3->getParam('preloader')) { //Pre-loader --> $output .= '
'; if ($getHelix3->getParam('preloader_animation') == 'double-loop') { // Bubble Loop loader $output .= '
'; } elseif ($getHelix3->getParam('preloader_animation') == 'wave-two') { // Audio Wave 2 loader $output .= '
'; $output .= ''; // $output .= '
'; // } elseif ($getHelix3->getParam('preloader_animation') == 'audio-wave') { // Audio Wave loader $output .= '
'; } elseif ($getHelix3->getParam('preloader_animation') == 'circle-two') { // Circle two Loader $output .= '
'; $output .= ''; $output .= '
'; // /.Circle two loader } elseif ($getHelix3->getParam('preloader_animation') == 'clock') { //Clock loader $output .= '
'; } elseif ($getHelix3->getParam('preloader_animation') == 'logo') { if ($getHelix3->getParam('logo_image')) { $logo = JUri::root() . '/' . $getHelix3->getParam('logo_image'); } else { $logo = JUri::root() . '/templates/' . $app->getTemplate() . '/images/presets/' . $getHelix3->Preset() . '/logo.png'; } // Line loader with logo $output .= ''; // /.Line loader with logo } else { // Circle loader $output .= '
'; // /.Circular loader } $output .= '
'; // /.Pre-loader } // if enable preloader echo $output; } //renderFeature }