'', 'class' =>'', 'title_color' =>'', 'style' =>'', ), $args ); extract( $defaults ); self::$args = $defaults; $uniqid = uniqid('tabs-'); $this->id = $id.$uniqid; $this->num = 1; $this->item_tital=''; $this->colorid = uniqid('tab'); $items_content = do_shortcode(Magee_Core::fix_shortcodes($content)); $txtsty1=''; $tab_content_class = ''; switch($style) { case 'simple': $class .=' tab-line '; $txtsty1 = ' list-inline '; break; case 'simple justified': $class .=' tab-line '; $txtsty1 = ' list-inline nav-justified '; break; case 'button': $class .=' tab-pills '; $txtsty1 = ' nav nav-pills '; break; case 'button justified': $class .=' tab-pills '; $txtsty1 = ' nav nav-pills nav-justified'; break; case 'normal': $class .=' tab-normal '; $txtsty1 = ' nav nav-tabs '; break; case 'normal justified': $class .=' tab-normal '; $txtsty1 = ' nav nav-tabs nav-justified'; break; case 'vertical': $class .=' tab-normal tab-vertical tab-vertical-left clearfix '; $txtsty1 = ' nav nav-tabs nav-stacked pull-left '; $tab_content_class = 'pull-left'; break; case 'vertical right': $class .=' tab-normal tab-vertical tab-vertical-right clearfix '; $txtsty1 = ' nav nav-tabs nav-stacked pull-right '; break; } $textstyle = ' .'.$this->colorid.', .'.$this->colorid.' i{color:'.$title_color.'}'; $styles = sprintf( '', $textstyle); $html= $styles.'
'.$items_content.'
'; return $html; } /** * Render the child shortcode * @param array $args Shortcode paramters * @param string $content Content between shortcode * @return string HTML output */ function render_child( $args, $content = '') { $defaults = Magee_Core::set_shortcode_defaults( array( 'title' =>'', 'icon' =>'', ), $args ); extract( $defaults ); self::$args = $defaults; $itemId = ' '.$this->id."-".$this->num; $tabid = uniqid('tab-'); $txtstyle=''; $txtbl = ' false'; $txtat = '' ; if($this->num == 1) { $txtstyle='active'; $txtbl = 'true'; $txtat = 'active in'; } $this->item_tital .= sprintf(' '); $html = '

'.do_shortcode( Magee_Core::fix_shortcodes($content)).'

'; $this->num++; return $html; } } new Magee_Tabs(); endif;