s, $this, $shortcodename, $default, $locked, $content );
$atts = shortcode_atts( $default, $atts, $this->config['shortcode_nested'][0] );
$classes = array(
'av_tab_section',
$element_id
);
$element_styling->add_classes( 'container', $classes );
$element_styling->add_classes( 'tab', 'tab' );
$element_styling->add_classes( 'tab-content', 'tab_content' );
if( is_numeric( avia_sc_tab::$initial ) && avia_sc_tab::$counter == avia_sc_tab::$initial )
{
$element_styling->add_classes( 'tab', 'active_tab' );
$element_styling->add_classes( 'tab-content', 'active_tab_content' );
}
$selectors = array(
'container' => ".tabcontainer .av_tab_section.{$element_id}"
);
$element_styling->add_selectors( $selectors );
$result['default'] = $default;
$result['atts'] = $atts;
$result['content'] = $content;
$result['element_styling'] = $element_styling;
return $result;
}
/**
* Frontend Shortcode Handler
*
* @param array $atts array of attributes
* @param string $content text within enclosing form of shortcode element
* @param string $shortcodename the shortcode found, when == callback name
* @return string $output returns the modified html string
*/
function shortcode_handler( $atts, $content = '', $shortcodename = '', $meta = '' )
{
$result = $this->get_element_styles( compact( array( 'atts', 'content', 'shortcodename', 'meta' ) ) );
extract( $result );
extract( $this->screen_options ); //return $av_font_classes, $av_title_font_classes and $av_display_classes
extract( $atts );
$content_html = ShortcodeHelper::avia_remove_autop( $content, true );
$style_tag = $element_styling->get_style_tag( $element_id );
$item_tag = $element_styling->style_tag_html( $this->subitem_inline_styles, 'sub-' . $element_id );
$container_class = $element_styling->get_class_string( 'container' );
$output = '';
$output .= $style_tag;
$output .= $item_tag;
$output .= "
";
$output .= $content_html;
$output .= '
';
return $output;
}
/**
* Shortcode handler
*
* @param array $atts
* @param string $content
* @param string $shortcodename
* @return string
*/
public function av_tab( $atts, $content = '', $shortcodename = '' )
{
/**
* Fixes a problem when 3-rd party plugins call nested shortcodes without executing main shortcode (like YOAST in wpseo-filter-shortcodes)
*/
if( empty( $this->screen_options ) )
{
return '';
}
$result = $this->get_element_styles_item( compact( array( 'atts', 'content', 'shortcodename' ) ) );
extract( $result );
extract( $atts );
$icon = '';
if( $atts['icon_select'] == 'yes' )
{
$display_char = av_icon( $atts['icon'], $atts['font'] );
$icon = "";
}
$aria_content = 'aria-hidden="true"';
if( is_numeric( avia_sc_tab::$initial ) && avia_sc_tab::$counter == avia_sc_tab::$initial )
{
$aria_content = 'aria-hidden="false"';
}
if( empty( $atts['title'] ) )
{
$atts['title'] = avia_sc_tab::$counter;
}
$setting_id = Avia_Builder()->get_developer_settings( 'custom_id' );
if( empty( $atts['custom_id'] ) || in_array( $setting_id, array( 'deactivate' ) ) )
{
$atts['custom_id'] = 'tab-id-' . avia_sc_tab::$tab_id++;
}
else
{
$atts['custom_id'] = AviaHelper::save_string( $atts['custom_id'], '-' );
}
$markup_tab = '';
$markup_title = '';
$markup_text = '';
if( 'yes' != $atts['skip_markup'] )
{
$markup_tab = avia_markup_helper( array( 'context' => 'entry', 'echo' => false, 'custom_markup' => $atts['custom_markup'] ) );
$markup_title = avia_markup_helper( array( 'context' => 'entry_title', 'echo' => false, 'custom_markup' => $atts['custom_markup'] ) );
$markup_text = avia_markup_helper( array( 'context' => 'entry_content', 'echo' => false, 'custom_markup' => $atts['custom_markup'] ) );
}
$this->subitem_inline_styles .= $element_styling->get_style_tag( $element_id, 'rules_only' );
$container_class = $element_styling->get_class_string( 'container' );
$tab_class = $element_styling->get_class_string( 'tab' );
$tab_content_class = $element_styling->get_class_string( 'tab-content' );
$output = '';
$output .= "";
$output .= "{$icon}{$atts['title']}
";
$output .= "";
$output .= "
";
$output .= ShortcodeHelper::avia_apply_autop( ShortcodeHelper::avia_remove_autop( $content ) );
$output .= '
';
$output .= '
';
$output .= '';
avia_sc_tab::$counter ++;
return $output;
}
}
}
{"version":"1.0","provider_name":"Stichting Collot Zien en Beleven","provider_url":"https:\/\/www.collotzienenbeleven.nl","author_name":"Stichting Collot Zien en Beleven","author_url":"https:\/\/www.collotzienenbeleven.nl","title":"Ring Of Odin Online Gokkast Spelen Gratis En Met Geld","type":"rich","width":600,"height":338,"html":"Ring Of Odin Online Gokkast Spelen Gratis En Met Geld<\/a><\/blockquote>