Esempio n. 1
0
<?php

extract(shortcode_atts(array('title' => ''), $atts));
$uid = 'tab_' . uniqid();
$bg_tab = isset($GLOBALS['tog_bg']) ? ' style="background-color:' . $GLOBALS['tog_bg'] . ';"' : '';
$output = '<div class="panel">';
$output .= '<div class="panel-heading">';
$output .= '<h4 class="panel-title">';
$output .= '<a data-toggle="collapse" href="#' . $uid . '" class="collapsed"' . $bg_tab . '>' . raw_decode($title) . '</a>';
$output .= '</h4>';
$output .= '</div>';
$output .= '<div id="' . $uid . '" class="panel-collapse collapse">';
$output .= '<div class="panel-body">' . raw_decode($content) . '</div>';
$output .= '</div>';
$output .= '</div>';
echo $output;
Esempio n. 2
0
<?php

extract(shortcode_atts(array('title' => ''), $atts));
$uid = uniqid();
if ($GLOBALS['tabs'] == 'nav') {
    $output = '<li><a href="#' . $uid . '" data-toggle="tab">' . raw_decode($title) . '</a></li>';
} else {
    $output = '<div class="tab-pane">' . raw_decode($content) . '</div>';
}
echo $output;