'', 'keywords_only' => 'no', 'size' => 'normal', 'at' => '', 'type' => 'default' ); // Use the default value if the reffering attribute is not set foreach ( $defaults as $default => $value ) { if ( ! @array_key_exists( $default, $atts ) ) { // hide warning with "@" when no params at all $atts[$default] = $value; } } $src = "http://appvitrine.lookitap.com/WebFront/frame?p=wp&pid=1&r=0"; // Append parameter values to the src url $src .= '&s=' . $atts["size"]; $src .= '&ko=' . $atts["keywords_only"]; if ( $atts["keywords"] != '') { $src .= '&kw=' . $atts["keywords"]; } if ( $atts["at"] != '') { $src .= '&at=' . $atts["at"]; } $src .= "&q=" . wp_get_shortlink(); $src .= "&h=" . md5(get_the_content()); // Define a static counter to support multiple slider in one post, a postfix counter will be added to each element id. static $i = 0; wp_enqueue_script('jquery'); $html .=''; if ($atts["type"] == "button") { $html .= ''; } if ($atts["type"] == "link") { $html .= 'Show Related Apps'; } $html .= '
'; $i++; return $html; } add_shortcode( 'appvitrine', 'appvitrine_unqprfx_embed_shortcode' ); endif; // end of (function_exists('appvitrine_unqprfx_embed_shortcode'))