�PNG  IHDR22?�� pHYs  �� OiCCPPhotoshop ICC profilexڝSgTS�=���BK���KoR RB���&*! J�!��Q�EEȠ�����Q, � ��!���������{�kּ������>���� �H3Q5� �B�������.@� $p�d!s�#�~<<+"��x� �M��0���B�\���t�8K�@z�B�@F���&S�`�cb�P-`'������{[�!�� e�Dh;��V�EX0fK�9�-0IWfH���� � 0Q��){`�##x��F�W<�+��*x��<�$9E�[-qWW.(�I+6aa�@.�y�2�4���������x����6��_-��"bb���ϫp@�t~��,/��;�m��%�h^ �u��f�@����W�p�~<�5�j>{�-�]c�K'Xt����o��(�h���w��?�G�%�fI�q^D$.Tʳ?�D��*�A��,���� �`6�B$��BB d�r`)��B(�Ͱ*`/�@4�Qh��p.�U�=p�a��(�� A�a!ڈb�X#����!�H�$ ɈQ"K�5H1R�T UH�=r9�\F��;�2����G1���Q=� �C��7�F� �dt1�����r�=�6��Ыhڏ>C�0��3�l0.��B�8, �c˱"� ���V����cϱw�E� 6wB aAHXLXN�H� $4� 7 �Q�'"��K�&���b21�XH,#��/{�C�7$�C2'��I��T��F�nR#�,��4H#���dk�9�, +ȅ����3��!�[ �b@q��S�(R�jJ��4�e�2AU��Rݨ�T5�ZB���R�Q��4u�9̓IK�����hh�i��t�ݕN��W���G���w ��Ljg(�gw��L�Ӌ�T071���oUX*�*|�� �J�&�*/T����ު U�U�T��^S}�FU3S� Ԗ�U��P�SSg�;���g�oT?�~Y��Y�L�OC�Q��_�� c�x,!k ��u�5�&���|v*�����=���9C3J3W�R�f?�q��tN �(���~���)�)�4L�1e\k����X�H�Q�G�6������E�Y��A�J'\'Gg����S�Sݧ �M=:��.�k���Dw�n��^��Lo��y���}/�T�m���G X� $� �<�5qo</���QC]�@C�a�a�ᄑ��<��F�F�i�\�$�m�mƣ&&!&KM�M�RM��)�;L;L���͢�֙5�=1�2��כ߷`ZxZ,����eI��Z�Yn�Z9Y�XUZ]�F���%ֻ�����N�N���gð�ɶ�����ۮ�m�}agbg�Ů��}�}��= ���Z~s�r:V:ޚΜ�?}����/gX���3��)�i�S��Ggg�s�󈋉K��.�>.���Ƚ�Jt�q]�z���������ۯ�6�i�ܟ�4�)�Y3s���C�Q��? ��0k߬~OCO�g��#/c/�W�װ��w��a�>�>r��>�<7�2�Y_�7��ȷ�O�o�_��C#�d�z����%g��A�[��z|!��?:�e����A���AA�������!h�쐭!��Α�i�P~���a�a��~ '���W�?�p�X�1�5w��Cs�D�D�Dޛg1O9�-J5*>�.j<�7�4�?�.fY��X�XIlK9.*�6nl������� �{�/�]py�����.,:�@L�N8��A*��%�w%� y��g"/�6ш�C\*N�H*Mz�쑼5y$�3�,幄'���L Lݛ:��v m2=:�1����qB�!M��g�g�fvˬe����n��/��k���Y- �B��TZ(�*�geWf�͉�9���+��̳�ې7�����ᒶ��KW-X潬j9�������(�x��oʿ�ܔ���Ĺd�f�f���-�[����n �ڴ �V����E�/��(ۻ��C���<��e����;?T�T�T�T6��ݵa��n��{��4���[���>ɾ�UUM�f�e�I���?�������m]�Nmq����#�׹���=TR��+�G�����w- 6 U����#pDy��� �� :�v�{���vg/jB��F�S��[b[�O�>����z�G��499�?r����C�d�&����ˮ/~�����јѡ�򗓿m|������������x31^�V���w�w��O�| (�h���SЧ��������c3-� cHRMz%������u0�`:�o�_�F5IDATx��ytUս�?�;���fN$$��@B�!�k��� -*�gE���j�O�kQ�ʠ`U�B_ �AÐ0%�Ȕ�@r3ޛ;߳��$�@��v����^�s����������$��ߢ !�W��5�̱'-٘������4�>�Rƫ$�G��0U�H}�_ _� #��k�MJ/=�9Du *ڲ�k�PQ;0��j|�*�$�^컂脛y���>�z×� B��� ��(�:$�ʔ_�6��C!B����MVx��a��ζyY����j��ƋY2�9�F�{r��r�딟F��Q��hY6��� x��[l��RC��������nt@��;P��3��� F�w��7��:�P���ɋ'���mj���Bƪ�$�Q�L��y��߷g��\���z����v5�p�v$�v櫻�`6~K �Y�X����,�:��"�o�e0II"(��,������l_�C���/4�+f�E�!q��:����u����c��樼.UE�@� �]K�W���$-�h]�JG���Dz)�`��.�A/ ���mᏣc�3jK� �!�>���$�Q�!�_�? \�C2(E �M$Z I{�U���s�ǣ���=��@Բe ޻��W�����@ �w����}�9v,)��.}*|"�s��di���,���G�]W�AC�������|<����[��ߕ������K�*�G nߴ!��‹��J�!��6(L�a)��Am��������;adf��:�xm��nh�;֦I��(���o�C~ډa?�=��s����h��E������xp����)���_���t��W�����´;8���`dz=(��@@�+,�;�`�fhl��XȌ�3,uI�~z(J����� �ZX�A����H'�À�㜦�82|��a�n�z2��I���� ���EY�h�ε<�0�q�{��C��v�˅��?"@��χ�x�WS+��N�~�KQ�J�8ل�� _.W��� !TU{�����,��"�� �;�������HI S� ��))�o�1�H�D� ���� (� ;����"Ҕ��,���� �F=���O��&�Ph>�`���y��߲ &S��P�<��'��1s�1cĂ�N����2)����@�u��tv��<�+�-&�����h��[!FSG���' � z z0��<����8d&�����E0�,��<��"!P�b4��� �{S�����X����.�囤���T��hEF��X�q0"-<����h���]�Py*����F⩍��@v�˂�Y08�� .q��a��s����(!<̫1�3�L�H��7sYW�`��qtu�\7��?�@�Y�� %Ka�x�GZ�*W�P��y�����N0r9��Z�c�%���q,��k�����!!,��>���IB��� �x1�Xu�Y���v-���ֺ��N������JP��a�2`�e5��w��u;�6�i���̃��(K���ťa��(l51��JL��O'%���]���ٖ뿉!��{*�p+f ���i8��D�ȑ���ܩ�M��V��ӟz��x�7Z�1i}�^͜���6e����x��)u�d�ˏ�V�eG�\�X1�����=n�U'�~Y����L�\,�(d!x ,�:�TW8� M`r���@��r+v�Q0��>^;˴�VbF��('����� �*O��i��j�Ӆ����^�S3&� ���{������.ی�� N;��NU%d0�Ce\r"�C�b��&t7N�7��� �ȪD�[%l�۪�$��'m?�A9tI�9>��NVL ��� 6v~M�����ъ�B���0����9$&=ώm��W�0���L���&��E���f�f��'+�9��hv��7,���M��6�D�&�^� �����8 D֮�����o��k^z��O��hP�8q�5d*��YVq3�{��������#LX4�?��jP=3�~�؅c�ݰ�̱�ұ��8̲��2�G�����j��έ�9��w7���U�X�w�85C��?!I&���o&����L���I#�^�eV�,�^t5�k� �xs˛\��U�8��."���{���ǵ�l4��ݼ�;��r"���G�/~���gJV�N糦��ZZ^k+NN�D��I$�=OE�z����|*�*{��%k���G��>�`9��b;�s���8,�qs��c��.b��q�%�>r��n�R�Ƨ�%�,�A��le#�8���}; 21�0�b�&�QX�f���q�00����$>�h�N�'�a3��A���/�r ��L5�8�GԲ'�����w;��c#�q1���h$*��V^�k��QĽ�b:i������� ����H F#�_���,��]g����Ը����`RUU���� ��"�qD���>-��ϤI�~��3�̴�����NZ[[555�eeek7�m����YF#[��Đ��R��i��L�H�r ��@��J-�Pŝ��_|�-��6y��ks�V�U~��6���w.����(��0A� 4��f��� /���C�xŊ�ٳ����z=6�����rg���mKo��o�/����a�g���?'9%9��P��斓��~���L{�� �H��{AW��B��$����v�1b�&Mb�ر��ر#�0`�`xMBp! )Z�Nmo�mZ�g�}�eذaWTVV ���'99��C5��&�&+5�bT>|8��PUUETT����&���t��~TE%��'������b�tEGG;RSS�S�N�v��ѯ��t����u1@�ޚ"f��͈���r'L�Ph��m��ƌ�74o��`�x�q�P���NRSS�X,�����l&&&��MFFA!-��`��ҷ�n��Yuu�����x<I�LB%����KԒ50�!�3�bz�����ʸKL���;---�l6[��`��������Ȏ;�����egg4��!D�T��jWujyZ��������K����%����p�^���X,6��sV=�ܖ����6�3�X ���4ҿ��A2�&����_k�;d�� �VfOIEND�B`�
Warning: session_start(): Session cannot be started after headers have already been sent in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 124

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 131

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 132

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 133

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 134

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 135

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 547

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 548

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 549

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 550

Warning: Cannot modify header information - headers already sent by (output started at /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php:1) in /home/mciraet/www/wp-includes/php-ai-client/src/Providers/Enums/Documentsoliders.php on line 551
video_container_id = 'v-' . $guid . '-' . self::$shown[ $guid ]; $this->video_id = $this->video_container_id . '-video'; if ( is_array( $options ) ) { $this->options = $options; } else { $this->options = array(); } // set up the video $cache_key = null; // disable cache in debug mode if ( defined( 'WP_DEBUG' ) && WP_DEBUG === true ) { $cached_video = null; } else { $cache_key_pieces = array( 'video' ); if ( is_multisite() && is_subdomain_install() ) { $cache_key_pieces[] = get_current_blog_id(); } $cache_key_pieces[] = $guid; if ( $maxwidth > 0 ) { $cache_key_pieces[] = $maxwidth; } if ( is_ssl() ) { $cache_key_pieces[] = 'ssl'; } $cache_key = implode( '-', $cache_key_pieces ); unset( $cache_key_pieces ); $cached_video = wp_cache_get( $cache_key, 'video' ); } if ( empty( $cached_video ) ) { $video = new VideoPress_Video( $guid, $maxwidth ); if ( isset( $video->error ) ) { $this->video = $video->error; return; } elseif ( is_wp_error( $video ) ) { $this->video = $video; return; } $this->video = $video; unset( $video ); if ( ! defined( 'WP_DEBUG' ) || WP_DEBUG !== true ) { $expire = 3600; if ( isset( $this->video->expires ) && is_int( $this->video->expires ) ) { $expires_diff = time() - $this->video->expires; if ( $expires_diff > 0 && $expires_diff < 86400 ) { // allowed range: 1 second to 1 day $expire = $expires_diff; } unset( $expires_diff ); } wp_cache_set( $cache_key, serialize( $this->video ), 'video', $expire ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_serialize unset( $expire ); } } else { $this->video = unserialize( $cached_video ); // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions.serialize_unserialize -- Make sure to unserialize as VideoPress_Video class. } unset( $cache_key ); unset( $cached_video ); } /** * Wrap output in a VideoPress player container. * * @since 1.3 * @param string $content HTML string. * @return string HTML string or blank string if nothing to wrap. */ private function html_wrapper( $content ) { if ( empty( $content ) ) { return ''; } else { return '
' . $content . '
'; } } /** * Output content suitable for a feed reader displaying RSS or Atom feeds * We do not display error messages in the feed view due to caching concerns. * Flash content presented using markup for feed reader compatibility. * * @since 1.3 * @return string HTML string or empty string if error */ public function as_xml() { if ( empty( $this->video ) || is_wp_error( $this->video ) ) { return ''; } if ( isset( $this->options['force_flash'] ) && true === $this->options['force_flash'] ) { $content = $this->flash_embed(); } else { $content = $this->html5_static(); } return $this->html_wrapper( $content ); } /** * Video player markup for best matching the current request and publisher options * * @since 1.3 * @return string HTML markup string or empty string if no video property found */ public function as_html() { if ( empty( $this->video ) ) { $content = ''; } elseif ( is_wp_error( $this->video ) ) { $content = $this->error_message( $this->video ); } elseif ( isset( $this->options['force_flash'] ) && true === $this->options['force_flash'] ) { $content = $this->flash_object(); } elseif ( isset( $this->video->restricted_embed ) && true === $this->video->restricted_embed ) { if ( $this->options['forcestatic'] ) { $content = $this->flash_object(); } else { $content = $this->html5_dynamic(); } } elseif ( isset( $this->options['freedom'] ) && true === $this->options['freedom'] ) { $content = $this->html5_static(); } else { $content = $this->html5_dynamic(); } return $this->html_wrapper( $content ); } /** * Display an error message to users capable of doing something about the error * * @since 1.3 * @uses current_user_can() to test if current user has edit_posts capability. * @param WP_Error $error WordPress error. * @return string HTML string */ private function error_message( $error ) { if ( ! current_user_can( 'edit_posts' ) || empty( $error ) ) { return ''; } $html = '
'; /* translators: %s is 'VideoPress' */ $html .= '

' . esc_html( sprintf( __( '%s Error', 'jetpack' ), 'VideoPress' ) ) . '

'; foreach ( $error->get_error_messages() as $message ) { $html .= $message; } $html .= '
'; return $html; } /** * Rating agencies and industry associations require a potential viewer verify their age before a video or its poster frame are displayed. * Content rated for audiences 17 years of age or older requires such verification across multiple rating agencies and industry associations * * @since 1.3 * @return bool true if video requires the viewer verify they are 17 years of age or older */ private function age_gate_required() { if ( isset( $this->video->age_rating ) && $this->video->age_rating >= 17 ) { return true; } else { return false; } } /** * Select a date of birth using HTML form elements. * * @since 1.5 * @return string HTML markup */ private function html_age_gate() { global $wp_locale; $text_align = 'left'; if ( $this->video->text_direction === 'rtl' ) { $text_align = 'right'; } $html = '
'; $html .= '

' . esc_html( __( 'This video is intended for mature audiences.', 'jetpack' ) ) . '
' . esc_html( __( 'Please verify your birthday.', 'jetpack' ) ) . '

'; $html .= '
'; $inputs_style = 'border:1px solid #444;margin-'; if ( $this->video->text_direction === 'rtl' ) { $inputs_style .= 'left'; } else { $inputs_style .= 'right'; } $inputs_style .= ':10px;background-color:rgb(0, 0, 0);font-size:14px;color:rgb(255,255,255);padding:4px 6px;line-height: 2em;vertical-align: middle'; /** * Display a list of months in the Gregorian calendar. * Set values to 0-based to match JavaScript Date. * * @link https://developer.mozilla.org/en/JavaScript/Reference/global_objects/date Mozilla JavaScript Reference: Date */ $html .= ''; /** * Todo: numdays variance by month. */ $html .= ''; /** * Current record for human life is 122. Go back 130 years and no one is left out. * Don't ask infants younger than 2 for their birthday * Default to 13 */ $html .= ''; $html .= ''; $html .= '
'; $html .= '

' . __( 'More information', 'jetpack' ) . '

'; $html .= '
'; return $html; } /** * Return HTML5 video static markup for the given video parameters. * Use default browser player controls. * No Flash fallback. * * @since 1.2 * @link https://html.spec.whatwg.org/multipage/media.html#the-video-element HTML5 video * @return string HTML5 video element and children */ private function html5_static() { wp_enqueue_script( 'videopress' ); $thumbnail = esc_url( $this->video->poster_frame_uri ); $html = "'; return $html; } /** * Click to play dynamic HTML5-capable player. * The player displays a video preview section including poster frame, * video title, play button and watermark on the original page load * and calculates the playback capabilities of the browser. The video player * is loaded when the visitor clicks on the video preview area. * If Flash Player 10 or above is available the browser will display * the Flash version of the video. If HTML5 video appears to be supported * and the browser may be capable of MP4 (H.264, AAC) or OGV (Theora, Vorbis) * playback the browser will display its native HTML5 player. * * @since 1.5 * @return string HTML markup */ private function html5_dynamic() { /** * Filter the VideoPress legacy player feature * * This filter allows you to control whether the legacy VideoPress player should be used * instead of the improved one. * * @module videopress * * @since 3.7.0 * * @param boolean $videopress_use_legacy_player */ if ( ! apply_filters( 'jetpack_videopress_use_legacy_player', false ) ) { return $this->html5_dynamic_next(); } wp_enqueue_script( 'videopress' ); $video_placeholder_id = $this->video_container_id . '-placeholder'; $age_gate_required = $this->age_gate_required(); $width = absint( $this->video->calculated_width ); $height = absint( $this->video->calculated_height ); $html = '
video->skin ) && isset( $this->video->skin->background_color ) ) { $html .= 'background-color:' . esc_attr( $this->video->skin->background_color ) . ';'; } $html .= 'font-family: \'Helvetica Neue\',Arial,Helvetica,\'Nimbus Sans L\',sans-serif;font-weight:bold;font-size:18px">' . PHP_EOL; /** * Do not display a poster frame, title, or any other content hints for mature content. */ if ( ! $age_gate_required ) { if ( ! empty( $this->video->title ) ) { $html .= '
video->language ) ) { $html .= ' lang="' . esc_attr( $this->video->language ) . '"'; } $html .= '>' . esc_html( $this->video->title ) . '
'; } $html .= '';
			if ( ! empty( $this->video->title ) ) {
				/* translators: %s is the video title */
				$html .= esc_attr( $this->video->title ) . '' . PHP_EOL; // style a play button hovered over the poster frame $html .= '
▶
' . PHP_EOL; // watermark if ( isset( $this->video->skin ) && isset( $this->video->skin->watermark ) ) { $html .= '
'; $html .= ''; $html .= '
' . PHP_EOL; } } $data = array( 'blog' => absint( $this->video->blog_id ), 'post' => absint( $this->video->post_id ), 'duration' => absint( $this->video->duration ), 'poster' => esc_url_raw( $this->video->poster_frame_uri, array( 'http', 'https' ) ), 'hd' => (bool) $this->options['hd'], ); if ( isset( $this->video->videos ) ) { if ( isset( $this->video->videos->mp4 ) && isset( $this->video->videos->mp4->url ) ) { $data['mp4'] = array( 'size' => $this->video->videos->mp4->format, 'uri' => esc_url_raw( $this->video->videos->mp4->url, array( 'http', 'https' ) ), ); } if ( isset( $this->video->videos->ogv ) && isset( $this->video->videos->ogv->url ) ) { $data['ogv'] = array( 'size' => 'std', 'uri' => esc_url_raw( $this->video->videos->ogv->url, array( 'http', 'https' ) ), ); } } $locale = array( 'dir' => $this->video->text_direction ); if ( isset( $this->video->language ) ) { $locale['lang'] = $this->video->language; } $data['locale'] = $locale; unset( $locale ); $guid = $this->video->guid; $guid_js = wp_json_encode( $guid, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); $html .= '' . PHP_EOL; $html .= '
' . PHP_EOL; /* * JavaScript required */ $noun = __( 'this video', 'jetpack' ); if ( ! $age_gate_required ) { $vid_type = ''; if ( ( isset( $this->options['freedom'] ) && $this->options['freedom'] === true ) && ( isset( $this->video->videos->ogv ) && isset( $this->video->videos->ogv->url ) ) ) { $vid_type = 'ogv'; } elseif ( isset( $this->video->videos->mp4 ) && isset( $this->video->videos->mp4->url ) ) { $vid_type = 'mp4'; } elseif ( isset( $this->video->videos->ogv ) && isset( $this->video->videos->ogv->url ) ) { $vid_type = 'ogv'; } if ( $vid_type !== '' ) { $noun = 'video->language ) ) { $noun .= 'hreflang="' . esc_attr( $this->video->language ) . '" '; } if ( $vid_type === 'mp4' ) { $noun .= 'type="video/mp4" href="' . esc_url( $this->video->videos->mp4->url, array( 'http', 'https' ) ); } elseif ( $vid_type === 'ogv' ) { $noun .= 'type="video/ogv" href="' . esc_url( $this->video->videos->ogv->url, array( 'http', 'https' ) ); } $noun .= '">'; if ( isset( $this->video->title ) ) { $noun .= esc_html( $this->video->title ); } else { $noun .= __( 'this video', 'jetpack' ); } $noun .= ''; } elseif ( ! empty( $this->title ) ) { $noun = esc_html( $this->title ); } unset( $vid_type ); } /* translators: %s video title or generic 'this video' string */ $html .= ''; return $html; } /** * Output for the non-legacy HTML5 player. */ public function html5_dynamic_next() { $video_container_id = 'v-' . $this->video->guid; Jwt_Token_Bridge::enqueue_jwt_token_bridge(); // Must not use iframes for IE11 due to a fullscreen bug if ( isset( $_SERVER['HTTP_USER_AGENT'] ) && stristr( sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ), 'Trident/7.0; rv:11.0' ) ) { $iframe_embed = false; } else { /** * Filter the VideoPress iframe embed * * This filter allows you to control whether the videos will be embedded using an iframe. * Set this to false in order to use an in-page embed rather than an iframe. * * @module videopress * * @since 3.7.0 * * @param boolean $videopress_player_use_iframe */ $iframe_embed = apply_filters( 'jetpack_videopress_player_use_iframe', true ); } if ( ! array_key_exists( 'hd', $this->options ) ) { $this->options['hd'] = (bool) get_option( 'video_player_high_quality', false ); } if ( ! array_key_exists( 'cover', $this->options ) ) { $this->options['cover'] = true; } $videopress_options = array( 'width' => absint( $this->video->calculated_width ), 'height' => absint( $this->video->calculated_height ), ); foreach ( $this->options as $option => $value ) { switch ( $option ) { case 'at': if ( (int) $value ) { $videopress_options[ $option ] = (int) $value; } break; case 'autoplay': $option = 'autoPlay'; // Fall-through ok. case 'hd': case 'loop': case 'permalink': case 'cover': case 'muted': case 'controls': case 'playsinline': case 'useAverageColor': if ( in_array( $value, array( true, 1, 'true' ), true ) ) { $videopress_options[ $option ] = true; } elseif ( in_array( $value, array( false, 0, 'false' ), true ) ) { $videopress_options[ $option ] = false; } // phpcs:enable break; case 'defaultlangcode': $option = 'defaultLangCode'; if ( $value ) { $videopress_options[ $option ] = $value; } break; case 'preloadContent': if ( $value ) { $videopress_options['preloadContent'] = $value; } } } if ( $iframe_embed ) { $iframe_url = "https://videopress.com/embed/{$this->video->guid}"; foreach ( $videopress_options as $option => $value ) { if ( ! in_array( $option, array( 'width', 'height' ), true ) ) { // add_query_arg ignores false as a value, so replacing it with 0 // @phan-suppress-next-line PhanPluginSimplifyExpressionBool -- Probably it could, but semantically let's keep it as-is. $iframe_url = add_query_arg( $option, ( false === $value ) ? 0 : $value, $iframe_url ); } } $cover = $videopress_options['cover'] ? ' data-resize-to-parent="true"' : ''; wp_enqueue_script( 'videopress-iframe', 'https://videopress.com/videopress-iframe.js', array(), JETPACK__VERSION, true ); return ""; } else { $videopress_options = wp_json_encode( $videopress_options, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); $js_url = 'https://s0.wp.com/wp-content/plugins/video/assets/js/videojs/videopress.js'; $css_url = 'https://s0.wp.com/wp-content/plugins/video/assets/js/videojs/videopress.css'; $guid_js = wp_json_encode( (string) $this->video->guid, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); $selector_js = wp_json_encode( '#' . $video_container_id, JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ); // Without the player styles the