Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../public_h.../wp-conte.../plugins/embedpre.../EmbedPre.../Ends/Back/Settings/template...
File: youtube.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* YouTube Settings page
[2] Fix | Delete
* All undefined vars comes from 'render_settings_page' method
[3] Fix | Delete
* */
[4] Fix | Delete
$yt_settings = get_option( EMBEDPRESS_PLG_NAME.':youtube');
[5] Fix | Delete
$api_key = isset( $yt_settings['api_key']) ? $yt_settings['api_key'] : '';
[6] Fix | Delete
$pagesize = isset( $yt_settings['pagesize']) ? $yt_settings['pagesize'] : '';
[7] Fix | Delete
$start_time = isset( $yt_settings['start_time']) ? $yt_settings['start_time'] : 0;
[8] Fix | Delete
$end_time = isset( $yt_settings['end_time']) ? $yt_settings['end_time'] : 0;
[9] Fix | Delete
$autoplay = isset( $yt_settings['autoplay']) ? $yt_settings['autoplay'] : '';
[10] Fix | Delete
$controls = isset( $yt_settings['controls']) ? $yt_settings['controls'] : 1;
[11] Fix | Delete
$fs = isset( $yt_settings['fs']) ? $yt_settings['fs'] : 1;
[12] Fix | Delete
$iv_load_policy = isset( $yt_settings['iv_load_policy']) ? $yt_settings['iv_load_policy'] : 1;
[13] Fix | Delete
$color = isset( $yt_settings['color']) ? $yt_settings['color'] : 'red';
[14] Fix | Delete
$rel = isset( $yt_settings['rel']) ? $yt_settings['rel'] : 1;
[15] Fix | Delete
// pro
[16] Fix | Delete
[17] Fix | Delete
$cc_load_policy = isset( $yt_settings['cc_load_policy']) ? $yt_settings['cc_load_policy'] : '';
[18] Fix | Delete
$modestbranding = isset( $yt_settings['modestbranding']) ? $yt_settings['modestbranding'] : 0;
[19] Fix | Delete
$yt_lc_show = isset( $yt_settings['yt_lc_show']) ? $yt_settings['yt_lc_show'] : '';
[20] Fix | Delete
// Subscription - Pro
[21] Fix | Delete
$yt_sub_channel = isset( $yt_settings['yt_sub_channel']) ? $yt_settings['yt_sub_channel'] : '';
[22] Fix | Delete
$yt_sub_text = isset( $yt_settings['yt_sub_text']) ? $yt_settings['yt_sub_text'] : '';
[23] Fix | Delete
$yt_sub_layout = isset( $yt_settings['yt_sub_layout']) ? $yt_settings['yt_sub_layout'] : '';
[24] Fix | Delete
$yt_sub_theme = isset( $yt_settings['yt_sub_theme']) ? $yt_settings['yt_sub_theme'] : '';
[25] Fix | Delete
$yt_sub_count = isset( $yt_settings['yt_sub_count']) ? $yt_settings['yt_sub_count'] : '';
[26] Fix | Delete
[27] Fix | Delete
?>
[28] Fix | Delete
[29] Fix | Delete
<div class="embedpress__settings background__white radius-25 p40">
[30] Fix | Delete
<h3><?php esc_html_e( "YouTube Settings", "embedpress" ); ?></h3>
[31] Fix | Delete
<div class="embedpress__settings__form">
[32] Fix | Delete
<form action="" method="post" class="embedpress-settings-form" >
[33] Fix | Delete
<?php
[34] Fix | Delete
do_action( 'embedpress_before_youtube_settings_fields');
[35] Fix | Delete
echo $nonce_field ; ?>
[36] Fix | Delete
<div class="form__group">
[37] Fix | Delete
<p class="form__label" ><?php esc_html_e( "YouTube API Key", "embedpress" ); ?> </p>
[38] Fix | Delete
<div class="form__control__wrap">
[39] Fix | Delete
<input type="text" name="api_key" id="api_key" class="form__control" data-default="<?php echo esc_attr( $api_key); ?>" value="<?php echo esc_attr( $api_key); ?>" placeholder="<?php esc_html_e( "Enter API key", "embedpress" ); ?>" >
[40] Fix | Delete
<p><?php echo sprintf(__( "Insert your YouTube API key. To obtain your API key, refer to this <a class='ep-link' href='%s' target='_blank'>documentation</a>.", "embedpress" ), 'https://embedpress.com/docs/retrieve-youtube-api-key/'); ?></p>
[41] Fix | Delete
</div>
[42] Fix | Delete
[43] Fix | Delete
</div>
[44] Fix | Delete
<div class="form__group">
[45] Fix | Delete
<p class="form__label" ><?php esc_html_e( "Video Per Page", "embedpress" ); ?> </p>
[46] Fix | Delete
<div class="form__control__wrap">
[47] Fix | Delete
<input type="number" min="1" max="50" name="pagesize" id="pagesize" class="form__control" data-default="<?php echo esc_attr( $pagesize); ?>" value="<?php echo esc_attr( $pagesize); ?>">
[48] Fix | Delete
<p><?php esc_html_e( "Specify the number of videos you wish to show on each page.", "embedpress" ); ?></p>
[49] Fix | Delete
<p class="ep-note"><?php esc_html_e( "Note: This option takes effect only when a YouTube channel is embedded.", "embedpress" ); ?></p>
[50] Fix | Delete
</div>
[51] Fix | Delete
[52] Fix | Delete
</div>
[53] Fix | Delete
<div class="form__group">
[54] Fix | Delete
<p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
[55] Fix | Delete
<div class="form__control__wrap">
[56] Fix | Delete
<input type="number" name="start_time" id="start_time" class="form__control" data-default="<?php echo esc_attr( $start_time); ?>" value="<?php echo esc_attr( $start_time); ?>" >
[57] Fix | Delete
<p><?php esc_html_e( "You can put a custom time in seconds to start the video. Example: 500", "embedpress" ); ?></p>
[58] Fix | Delete
</div>
[59] Fix | Delete
[60] Fix | Delete
</div>
[61] Fix | Delete
<div class="form__group">
[62] Fix | Delete
<p class="form__label" ><?php esc_html_e( "End Time (In Seconds)", "embedpress" ); ?> </p>
[63] Fix | Delete
<div class="form__control__wrap">
[64] Fix | Delete
<input type="number" name="end_time" id="end_time" class="form__control" data-default="<?php echo esc_attr( $end_time); ?>" value="<?php echo esc_attr( $end_time); ?>" >
[65] Fix | Delete
<p><?php esc_html_e( "You can put a custom time in seconds to end the video.", "embedpress" ); ?></p>
[66] Fix | Delete
</div>
[67] Fix | Delete
[68] Fix | Delete
</div>
[69] Fix | Delete
<div class="form__group">
[70] Fix | Delete
<p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
[71] Fix | Delete
<div class="form__control__wrap">
[72] Fix | Delete
<div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>">
[73] Fix | Delete
<label class="input__radio">
[74] Fix | Delete
<input type="radio" name="autoplay" value="" <?php checked( '', $autoplay); ?>>
[75] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[76] Fix | Delete
</label>
[77] Fix | Delete
<label class="input__radio">
[78] Fix | Delete
<input type="radio" name="autoplay" value="1" <?php checked( '1', $autoplay); ?>>
[79] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[80] Fix | Delete
</label>
[81] Fix | Delete
</div>
[82] Fix | Delete
<p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
[83] Fix | Delete
</div>
[84] Fix | Delete
</div>
[85] Fix | Delete
<div class="form__group">
[86] Fix | Delete
<label class="form__label" for="color"><?php esc_html_e( "Progress Bar Color", "embedpress" ); ?></label>
[87] Fix | Delete
<div class="form__control__wrap">
[88] Fix | Delete
<div class="embedpress__select ">
[89] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[90] Fix | Delete
<select name="color" id="color" data-default="<?php echo esc_attr( $color ); ?>">
[91] Fix | Delete
<option value="red" <?php selected( 'red', $color); ?> ><?php esc_html_e( "Red", "embedpress" ); ?></option>
[92] Fix | Delete
<option value="white" <?php selected( 'white', $color); ?> ><?php esc_html_e( "White", "embedpress" ); ?></option>
[93] Fix | Delete
</select>
[94] Fix | Delete
</div>
[95] Fix | Delete
<p><?php printf( esc_html__( "Specifies the color that will be used in the player's video progress bar to highlight the amount of the video that the viewer has already seen. %s", 'embedpress'), '<br>'); ?></p>
[96] Fix | Delete
<p class="ep-note"><?php esc_html_e( "Note: Setting the color to white will disable the Modest Branding option (causing a YouTube logo to be displayed in the control bar)." ); ?></p>
[97] Fix | Delete
</div>
[98] Fix | Delete
</div>
[99] Fix | Delete
<div class="form__group">
[100] Fix | Delete
<p class="form__label"><?php esc_html_e( "Force Closed Captions", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p>
[101] Fix | Delete
<div class="form__control__wrap">
[102] Fix | Delete
<div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $cc_load_policy ); ?>" data-value="<?php echo esc_attr( $cc_load_policy ); ?>">
[103] Fix | Delete
<label class="input__radio">
[104] Fix | Delete
<input type="radio" name="cc_load_policy" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $cc_load_policy); ?>>
[105] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[106] Fix | Delete
</label>
[107] Fix | Delete
<label class="input__radio">
[108] Fix | Delete
<input type="radio" name="cc_load_policy" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $cc_load_policy);?>>
[109] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[110] Fix | Delete
</label>
[111] Fix | Delete
</div>
[112] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[113] Fix | Delete
[114] Fix | Delete
<p><?php printf( esc_html__( "Setting this option to %s causes closed captions to be shown by default, even if the user has turned captions off. This will be based on user preference otherwise.", "embedpress" ), '<strong>Yes</strong>'); ?></p>
[115] Fix | Delete
</div>
[116] Fix | Delete
</div>
[117] Fix | Delete
<div class="form__group">
[118] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Controls", "embedpress" ); ?></p>
[119] Fix | Delete
<div class="form__control__wrap">
[120] Fix | Delete
<div class="embedpress__select">
[121] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[122] Fix | Delete
<select name="controls" data-default="<?php echo esc_attr( $controls); ?>">
[123] Fix | Delete
<option value="1" <?php selected( '1', $controls); ?>><?php esc_html_e( 'Display immediately', 'embedpress'); ?></option>
[124] Fix | Delete
<option value="2" <?php selected( '2', $controls); ?>><?php esc_html_e( 'Display after user initiation', 'embedpress'); ?></option>
[125] Fix | Delete
<option value="0" <?php selected( '0', $controls); ?>><?php esc_html_e( 'Hide controls', 'embedpress'); ?></option>
[126] Fix | Delete
</select>
[127] Fix | Delete
</div>
[128] Fix | Delete
<p><?php esc_html_e( 'Indicates whether the video player controls are displayed.', 'embedpress'); ?> </p>
[129] Fix | Delete
</div>
[130] Fix | Delete
</div>
[131] Fix | Delete
<div class="form__group">
[132] Fix | Delete
<p class="form__label"><?php esc_html_e( "Enable Fullscreen Button", "embedpress" ); ?></p>
[133] Fix | Delete
<div class="form__control__wrap">
[134] Fix | Delete
<div class="input__flex input__radio_wrap" data-default="<?php echo esc_attr( $fs ); ?>" data-value="<?php echo esc_attr( $fs ); ?>">
[135] Fix | Delete
<label class="input__radio">
[136] Fix | Delete
<input type="radio" name="fs" value="" <?php checked( '', $fs); ?> >
[137] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[138] Fix | Delete
</label>
[139] Fix | Delete
<label class="input__radio">
[140] Fix | Delete
<input type="radio" name="fs" value="1" <?php checked( '1', $fs); ?>>
[141] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[142] Fix | Delete
</label>
[143] Fix | Delete
</div>
[144] Fix | Delete
<p><?php esc_html_e( "Indicates whether the fullscreen button is enabled.", "embedpress" ); ?></p>
[145] Fix | Delete
</div>
[146] Fix | Delete
</div>
[147] Fix | Delete
<div class="form__group">
[148] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Video Annotations", "embedpress" ); ?></p>
[149] Fix | Delete
<div class="form__control__wrap">
[150] Fix | Delete
<div class="embedpress__select">
[151] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[152] Fix | Delete
<select name="iv_load_policy" data-default="<?php echo esc_attr( $iv_load_policy ); ?>">
[153] Fix | Delete
<option value="1" <?php selected( '1', $iv_load_policy); ?>><?php esc_html_e( "Show", "embedpress" ); ?></option>
[154] Fix | Delete
<option value="3" <?php selected( '3', $iv_load_policy); ?>><?php esc_html_e( "Hide", "embedpress" ); ?></option>
[155] Fix | Delete
</select>
[156] Fix | Delete
</div>
[157] Fix | Delete
<p><?php esc_html_e( "Indicates whether video annotations are displayed.", "embedpress" ); ?></p>
[158] Fix | Delete
</div>
[159] Fix | Delete
</div>
[160] Fix | Delete
<div class="form__group">
[161] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Related Videos", "embedpress" ); ?></p>
[162] Fix | Delete
<div class="form__control__wrap">
[163] Fix | Delete
<div class="embedpress__select">
[164] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[165] Fix | Delete
<select name="rel" data-default="<?php echo esc_attr( $rel); ?>">
[166] Fix | Delete
<option value="" <?php selected( '', $rel); ?>><?php esc_html_e( "From the same channel of the video", "embedpress" ); ?></option>
[167] Fix | Delete
<option value="1" <?php selected( '1', $rel); ?>><?php esc_html_e( "Based on User's watch history", "embedpress" ); ?></option>
[168] Fix | Delete
</select>
[169] Fix | Delete
</div>
[170] Fix | Delete
<p><?php esc_html_e( "Indicates how the player should show related videos when playback of the video pauses or ends.", "embedpress" ); ?></p>
[171] Fix | Delete
</div>
[172] Fix | Delete
</div>
[173] Fix | Delete
[174] Fix | Delete
[175] Fix | Delete
<div class="form__group">
[176] Fix | Delete
<p class="form__label"><?php esc_html_e( "Modest Branding", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
[177] Fix | Delete
<div class="form__control__wrap">
[178] Fix | Delete
<div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
[179] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[180] Fix | Delete
<select name="modestbranding" data-default="<?php echo esc_attr( $modestbranding); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
[181] Fix | Delete
<option value="1" <?php selected( '1', $modestbranding); ?>><?php esc_html_e( "Hide", "embedpress" ); ?></option>
[182] Fix | Delete
<option value="0" <?php selected( '0', $modestbranding); ?>><?php esc_html_e( "Show", "embedpress" ); ?></option>
[183] Fix | Delete
</select>
[184] Fix | Delete
</div>
[185] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[186] Fix | Delete
[187] Fix | Delete
<p><?php esc_html_e( "Indicates whether the player should display a YouTube logo in the control bar.", "embedpress" ); ?></p>
[188] Fix | Delete
</div>
[189] Fix | Delete
</div>
[190] Fix | Delete
[191] Fix | Delete
<!-- Live Chat-->
[192] Fix | Delete
<div class="form__group">
[193] Fix | Delete
<p class="form__label"><?php esc_html_e( " Live Chat", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p>
[194] Fix | Delete
<div class="form__control__wrap">
[195] Fix | Delete
<div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $yt_lc_show ); ?>" data-value="<?php echo esc_attr( $yt_lc_show ); ?>">
[196] Fix | Delete
<label class="input__radio">
[197] Fix | Delete
<input type="radio" name="yt_lc_show" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $yt_lc_show); ?>>
[198] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[199] Fix | Delete
</label>
[200] Fix | Delete
<label class="input__radio">
[201] Fix | Delete
<input type="radio" name="yt_lc_show" value="yes" <?php echo !$pro_active ? 'disabled ' : ''; checked( 'yes', $yt_lc_show);?>>
[202] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[203] Fix | Delete
</label>
[204] Fix | Delete
</div>
[205] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[206] Fix | Delete
[207] Fix | Delete
<p><?php printf( esc_html__( "Enabling this option will show chat on all YouTube videos. However, YouTube Live Chat feature only works with Live Streaming videos.", "embedpress" ), '<strong>Yes</strong>'); ?></p>
[208] Fix | Delete
</div>
[209] Fix | Delete
</div>
[210] Fix | Delete
[211] Fix | Delete
<!-- SUBSCRIPTION-->
[212] Fix | Delete
<h3><?php esc_html_e( "Subscription Button", "embedpress" ); ?></h3>
[213] Fix | Delete
[214] Fix | Delete
<div class="form__group">
[215] Fix | Delete
<p class="form__label"><?php esc_html_e( "Channel ID", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[216] Fix | Delete
<div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[217] Fix | Delete
<input type="text" class="form__control" data-default="<?php echo esc_attr( $yt_sub_channel ); ?>" value="<?php echo esc_attr( $yt_sub_channel ); ?>" name="yt_sub_channel" <?php echo $pro_active ? '' : 'disabled'; ?> placeholder="Enter Channel ID">
[218] Fix | Delete
[219] Fix | Delete
<p><?php esc_html_e( "You can use either your channel link or channel ID to show the subscription button.", "embedpress" ); ?></p>
[220] Fix | Delete
</div>
[221] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[222] Fix | Delete
[223] Fix | Delete
</div>
[224] Fix | Delete
[225] Fix | Delete
<div class="form__group">
[226] Fix | Delete
<p class="form__label"><?php esc_html_e( "Subscription Text", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[227] Fix | Delete
<div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[228] Fix | Delete
<input type="text" class="form__control" data-default="<?php echo esc_attr( $yt_sub_text ); ?>" value="<?php echo esc_attr( $yt_sub_text ); ?>" name="yt_sub_text" <?php echo $pro_active ? '' : 'disabled'; ?> placeholder="<?php esc_attr_e( 'Eg. Don\'t miss out! Subscribe', 'embedpress' ) ?>">
[229] Fix | Delete
[230] Fix | Delete
<p><?php esc_html_e( "Optionally you can output some CTA text before the subscriber button.", "embedpress" ); ?></p>
[231] Fix | Delete
</div>
[232] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[233] Fix | Delete
[234] Fix | Delete
</div>
[235] Fix | Delete
[236] Fix | Delete
<div class="form__group">
[237] Fix | Delete
<p class="form__label"><?php esc_html_e( "Layout", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
[238] Fix | Delete
<div class="form__control__wrap">
[239] Fix | Delete
<div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
[240] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[241] Fix | Delete
<select name="yt_sub_layout" data-default="<?php echo esc_attr( $yt_sub_layout); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
[242] Fix | Delete
<option value="" <?php selected( 'default', $yt_sub_layout); ?>><?php esc_html_e( "Default", "embedpress" ); ?></option>
[243] Fix | Delete
<option value="full" <?php selected( 'full', $yt_sub_layout); ?>><?php esc_html_e( "Full", "embedpress" ); ?></option>
[244] Fix | Delete
</select>
[245] Fix | Delete
</div>
[246] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[247] Fix | Delete
[248] Fix | Delete
<p><?php esc_html_e( "Full layout shows channel image. Default layout shows only channel name and subscription button.", "embedpress" ); ?></p>
[249] Fix | Delete
</div>
[250] Fix | Delete
</div>
[251] Fix | Delete
[252] Fix | Delete
<div class="form__group">
[253] Fix | Delete
<p class="form__label"><?php esc_html_e( "Theme", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>' : ''; ?></p>
[254] Fix | Delete
<div class="form__control__wrap">
[255] Fix | Delete
<div class="embedpress__select <?php echo $pro_active ? '': 'isPro'; ?>">
[256] Fix | Delete
<span><i class="ep-icon ep-caret-down"></i></span>
[257] Fix | Delete
<select name="yt_sub_theme" data-default="<?php echo esc_attr( $yt_sub_theme); ?>" <?php echo !$pro_active ? 'disabled' : ''; ?>>
[258] Fix | Delete
<option value="" <?php selected( 'default', $yt_sub_theme); ?>><?php esc_html_e( "Default", "embedpress" ); ?></option>
[259] Fix | Delete
<option value="dark" <?php selected( 'dark', $yt_sub_theme); ?>><?php esc_html_e( "Dark", "embedpress" ); ?></option>
[260] Fix | Delete
</select>
[261] Fix | Delete
</div>
[262] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[263] Fix | Delete
[264] Fix | Delete
<p><?php esc_html_e( "Default theme is good for white background. Dark theme is good for black background.", "embedpress" ); ?></p>
[265] Fix | Delete
</div>
[266] Fix | Delete
</div>
[267] Fix | Delete
[268] Fix | Delete
<div class="form__group">
[269] Fix | Delete
<p class="form__label"><?php esc_html_e( "Show Subscriber Count", "embedpress" ); echo !$pro_active ? ' <span class="isPro">PRO</span>': ''; ?></p>
[270] Fix | Delete
<div class="form__control__wrap">
[271] Fix | Delete
<div class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>" data-default="<?php echo esc_attr( $yt_sub_count ); ?>" data-value="<?php echo esc_attr( $yt_sub_count ); ?>">
[272] Fix | Delete
<label class="input__radio">
[273] Fix | Delete
<input type="radio" name="yt_sub_count" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $yt_sub_count); ?>>
[274] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[275] Fix | Delete
</label>
[276] Fix | Delete
<label class="input__radio">
[277] Fix | Delete
<input type="radio" name="yt_sub_count" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $yt_sub_count);?>>
[278] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[279] Fix | Delete
</label>
[280] Fix | Delete
</div>
[281] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[282] Fix | Delete
</div>
[283] Fix | Delete
</div>
[284] Fix | Delete
[285] Fix | Delete
[286] Fix | Delete
<?php do_action( 'embedpress_after_youtube_settings_fields'); ?>
[287] Fix | Delete
<button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="youtube"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
[288] Fix | Delete
</form>
[289] Fix | Delete
</div>
[290] Fix | Delete
</div>
[291] Fix | Delete
[292] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function