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.../httpdocs/wp-conte.../plugins/embedpre.../EmbedPre.../Ends/Back/Settings/template...
File: wistia.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* Wistia Settings page
[2] Fix | Delete
* all undefined vars comes from EmbedPressSettings.php or sometime from main-template.php
[3] Fix | Delete
* */
[4] Fix | Delete
$wis_settings = get_option( EMBEDPRESS_PLG_NAME.':wistia' );
[5] Fix | Delete
$start_time = isset($wis_settings['start_time']) ? sanitize_text_field($wis_settings['start_time']) : 0;
[6] Fix | Delete
$autoplay = isset($wis_settings['autoplay']) ? sanitize_text_field($wis_settings['autoplay']) : '';
[7] Fix | Delete
$display_fullscreen_button = isset($wis_settings['display_fullscreen_button']) ? intval($wis_settings['display_fullscreen_button']) : 1;
[8] Fix | Delete
$display_playbar = isset($wis_settings['display_playbar']) ? intval($wis_settings['display_playbar']) : 1;
[9] Fix | Delete
$small_play_button = isset($wis_settings['small_play_button']) ? intval($wis_settings['small_play_button']) : 1;
[10] Fix | Delete
$display_volume_control = isset($wis_settings['display_volume_control']) ? intval($wis_settings['display_volume_control']) : 1;
[11] Fix | Delete
$volume = isset($wis_settings['volume']) ? intval($wis_settings['volume']) : 100;
[12] Fix | Delete
$player_color = isset($wis_settings['player_color']) ? esc_attr($wis_settings['player_color']) : '#5b4e96'; //@todo; confirm #00adef
[13] Fix | Delete
$plugin_resumable = isset($wis_settings['plugin_resumable']) ? sanitize_text_field($wis_settings['plugin_resumable']) : '';
[14] Fix | Delete
$plugin_captions = isset($wis_settings['plugin_captions']) ? sanitize_text_field($wis_settings['plugin_captions']) : '';
[15] Fix | Delete
$plugin_captions_default = isset($wis_settings['plugin_captions_default']) ? sanitize_text_field($wis_settings['plugin_captions_default']) : '';
[16] Fix | Delete
$plugin_focus = isset($wis_settings['plugin_focus']) ? sanitize_text_field($wis_settings['plugin_focus']) : '';
[17] Fix | Delete
$plugin_rewind = isset($wis_settings['plugin_rewind']) ? sanitize_text_field($wis_settings['plugin_rewind']) : '';
[18] Fix | Delete
$plugin_rewind_time = isset($wis_settings['plugin_rewind_time']) ? intval($wis_settings['plugin_rewind_time']) : 10;
[19] Fix | Delete
[20] Fix | Delete
?>
[21] Fix | Delete
[22] Fix | Delete
<div class="embedpress__settings background__white radius-25 p40">
[23] Fix | Delete
<h3><?php esc_html_e( "Wistia Settings", "embedpress" ); ?></h3>
[24] Fix | Delete
<div class="embedpress__settings__form">
[25] Fix | Delete
<form action="" method="post" class="embedpress-settings-form" >
[26] Fix | Delete
<?php
[27] Fix | Delete
do_action( 'embedpress_before_wistia_settings_fields');
[28] Fix | Delete
echo $nonce_field ;
[29] Fix | Delete
?>
[30] Fix | Delete
<div class="form__group">
[31] Fix | Delete
<p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
[32] Fix | Delete
<div class="form__control__wrap">
[33] 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); ?>" >
[34] Fix | Delete
<p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
[35] Fix | Delete
</div>
[36] Fix | Delete
[37] Fix | Delete
</div>
[38] Fix | Delete
<div class="form__group">
[39] Fix | Delete
<p class="form__label"><?php esc_html_e( "Fullscreen Button", "embedpress" ); ?></p>
[40] Fix | Delete
<div class="form__control__wrap">
[41] Fix | Delete
<div data-default="<?php echo esc_attr( $display_fullscreen_button ); ?>" data-value="<?php echo esc_attr( $display_fullscreen_button ); ?>" class="input__flex input__radio_wrap">
[42] Fix | Delete
<label class="input__radio">
[43] Fix | Delete
<input type="radio" value="" name="display_fullscreen_button" <?php checked( '', $display_fullscreen_button); ?>>
[44] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[45] Fix | Delete
</label>
[46] Fix | Delete
<label class="input__radio">
[47] Fix | Delete
<input type="radio" value="1" name="display_fullscreen_button" <?php checked( '1', $display_fullscreen_button); ?>>
[48] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[49] Fix | Delete
</label>
[50] Fix | Delete
</div>
[51] Fix | Delete
<p><?php esc_html_e( "Indicates whether the fullscreen button is visible.", "embedpress" ); ?></p>
[52] Fix | Delete
</div>
[53] Fix | Delete
</div>
[54] Fix | Delete
<div class="form__group">
[55] Fix | Delete
<p class="form__label"><?php esc_html_e( "Playbar", "embedpress" );?> </p>
[56] Fix | Delete
<div class="form__control__wrap">
[57] Fix | Delete
<div data-default="<?php echo esc_attr( $display_playbar ); ?>" data-value="<?php echo esc_attr( $display_playbar ); ?>" class="input__flex input__radio_wrap ">
[58] Fix | Delete
<label class="input__radio">
[59] Fix | Delete
<input type="radio" value="" name="display_playbar" <?php checked( '', $display_playbar); ?>>
[60] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[61] Fix | Delete
</label>
[62] Fix | Delete
<label class="input__radio">
[63] Fix | Delete
<input type="radio" value="1" name="display_playbar" <?php checked( '1', $display_playbar); ?>>
[64] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[65] Fix | Delete
</label>
[66] Fix | Delete
</div>
[67] Fix | Delete
<p><?php esc_html_e( "Indicates whether the playbar is visible.", "embedpress" ); ?></p>
[68] Fix | Delete
</div>
[69] Fix | Delete
</div>
[70] Fix | Delete
<div class="form__group">
[71] Fix | Delete
<p class="form__label"><?php esc_html_e( "Small Play Button", "embedpress" ); ?></p>
[72] Fix | Delete
<div class="form__control__wrap">
[73] Fix | Delete
<div data-default="<?php echo esc_attr( $small_play_button ); ?>" data-value="<?php echo esc_attr( $small_play_button ); ?>" class="input__flex input__radio_wrap">
[74] Fix | Delete
<label class="input__radio">
[75] Fix | Delete
<input type="radio" value="" name="small_play_button" <?php checked( '', $small_play_button); ?>>
[76] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[77] Fix | Delete
</label>
[78] Fix | Delete
<label class="input__radio">
[79] Fix | Delete
<input type="radio" value="1" name="small_play_button" <?php checked( '1', $small_play_button); ?>>
[80] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[81] Fix | Delete
</label>
[82] Fix | Delete
</div>
[83] Fix | Delete
<p><?php esc_html_e( "Indicates whether the small play button is visible on the bottom left.", "embedpress" ); ?></p>
[84] Fix | Delete
</div>
[85] Fix | Delete
</div>
[86] Fix | Delete
<div class="form__group">
[87] Fix | Delete
<p class="form__label"><?php esc_html_e( "Volume Control", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[88] Fix | Delete
<div class="form__control__wrap">
[89] Fix | Delete
<div data-default="<?php echo esc_attr( $display_volume_control ); ?>" data-value="<?php echo esc_attr( $display_volume_control ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[90] Fix | Delete
<label class="input__radio">
[91] Fix | Delete
<input type="radio" value="" name="display_volume_control" <?php echo $pro_active ? '' : 'disabled'; checked( '', $display_volume_control); ?>>
[92] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[93] Fix | Delete
</label>
[94] Fix | Delete
<label class="input__radio">
[95] Fix | Delete
<input type="radio" value="1" name="display_volume_control" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $display_volume_control); ?>>
[96] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[97] Fix | Delete
</label>
[98] Fix | Delete
</div>
[99] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[100] Fix | Delete
<p><?php esc_html_e( "Indicates whether the volume control is visible.", "embedpress" ); ?></p>
[101] Fix | Delete
</div>
[102] Fix | Delete
</div>
[103] Fix | Delete
[104] Fix | Delete
<div class="form__group">
[105] Fix | Delete
<p class="form__label"><?php esc_html_e( "Volume", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[106] Fix | Delete
<div class="form__control__wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[107] Fix | Delete
<input type="number" max="100" min="0" class="form__control" data-default="<?php echo esc_attr( $volume ); ?>" value="<?php echo esc_attr( $volume ); ?>" name="volume" <?php echo $pro_active ? '' : 'disabled'; ?>>
[108] Fix | Delete
[109] Fix | Delete
<p><?php esc_html_e( "Start the video with a custom volume level. Set values between 0 and 100.", "embedpress" ); ?></p>
[110] Fix | Delete
</div>
[111] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[112] Fix | Delete
[113] Fix | Delete
</div>
[114] Fix | Delete
[115] Fix | Delete
<div class="form__group">
[116] Fix | Delete
<p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
[117] Fix | Delete
<div class="form__control__wrap">
[118] Fix | Delete
<div data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>" class="input__flex input__radio_wrap">
[119] Fix | Delete
<label class="input__radio">
[120] Fix | Delete
<input type="radio" value="" name="autoplay" <?php checked( '', $autoplay);?>>
[121] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[122] Fix | Delete
</label>
[123] Fix | Delete
<label class="input__radio">
[124] Fix | Delete
<input type="radio" value="1" name="autoplay" <?php checked( '1', $autoplay);?>>
[125] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[126] Fix | Delete
</label>
[127] Fix | Delete
</div>
[128] Fix | Delete
<p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
[129] Fix | Delete
</div>
[130] Fix | Delete
</div>
[131] Fix | Delete
[132] Fix | Delete
<div class="form__group">
[133] Fix | Delete
<p class="form__label"><?php esc_html_e( "Color", "embedpress" ); ?></p>
[134] Fix | Delete
<div class="form__control__wrap">
[135] Fix | Delete
<input type="text" class="ep-color-picker" name="player_color" data-default="<?php echo esc_attr( $player_color ); ?>" value="<?php echo esc_attr( $player_color ); ?>">
[136] Fix | Delete
<p><?php esc_html_e( "Specify the color of the video controls.", "embedpress" ); ?></p>
[137] Fix | Delete
</div>
[138] Fix | Delete
</div>
[139] Fix | Delete
[140] Fix | Delete
<div class="form__group">
[141] Fix | Delete
<p class="form__label"><?php esc_html_e( "Plugin: Resumable", "embedpress" ); ?></p>
[142] Fix | Delete
<div class="form__control__wrap">
[143] Fix | Delete
<div data-default="<?php echo esc_attr( $plugin_resumable ); ?>" data-value="<?php echo esc_attr( $plugin_resumable ); ?>" class="input__flex input__radio_wrap">
[144] Fix | Delete
<label class="input__radio">
[145] Fix | Delete
<input type="radio" value="" name="plugin_resumable" <?php checked( '', $plugin_resumable);?>>
[146] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[147] Fix | Delete
</label>
[148] Fix | Delete
<label class="input__radio">
[149] Fix | Delete
<input type="radio" value="1" name="plugin_resumable" <?php checked( '1', $plugin_resumable);?>>
[150] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[151] Fix | Delete
</label>
[152] Fix | Delete
</div>
[153] Fix | Delete
<p><?php esc_html_e( "Indicates whether the Resumable plugin is active. Allow to resume the video or start from the beginning.", "embedpress" ); ?></p>
[154] Fix | Delete
</div>
[155] Fix | Delete
</div>
[156] Fix | Delete
<div class="form__group">
[157] Fix | Delete
<p class="form__label"><?php esc_html_e( "Plugin: Captions", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[158] Fix | Delete
<div class="form__control__wrap">
[159] Fix | Delete
<div data-default="<?php echo esc_attr( $plugin_captions ); ?>" data-value="<?php echo esc_attr( $plugin_captions ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[160] Fix | Delete
<label class="input__radio">
[161] Fix | Delete
<input type="radio" value="" name="plugin_captions" <?php echo $pro_active ? '' : 'disabled'; checked( '', $plugin_captions); ?>>
[162] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[163] Fix | Delete
</label>
[164] Fix | Delete
<label class="input__radio">
[165] Fix | Delete
<input type="radio" value="1" name="plugin_captions" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $plugin_captions); ?>>
[166] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[167] Fix | Delete
</label>
[168] Fix | Delete
</div>
[169] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[170] Fix | Delete
<p><?php esc_html_e( "Indicates whether the Captions plugin is active.", "embedpress" ); ?></p>
[171] Fix | Delete
</div>
[172] Fix | Delete
</div>
[173] Fix | Delete
<div class="form__group">
[174] Fix | Delete
<p class="form__label"><?php esc_html_e( "Captions Enabled By Default", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?> </p>
[175] Fix | Delete
<div class="form__control__wrap">
[176] Fix | Delete
<div data-default="<?php echo esc_attr( $plugin_captions_default ); ?>" data-value="<?php echo esc_attr( $plugin_captions_default ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[177] Fix | Delete
<label class="input__radio">
[178] Fix | Delete
<input type="radio" value="" name="plugin_captions_default" <?php echo $pro_active ? '' : 'disabled'; checked( '', $plugin_captions_default); ?>>
[179] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[180] Fix | Delete
</label>
[181] Fix | Delete
<label class="input__radio">
[182] Fix | Delete
<input type="radio" value="1" name="plugin_captions_default" <?php echo $pro_active ? '' : 'disabled'; checked( '1', $plugin_captions_default); ?>>
[183] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[184] Fix | Delete
</label>
[185] Fix | Delete
</div>
[186] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[187] Fix | Delete
<p><?php esc_html_e( "Indicates whether the Captions are enabled by default.", "embedpress" ); ?></p>
[188] Fix | Delete
</div>
[189] Fix | Delete
</div>
[190] Fix | Delete
<div class="form__group">
[191] Fix | Delete
<p class="form__label">Plugin: Focus</p>
[192] Fix | Delete
<div class="form__control__wrap">
[193] Fix | Delete
<div data-default="<?php echo esc_attr( $plugin_focus ); ?>" data-value="<?php echo esc_attr( $plugin_focus ); ?>" class="input__flex input__radio_wrap">
[194] Fix | Delete
<label class="input__radio">
[195] Fix | Delete
<input type="radio" value="" name="plugin_focus" <?php checked( '', $plugin_focus); ?>>
[196] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[197] Fix | Delete
</label>
[198] Fix | Delete
<label class="input__radio">
[199] Fix | Delete
<input type="radio" value="1" name="plugin_focus" <?php checked( '1', $plugin_focus); ?>>
[200] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[201] Fix | Delete
</label>
[202] Fix | Delete
</div>
[203] Fix | Delete
<p><?php esc_html_e( "Indicates whether the Focus plugin is active.", "embedpress" ); ?></p>
[204] Fix | Delete
</div>
[205] Fix | Delete
</div>
[206] Fix | Delete
<div class="form__group">
[207] Fix | Delete
<p class="form__label"><?php esc_html_e( "Plugin: Rewind", "embedpress" );?> </p>
[208] Fix | Delete
<div class="form__control__wrap">
[209] Fix | Delete
<div data-default="<?php echo esc_attr( $plugin_rewind ); ?>" data-value="<?php echo esc_attr( $plugin_rewind ); ?>" class="input__flex input__radio_wrap">
[210] Fix | Delete
<label class="input__radio">
[211] Fix | Delete
<input type="radio" value="" name="plugin_rewind" <?php checked( '', $plugin_rewind); ?>>
[212] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[213] Fix | Delete
</label>
[214] Fix | Delete
<label class="input__radio">
[215] Fix | Delete
<input type="radio" value="1" name="plugin_rewind" <?php checked( '1', $plugin_rewind); ?>>
[216] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[217] Fix | Delete
</label>
[218] Fix | Delete
</div>
[219] Fix | Delete
<p><?php esc_html_e( "Indicates whether the Rewind plugin is active.", "embedpress" ); ?></p>
[220] Fix | Delete
</div>
[221] Fix | Delete
</div>
[222] Fix | Delete
<div class="form__group">
[223] Fix | Delete
<p class="form__label"><?php esc_html_e( "Rewind Time (In Seconds)", "embedpress" ); ?> </p>
[224] Fix | Delete
<div class="form__control__wrap">
[225] Fix | Delete
<input type="number" class="form__control" data-default="<?php echo esc_attr( $plugin_rewind_time );?>" value="<?php echo esc_attr( $plugin_rewind_time );?>" name="plugin_rewind_time" >
[226] Fix | Delete
<p><?php esc_html_e( "The amount of time to rewind, in seconds.", "embedpress" ); ?></p>
[227] Fix | Delete
</div>
[228] Fix | Delete
</div>
[229] Fix | Delete
<?php do_action( 'embedpress_after_wistia_settings_fields'); ?>
[230] Fix | Delete
<button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="wistia"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
[231] Fix | Delete
</form>
[232] Fix | Delete
</div>
[233] Fix | Delete
</div>
[234] Fix | Delete
[235] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function