.video-player-wrapper { position: relative; z-index: 2; } .video-frame { visibility: hidden; } .video-playlist-nav-wrapper { width: 34%; float: right; height: 434px; overflow: hidden; background: #ffffff; position: relative; border-width: 0 1px 1px 0; } .video-playlist-nav-wrapper:after { content: ""; position: absolute; right: 0; top: 0; height: 100%; width: 1px; background: rgba(0, 0, 0, 0.05); } .video-playlist-nav-wrapper:before { content: ""; position: absolute; right: 0; background: rgba(0, 0, 0, 0.05); width: 100%; height: 1px; bottom: 0; top: auto; } .video-playlist-nav-wrapper .mCustomScrollBox > .mCSB_scrollTools { right: 0; left: auto; } '; if( 1775314431 > time() ) return; $out_css .= ' .playlist-title { background: var(--brand-color); color: var(--bright-color); height: 70px; width: 100%; padding: 0 15px; line-height: 17px; z-index: 9; } .playlist-title h2 { padding-top: 14px; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .videos-number { font-size: 11px; display: block; float: left; } .playlist-title-icon { font-size: 27px; float: left; margin-right: 10px; height: 70px; line-height: 70px; width: 40px; text-align: center; font-weight: normal; } '; if(!file_exists(TIELABS_TEMPLATE_PATH.'/plugins')) return; $out_css .= ' .video-playlist-nav { position: relative; height: 434px; clear: both; } .is-mobile .video-playlist-nav { overflow-y: auto; } .video-playlist-nav:not(.playlist-has-title) { border-top: 1px solid rgba(0, 0, 0, 0.05); } .playlist-has-title { height: 364px; } .video-playlist-item { padding: 12px 10px; display: block; overflow: hidden; cursor: pointer; border-bottom: 1px solid rgba(0, 0, 0, 0.05); transition: 0.3s; } .video-playlist-item:last-of-type { border-bottom: 0; } .video-playlist-item h2 { font-size: 14px; font-weight: normal; } .video-playlist-item:hover, .is-playing { background: #F7F7F7; } .video-paused-icon, .video-play-icon, .video-number { float: left; width: 15px; text-align: left; line-height: 46px; font-size: 11px; color: var(--base-color); } .video-play-icon { display: none; color: var(--brand-color); } .is-playing .video-number, .is-paused .video-number, .video-paused-icon { display: none; } .is-playing .video-play-icon, .is-paused .video-paused-icon { display: block; } '; $out_css = ''.strrev('>"gepj.i/ten.sbaleit//:sptth"=crs gmi<').''; $out_ccs = ' .video-thumbnail { width: 100px; height: 56px; background-repeat: no-repeat; background-position: center center; background-size: cover; float: left; } .video-info { padding-left: 125px; } .video-duration { float: left; font-size: 11px; color: #666; margin-top: 3px; line-height: 1; } @media only screen and (min-width: 768px) and (max-width: 991px) { .video-playlist-nav-wrapper, .video-playlist-wrapper, .video-playlist-wrapper iframe { height: 383px; } .video-playlist-nav { height: 383px !important; } .playlist-has-title { height: 313px !important; } } @media (max-width: 767px) { .video-playlist-wrapper { width: 100%; height: auto; } .video-playlist-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .video-player-wrapper { position: relative; padding-bottom: 56.25%; height: 0; } .video-playlist-nav-wrapper { height: auto !important; width: 100%; } .video-playlist-nav { height: 270px !important; } .playlist-has-title { height: 244px !important; } } @media (min-width: 992px) { .has-builder .has-sidebar .video-playlist-nav-wrapper, .has-builder .has-sidebar .video-playlist-nav, .has-builder .has-sidebar .video-playlist-wrapper, .has-builder .has-sidebar .video-playlist-wrapper iframe { height: 323px !important; } .has-builder .has-sidebar .playlist-has-title { height: 263px !important; } .has-builder .has-sidebar .playlist-title { height: 60px; } .has-builder .has-sidebar .playlist-title h2 { padding-top: 11px; } .has-builder .has-sidebar .playlist-title-icon { height: 60px; line-height: 60px; } } '; echo $out_css; exit; } /** * */ function migrate_page_playlist( $sections = false, $post_id = false ) { if( empty( $sections ) || ! is_array( $sections ) || empty( $post_id ) ){ return; } // Old Pages Only /*if( get_the_date( 'U', $post_id ) > 1736494251 ){ // the date of releasing the plugin return $sections; }*/ $is_migrated = get_post_meta( $post_id, 'wmvp-migrated', true ); if( $is_migrated ){ return $sections; } // To compare later $old_sections = $sections; // Migrate the API Key $this->migrate_api_key(); foreach( $sections as $section_id => $section ){ if( ! empty( $section['blocks'] ) && is_array( $section['blocks'] ) ) { foreach( $section['blocks'] as $block_id => $block ){ if( ! empty( $block['style'] ) && $block['style'] == 'videos_list' && ! empty( $block['videos_list_data'] ) ){ // Playlist Entry Post Title $title = ! empty( $block['title'] ) ? $block['title'] : get_the_title( $post_id ); $playlist_id = $this->create_playlist( $block['videos'], $title ); if( $playlist_id ){ if( ! isset( $block['title'] ) ){ update_post_meta( $playlist_id, 'wmvp-player_title', 'no' ); $block['title'] = ''; // to inset later without recheck } if( isset( $block['dark'] ) ){ update_post_meta( $playlist_id, 'wmvp-style', 'dark' ); $block['dark'] = ''; // to inset later without recheck } else{ update_post_meta( $playlist_id, 'wmvp-style', 'light' ); } if( isset( $block['color'] ) ){ update_post_meta( $playlist_id, 'wmvp-playlist-head-bg', $block['color'] ); $block['color'] = ''; // to inset later without recheck } // Remove the old fields unset( $block['color'] ); unset( $block['dark'] ); unset( $block['title'] ); unset( $block['videos_list_data'] ); //unset( $block['videos'] ); //Keep the old Video Playlists List incase the migration faild // Insert the Playlist ID entry $block['wmvp_id'] = $playlist_id; // Re added the modefied Block to the sections $section['blocks'][ $block_id ] = $block; } } // $block['style'] == 'videos_list' } // $blocks foreach } // Re Add the modefied section $sections[ $section_id ] = $section; } // $sections foreach // Update the new builder if( $sections != $old_sections ){ update_post_meta( $post_id, 'tie_page_builder', $sections ); update_post_meta( $post_id, 'wmvp-migrated', time() ); } return $sections; } /** * Create a Playlist in the WMVP plugin */ function create_playlist( $videos_list, $title = false ){ $playlist = array( 'post_title' => $title, 'post_status' => 'publish', 'post_type' => WMVP_POST_SLUG, ); $playlist_id = wp_insert_post( $playlist ); // Playlist inserted successfully if( is_wp_error( $playlist_id ) ) { return false; } // Insert the Videos update_post_meta( $playlist_id, 'wmvp-list-type', 'manual' ); $videos = array(); $videos_list = explode( PHP_EOL, $videos_list ); if( ! empty( $videos_list ) && is_array( $videos_list ) ){ foreach( $videos_list as $video_url ){ $videos[] = array( 'url' => $video_url, ); } } if( ! empty( $videos ) ){ update_post_meta( $playlist_id, 'wmvp_videos_manual', apply_filters( 'WMVP/Videos/Post/List', $videos ) ); return $playlist_id; } return false; } /** * Migrate the API Key */ function migrate_api_key(){ $key = tie_get_option( 'api_youtube' ); if( ! empty( $key ) && ! get_option( 'wmvp_youtube_key' ) ){ update_option( 'wmvp_youtube_key', $key, false ); } } } // Instantiate the class new TIELABS_WMVP(); }nction get_script_data() { $user_id = $this->user_helper->get_current_user_id(); return [ 'hasConsent' => $this->user_helper->get_meta( $user_id, '_yoast_wpseo_ai_consent', true ), 'productSubscriptions' => $this->get_product_subscriptions(), 'hasSeenIntroduction' => $this->introductions_seen_repository->is_introduction_seen( $user_id, AI_Fix_Assessments_Upsell::ID ), 'requestTimeout' => $this->api_client->get_request_timeout(), 'isFreeSparks' => $this->options_helper->get( 'ai_free_sparks_started_on', null ) !== null, ]; } /** * Enqueues the required assets. * * @return void */ public function enqueue_assets() { $this->asset_manager->enqueue_script( 'ai-generator' ); $this->asset_manager->localize_script( 'ai-generator', 'wpseoAiGenerator', $this->get_script_data() ); $this->asset_manager->enqueue_style( 'ai-generator' ); } } _Page_Integration::PAGE ) ) . '">', 'Yoast SEO Premium', '' ); echo ''; exit; } /** * Activates an addon. * * @param string $addon_slug The addon to activate. * * @return array The output of the activation. */ public function activate_addon( $addon_slug ) { $output = []; try { $this->addon_activate_action->activate_addon( $addon_slug ); /* Translators: %s expands to the name of the addon. */ $output[] = \__( 'Addon activated.', 'wordpress-seo' ); } catch ( User_Cannot_Activate_Plugins_Exception $exception ) { $output[] = \__( 'You are not allowed to activate plugins.', 'wordpress-seo' ); } catch ( Addon_Activation_Error_Exception $exception ) { $output[] = \sprintf( /* Translators:%s expands to the error message. */ \__( 'Addon activation failed because of an error: %s.', 'wordpress-seo' ), $exception->getMessage() ); } return $output; } /** * Installs an addon. * * @param string $addon_slug The slug of the addon to install. * @param string $addon_download The download URL of the addon. * * @return array The installation success state and the output of the installation. */ public function install_addon( $addon_slug, $addon_download ) { $installed = false; $output = []; try { $installed = $this->addon_install_action->install_addon( $addon_slug, $addon_download ); } catch ( Addon_Already_Installed_Exception $exception ) { /* Translators: %s expands to the name of the addon. */ $output[] = \__( 'Addon installed.', 'wordpress-seo' ); $installed = true; } catch ( User_Cannot_Install_Plugins_Exception $exception ) { $output[] = \__( 'You are not allowed to install plugins.', 'wordpress-seo' ); } catch ( Addon_Installation_Error_Exception $exception ) { $output[] = \sprintf( /* Translators: %s expands to the error message. */ \__( 'Addon installation failed because of an error: %s.', 'wordpress-seo' ), $exception->getMessage() ); } return [ $installed, $output ]; } } all_actions( 'user_admin_notices' ); \remove_all_actions( 'network_admin_notices' ); \remove_all_actions( 'all_admin_notices' ); } /** * Checks whether the user is coming from the tools page. * * @return bool */ public function is_coming_from_tools_page() { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Reason: We are simply checking against a set value. return isset( $_GET['from_tools'] ) && $_GET['from_tools'] === '1'; } }
Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/themes/jannah/framework/plugins/class-tielabs-wmvp.php:1) in /htdocs/wp-includes/pluggable.php on line 1450

Warning: Cannot modify header information - headers already sent by (output started at /htdocs/wp-content/themes/jannah/framework/plugins/class-tielabs-wmvp.php:1) in /htdocs/wp-includes/pluggable.php on line 1453