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

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/accelera.../includes
File: admin-script.js
}else{
[1500] Fix | Delete
option = '<div class="button btn-red">'+button+'</div>';
[1501] Fix | Delete
}
[1502] Fix | Delete
if("ampforwp-ux-thirdparty-section" !=active_drower){
[1503] Fix | Delete
$("[data-href="+active_drower+"]").find("div.amp-ux-elem-but-block").html(option);
[1504] Fix | Delete
}
[1505] Fix | Delete
var has_warning = false;
[1506] Fix | Delete
$(".amp-ux-valid-require").each(function(){
[1507] Fix | Delete
if($(this).children().hasClass('btn-red')){
[1508] Fix | Delete
has_warning = true;
[1509] Fix | Delete
}
[1510] Fix | Delete
});
[1511] Fix | Delete
if(has_warning){
[1512] Fix | Delete
$(".ux-setup-icon").removeClass("amp-ux-warning-okay");
[1513] Fix | Delete
$(".ux-setup-icon").addClass("amp-ux-warning");
[1514] Fix | Delete
}else{
[1515] Fix | Delete
$(".ux-setup-icon").removeClass("amp-ux-warning");
[1516] Fix | Delete
$(".ux-setup-icon").addClass("amp-ux-warning-okay");
[1517] Fix | Delete
}
[1518] Fix | Delete
}
[1519] Fix | Delete
$("#ampforwp-prem-upg-to").on("click", function(){
[1520] Fix | Delete
$(".redux-group-tab-link-a").each(function(){
[1521] Fix | Delete
var id = $(this).attr('data-key');
[1522] Fix | Delete
var thischildelem = $(this).children('.group_title').html();
[1523] Fix | Delete
if(thischildelem.toLowerCase()=='upgrade to pro'){
[1524] Fix | Delete
$("#"+id+"_section_group_li").click();
[1525] Fix | Delete
$("#"+id+"_section_group_li_a").click();
[1526] Fix | Delete
return false;
[1527] Fix | Delete
}
[1528] Fix | Delete
});
[1529] Fix | Delete
});
[1530] Fix | Delete
$("#ampforwp-goto-analytics").on("click", function(){
[1531] Fix | Delete
$(".redux-group-tab-link-a").each(function(){
[1532] Fix | Delete
var id = $(this).attr('data-key');
[1533] Fix | Delete
var thischildelem = $(this).children('.group_title').html();
[1534] Fix | Delete
var par = 2;
[1535] Fix | Delete
if(thischildelem.toLowerCase()=="settings"){
[1536] Fix | Delete
par = id;
[1537] Fix | Delete
}
[1538] Fix | Delete
if(thischildelem.toLowerCase()=='analytics'){
[1539] Fix | Delete
$("#"+par+"_section_group_li").click();
[1540] Fix | Delete
$("#"+id+"_section_group_li_a").click();
[1541] Fix | Delete
return false;
[1542] Fix | Delete
}
[1543] Fix | Delete
});
[1544] Fix | Delete
});
[1545] Fix | Delete
$("[data-href=ampforwp-ux-advertisement-section]").on("click", function(){
[1546] Fix | Delete
$(".redux-group-tab-link-a").each(function(){
[1547] Fix | Delete
var id = $(this).attr('data-key');
[1548] Fix | Delete
var thischildelem = $(this).children('.group_title').html();
[1549] Fix | Delete
var par = 2;
[1550] Fix | Delete
if(thischildelem=="Settings"){
[1551] Fix | Delete
par = id;
[1552] Fix | Delete
}
[1553] Fix | Delete
if(thischildelem=='Advertisement'){
[1554] Fix | Delete
$("#"+par+"_section_group_li").click();
[1555] Fix | Delete
$("#"+id+"_section_group_li_a").click();
[1556] Fix | Delete
return false;
[1557] Fix | Delete
}
[1558] Fix | Delete
});
[1559] Fix | Delete
});
[1560] Fix | Delete
// Website type
[1561] Fix | Delete
$('#ampforwp-ux-select').on('change', function(e){
[1562] Fix | Delete
var thisvalue = $(this).val();
[1563] Fix | Delete
// Update Values in Structured data
[1564] Fix | Delete
$("#ampforwp-setup-ux-website-type").val(thisvalue);
[1565] Fix | Delete
if(thisvalue!="Local Business" && thisvalue!="Other"){
[1566] Fix | Delete
$("#ampforwp-website-type-other").hide();
[1567] Fix | Delete
$(".ux-other-site-type").hide();
[1568] Fix | Delete
$("#ampforwp-website-type-other").val("");
[1569] Fix | Delete
//Posts
[1570] Fix | Delete
if($("select[id=ampforwp-sd-type-posts-select]").val()!=undefined){
[1571] Fix | Delete
$("select[id=ampforwp-sd-type-posts-select]").val(thisvalue);
[1572] Fix | Delete
$("span[id=select2-ampforwp-sd-type-posts-select-container]").text($(this).val());
[1573] Fix | Delete
}else{
[1574] Fix | Delete
$("select[id=ampforwp-sd-type-category-select]").val(thisvalue);
[1575] Fix | Delete
$("span[id=select2-ampforwp-sd-type-category-select-container]").text($(this).val());
[1576] Fix | Delete
}
[1577] Fix | Delete
}else{
[1578] Fix | Delete
if(thisvalue=="Other"){
[1579] Fix | Delete
$(".ux-other-site-type").show();
[1580] Fix | Delete
$("#ampforwp-website-type-other").show();
[1581] Fix | Delete
}else{
[1582] Fix | Delete
$("#ampforwp-website-type-other").hide();
[1583] Fix | Delete
$(".ux-other-site-type").hide();
[1584] Fix | Delete
}
[1585] Fix | Delete
}
[1586] Fix | Delete
});
[1587] Fix | Delete
[1588] Fix | Delete
$("#ampforwp-ux-seo-select").on('change', function(e){
[1589] Fix | Delete
var thisvalue = $(this).val();
[1590] Fix | Delete
$("select[id=ampforwp-seo-selection-select]").val(thisvalue);
[1591] Fix | Delete
$("span[id=select2-ampforwp-seo-selection-select-container]").text($(this).val());
[1592] Fix | Delete
});
[1593] Fix | Delete
[1594] Fix | Delete
$("#ampforwp-website-type-other").on('change',function(){
[1595] Fix | Delete
var thisval = $(this).val();
[1596] Fix | Delete
if(thisval==""){
[1597] Fix | Delete
thisval = "Other-WebPage";
[1598] Fix | Delete
}else{
[1599] Fix | Delete
thisval = "Other-"+thisval;
[1600] Fix | Delete
}
[1601] Fix | Delete
$("#ampforwp-setup-ux-website-type").val(thisval);
[1602] Fix | Delete
});
[1603] Fix | Delete
[1604] Fix | Delete
// Homepage
[1605] Fix | Delete
$('input[id="amp-ux-homepage"]').on("click", function(){
[1606] Fix | Delete
if($(this).prop("checked") == true){
[1607] Fix | Delete
$('.amp-ux-frontpage').show();
[1608] Fix | Delete
$(this).attr('value', 1);
[1609] Fix | Delete
if($('input[id="ampforwp-homepage-on-off-support"]').val() != 1 ) {
[1610] Fix | Delete
$("input[data-id=ampforwp-homepage-on-off-support]").prop('checked', true).trigger( 'change' );
[1611] Fix | Delete
$("input[id=ampforwp-homepage-on-off-support]").val(1);
[1612] Fix | Delete
}
[1613] Fix | Delete
}
[1614] Fix | Delete
else if($(this).prop("checked") == false){
[1615] Fix | Delete
$('.amp-ux-frontpage').hide();
[1616] Fix | Delete
$("input[data-id=ampforwp-homepage-on-off-support]").prop('checked', false).trigger( 'change' );
[1617] Fix | Delete
$("input[id=ampforwp-homepage-on-off-support]").val(0);
[1618] Fix | Delete
}
[1619] Fix | Delete
[1620] Fix | Delete
});
[1621] Fix | Delete
// Frontpage
[1622] Fix | Delete
$('input[id="amp-ux-frontpage"]').on("click", function(){
[1623] Fix | Delete
if($(this).prop("checked") == true){
[1624] Fix | Delete
// FrontPage
[1625] Fix | Delete
$("input[data-id=amp-frontpage-select-option]").prop('checked', true).trigger( 'change' );
[1626] Fix | Delete
$("input[id=amp-frontpage-select-option]").val(1);
[1627] Fix | Delete
$('.amp-ux-frontpage-select').removeClass('hide');
[1628] Fix | Delete
}
[1629] Fix | Delete
else if($(this).prop("checked") == false ){
[1630] Fix | Delete
$('.amp-ux-frontpage-select').addClass('hide');
[1631] Fix | Delete
$("input[data-id=amp-frontpage-select-option]").prop('checked', false).trigger( 'change' );
[1632] Fix | Delete
$("input[id=amp-frontpage-select-option]").val(0);
[1633] Fix | Delete
}
[1634] Fix | Delete
});
[1635] Fix | Delete
$('.amp-ux-frontpage-select').on('change', function(e){
[1636] Fix | Delete
var thisvalue = $(this).val();
[1637] Fix | Delete
var thistxt = $('option[value='+'"'+thisvalue+'"]').html();
[1638] Fix | Delete
if(thistxt!='undefined'){
[1639] Fix | Delete
[1640] Fix | Delete
$("select[id=amp-frontpage-select-option-pages-select]").val($(this).val());
[1641] Fix | Delete
[1642] Fix | Delete
[1643] Fix | Delete
$("span[id=select2-amp-frontpage-select-option-pages-select-container]").show().text(thistxt);
[1644] Fix | Delete
}
[1645] Fix | Delete
});
[1646] Fix | Delete
// Posts
[1647] Fix | Delete
$('#amp-ux-posts').on("click", function(){
[1648] Fix | Delete
if($(this).prop("checked") == true){
[1649] Fix | Delete
if($('input[id="amp-on-off-for-all-posts"]').val() != 1 ) {
[1650] Fix | Delete
$("input[data-id=amp-on-off-for-all-posts]").prop('checked', true).trigger( 'change' );
[1651] Fix | Delete
$("input[id=amp-on-off-for-all-posts]").val(1);
[1652] Fix | Delete
}
[1653] Fix | Delete
}
[1654] Fix | Delete
else if( $(this).prop("checked") == false && $('input[id="amp-on-off-for-all-posts"]').val() == 1 ){
[1655] Fix | Delete
$("input[data-id=amp-on-off-for-all-posts]").prop('checked', false).trigger( 'change' );
[1656] Fix | Delete
$("input[id=amp-on-off-for-all-posts]").val(0);
[1657] Fix | Delete
}
[1658] Fix | Delete
});
[1659] Fix | Delete
// Pages
[1660] Fix | Delete
$('input[id="amp-ux-pages"]').on("click", function(){
[1661] Fix | Delete
if($(this).prop("checked") == true){
[1662] Fix | Delete
if($('input[id="amp-on-off-for-all-pages"]').val() != 1 ) {
[1663] Fix | Delete
$("input[data-id=amp-on-off-for-all-pages]").prop('checked', true).trigger( 'change' );
[1664] Fix | Delete
$("input[id=amp-on-off-for-all-pages]").val(1);
[1665] Fix | Delete
}
[1666] Fix | Delete
}
[1667] Fix | Delete
else if( $(this).prop("checked") == false && $('input[id="amp-on-off-for-all-pages"]').val() == 1 ){
[1668] Fix | Delete
$("input[data-id=amp-on-off-for-all-pages]").prop('checked', false).trigger( 'change' );
[1669] Fix | Delete
$("input[id=amp-on-off-for-all-pages]").val(0);
[1670] Fix | Delete
}
[1671] Fix | Delete
});
[1672] Fix | Delete
// Archives
[1673] Fix | Delete
$('input[id="amp-ux-archives"]').on("click", function(){
[1674] Fix | Delete
if($(this).prop("checked") == true){
[1675] Fix | Delete
if($('input[id="ampforwp-archive-support"]').val() != 1 ) {
[1676] Fix | Delete
$("input[data-id=ampforwp-archive-support]").prop('checked', true).trigger( 'change' );
[1677] Fix | Delete
$("input[id=ampforwp-archive-support]").val(1);
[1678] Fix | Delete
}
[1679] Fix | Delete
}
[1680] Fix | Delete
else if( $(this).prop("checked") == false && $('input[id="ampforwp-archive-support"]').val() == 1 ){
[1681] Fix | Delete
$("input[data-id=ampforwp-archive-support]").prop('checked', false).trigger( 'change' );
[1682] Fix | Delete
$("input[id=ampforwp-archive-support]").val(0);
[1683] Fix | Delete
}
[1684] Fix | Delete
});
[1685] Fix | Delete
$(".toplevel_page_amp_options").on('mouseover', function(){
[1686] Fix | Delete
if(amp_option_panel_view==31){
[1687] Fix | Delete
$("#toplevel_page_amp_options .wp-submenu.wp-submenu-wrap li").each(function(){
[1688] Fix | Delete
var t_e_c_v = $(this).children('a').html();
[1689] Fix | Delete
if(t_e_c_v=="Settings" || t_e_c_v=="Design" || t_e_c_v=="Extensions" || t_e_c_v=="Upgrade to Pro" || t_e_c_v=="Import / Export"){
[1690] Fix | Delete
$(this).hide();
[1691] Fix | Delete
}
[1692] Fix | Delete
});
[1693] Fix | Delete
}
[1694] Fix | Delete
});
[1695] Fix | Delete
// Design and Presentation Section
[1696] Fix | Delete
$('.media-amp-ux-opt-media' ).off().on(
[1697] Fix | Delete
'click', function( event ) {
[1698] Fix | Delete
redux.field_objects.media.addFile( event, $( this ).parents( 'div.amp-ux-opt-media-container:first' ) );
[1699] Fix | Delete
$('.media-button-select').on('click', function(){
[1700] Fix | Delete
if ( $('#amp-ux-opt-media-url').val() != '' ){
[1701] Fix | Delete
$('input[id="redux_builder_amp[opt-media][url]"]').val($('#amp-ux-opt-media-url').val());
[1702] Fix | Delete
$('input[id="redux_builder_amp[opt-media][height]"]').val($('#amp-ux-logo-height').val());
[1703] Fix | Delete
$('input[id="redux_builder_amp[opt-media][width]').val($('#amp-ux-logo-width').val());
[1704] Fix | Delete
$('input[id="redux_builder_amp[opt-media][thumbnail]').val($('#amp-ux-logo-thumb').val());
[1705] Fix | Delete
$('#redux_builder_amp-opt-media .screenshot').show();
[1706] Fix | Delete
$('.redux-option-image').attr('src', $('#amp-ux-logo-thumb').val());
[1707] Fix | Delete
ampforwp_saveChangesInRedux($(this));
[1708] Fix | Delete
ampforwp_set_ux_selected_val();
[1709] Fix | Delete
$("#opt-media-media").html("Change Logo");
[1710] Fix | Delete
$(".amp-ux-upload").addClass('amp-ux-chng-lg');
[1711] Fix | Delete
}
[1712] Fix | Delete
});
[1713] Fix | Delete
}
[1714] Fix | Delete
);
[1715] Fix | Delete
// Global Color Scheme
[1716] Fix | Delete
$('.amp-ux-color-container .iris-picker').on('focusout',function(){
[1717] Fix | Delete
var color = $('.amp-ux-color-scheme').val();
[1718] Fix | Delete
var bgcolor = $('.amp-ux-color-container .wp-color-result').css('background-color');
[1719] Fix | Delete
var rgba = hexToRgbA(color);
[1720] Fix | Delete
$('fieldset[data-id="swift-color-scheme"] .sp-preview-inner').css('background-color', bgcolor);
[1721] Fix | Delete
$('input[data-id="swift-color-scheme-rgba"]').val(rgba);
[1722] Fix | Delete
$('input[id="swift-color-scheme-color"]').attr('data-color',rgba);
[1723] Fix | Delete
$('input[id="swift-color-scheme-color"]').attr('data-current-color',color);
[1724] Fix | Delete
$('input[id="swift-color-scheme-color"]').attr('value',color);
[1725] Fix | Delete
ampforwp_saveChangesInRedux($(this));
[1726] Fix | Delete
});
[1727] Fix | Delete
// Analytics
[1728] Fix | Delete
$('.ampforwp-ux-analytics-select').on('change', function(){
[1729] Fix | Delete
var id = $(this).val();
[1730] Fix | Delete
var previousID = $('#amp-ux-analytics-hidden');
[1731] Fix | Delete
if($('input[id="'+id+'"]').val() != 1 ) {
[1732] Fix | Delete
$('input[data-id="'+id+'"]').prop('checked', true).trigger( 'change' );
[1733] Fix | Delete
$('input[id="'+id+'"]').val(1);
[1734] Fix | Delete
}
[1735] Fix | Delete
if( id != previousID.val() && $('input[id="'+previousID.val()+'"]').val() == 1 ) {
[1736] Fix | Delete
$('input[data-id="'+previousID.val()+'"]').prop('checked', false).trigger( 'change' );
[1737] Fix | Delete
$('input[id="'+previousID.val()+'"]').val(0);
[1738] Fix | Delete
}
[1739] Fix | Delete
previousID.val($(this).val());
[1740] Fix | Delete
$('#amp-analytics-select-option-select').val($(this).children('option:selected').attr('data-num'));
[1741] Fix | Delete
});
[1742] Fix | Delete
$('.analytics-text').on('change', function(){
[1743] Fix | Delete
var id = $(this).attr('data-text');
[1744] Fix | Delete
$('input[id="'+id+'"]').val($(this).val());
[1745] Fix | Delete
var data_href = $(this).closest('.ampforwp-ux-ana-sub').attr('data-href');
[1746] Fix | Delete
ampforwp_check_analytics(data_href);
[1747] Fix | Delete
});
[1748] Fix | Delete
function ampforwp_check_analytics(data_href){
[1749] Fix | Delete
var ga_field = $('#ga-feild').val();
[1750] Fix | Delete
var ga_field_gtm = $('#amp-gtm-id').val();
[1751] Fix | Delete
var amp_fb_pixel_id = $('#amp-fb-pixel-id').val();
[1752] Fix | Delete
var sa_feild = $('#sa-feild').val();
[1753] Fix | Delete
var pa_feild = $('#pa-feild').val();
[1754] Fix | Delete
var quantcast_c = $('#amp-quantcast-analytics-code').val();
[1755] Fix | Delete
var comscore_c1 = $('#amp-comscore-analytics-code-c1').val();
[1756] Fix | Delete
var comscore_c1 = $('#amp-comscore-analytics-code-c2').val();
[1757] Fix | Delete
var eam_c = $('#eam-feild').val();
[1758] Fix | Delete
var sc_c = $('#sc-feild').val();
[1759] Fix | Delete
var histats_c = $('#histats-field').val();
[1760] Fix | Delete
var yemdex_c = $('#amp-Yandex-Metrika-analytics-code').val();
[1761] Fix | Delete
var chartbeat_c = $('#amp-Chartbeat-analytics-code').val();
[1762] Fix | Delete
var alexa_c = $('#ampforwp-alexa-account').val();
[1763] Fix | Delete
var alexa_d = $('#ampforwp-alexa-domain').val();
[1764] Fix | Delete
var host = $('#ampforwp-adobe-host').val();
[1765] Fix | Delete
var afs_c = $('#ampforwp-afs-siteid').val();
[1766] Fix | Delete
var clicky_side_id = $('#clicky-site-id').val();
[1767] Fix | Delete
var cr_config_url = $('#ampforwp-callrail-config-url').val();
[1768] Fix | Delete
var cr_number = $('#ampforwp-callrail-number').val();
[1769] Fix | Delete
var cr_analytics_url = $('#ampforwp-callrail-analytics-url').val();
[1770] Fix | Delete
var analytics_txt = "";
[1771] Fix | Delete
var checked = $('#redux_builder_amp-'+data_href).children('.switch-options').children('.ios7-switch').children('.switch-on-off').prop('checked');
[1772] Fix | Delete
[1773] Fix | Delete
if(data_href=='ampforwp-ga-switch'){
[1774] Fix | Delete
if(ga_field!="UA-XXXXX-Y" && ga_field!=""){
[1775] Fix | Delete
if(!checked){
[1776] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1777] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1778] Fix | Delete
}
[1779] Fix | Delete
}else if(ga_field=="UA-XXXXX-Y" || ga_field==""){
[1780] Fix | Delete
if(checked){
[1781] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1782] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1783] Fix | Delete
}
[1784] Fix | Delete
}
[1785] Fix | Delete
}else if(data_href=='amp-use-gtm-option'){
[1786] Fix | Delete
if(ga_field_gtm!=""){
[1787] Fix | Delete
if(!checked){
[1788] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1789] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1790] Fix | Delete
}
[1791] Fix | Delete
}else if(ga_field_gtm==""){
[1792] Fix | Delete
if(checked){
[1793] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1794] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1795] Fix | Delete
}
[1796] Fix | Delete
}
[1797] Fix | Delete
}else if(data_href=='amp-fb-pixel'){
[1798] Fix | Delete
if(amp_fb_pixel_id!=""){
[1799] Fix | Delete
if(!checked){
[1800] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1801] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1802] Fix | Delete
}
[1803] Fix | Delete
}else if(amp_fb_pixel_id==""){
[1804] Fix | Delete
if(checked){
[1805] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1806] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1807] Fix | Delete
}
[1808] Fix | Delete
}
[1809] Fix | Delete
}else if(data_href=='ampforwp-Segment-switch'){
[1810] Fix | Delete
if(sa_feild!="SEGMENT-WRITE-KEY" && sa_feild!=""){
[1811] Fix | Delete
if(!checked){
[1812] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1813] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1814] Fix | Delete
}
[1815] Fix | Delete
}else if(sa_feild=="SEGMENT-WRITE-KEY" || sa_feild==""){
[1816] Fix | Delete
if(checked){
[1817] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1818] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1819] Fix | Delete
}
[1820] Fix | Delete
}
[1821] Fix | Delete
}else if(data_href=='ampforwp-Piwik-switch'){
[1822] Fix | Delete
if(pa_feild!="#" && pa_feild!=""){
[1823] Fix | Delete
if(!checked){
[1824] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1825] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1826] Fix | Delete
}
[1827] Fix | Delete
}else if(pa_feild=="#" || pa_feild==""){
[1828] Fix | Delete
if(checked){
[1829] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1830] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1831] Fix | Delete
}
[1832] Fix | Delete
}
[1833] Fix | Delete
}else if(data_href=='ampforwp-Quantcast-switch'){
[1834] Fix | Delete
if(quantcast_c!=""){
[1835] Fix | Delete
if(!checked){
[1836] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1837] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1838] Fix | Delete
}
[1839] Fix | Delete
}else if(quantcast_c==""){
[1840] Fix | Delete
if(checked){
[1841] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1842] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1843] Fix | Delete
}
[1844] Fix | Delete
}
[1845] Fix | Delete
}else if(data_href=='ampforwp-comScore-switch'){
[1846] Fix | Delete
if(comscore_c1!="" && comscore_c1!=""){
[1847] Fix | Delete
if(!checked){
[1848] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1849] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1850] Fix | Delete
}
[1851] Fix | Delete
}else if(comscore_c1=="" || comscore_c1==""){
[1852] Fix | Delete
if(checked){
[1853] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1854] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1855] Fix | Delete
}
[1856] Fix | Delete
}
[1857] Fix | Delete
}else if(data_href=='ampforwp-Effective-switch'){
[1858] Fix | Delete
if(eam_c!="#" && eam_c!=""){
[1859] Fix | Delete
if(!checked){
[1860] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1861] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1862] Fix | Delete
}
[1863] Fix | Delete
}else if(eam_c=="#" || eam_c==""){
[1864] Fix | Delete
if(checked){
[1865] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1866] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1867] Fix | Delete
}
[1868] Fix | Delete
}
[1869] Fix | Delete
}else if(data_href=='ampforwp-StatCounter-switch'){
[1870] Fix | Delete
if(sc_c!="#" && sc_c!=""){
[1871] Fix | Delete
if(!checked){
[1872] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1873] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1874] Fix | Delete
}
[1875] Fix | Delete
}else if(sc_c=="#" || sc_c==""){
[1876] Fix | Delete
if(checked){
[1877] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1878] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1879] Fix | Delete
}
[1880] Fix | Delete
}
[1881] Fix | Delete
}else if(data_href=='ampforwp-Histats-switch'){
[1882] Fix | Delete
if(histats_c!=""){
[1883] Fix | Delete
if(!checked){
[1884] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1885] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1886] Fix | Delete
}
[1887] Fix | Delete
}else if(histats_c==""){
[1888] Fix | Delete
if(checked){
[1889] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1890] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1891] Fix | Delete
}
[1892] Fix | Delete
}
[1893] Fix | Delete
}else if(data_href=='ampforwp-Yandex-switch'){
[1894] Fix | Delete
if(yemdex_c!=""){
[1895] Fix | Delete
if(!checked){
[1896] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1897] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1898] Fix | Delete
}
[1899] Fix | Delete
}else if(yemdex_c==""){
[1900] Fix | Delete
if(checked){
[1901] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1902] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1903] Fix | Delete
}
[1904] Fix | Delete
}
[1905] Fix | Delete
}else if(data_href=='ampforwp-Chartbeat-switch'){
[1906] Fix | Delete
if(chartbeat_c!=""){
[1907] Fix | Delete
if(!checked){
[1908] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1909] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1910] Fix | Delete
}
[1911] Fix | Delete
}else if(chartbeat_c==""){
[1912] Fix | Delete
if(checked){
[1913] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1914] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1915] Fix | Delete
}
[1916] Fix | Delete
}
[1917] Fix | Delete
}else if(data_href=='ampforwp-Alexa-switch'){
[1918] Fix | Delete
if(alexa_c!="" && alexa_d!=""){
[1919] Fix | Delete
if(!checked){
[1920] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1921] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1922] Fix | Delete
}
[1923] Fix | Delete
}else if(alexa_c=="" && alexa_d==""){
[1924] Fix | Delete
if(checked){
[1925] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1926] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1927] Fix | Delete
}
[1928] Fix | Delete
}
[1929] Fix | Delete
}else if(data_href=='ampforwp-adobe-switch'){
[1930] Fix | Delete
if(host!="" && ReportSuiteId!=""){
[1931] Fix | Delete
if(!checked){
[1932] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1933] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1934] Fix | Delete
}
[1935] Fix | Delete
}else if(host=="" && ReportSuiteId ==""){
[1936] Fix | Delete
if(checked){
[1937] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1938] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1939] Fix | Delete
}
[1940] Fix | Delete
}
[1941] Fix | Delete
}else if(data_href=='ampforwp-afs-analytics-switch'){
[1942] Fix | Delete
if(afs_c!=""){
[1943] Fix | Delete
if(!checked){
[1944] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1945] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1946] Fix | Delete
}
[1947] Fix | Delete
}else if(afs_c==""){
[1948] Fix | Delete
if(checked){
[1949] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1950] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1951] Fix | Delete
}
[1952] Fix | Delete
}
[1953] Fix | Delete
}else if(data_href=='amp-clicky-switch'){
[1954] Fix | Delete
if(clicky_side_id!=""){
[1955] Fix | Delete
if(!checked){
[1956] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1957] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1958] Fix | Delete
}
[1959] Fix | Delete
}else if(clicky_side_id==""){
[1960] Fix | Delete
if(checked){
[1961] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1962] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1963] Fix | Delete
}
[1964] Fix | Delete
}
[1965] Fix | Delete
}else if(data_href=='ampforwp-callrail-switch'){
[1966] Fix | Delete
if(cr_config_url!="" && cr_number!="" && cr_analytics_url!=""){
[1967] Fix | Delete
if(!checked){
[1968] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1969] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(1);
[1970] Fix | Delete
}
[1971] Fix | Delete
}else if(cr_config_url=="" && cr_number=="" && cr_analytics_url==""){
[1972] Fix | Delete
if(checked){
[1973] Fix | Delete
$('input[data-id="'+data_href+'"]').click();
[1974] Fix | Delete
$('[name="redux_builder_amp['+data_href+']"]').val(0);
[1975] Fix | Delete
}
[1976] Fix | Delete
}
[1977] Fix | Delete
}
[1978] Fix | Delete
}
[1979] Fix | Delete
// Privacy Settings Section
[1980] Fix | Delete
$('input[id="amp-ux-notice-switch"]').on("click", function(){
[1981] Fix | Delete
if($(this).prop("checked") == true){
[1982] Fix | Delete
$(this).val(1);
[1983] Fix | Delete
if($('input[id="amp-enable-notifications"]').val() != 1 ) {
[1984] Fix | Delete
$("input[data-id=amp-enable-notifications]").prop('checked', true).trigger( 'change' );
[1985] Fix | Delete
$("input[id=amp-enable-notifications]").val(1);
[1986] Fix | Delete
[1987] Fix | Delete
}
[1988] Fix | Delete
if($('input[id="amp-ux-gdpr-switch"]').val() == 1 ) {
[1989] Fix | Delete
$("input[data-id=amp-ux-gdpr-switch]").prop('checked', false).trigger( 'change' );
[1990] Fix | Delete
$("input[id=amp-amp-ux-gdpr-switch]").val(0);
[1991] Fix | Delete
}
[1992] Fix | Delete
if($('input[id="amp-gdpr-compliance-switch"]').val() == 1 ) {
[1993] Fix | Delete
$("input[data-id=amp-gdpr-compliance-switch]").prop('checked', false).trigger( 'change' );
[1994] Fix | Delete
$("input[id=amp-gdpr-compliance-switch]").val(0);
[1995] Fix | Delete
}
[1996] Fix | Delete
}
[1997] Fix | Delete
else if( $(this).prop("checked") == false && $('input[id="amp-enable-notifications"]').val() == 1 ){
[1998] Fix | Delete
$("input[data-id=amp-enable-notifications]").prop('checked', false).trigger( 'change' );
[1999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function