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: elements.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* YouTube Settings page */
[2] Fix | Delete
//rest option name: embedpress_elements_updated
[3] Fix | Delete
$elements = (array) get_option( EMBEDPRESS_PLG_NAME.":elements", []);
[4] Fix | Delete
$g_blocks = isset( $elements['gutenberg']) ? (array) $elements['gutenberg'] : [];
[5] Fix | Delete
$e_blocks = isset( $elements['elementor']) ? (array) $elements['elementor'] : [];
[6] Fix | Delete
$settings = get_option( EMBEDPRESS_PLG_NAME, []);
[7] Fix | Delete
$enablePluginInAdmin = isset( $settings['enablePluginInAdmin'] ) ? $settings['enablePluginInAdmin'] : 1;
[8] Fix | Delete
$enablePluginInFront = isset( $settings['enablePluginInFront'] ) ? $settings['enablePluginInFront'] : 1;
[9] Fix | Delete
[10] Fix | Delete
?>
[11] Fix | Delete
[12] Fix | Delete
<div class="background__white p-24 radius-16 mb-20">
[13] Fix | Delete
<div class="embedpress--elements__wrap">
[14] Fix | Delete
<h3>Gutenberg</h3>
[15] Fix | Delete
<div class="embedpress__row grid__3">
[16] Fix | Delete
<div class="element__item">
[17] Fix | Delete
<h5>EmbedPress</h5>
[18] Fix | Delete
<a href="https://embedpress.com/documentation/" class="has__question" target="_blank">
[19] Fix | Delete
<i class="ep-icon ep-question"></i>
[20] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "It supports 150+ providers. Click to read the docs", "embedpress" ); ?></span>
[21] Fix | Delete
</a>
[22] Fix | Delete
<label class="input__switch element_switch">
[23] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress']) ? 'checked': ''; ?> >
[24] Fix | Delete
<span></span>
[25] Fix | Delete
</label>
[26] Fix | Delete
</div>
[27] Fix | Delete
<div class="element__item">
[28] Fix | Delete
<h5>Document</h5>
[29] Fix | Delete
<a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank">
[30] Fix | Delete
<i class="ep-icon ep-question"></i>
[31] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[32] Fix | Delete
</a>
[33] Fix | Delete
<label class="input__switch element_switch">
[34] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="document" data-type="gutenberg" <?php echo isset( $g_blocks['document']) ? 'checked': ''; ?> >
[35] Fix | Delete
<span></span>
[36] Fix | Delete
</label>
[37] Fix | Delete
</div>
[38] Fix | Delete
<div class="element__item">
[39] Fix | Delete
<h5>EmbedPress PDF</h5>
[40] Fix | Delete
<a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank">
[41] Fix | Delete
<i class="ep-icon ep-question"></i>
[42] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[43] Fix | Delete
</a>
[44] Fix | Delete
<label class="input__switch element_switch">
[45] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress-pdf" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress-pdf']) ? 'checked': ''; ?> >
[46] Fix | Delete
<span></span>
[47] Fix | Delete
</label>
[48] Fix | Delete
</div>
[49] Fix | Delete
<div class="element__item">
[50] Fix | Delete
<h5>EmbedPress Calendar</h5>
[51] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-calendar-in-wordpress" class="has__question" target="_blank">
[52] Fix | Delete
<i class="ep-icon ep-question"></i>
[53] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[54] Fix | Delete
</a>
[55] Fix | Delete
<label class="input__switch element_switch">
[56] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress-calendar" data-type="gutenberg" <?php echo isset( $g_blocks['embedpress-calendar']) ? 'checked': ''; ?> >
[57] Fix | Delete
<span></span>
[58] Fix | Delete
</label>
[59] Fix | Delete
</div>
[60] Fix | Delete
<div class="element__item">
[61] Fix | Delete
<h5>YouTube</h5>
[62] Fix | Delete
<a href="https://embedpress.com/docs/embed-youtube-videos-in-gutenberg/" class="has__question" target="_blank">
[63] Fix | Delete
<i class="ep-icon ep-question"></i>
[64] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[65] Fix | Delete
</a>
[66] Fix | Delete
<label class="input__switch element_switch">
[67] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="youtube-block" data-type="gutenberg" <?php echo isset( $g_blocks['youtube-block']) ? 'checked': ''; ?> >
[68] Fix | Delete
<span></span>
[69] Fix | Delete
</label>
[70] Fix | Delete
</div>
[71] Fix | Delete
<div class="element__item">
[72] Fix | Delete
<h5>Google Docs</h5>
[73] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-docs-wordpress/" class="has__question" target="_blank">
[74] Fix | Delete
<i class="ep-icon ep-question"></i>
[75] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[76] Fix | Delete
</a>
[77] Fix | Delete
<label class="input__switch element_switch">
[78] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-docs-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-docs-block']) ? 'checked': ''; ?> >
[79] Fix | Delete
<span></span>
[80] Fix | Delete
</label>
[81] Fix | Delete
</div>
[82] Fix | Delete
<div class="element__item">
[83] Fix | Delete
<h5>Google Slides</h5>
[84] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-slides-wordpress/" class="has__question" target="_blank">
[85] Fix | Delete
<i class="ep-icon ep-question"></i>
[86] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[87] Fix | Delete
</a>
[88] Fix | Delete
<label class="input__switch element_switch">
[89] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-slides-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-slides-block']) ? 'checked': ''; ?> >
[90] Fix | Delete
<span></span>
[91] Fix | Delete
</label>
[92] Fix | Delete
</div>
[93] Fix | Delete
<div class="element__item">
[94] Fix | Delete
<h5>Google Sheets</h5>
[95] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-sheets-wordpress/" class="has__question" target="_blank">
[96] Fix | Delete
<i class="ep-icon ep-question"></i>
[97] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[98] Fix | Delete
</a>
[99] Fix | Delete
<label class="input__switch element_switch">
[100] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-sheets-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-sheets-block']) ? 'checked': ''; ?> >
[101] Fix | Delete
<span></span>
[102] Fix | Delete
</label>
[103] Fix | Delete
</div>
[104] Fix | Delete
<div class="element__item">
[105] Fix | Delete
<h5>Google Forms</h5>
[106] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-forms-wordpress/" class="has__question" target="_blank">
[107] Fix | Delete
<i class="ep-icon ep-question"></i>
[108] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[109] Fix | Delete
</a>
[110] Fix | Delete
<label class="input__switch element_switch">
[111] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-forms-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-forms-block']) ? 'checked': ''; ?> >
[112] Fix | Delete
<span></span>
[113] Fix | Delete
</label>
[114] Fix | Delete
</div>
[115] Fix | Delete
<div class="element__item">
[116] Fix | Delete
<h5>Google Drawings</h5>
[117] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-drawings-wordpress/" class="has__question" target="_blank">
[118] Fix | Delete
<i class="ep-icon ep-question"></i>
[119] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[120] Fix | Delete
</a>
[121] Fix | Delete
<label class="input__switch element_switch">
[122] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-drawings-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-drawings-block']) ? 'checked': ''; ?> >
[123] Fix | Delete
<span></span>
[124] Fix | Delete
</label>
[125] Fix | Delete
</div>
[126] Fix | Delete
<div class="element__item">
[127] Fix | Delete
<h5>Google Maps</h5>
[128] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-maps-wordpress/" class="has__question" target="_blank">
[129] Fix | Delete
<i class="ep-icon ep-question"></i>
[130] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[131] Fix | Delete
</a>
[132] Fix | Delete
<label class="input__switch element_switch">
[133] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="google-maps-block" data-type="gutenberg" <?php echo isset( $g_blocks['google-maps-block']) ? 'checked': ''; ?> >
[134] Fix | Delete
<span></span>
[135] Fix | Delete
</label>
[136] Fix | Delete
</div>
[137] Fix | Delete
<div class="element__item">
[138] Fix | Delete
<h5>Twitch</h5>
[139] Fix | Delete
<a href="https://embedpress.com/docs/embed-twitch-live-chat/" class="has__question" target="_blank">
[140] Fix | Delete
<i class="ep-icon ep-question"></i>
[141] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[142] Fix | Delete
</a>
[143] Fix | Delete
<label class="input__switch element_switch">
[144] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="twitch-block" data-type="gutenberg" <?php echo isset( $g_blocks['twitch-block']) ? 'checked': ''; ?> >
[145] Fix | Delete
<span></span>
[146] Fix | Delete
</label>
[147] Fix | Delete
</div>
[148] Fix | Delete
<div class="element__item">
[149] Fix | Delete
<h5>Wistia</h5>
[150] Fix | Delete
<a href="https://embedpress.com/docs/embed-wistia-videos-wordpress/" class="has__question" target="_blank">
[151] Fix | Delete
<i class="ep-icon ep-question"></i>
[152] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[153] Fix | Delete
</a>
[154] Fix | Delete
<label class="input__switch element_switch">
[155] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="wistia-block" data-type="gutenberg" <?php echo isset( $g_blocks['wistia-block']) ? 'checked': ''; ?> >
[156] Fix | Delete
<span></span>
[157] Fix | Delete
</label>
[158] Fix | Delete
</div>
[159] Fix | Delete
<div class="element__item">
[160] Fix | Delete
<h5>Vimeo</h5>
[161] Fix | Delete
<a href="https://embedpress.com/docs/embed-vimeo-videos-wordpress/" class="has__question" target="_blank">
[162] Fix | Delete
<i class="ep-icon ep-question"></i>
[163] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[164] Fix | Delete
</a>
[165] Fix | Delete
<label class="input__switch element_switch">
[166] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="vimeo-block" data-type="gutenberg" <?php echo isset( $g_blocks['vimeo-block']) ? 'checked': ''; ?> >
[167] Fix | Delete
<span></span>
[168] Fix | Delete
</label>
[169] Fix | Delete
</div>
[170] Fix | Delete
</div>
[171] Fix | Delete
</div>
[172] Fix | Delete
</div>
[173] Fix | Delete
<!--ELEMENTOR WIDGETS STARTS -->
[174] Fix | Delete
<div class="background__white p-24 radius-16 mb-20">
[175] Fix | Delete
<div class="embedpress--elements__wrap">
[176] Fix | Delete
<h3>Elementor</h3>
[177] Fix | Delete
<div class="embedpress__row grid__3">
[178] Fix | Delete
<div class="element__item">
[179] Fix | Delete
<h5>EmbedPress</h5>
[180] Fix | Delete
<a href="https://embedpress.com/docs/embedpress-with-elementor/" class="has__question" target="_blank">
[181] Fix | Delete
<i class="ep-icon ep-question"></i>
[182] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[183] Fix | Delete
</a>
[184] Fix | Delete
<label class="input__switch element_switch">
[185] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress" data-type="elementor" <?php echo isset( $e_blocks['embedpress']) ? 'checked': ''; ?> >
[186] Fix | Delete
<span></span>
[187] Fix | Delete
</label>
[188] Fix | Delete
[189] Fix | Delete
</div>
[190] Fix | Delete
<div class="element__item">
[191] Fix | Delete
<h5>EmbedPress Document</h5>
[192] Fix | Delete
<a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank">
[193] Fix | Delete
<i class="ep-icon ep-question"></i>
[194] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[195] Fix | Delete
</a>
[196] Fix | Delete
<label class="input__switch element_switch">
[197] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress-document" data-type="elementor" <?php echo isset( $e_blocks['embedpress-document']) ? 'checked': ''; ?> >
[198] Fix | Delete
<span></span>
[199] Fix | Delete
</label>
[200] Fix | Delete
[201] Fix | Delete
</div>
[202] Fix | Delete
[203] Fix | Delete
<div class="element__item">
[204] Fix | Delete
<h5>EmbedPress PDF</h5>
[205] Fix | Delete
<a href="https://embedpress.com/docs/embed-document/" class="has__question" target="_blank">
[206] Fix | Delete
<i class="ep-icon ep-question"></i>
[207] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[208] Fix | Delete
</a>
[209] Fix | Delete
<label class="input__switch element_switch">
[210] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress-pdf" data-type="elementor" <?php echo isset( $e_blocks['embedpress-pdf']) ? 'checked': ''; ?> >
[211] Fix | Delete
<span></span>
[212] Fix | Delete
</label>
[213] Fix | Delete
[214] Fix | Delete
</div>
[215] Fix | Delete
[216] Fix | Delete
<div class="element__item">
[217] Fix | Delete
<h5>EmbedPress Calendar</h5>
[218] Fix | Delete
<a href="https://embedpress.com/docs/embed-google-calendar-in-wordpress" class="has__question" target="_blank">
[219] Fix | Delete
<i class="ep-icon ep-question"></i>
[220] Fix | Delete
<span class="element__tooltip"><?php esc_html_e( "Documentation","embedpress" ); ?></span>
[221] Fix | Delete
</a>
[222] Fix | Delete
<label class="input__switch element_switch">
[223] Fix | Delete
<input class="element-check" type="checkbox" value="yes" data-name="embedpress-calendar" data-type="elementor" <?php echo isset( $e_blocks['embedpress-calendar']) ? 'checked': ''; ?> >
[224] Fix | Delete
<span></span>
[225] Fix | Delete
</label>
[226] Fix | Delete
[227] Fix | Delete
</div>
[228] Fix | Delete
</div>
[229] Fix | Delete
</div>
[230] Fix | Delete
</div>
[231] Fix | Delete
<!--CLASSIC EDITOR SETTINGS STARTS-->
[232] Fix | Delete
<div class="background__white radius-16 p-24">
[233] Fix | Delete
<div class="embedpress--elements__wrap">
[234] Fix | Delete
<h3>Classic Editor</h3>
[235] Fix | Delete
<div class="embedpress__row grid__3">
[236] Fix | Delete
<div class="element__item">
[237] Fix | Delete
<h5><?php esc_html_e( "Preview In Frontend", "embedpress" ); ?></h5>
[238] Fix | Delete
<label class="input__switch element_switch">
[239] Fix | Delete
<input class="element-check" type="checkbox" value="1" data-name="enablePluginInFront" data-type="classic" <?php echo $enablePluginInFront ? 'checked': ''; ?> >
[240] Fix | Delete
<span></span>
[241] Fix | Delete
</label>
[242] Fix | Delete
[243] Fix | Delete
</div>
[244] Fix | Delete
<div class="element__item">
[245] Fix | Delete
<h5><?php esc_html_e( "Preview In Editor", "embedpress" ); ?></h5>
[246] Fix | Delete
<label class="input__switch element_switch">
[247] Fix | Delete
<input class="element-check" type="checkbox" value="1" data-name="enablePluginInAdmin" data-type="classic" <?php echo $enablePluginInAdmin ? 'checked': ''; ?> >
[248] Fix | Delete
<span></span>
[249] Fix | Delete
</label>
[250] Fix | Delete
[251] Fix | Delete
</div>
[252] Fix | Delete
</div>
[253] Fix | Delete
</div>
[254] Fix | Delete
</div>
[255] Fix | Delete
[256] Fix | Delete
[257] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function