| Server IP : 192.241.186.36 / Your IP : 216.73.216.164 Web Server : Apache/2.4.29 (Ubuntu) System : Linux webserver7 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 User : root ( 0) PHP Version : 7.4.32 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/myairtrip/wp-content/plugins/pretty-link/js/ |
Upload File : |
jQuery(document).ready(function($) {
// TOOLTIPS
$('.icon-clipboardjs').each(function(i, el) {
var $el = $(el),
copy_text = 'Copy to Clipboard',
copied_text = 'Copied!',
copy_error_text = 'Oops, Copy Failed!',
clipboard = new ClipboardJS(el);
if ($.fn.tooltipster) {
try {
var instance = $el.tooltipster({
theme: 'tooltipster-borderless',
content: copy_text,
trigger: 'custom',
triggerClose: {
mouseleave: true,
touchleave: true
},
triggerOpen: {
mouseenter: true,
touchstart: true
}
}).tooltipster('instance');
clipboard
.on('success', function(e) {
instance
.content(copied_text)
.one('after', function(){
instance.content(copy_text);
});
})
.on('error', function(e) {
instance
.content(copy_error_text)
.one('after', function(){
instance.content(copy_text);
});
});
} catch (e) {
// With tooltipster <=3.3.0 an error will be caught here, just display a static tooltip
$el.tooltipster('destroy').tooltipster({
content: copy_text
});
}
}
});
// Hide Status from Link Bulk Edit
if (window.pagenow === 'edit-pretty-link' && $('#bulk-edit').length) {
$('#bulk-edit').find('select[name="_status"]').closest('.inline-edit-col').hide();
}
// Hide Date/Password/Status from Quick Edit
if (window.pagenow === 'edit-pretty-link') {
$('fieldset.inline-edit-date').hide();
$('.inline-edit-password-input').parent().parent().parent().hide();
$('label.inline-edit-status').parent().hide();
}
// BULK EDIT JS
$(document).on('click', '#bulk_edit', function() {
// Display spinner as ajax can take a while if there's a lot of posts to edit
$('span#prli_bulk_edit_spinner img').fadeIn();
var bulk_row = $('#bulk-edit');
var post_ids = [];
bulk_row.find('#bulk-titles-list li button').each(function() {
post_ids.push($(this).attr('id').replace('_', ''));
});
var nofollow = bulk_row.find('select[name="prli_quick_edit_nofollow"]').val();
var sponsored = bulk_row.find('select[name="prli_quick_edit_sponsored"]').val();
var tracking = bulk_row.find('select[name="prli_quick_edit_tracking"]').val();
$.ajax({
url: ajaxurl,
type: 'POST',
cache: false,
data: {
action: 'prli_links_list_save_bulk_edit',
post_ids: post_ids,
nofollow: nofollow,
sponsored: sponsored,
tracking: tracking,
_ajax_nonce: PrliLinkList.nonce
}
});
});
var $prli_broken_links = $('#prli-broken-links');
$prli_broken_links.on('click', function(e) {
e.preventDefault();
});
$prli_broken_links.tooltipster({
maxWidth: 350,
position: 'right',
interactive: true,
trigger: 'click',
contentAsHTML: true,
content: PrliLinkList.broken_link_text
});
var url_params = new URLSearchParams(window.location.search.substring(1));
if (url_params.get('post_type') === 'pretty-link' && url_params.get('prettypay') === '1') {
$('#posts-filter').append('<input type="hidden" name="prettypay" value="1">');
}
var $customer_portal_notice_popup = $('#prli-customer-portal-notice-popup');
if($customer_portal_notice_popup.length && $.magnificPopup) {
$.magnificPopup.open({
items: {
src: $customer_portal_notice_popup,
type: 'inline'
},
mainClass: 'mfp-prli',
closeOnBgClick: false,
callbacks: {
close: function () {
$.ajax({
method: 'POST',
url: ajaxurl,
data: {
action: 'prli_dismiss_customer_portal_notice',
_ajax_nonce: $customer_portal_notice_popup.data('nonce')
}
});
}
}
});
$('#prli-customer-portal-notice-close').on('click', function () {
$.magnificPopup.close();
});
}
});