'', 'keywords_only' => 'no', 'size' => 'normal' ); // 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"; $src .= "&q=" . wp_get_shortlink(); $src .= "&h=" . md5(get_the_content()); // Append parameter values to the src url $src .= '&s=' . $atts["size"]; $src .= '&ko=' . $atts["keywords_only"]; if ( $atts["keywords"] != '') { $src .= '&kw=' . $atts["keywords"]; } // Define a static counter to support multiple slider in one post, a postfix counter will be added to each element id. static $i = 0; $html .='
'; $i++; return $html; } add_shortcode( 'appvitrine', 'appvitrine_unqprfx_embed_shortcode' ); endif; // end of (function_exists('appvitrine_unqprfx_embed_shortcode'))