$ata['id'], 'version' =>$ata['version'], 'company' => $ata['company'], 'type' => $ata['type'], 'count' =>$ata['count'], 'hashtags' =>$ata['hashtags'], 'aajodas' =>$ata['aajodas'], 'campaigncodes'=>$ata['campaigncodes'], 'includes' =>$ata['includes'], 'size' => $ata['size'], 'backgroundcolor' => $ata['backgroundcolor'], 'fontcolor' => $ata['fontcolor'], 'linkcolor' => $ata['linkcolor'], 'shadowcolor' => $ata['shadowcolor'], 'shadowwidth' => $ata['shadowwidth'], 'bordercolor'=>$ata['bordercolor'], 'borderwidth'=>$ata['borderwidth'], 'borderradius'=>$ata['borderradius'], 'hovercolor'=>$ata['hovercolor'], 'tabreload'=>$ata['tabreload'], 'tabtext'=>'', 'tabfilter'=>'', 'tabactive'=>'0' ), $atts); /* print_r($aajoda_tab_atts["tabtext"]); */ if($aajoda_tab_atts["tabtext"]==""){ return ""; } /* */ $output=""; return $output; } /* aajoda tabs shortcode */ function aajoda_tabs_shortcode( $atts ,$content = '') { global $ata; $aajoda_tabs_atts = shortcode_atts(array( /* changes to parameters will lead to breaking changes */ 'id' => '', 'version' =>'1.0', 'company' => '', 'type' => '63', 'count' =>'10', 'hashtags' =>'', 'aajodas' =>'', 'campaigncodes'=>'', 'includes' =>'11', 'size' => '', 'backgroundcolor' => '', 'fontcolor' => '', 'linkcolor' => '', 'shadowcolor' => '', 'shadowwidth' => '', 'bordercolor'=>'', 'borderwidth'=>'', 'borderradius'=>'', 'hovercolor'=>'', 'tabreload'=>'1' ), $atts); $ata=$aajoda_tabs_atts; /* print_r("id: ".$aajoda_tabs_atts["id"]); print_r("bla: ".$bla); */ $output= "
"; /* nested here */ $output.=do_shortcode($content); $output.="
"; /* print_r(htmlspecialchars($output)); */ return $output; } /* aajoda feed shortcode */ function aajoda_feed_shortcode( $atts ) { $output=""; $aajoda_feed_atts = shortcode_atts( array( /* changes to parameters will lead to breaking changes */ 'id' => '', 'version' =>'1.0', 'company' => '', 'type' => '63', 'number' =>'', /*legacy support*/ 'count' =>'99', 'hashtags' =>'', 'tag'=>'', /*legacy support*/ 'aajodas' =>'', 'campaigncodes'=>'', 'includes' =>'11', 'size' => '', 'backgroundcolor' => '', 'fontcolor' => '', 'linkcolor' => '', 'shadowcolor' => '', 'shadowwidth' => '', 'bordercolor'=>'', 'borderwidth'=>'', 'borderradius'=>'', 'hovercolor'=>'' ), $atts ); if($aajoda_feed_atts['company']==""){ return "Parameter company is required!"; } /*legacy support*/ if($aajoda_feed_atts['tag']!=""){ $aajoda_feed_atts['hashtags']=$aajoda_feed_atts['tag']; } if($aajoda_feed_atts['number']!=""){ $aajoda_feed_atts['count']=$aajoda_feed_atts['number']; } /*end legacy support*/ $divId=$aajoda_feed_atts['id']; if($divId==""){ $divId=(string)rand(100000,1000000); } $output .= '
'; $output .= ''; /* print_r(htmlspecialchars($output)); */ return $output; } add_shortcode('aajoda-feed', 'aajoda_feed_shortcode'); add_shortcode('aajoda-tab', 'aajoda_tab_shortcode'); add_shortcode('aajoda-tabs', 'aajoda_tabs_shortcode'); ?>