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: vimeo.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* Vimeo Settings page
[2] Fix | Delete
* All undefined vars comes from 'render_settings_page' method
[3] Fix | Delete
* */
[4] Fix | Delete
$vm_settings = get_option( EMBEDPRESS_PLG_NAME.':vimeo' );
[5] Fix | Delete
[6] Fix | Delete
$start_time = isset($vm_settings['start_time']) ? sanitize_text_field($vm_settings['start_time']) : 0;
[7] Fix | Delete
$autoplay = isset($vm_settings['autoplay']) ? sanitize_text_field($vm_settings['autoplay']) : '';
[8] Fix | Delete
$loop = isset($vm_settings['loop']) ? sanitize_text_field($vm_settings['loop']) : '';
[9] Fix | Delete
$autopause = isset($vm_settings['autopause']) ? sanitize_text_field($vm_settings['autopause']) : '';
[10] Fix | Delete
$vimeo_dnt = isset($vm_settings['vimeo_dnt']) ? intval($vm_settings['vimeo_dnt']) : 1;
[11] Fix | Delete
$color = isset($vm_settings['color']) ? esc_attr($vm_settings['color']) : '#5b4e96';
[12] Fix | Delete
$display_title = isset($vm_settings['display_title']) ? sanitize_text_field($vm_settings['display_title']) : 1;
[13] Fix | Delete
$display_author = isset($vm_settings['display_author']) ? sanitize_text_field($vm_settings['display_author']) : 1;
[14] Fix | Delete
$display_avatar = isset($vm_settings['display_avatar']) ? sanitize_text_field($vm_settings['display_avatar']) : 1;
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="embedpress__settings background__white radius-25 p40">
[18] Fix | Delete
<h3><?php esc_html_e( "Vimeo Settings", "embedpress" ); ?></h3>
[19] Fix | Delete
<div class="embedpress__settings__form">
[20] Fix | Delete
<form action="" method="post" class="embedpress-settings-form" >
[21] Fix | Delete
<?php
[22] Fix | Delete
do_action( 'embedpress_before_vimeo_settings_fields');
[23] Fix | Delete
echo $nonce_field ; ?>
[24] Fix | Delete
<div class="form__group">
[25] Fix | Delete
<p class="form__label" ><?php esc_html_e( "Start Time (In Seconds)", "embedpress" ); ?> </p>
[26] Fix | Delete
<div class="form__control__wrap">
[27] 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); ?>" >
[28] Fix | Delete
<p><?php esc_html_e( "You can put a custom time in seconds to start video. Example: 500", "embedpress" ); ?></p>
[29] Fix | Delete
</div>
[30] Fix | Delete
[31] Fix | Delete
</div>
[32] Fix | Delete
<div class="form__group">
[33] Fix | Delete
<p class="form__label"><?php esc_html_e( "Auto Play", "embedpress" ); ?></p>
[34] Fix | Delete
<div class="form__control__wrap">
[35] Fix | Delete
<div data-default="<?php echo esc_attr( $autoplay ); ?>" data-value="<?php echo esc_attr( $autoplay ); ?>" class="input__flex input__radio_wrap">
[36] Fix | Delete
<label class="input__radio">
[37] Fix | Delete
<input type="radio" name="autoplay" value="" <?php checked( '', $autoplay); ?>>
[38] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[39] Fix | Delete
</label>
[40] Fix | Delete
<label class="input__radio">
[41] Fix | Delete
<input type="radio" name="autoplay" value="1" <?php checked( '1', $autoplay); ?>>
[42] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[43] Fix | Delete
</label>
[44] Fix | Delete
</div>
[45] Fix | Delete
<p><?php esc_html_e( "Automatically start to play the videos when the player loads.", "embedpress" ); ?></p>
[46] Fix | Delete
</div>
[47] Fix | Delete
</div>
[48] Fix | Delete
<div class="form__group">
[49] Fix | Delete
<p class="form__label"><?php esc_html_e( "Loop", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?></p>
[50] Fix | Delete
<div class="form__control__wrap">
[51] Fix | Delete
<div data-default="<?php echo esc_attr( $loop ); ?>" data-value="<?php echo esc_attr( $loop ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[52] Fix | Delete
<label class="input__radio">
[53] Fix | Delete
<input type="radio" name="loop" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $loop); ?>>
[54] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[55] Fix | Delete
</label>
[56] Fix | Delete
<label class="input__radio">
[57] Fix | Delete
<input type="radio" name="loop" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $loop); ?>>
[58] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[59] Fix | Delete
</label>
[60] Fix | Delete
</div>
[61] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[62] Fix | Delete
<p><?php esc_html_e( "Play the video again automatically when it reaches the end.", "embedpress" ); ?></p>
[63] Fix | Delete
</div>
[64] Fix | Delete
</div>
[65] Fix | Delete
<div class="form__group">
[66] Fix | Delete
<p class="form__label"><?php esc_html_e( "Auto Pause", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?></p>
[67] Fix | Delete
<div class="form__control__wrap">
[68] Fix | Delete
<div data-default="<?php echo esc_attr( $autopause ); ?>" data-value="<?php echo esc_attr( $autopause ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[69] Fix | Delete
<label class="input__radio">
[70] Fix | Delete
<input type="radio" name="autopause" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $autopause); ?>>
[71] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[72] Fix | Delete
</label>
[73] Fix | Delete
<label class="input__radio">
[74] Fix | Delete
<input type="radio" name="autopause" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $autopause); ?>>
[75] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[76] Fix | Delete
</label>
[77] Fix | Delete
</div>
[78] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[79] Fix | Delete
<p><?php esc_html_e( "Automatically stop the current video from playing when another one starts.", "embedpress" ); ?></p>
[80] Fix | Delete
</div>
[81] Fix | Delete
</div>
[82] Fix | Delete
<div class="form__group">
[83] Fix | Delete
<p class="form__label"><?php esc_html_e( "DNT", "embedpress" ); echo $pro_active ? '': ' <span class="isPro">PRO</span>'; ?></p>
[84] Fix | Delete
<div class="form__control__wrap">
[85] Fix | Delete
<div data-default="<?php echo esc_attr( $vimeo_dnt ); ?>" data-value="<?php echo esc_attr( $vimeo_dnt ); ?>" class="input__flex input__radio_wrap <?php echo $pro_active ? '': 'isPro'; ?>">
[86] Fix | Delete
<label class="input__radio">
[87] Fix | Delete
<input type="radio" name="vimeo_dnt" value="" <?php echo !$pro_active ? 'disabled ' : ''; checked( '', $vimeo_dnt); ?>>
[88] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[89] Fix | Delete
</label>
[90] Fix | Delete
<label class="input__radio">
[91] Fix | Delete
<input type="radio" name="vimeo_dnt" value="1" <?php echo !$pro_active ? 'disabled ' : ''; checked( '1', $vimeo_dnt); ?>>
[92] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[93] Fix | Delete
</label>
[94] Fix | Delete
</div>
[95] Fix | Delete
<?php if ( !$pro_active ) { include EMBEDPRESS_SETTINGS_PATH . 'templates/partials/alert-pro.php'; } ?>
[96] Fix | Delete
<p><?php esc_html_e( 'Set this parameter to "yes" will block tracking any session data, including cookies. If Auto Pause is enabled this will not work.', "embedpress" ); ?></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( "Color", "embedpress" ); ?></p>
[101] Fix | Delete
<div class="form__control__wrap">
[102] Fix | Delete
<input type="text" class="form__control ep-color-picker" name="color" value="<?php echo esc_attr( $color); ?>" data-default="<?php echo esc_attr( $color ); ?>">
[103] Fix | Delete
[104] Fix | Delete
<p><?php esc_html_e( "Specify the color of the video controls.", "embedpress" ); ?></p>
[105] Fix | Delete
</div>
[106] Fix | Delete
</div>
[107] Fix | Delete
<div class="form__group">
[108] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Title", "embedpress" ); ?></p>
[109] Fix | Delete
<div class="form__control__wrap">
[110] Fix | Delete
<div data-default="<?php echo esc_attr( $display_title ); ?>" data-value="<?php echo esc_attr( $display_title ); ?>" class="input__flex input__radio_wrap">
[111] Fix | Delete
<label class="input__radio">
[112] Fix | Delete
<input type="radio" name="display_title" value="" <?php checked( '', $display_title); ?>>
[113] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[114] Fix | Delete
</label>
[115] Fix | Delete
<label class="input__radio">
[116] Fix | Delete
<input type="radio" name="display_title" value="1" <?php checked( '1', $display_title); ?>>
[117] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[118] Fix | Delete
</label>
[119] Fix | Delete
</div>
[120] Fix | Delete
<p><?php esc_html_e( "Indicates whether the title is displayed.", "embedpress" ); ?></p>
[121] Fix | Delete
</div>
[122] Fix | Delete
</div>
[123] Fix | Delete
<div class="form__group">
[124] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Author", "embedpress" ); ?></p>
[125] Fix | Delete
<div class="form__control__wrap">
[126] Fix | Delete
<div data-default="<?php echo esc_attr( $display_author ); ?>" data-value="<?php echo esc_attr( $display_author ); ?>" class="input__flex input__radio_wrap">
[127] Fix | Delete
<label class="input__radio">
[128] Fix | Delete
<input type="radio" name="display_author" value="" <?php checked( '', $display_author); ?>>
[129] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[130] Fix | Delete
</label>
[131] Fix | Delete
<label class="input__radio">
[132] Fix | Delete
<input type="radio" name="display_author" value="1" <?php checked( '1', $display_author); ?>>
[133] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[134] Fix | Delete
</label>
[135] Fix | Delete
</div>
[136] Fix | Delete
<p><?php esc_html_e( "Indicates whether the author is displayed.", "embedpress" ); ?></p>
[137] Fix | Delete
</div>
[138] Fix | Delete
</div>
[139] Fix | Delete
<div class="form__group">
[140] Fix | Delete
<p class="form__label"><?php esc_html_e( "Display Avatar", "embedpress" );?></p>
[141] Fix | Delete
<div class="form__control__wrap">
[142] Fix | Delete
<div data-default="<?php echo esc_attr( $display_avatar ); ?>" data-value="<?php echo esc_attr( $display_avatar ); ?>" class="input__flex input__radio_wrap">
[143] Fix | Delete
<label class="input__radio">
[144] Fix | Delete
<input type="radio" name="display_avatar" value="" <?php checked( '', $display_avatar); ?>>
[145] Fix | Delete
<span><?php esc_html_e( "No", "embedpress" ); ?></span>
[146] Fix | Delete
</label>
[147] Fix | Delete
<label class="input__radio">
[148] Fix | Delete
<input type="radio" name="display_avatar" value="1" <?php checked( '1', $display_avatar); ?>>
[149] Fix | Delete
<span><?php esc_html_e( "Yes", "embedpress" ); ?></span>
[150] Fix | Delete
</label>
[151] Fix | Delete
</div>
[152] Fix | Delete
<p><?php esc_html_e( "Indicates whether the avatar is displayed.", "embedpress" ); ?></p>
[153] Fix | Delete
</div>
[154] Fix | Delete
</div>
[155] Fix | Delete
<?php do_action( 'embedpress_after_vimeo_settings_fields'); ?>
[156] Fix | Delete
<button class="button button__themeColor radius-10 embedpress-submit-btn" name="submit" value="vimeo"><?php esc_html_e( 'Save Changes', 'embedpress'); ?></button>
[157] Fix | Delete
</form>
[158] Fix | Delete
</div>
[159] Fix | Delete
</div>
[160] Fix | Delete
[161] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function