Current Path :
/
home
/
develito
/
public_html
/
modules
/
mod_otminitabs
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/develito/public_html/modules/mod_otminitabs/mod_otminitabs.php
<?php /** * @package OT MiniTabs * * @copyright Copyright (C) 2009 - 2015 Omegatheme.com. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE http://www.gnu.org/licenses/gpl-2.0.html * @website: http://www.omegatheme.com * Support Forum - http://www.omegatheme.com/forum/ * * @version $Id: mod_minitabs.php 2 2015-02-03 16:09:49Z linhnt $ */ defined('_JEXEC') or die ('Restricteted access'); if(!defined('DS')) define('DS', DIRECTORY_SEPARATOR); require_once (dirname(__FILE__). DS .'helper.php'); $list_of_tabs = modOtMiniTabsHelper::getTabsSelection($params); // Get Params $layout = $params->get('ot_layout'); $bootstrap_css=$params->get('bootstrap_css'); $bootstrap_js=$params->get('bootstrap_js'); $animation = $params->get('animation'); $translate = $params->get('translate'); if($animation == 1) { echo '<style type="text/css"> .tab_panel_wrapper.tab-content { overflow:hidden; position: relative; } .tab_panel_wrapper .ot-accordion.tab-pane { transform: translateX('.$translate.'px); transition: all 0.3s linear 0s; opacity: 0; display:block; position: absolute; z-index: 1; } .tab_panel_wrapper .ot-accordion.tab-pane.active { transition: all 0.2s ease-out 0.1s; transform: translateX(0px); opacity: 1; z-index: 100; width: 97%; } </style>'; } elseif($animation == 2) { echo '<style type="text/css"> .tab_panel_wrapper.tab-content { overflow:hidden; position: relative; } .tab_panel_wrapper .ot-accordion.tab-pane { transform: translateX(-'.$translate.'px); transition: all 0.3s linear 0s; opacity: 0; display:block; position: absolute; z-index: 1; } .tab_panel_wrapper .ot-accordion.tab-pane.active { transition: all 0.2s ease-out 0.1s; transform: translateX(0px); opacity: 1; z-index: 100; width: 97%; } </style>'; } elseif($animation == 3) { echo '<style type="text/css"> .tab_panel_wrapper.tab-content { overflow:hidden; position: relative; } .tab_panel_wrapper .ot-accordion.tab-pane { transform: translateY('.$translate.'px); transition: all 0.3s linear 0s; opacity: 0; display:block; position: absolute; z-index: 1; } .tab_panel_wrapper .ot-accordion.tab-pane.active { transition: all 0.2s ease-out 0.1s; transform: translateX(0px); opacity: 1; z-index: 100; width: 97%; } </style>'; } elseif($animation == 4) { echo '<style type="text/css"> .tab_panel_wrapper.tab-content { overflow:hidden; position: relative; } .tab_panel_wrapper .ot-accordion.tab-pane { transform: translateY(-'.$translate.'px); transition: all 0.3s linear 0s; opacity: 0; display:block; position: absolute; z-index: 1; } .tab_panel_wrapper .ot-accordion.tab-pane.active { transition: all 0.2s ease-out 0.1s; transform: translateX(0px); opacity: 1; z-index: 100; width: 97%; } </style>'; } // Add style and script to header $doc = JFactory::getDocument(); if($bootstrap_css == 1) { $doc->addStyleSheet(JURI::root().'modules/mod_otminitabs/assets/css/bootstrap.min.css'); } if($bootstrap_js == 1) { $doc->addScript(JURI::root().'modules/mod_otminitabs/assets/js/bootstrap.min.js'); } $doc->addStyleSheet(JURI::root().'modules/mod_otminitabs/assets/css/mod_minitabs_content.css'); require JModuleHelper::getLayoutPath( 'mod_otminitabs',$layout); ?>