: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
amp_options_hide_show(thisid);
$(".ampforwp-option-panel-view-pop").remove();
if(thisid=='amp-opt-easy-view'){
$("#radio-c").prop("checked", true);
}else if(thisid=='amp-opt-full-view'){
$("#radio-d").prop("checked", true);
function amp_left_sub_menu_opt_hs(visibility){
$("#toplevel_page_amp_options .wp-submenu.wp-submenu-wrap li").each(function(){
var t_e_c_v = $(this).children('a').html();
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"){
amp_left_sub_menu_opt_hs(amp_option_panel_view);
function amp_options_hide_show(id){
if(id=='amp-opt-easy-view' || id=='radio-c'){
$(".amp-full-view-options").slideUp(0);
}else if(id=='amp-opt-full-view' || id=='radio-d'){
$(".amp-full-view-options").slideDown(0);
amp_left_sub_menu_opt_hs(opt_type)
action: 'ampforwp_set_option_panel_view',
verify_nonce: ampforwp_nonce.security
success: function(response){
$("body").css({'overflow':'auto'});
$("#1_section_group_li_a").click();
$("[data-href='ampforwp-ux-design-section']").on("click", function(){
if($("[name='redux_builder_amp[amp-design-selector]']").val() == '4'){
$('#ampforwp-easy-setup-global-color').show();
$('#ampforwp-easy-setup-global-color').hide();
$(".amp-opt-change").on("click", function(){
var thisid = $(this).attr('id');
$(".amp-opt-change").each(function(){
$(this).parent().removeClass('active');
$(this).parent().addClass('active');
}else if(thisid=='radio-d'){
$(this).parent().addClass('active')
$(this).parent().removeClass('active');
amp_options_hide_show(thisid);
$('.ux-setup-icon').on('mouseover', function (event) {
var amp_setup_pending_string = '';
$(".amp-ux-valid-require").each(function(){
if($(this).children().hasClass('btn-red')){
amp_setup_pending_string += $(this).parent('.amp-ux-elem-field').children('.amp-ux-elem-title').html()+", ";
amp_setup_pending_string = amp_setup_pending_string.replace(/,\s*$/, "");
if($(this).hasClass('amp-ux-warning-okay')){
$(".setup-tt").html("Your setup is now completed.");
$(".setup-tt").html('Your setup is not completed.<br/>Please setup <i>"'+amp_setup_pending_string+'"</i> section for better AMP Experience.');
$('.ampforwp-setup-not-tt').css({'visibility':'visible'});
}).on('mouseout', function (event) {
$('.ampforwp-setup-not-tt').css({'visibility':'hidden'});
$('.ux-setup-icon').on('click', function(){
$(".amp-ux-valid-require").each(function(){
if($(this).children().hasClass('btn-red')){
$(this).parent('.amp-ux-elem-field').parent('.amp-ux-section-field').css({'box-shadow': '0px 0px 5px black','padding-left': '15px','padding-right': '15px'});
setTimeout(function(){ $(".amp-ux-valid-require").parent('.amp-ux-elem-field').parent('.amp-ux-section-field').removeAttr('style'); }, 500);
function DrawerIcon(icon) {
transformProp = "transform",
transitionProp = "transition",
function setProperty(elem, property, value) {
elem.style[property] = value;
function enableAnimation(duration) {
var transition = propPrefixCss + "transform " + duration + "s ease";
setProperty(line1, transitionProp, transition);
setProperty(line2, transitionProp, transition);
setProperty(line3, transitionProp, transition);
setProperty(ic, transitionProp, transition);
function disableAnimation() {
setProperty(line1, transitionProp, "none");
setProperty(line2, transitionProp, "none");
setProperty(line3, transitionProp, "none");
setProperty(ic, transitionProp, "none");
this.state = function () {
this.setOnClick = function (listener) {
this.set = function (percent) {
rotateLine = 0.45 * percent;
scaleX = 1 - const1 * percent;
transY = 0.054 * percent;
transX = 0.033 * percent;
scaleX2 = 1 - const2 * percent;
transX2 = -0.01 * percent;
rotateIc = 1.80 * percent;
rotateIc = 360 - (1.80 * percent);
setProperty(line1, transformProp, "rotate(" + rotateLine + "deg) scaleX(" + scaleX + ") translateY(" + transY + "px) translateX(" + transX + "px) " + trZ);
setProperty(line2, transformProp, "scaleX(" + scaleX2 + ") translateX(" + transX2 + "px) " + trZ);
setProperty(line3, transformProp, "rotate(" + (-rotateLine) + "deg) scaleX(" + scaleX + ") translateY(" + (-transY) + "px) translateX(" + transX + "px) " + trZ);
setProperty(ic, transformProp, "rotate(" + rotateIc + "deg) " + trZ);
this.setState = function (state, duration) {
duration = duration || 0.225;
enableAnimation(duration);
}, Number(duration) * 1000);
this.lock = function () {
this.unLock = function () {
icon.innerHTML += '<span class="ic"><i class="line one"></i><i class="line two"></i><i class="line thr"></i></span>';
ic = icon.querySelector(".ic");
line1 = ic.querySelector(".one");
line2 = ic.querySelector(".two");
line3 = ic.querySelector(".thr");
var testEl = document.createElement('div'),
if (testEl.style.transform === undefined) {
vendors = ['Webkit', 'Moz', 'ms', 'O'];
for (var vendor in vendors) {
if (testEl.style[vendors[vendor] + 'Transform'] !== undefined) {
transformProp = vendors[vendor] + 'Transform';
propPrefixCss = "-" + vendors[vendor].toLowerCase() + "-";
if (testEl.style[vendors[vendor] + 'Transition'] !== undefined) {
transitionProp = vendors[vendor] + 'Transition';
if (/.*opera.*presto/i.test(navigator.userAgent)) {
$("#subscribe-newsletter-form").on('submit',function(e){
var $form = $("#subscribe-newsletter-form");
var name = $form.find('input[name="name"]').val();
var email = $form.find('input[name="email"]').val();
var website = $form.find('input[name="company"]').val();
$.post(ajaxurl, {action:'ampforwp_subscribe_newsletter',name:name, email:email,website:website},
// HIDE/SHOW TAG AND CATEGORY #4326
$("#show_amp_taxonomy").on('change', function(){
var thisval = $(this).val();
$("#amp-show-hide-tax").css({'display':'block'});
}else if(thisval=='show'){
$("#amp-show-hide-tax").css({'display':'none'});
$(".hide-show-amp-tax").on('click', function(){
var checkBoxes = $(this).children('input:radio')
checkBoxes.prop("checked", "true");
$("#ampforwp-close-notice").on("click", function(){
action: 'ampforwp_feedback_remove_notice',
$.post(ajaxurl, data, function(response) {
$(".ampforwp_remove_notice").remove();
$("#ampforwp-close-ad-notice").on("click", function(){
action: 'ampforwp_tpd_remove_notice',
$.post(ajaxurl, data, function(response) {
$(".ampforwp_remove_notice").remove();