ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ.done; $initial_styles = $wp_styles->done; // actually render the shortcode, get the result, and do the resource loading again so we can subtract.. ob_start(); wp_head(); ob_end_clean(); $result = call_user_func( $callback, $callback_arg ); ob_start(); wp_footer(); ob_end_clean(); // find the difference (the new resource files) $loaded_scripts = array_diff( $wp_scripts->done, $initial_scripts ); $loaded_styles = array_diff( $wp_styles->done, $initial_styles ); return array( 'result' => $result, 'loaded_scripts' => $loaded_scripts, 'loaded_styles' => $loaded_styles, ); } /** * Takes the list of styles and scripts and adds them to the JSON response. * * @param array $return - what was returned. * @param array $loaded_scripts - the loaded scripts. * @param array $loaded_styles - the loaded styles. * * @return array */ public function add_assets( $return, $loaded_scripts, $loaded_styles ) { global $wp_scripts, $wp_styles; // scripts first, just cuz if ( $loaded_scripts !== array() ) { $scripts = array(); foreach ( $loaded_scripts as $handle ) { if ( ! isset( $wp_scripts->registered[ $handle ] ) ) { continue; } $src = $wp_scripts->registered[ $handle ]->src; // attach version and an extra query parameters $ver = $this->get_version( $wp_scripts->registered[ $handle ]->ver, $wp_scripts->default_version ); if ( isset( $wp_scripts->args[ $handle ] ) ) { $ver = $ver ? $ver . '&' . $wp_scripts->args[ $handle ] : $wp_scripts->args[ $handle ]; } $src = add_query_arg( 'ver', $ver, $src ); // add to an aray so we can return all this info $scripts[ $handle ] = array( 'src' => $src, ); $extra = $wp_scripts->print_extra_script( $handle, false ); if ( ! empty( $extra ) ) { $scripts[ $handle ]['extra'] = $extra; } } $return['scripts'] = $scripts; } // now styles if ( $loaded_styles !== array() ) { $styles = array(); foreach ( $loaded_styles as $handle ) { if ( ! isset( $wp_styles->registered[ $handle ] ) ) { continue; } $src = $wp_styles->registered[ $handle ]->src; // attach version and an extra query parameters $ver = $this->get_version( $wp_styles->registered[ $handle ]->ver, $wp_styles->default_version ); if ( isset( $wp_styles->args[ $handle ] ) ) { $ver = $ver ? $ver . '&' . $wp_styles->args[ $handle ] : $wp_styles->args[ $handle ]; } $src = add_query_arg( 'ver', $ver, $src ); // is there a special media (print, screen, etc) for this? if not, default to 'all' $media = 'all'; if ( isset( $wp_styles->registered[ $handle ]->args ) ) { $media = esc_attr( $wp_styles->registered[ $handle ]->args ); } // add to an array so we can return all this info $styles[ $handle ] = array( 'src' => $src, 'media' => $media, ); } $return['styles'] = $styles; } return $return; } /** * Returns the 'version' string set by the shortcode so different versions of scripts/styles can be loaded. * * @param string $this_scripts_version - this scripts version. * @param string $default_version - the default version. * * @return string */ public function get_version( $this_scripts_version, $default_version ) { if ( null === $this_scripts_version ) { $ver = ''; } else { $ver = $this_scripts_version ? $this_scripts_version : $default_version; } return $ver; } /** * Given a shortcode, process and return the result. * * @param string $shortcode - the shortcode. */ public function do_shortcode( $shortcode ) { return do_shortcode( $shortcode ); } /** * Given a one-line embed URL, process and return the result. * * @param string $embed_url - the embed URL. * * @return string|false */ public function do_embed( $embed_url ) { global $wp_embed; return $wp_embed->shortcode( array(), $embed_url ); } }