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/clone/wp-conte.../plugins/accelera.../includes
File: admin-script-global.js
jQuery(function($) {
[0] Fix | Delete
[1] Fix | Delete
// Dismiss button functionlaity
[2] Fix | Delete
if($("#aampforwp-automattic-notice")){
[3] Fix | Delete
$('#ampforwp-automattic-notice').on('click', 'button', function(){
[4] Fix | Delete
var nonce = $('#ampforwp-automattic-notice').attr('data-nonce');
[5] Fix | Delete
var data_notice = {
[6] Fix | Delete
'action': 'ampforwp_automattic_notice_delete',
[7] Fix | Delete
'security': nonce,
[8] Fix | Delete
};
[9] Fix | Delete
jQuery.post(ajaxurl, data_notice, function(response) {
[10] Fix | Delete
[11] Fix | Delete
});
[12] Fix | Delete
});
[13] Fix | Delete
}
[14] Fix | Delete
if($("#ampforwp-close-ad-notice")){
[15] Fix | Delete
$("#ampforwp-close-ad-notice").on("click", function(){
[16] Fix | Delete
var data = {
[17] Fix | Delete
action: 'ampforwp_tpd_remove_notice',
[18] Fix | Delete
};
[19] Fix | Delete
$.post(ajaxurl, data, function(response) {
[20] Fix | Delete
$(".ampforwp_remove_notice").remove();
[21] Fix | Delete
});
[22] Fix | Delete
});
[23] Fix | Delete
}
[24] Fix | Delete
if($("#ampforwp-close-notice")){
[25] Fix | Delete
$("#ampforwp-close-notice").on("click", function(){
[26] Fix | Delete
var data = {
[27] Fix | Delete
action: 'ampforwp_feedback_remove_notice',
[28] Fix | Delete
};
[29] Fix | Delete
$.post(ajaxurl, data, function(response) {
[30] Fix | Delete
$(".ampforwp_remove_notice").remove();
[31] Fix | Delete
});
[32] Fix | Delete
});
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
});
[36] Fix | Delete
[37] Fix | Delete
jQuery(document).ready(function($){
[38] Fix | Delete
// AMP FrontPage notice in Reading Settings #2348
[39] Fix | Delete
if ( 'false' == redux_data.frontpage){
[40] Fix | Delete
$('#page_on_front').parent('label').append('<p class="afp" style="margin-left:10px;display:none"><span>We have detected that you have not setup the FrontPage for AMP, </span><a href="'+redux_data.admin_url+'">Click here to setup</a></span>');
[41] Fix | Delete
}
[42] Fix | Delete
$('#front-static-pages input[type=radio][name=show_on_front]').on('change', function(e) {
[43] Fix | Delete
if ( this.value == 'page') {
[44] Fix | Delete
$('.afp').show();
[45] Fix | Delete
} else {
[46] Fix | Delete
$('.afp').hide();
[47] Fix | Delete
}
[48] Fix | Delete
});
[49] Fix | Delete
var sfp = $('#front-static-pages input[type=radio][checked=checked]');
[50] Fix | Delete
if ( sfp[0] ) {
[51] Fix | Delete
if(sfp[0].value == 'page'){
[52] Fix | Delete
$('.afp').show();
[53] Fix | Delete
}
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
$("#meta-checkbox").on("click", function(){
[57] Fix | Delete
ampforwp_check_custom_content_status($(this));
[58] Fix | Delete
});
[59] Fix | Delete
ampforwp_check_custom_content_status($("#meta-checkbox"));
[60] Fix | Delete
function ampforwp_check_custom_content_status(checker){
[61] Fix | Delete
if (checker.prop('checked')==true){
[62] Fix | Delete
$('.amp-editor-content').show();
[63] Fix | Delete
var content = $('#ampforwp_custom_content_editor').val();
[64] Fix | Delete
if(content !== ''){
[65] Fix | Delete
$('.amp-editor-content').hide();
[66] Fix | Delete
}
[67] Fix | Delete
}
[68] Fix | Delete
else{
[69] Fix | Delete
$('.amp-editor-content').hide();
[70] Fix | Delete
}
[71] Fix | Delete
}
[72] Fix | Delete
[73] Fix | Delete
$("#ampforwp_custom_content_editor").on("keyup change paste",function(){
[74] Fix | Delete
if($(this).val()!=""){
[75] Fix | Delete
$('.amp-editor-content').hide();
[76] Fix | Delete
}else{
[77] Fix | Delete
$('.amp-editor-content').show();
[78] Fix | Delete
}
[79] Fix | Delete
if($("#meta-checkbox").prop('checked')==false){
[80] Fix | Delete
$('.amp-editor-content').show();
[81] Fix | Delete
$("#ampforwp-amp-content-error-msg").html('Please select the "<b>Use This Content as AMP Content</b>" checkbox above before update.');
[82] Fix | Delete
if($(this).val()==""){
[83] Fix | Delete
$('.amp-editor-content').hide();
[84] Fix | Delete
$("#ampforwp-amp-content-error-msg").html("AMP contents is blank, Please enter content");
[85] Fix | Delete
}
[86] Fix | Delete
}else{
[87] Fix | Delete
$("#ampforwp-amp-content-error-msg").html("AMP contents is blank, Please enter content");
[88] Fix | Delete
}
[89] Fix | Delete
});
[90] Fix | Delete
[91] Fix | Delete
if($(".amp-preview-button").length>0){
[92] Fix | Delete
$(".amp-preview-button").on("click", function(){
[93] Fix | Delete
var srcLink = $("#amp-preview-iframe").attr('data-src');
[94] Fix | Delete
$("#amp-preview-iframe").html("<iframe src='"+srcLink+"'></iframe>");
[95] Fix | Delete
});
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
});//(document).ready Closed
[99] Fix | Delete
[100] Fix | Delete
jQuery(window).on("YoastSEO:ready",function(){
[101] Fix | Delete
AmpForWpYoastAnalysis = function() {
[102] Fix | Delete
YoastSEO.app.registerPlugin( 'ampForWpYoastAnalysis', {status: 'ready'} );
[103] Fix | Delete
[104] Fix | Delete
/**
[105] Fix | Delete
* @param modification {string} The name of the filter
[106] Fix | Delete
* @param callable {function} The callable
[107] Fix | Delete
* @param pluginName {string} The plugin that is registering the modification.
[108] Fix | Delete
* @param priority {number} (optional) Used to specify the order in which the callables
[109] Fix | Delete
* associated with a particular filter are called. Lower numbers
[110] Fix | Delete
* correspond with earlier execution.
[111] Fix | Delete
*/
[112] Fix | Delete
YoastSEO.app.registerModification( 'content', this.myContentModification, 'ampForWpYoastAnalysis', 5 );
[113] Fix | Delete
}
[114] Fix | Delete
[115] Fix | Delete
/**
[116] Fix | Delete
* Adds some text to the data...
[117] Fix | Delete
*
[118] Fix | Delete
* @param data The data to modify
[119] Fix | Delete
*/
[120] Fix | Delete
AmpForWpYoastAnalysis.prototype.myContentModification = function(data) {
[121] Fix | Delete
if(jQuery('#amp-page-builder-ready').length){
[122] Fix | Delete
var pbdata = jQuery('#amp-page-builder-ready').html();
[123] Fix | Delete
var takeover = redux_data['ampforwp-amp-takeover'];
[124] Fix | Delete
var pb2 = jQuery('input[name="ampforwp_page_builder_enable"]:checked').val();
[125] Fix | Delete
if ( takeover == 1 && 'yes' == pb2 ) {
[126] Fix | Delete
data = pbdata;
[127] Fix | Delete
}
[128] Fix | Delete
}
[129] Fix | Delete
return data;
[130] Fix | Delete
};
[131] Fix | Delete
new AmpForWpYoastAnalysis();
[132] Fix | Delete
});
[133] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function