Version Description
- Fixed a small javascript issue
- Fixed a small issue with Keyword Replacements
- Fixed an issue with the pro automatic update code that was affecting lite users
Download this release
Release Info
Developer | supercleanse |
Plugin | Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- app/controllers/PrliUpdateController.php +3 -10
- app/views/shared/link-table-nav.php +2 -2
- i18n/pretty-link.pot +10 -10
- js/prli-admin-links.js +157 -151
- pretty-link.php +2 -2
- readme.txt +9 -1
app/controllers/PrliUpdateController.php
CHANGED
@@ -21,8 +21,8 @@ class PrliUpdateController {
|
|
21 |
add_filter('plugins_api', array($this, 'plugin_info'), 11, 3);
|
22 |
}
|
23 |
|
24 |
-
add_action('admin_init', array($this, 'activate_from_define'));
|
25 |
-
|
26 |
add_action('admin_notices', array($this, 'activation_warning'));
|
27 |
add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
|
28 |
//add_action('prli_display_options', array($this, 'queue_button'));
|
@@ -85,6 +85,7 @@ class PrliUpdateController {
|
|
85 |
try {
|
86 |
$args = compact('domain');
|
87 |
$act = $this->send_mothership_request("/license_keys/activate/{$this->mothership_license}", $args, 'post');
|
|
|
88 |
$this->manually_queue_update();
|
89 |
$message = $act['message'];
|
90 |
|
@@ -141,14 +142,6 @@ class PrliUpdateController {
|
|
141 |
}
|
142 |
}
|
143 |
|
144 |
-
public function maybe_activate() {
|
145 |
-
$activated = get_option('prli_activated');
|
146 |
-
|
147 |
-
if(!$activated) {
|
148 |
-
$this->check_license_activation();
|
149 |
-
}
|
150 |
-
}
|
151 |
-
|
152 |
public function activate_from_define() {
|
153 |
if( defined('PRETTYLINK_LICENSE_KEY') &&
|
154 |
$this->mothership_license != PRETTYLINK_LICENSE_KEY ) {
|
21 |
add_filter('plugins_api', array($this, 'plugin_info'), 11, 3);
|
22 |
}
|
23 |
|
24 |
+
//add_action('admin_init', array($this, 'activate_from_define'));
|
25 |
+
|
26 |
add_action('admin_notices', array($this, 'activation_warning'));
|
27 |
add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts'));
|
28 |
//add_action('prli_display_options', array($this, 'queue_button'));
|
85 |
try {
|
86 |
$args = compact('domain');
|
87 |
$act = $this->send_mothership_request("/license_keys/activate/{$this->mothership_license}", $args, 'post');
|
88 |
+
update_option('prli_activated', true); // if we get here we're activated
|
89 |
$this->manually_queue_update();
|
90 |
$message = $act['message'];
|
91 |
|
142 |
}
|
143 |
}
|
144 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
public function activate_from_define() {
|
146 |
if( defined('PRETTYLINK_LICENSE_KEY') &&
|
147 |
$this->mothership_license != PRETTYLINK_LICENSE_KEY ) {
|
app/views/shared/link-table-nav.php
CHANGED
@@ -84,7 +84,7 @@ if($page_count > 1) {
|
|
84 |
<?php
|
85 |
}
|
86 |
?>
|
87 |
-
<select class="prli-page-size"
|
88 |
<option value="10" selected="selected">10</option>
|
89 |
<option value="25" <?php if($curr_size == 25) echo 'selected="selected"'; ?>>25</option>
|
90 |
<option value="50" <?php if($curr_size == 50) echo 'selected="selected"'; ?>>50</option>
|
@@ -102,7 +102,7 @@ else {
|
|
102 |
<div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
|
103 |
<div class='tablenav-pages'>
|
104 |
<span class="displaying-num"><?php _e('Displaying', 'pretty-link'); ?> <?php echo "$page_first_record–$page_last_record of $record_count"; ?></span>
|
105 |
-
<select class="prli-page-size"
|
106 |
<option value="10" selected="selected">10</option>
|
107 |
<option value="25" <?php if($curr_size == 25) echo 'selected="selected"'; ?>>25</option>
|
108 |
<option value="50" <?php if($curr_size == 50) echo 'selected="selected"'; ?>>50</option>
|
84 |
<?php
|
85 |
}
|
86 |
?>
|
87 |
+
<select class="prli-page-size" data-url="<?php echo admin_url("admin.php?page=pretty-link&paged=1&size="); ?>">
|
88 |
<option value="10" selected="selected">10</option>
|
89 |
<option value="25" <?php if($curr_size == 25) echo 'selected="selected"'; ?>>25</option>
|
90 |
<option value="50" <?php if($curr_size == 50) echo 'selected="selected"'; ?>>50</option>
|
102 |
<div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
|
103 |
<div class='tablenav-pages'>
|
104 |
<span class="displaying-num"><?php _e('Displaying', 'pretty-link'); ?> <?php echo "$page_first_record–$page_last_record of $record_count"; ?></span>
|
105 |
+
<select class="prli-page-size" data-url="<?php echo admin_url("admin.php?page=pretty-link&paged=1&size="); ?>">
|
106 |
<option value="10" selected="selected">10</option>
|
107 |
<option value="25" <?php if($curr_size == 25) echo 'selected="selected"'; ?>>25</option>
|
108 |
<option value="50" <?php if($curr_size == 50) echo 'selected="selected"'; ?>>50</option>
|
i18n/pretty-link.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Pretty Link package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Pretty Link 2.0.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
|
7 |
-
"POT-Creation-Date: 2017-01-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -17,7 +17,7 @@ msgstr ""
|
|
17 |
msgid "Pretty Link | Manage Pretty Links"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#. #-#-#-#-# pretty-link.pot (Pretty Link 2.0.
|
21 |
#. Plugin Name of the plugin/theme
|
22 |
#: app/controllers/PrliAppController.php:37
|
23 |
#: app/controllers/PrliAppController.php:46 app/views/links/form.php:47
|
@@ -241,23 +241,23 @@ msgstr ""
|
|
241 |
msgid "Why you creepin'?"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: app/controllers/PrliUpdateController.php:
|
245 |
msgid "Check for Update"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: app/controllers/PrliUpdateController.php:
|
249 |
msgid "You had an HTTP error connecting to Caseproof's Mothership API"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: app/controllers/PrliUpdateController.php:
|
253 |
msgid "Your License Key was invalid"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: app/controllers/PrliUpdateController.php:
|
257 |
msgid "You do not have access."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: app/controllers/PrliUpdateController.php:
|
261 |
msgid "Edge updates couldn't be updated."
|
262 |
msgstr ""
|
263 |
|
@@ -1696,11 +1696,11 @@ msgstr ""
|
|
1696 |
msgid "Pro Import/Export"
|
1697 |
msgstr ""
|
1698 |
|
1699 |
-
#: pro/app/controllers/PlpKeywordsController.php:
|
1700 |
msgid "Pretty Link Post Build Index"
|
1701 |
msgstr ""
|
1702 |
|
1703 |
-
#: pro/app/controllers/PlpKeywordsController.php:
|
1704 |
#: pro/app/views/links/form.php:128
|
1705 |
msgid "Keywords"
|
1706 |
msgstr ""
|
2 |
# This file is distributed under the same license as the Pretty Link package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Pretty Link 2.0.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pretty-link\n"
|
7 |
+
"POT-Creation-Date: 2017-01-15 18:45:13+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
msgid "Pretty Link | Manage Pretty Links"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#. #-#-#-#-# pretty-link.pot (Pretty Link 2.0.2) #-#-#-#-#
|
21 |
#. Plugin Name of the plugin/theme
|
22 |
#: app/controllers/PrliAppController.php:37
|
23 |
#: app/controllers/PrliAppController.php:46 app/views/links/form.php:47
|
241 |
msgid "Why you creepin'?"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: app/controllers/PrliUpdateController.php:299
|
245 |
msgid "Check for Update"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: app/controllers/PrliUpdateController.php:368
|
249 |
msgid "You had an HTTP error connecting to Caseproof's Mothership API"
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: app/controllers/PrliUpdateController.php:380
|
253 |
msgid "Your License Key was invalid"
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: app/controllers/PrliUpdateController.php:406
|
257 |
msgid "You do not have access."
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: app/controllers/PrliUpdateController.php:410
|
261 |
msgid "Edge updates couldn't be updated."
|
262 |
msgstr ""
|
263 |
|
1696 |
msgid "Pro Import/Export"
|
1697 |
msgstr ""
|
1698 |
|
1699 |
+
#: pro/app/controllers/PlpKeywordsController.php:66
|
1700 |
msgid "Pretty Link Post Build Index"
|
1701 |
msgstr ""
|
1702 |
|
1703 |
+
#: pro/app/controllers/PlpKeywordsController.php:459
|
1704 |
#: pro/app/views/links/form.php:128
|
1705 |
msgid "Keywords"
|
1706 |
msgstr ""
|
js/prli-admin-links.js
CHANGED
@@ -24,187 +24,193 @@ function prli_toggle_link_options() {
|
|
24 |
jQuery('.prlipro-split-test-goal-link').hide();
|
25 |
}
|
26 |
|
27 |
-
(function
|
28 |
-
|
29 |
-
|
30 |
-
$('#redirect_type').change(function() {
|
31 |
prli_toggle_link_options();
|
32 |
-
});
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
|
42 |
-
|
43 |
-
|
|
|
44 |
|
45 |
-
// tab
|
46 |
-
|
47 |
-
return false;
|
48 |
|
49 |
-
|
50 |
-
|
|
|
51 |
|
52 |
-
|
53 |
-
$('
|
54 |
-
$('#pro-options-table').hide();
|
55 |
-
}
|
56 |
-
else {
|
57 |
-
$('#options-table').hide();
|
58 |
-
$('#pro-options-table').show();
|
59 |
-
}
|
60 |
|
61 |
-
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
if(e.which == 13) {
|
67 |
-
e.preventDefault();
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
$('#
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
$("#add_group_message").
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
}
|
98 |
-
}
|
99 |
-
});
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
|
|
107 |
|
108 |
-
|
109 |
-
if ($(this).val() == "")
|
110 |
-
{
|
111 |
-
$(this).addClass("defaultTextActive");
|
112 |
-
$(this).val($(this)[0].title);
|
113 |
-
}
|
114 |
-
});
|
115 |
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
-
|
119 |
-
$(
|
120 |
-
|
121 |
-
|
122 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
});
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
$('#bulk-edit').slideDown('slow');
|
129 |
-
}
|
130 |
-
else if($('.prli_bulk_action').val()=='delete') {
|
131 |
-
var confmsg = $(this).attr('data-confmsg');
|
132 |
-
if(confirm(confmsg)) {
|
133 |
-
var ids = $('.link-action-checkbox:checkbox:checked').map(function() {
|
134 |
-
return $(this).attr('data-id');
|
135 |
-
}).get().join(',');
|
136 |
-
var delurl = $('.prli_bulk_action_apply').attr('data-url') +
|
137 |
-
window.location.search +
|
138 |
-
'&action=bulk-destroy' +
|
139 |
-
'&_wpnonce=' + $('.prli_bulk_action_apply').attr('data-wpnonce') +
|
140 |
-
'&ids=' + ids;
|
141 |
-
|
142 |
-
window.location = delurl;
|
143 |
-
}
|
144 |
-
}
|
145 |
-
});
|
146 |
|
147 |
-
|
148 |
-
|
149 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
150 |
|
151 |
-
|
152 |
-
var ids = $('.link-action-checkbox:checkbox:checked').map(function() {
|
153 |
-
return $(this).attr('data-id');
|
154 |
-
}).get().join(',');
|
155 |
-
var editurl = $('.prli_bulk_action_apply').attr('data-url') +
|
156 |
-
window.location.search +
|
157 |
-
'&action=bulk-update' +
|
158 |
-
'&_wpnonce=' + $('.prli_bulk_action_apply').attr('data-wpnonce') +
|
159 |
-
'&ids=' + ids;
|
160 |
-
|
161 |
-
$('.bulk-edit-select').each( function() {
|
162 |
-
if($(this).val() != '##nochange##')
|
163 |
editurl += '&' + $(this).attr('name') + '=' + encodeURIComponent($(this).val());
|
164 |
-
|
165 |
|
166 |
-
|
167 |
-
editurl += '&' + $(this).attr('name') + '=' + encodeURIComponent($(this).val());
|
168 |
});
|
169 |
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
$('.link-action-checkbox').change( function() {
|
174 |
-
if($(this).prop('checked')==false)
|
175 |
-
$('.select-all-link-action-checkboxes').prop('checked',false);
|
176 |
|
177 |
-
|
178 |
-
|
179 |
-
var nid = $(this).attr('data-id');
|
180 |
-
var ntitle = $(this).attr('data-title');
|
181 |
-
$('#bulk-titles').append('<div id="ttle'+nid+'"><a data-id="'+nid+'" class="ntdelbutton" title="Remove From Bulk Edit">X</a>"'+ntitle+'"</div>');
|
182 |
-
$('.ntdelbutton').click( function() {
|
183 |
var nid = $(this).attr('data-id');
|
184 |
-
$(
|
185 |
-
$('.
|
|
|
|
|
|
|
|
|
|
|
186 |
});
|
187 |
});
|
188 |
-
});
|
189 |
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
|
197 |
-
|
198 |
-
|
|
|
|
|
|
|
|
|
|
|
199 |
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
208 |
});
|
209 |
-
});
|
210 |
})(jQuery);
|
24 |
jQuery('.prlipro-split-test-goal-link').hide();
|
25 |
}
|
26 |
|
27 |
+
(function($) {
|
28 |
+
$(document).ready(function(e) {
|
|
|
|
|
29 |
prli_toggle_link_options();
|
|
|
30 |
|
31 |
+
$('#redirect_type').change(function() {
|
32 |
+
prli_toggle_link_options();
|
33 |
+
});
|
34 |
|
35 |
+
$('#param_forwarding').click(function() {
|
36 |
+
prli_toggle_link_options();
|
37 |
+
});
|
38 |
|
39 |
+
$('.prlipro-enable-split-test').click(function() {
|
40 |
+
prli_toggle_link_options();
|
41 |
+
});
|
42 |
|
43 |
+
// tab swapping
|
44 |
+
$('.nav-tab').click(function() {
|
|
|
45 |
|
46 |
+
// tab is already active. don't do anything
|
47 |
+
if( $(this).hasClass( 'nav-tab-active' ) )
|
48 |
+
return false;
|
49 |
|
50 |
+
$('.nav-tab-active').removeClass( 'nav-tab-active' );
|
51 |
+
$(this).addClass( 'nav-tab-active' );
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
+
if( $(this).attr( 'href' ) == '#options-table' ) {
|
54 |
+
$('#options-table').show();
|
55 |
+
$('#pro-options-table').hide();
|
56 |
+
}
|
57 |
+
else {
|
58 |
+
$('#options-table').hide();
|
59 |
+
$('#pro-options-table').show();
|
60 |
+
}
|
61 |
|
62 |
+
return false;
|
63 |
+
});
|
|
|
|
|
64 |
|
65 |
+
$("#add_group_textbox").keypress(function(e) {
|
66 |
+
// Apparently 13 is the enter key
|
67 |
+
if(e.which == 13) {
|
68 |
+
e.preventDefault();
|
69 |
+
|
70 |
+
var add_new_group_data = {
|
71 |
+
action: 'add_new_prli_group',
|
72 |
+
new_group_name: $('#add_group_textbox').val(),
|
73 |
+
_prli_nonce: $('#add_group_textbox').attr('prli_nonce')
|
74 |
+
};
|
75 |
+
|
76 |
+
$.post(ajaxurl, add_new_group_data, function(data) {
|
77 |
+
if(data['status']=='success') {
|
78 |
+
$('#group_dropdown').append(data['group_option']);
|
79 |
+
$('#group_dropdown').val(data['group_id']);
|
80 |
+
$('#add_group_textbox').val('');
|
81 |
+
$("#add_group_textbox").blur();
|
82 |
+
$("#add_group_message").addClass('updated');
|
83 |
+
$("#add_group_message").text(data['message']);
|
84 |
+
$("#add_group_message").show();
|
85 |
+
|
86 |
+
$("#add_group_message").fadeOut(5000, function(e) {
|
87 |
+
$("#add_group_message").removeClass('updated');
|
88 |
+
});
|
89 |
+
}
|
90 |
+
else {
|
91 |
+
$("#add_group_message").addClass('error');
|
92 |
+
$("#add_group_message").text(data['message']);
|
93 |
+
|
94 |
+
$("#add_group_message").fadeOut(5000, function(e) {
|
95 |
+
$("#add_group_message").removeClass('error');
|
96 |
+
});
|
97 |
+
}
|
98 |
+
});
|
99 |
+
}
|
100 |
+
});
|
101 |
|
102 |
+
$(".defaultText").focus(function(srcc) {
|
103 |
+
if ($(this).val() == $(this)[0].title) {
|
104 |
+
$(this).removeClass("defaultTextActive");
|
105 |
+
$(this).val('');
|
106 |
+
}
|
107 |
+
});
|
|
|
108 |
|
109 |
+
$(".defaultText").blur(function() {
|
110 |
+
if ($(this).val() == "")
|
111 |
+
{
|
112 |
+
$(this).addClass("defaultTextActive");
|
113 |
+
$(this).val($(this)[0].title);
|
114 |
+
}
|
115 |
+
});
|
116 |
|
117 |
+
$(".defaultText").blur();
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
+
$(".link_row").hover( function() {
|
120 |
+
$(this).find(".link_actions").show();
|
121 |
+
},
|
122 |
+
function() {
|
123 |
+
$(this).find(".link_actions").hide();
|
124 |
+
});
|
125 |
|
126 |
+
$('.prli_bulk_action_apply').click( function() {
|
127 |
+
if($('.prli_bulk_action').val()=='edit') {
|
128 |
+
if($('.link-action-checkbox:checkbox:checked').length > 0)
|
129 |
+
$('#bulk-edit').slideDown('slow');
|
130 |
+
}
|
131 |
+
else if($('.prli_bulk_action').val()=='delete') {
|
132 |
+
var confmsg = $(this).attr('data-confmsg');
|
133 |
+
if(confirm(confmsg)) {
|
134 |
+
var ids = $('.link-action-checkbox:checkbox:checked').map(function() {
|
135 |
+
return $(this).attr('data-id');
|
136 |
+
}).get().join(',');
|
137 |
+
var delurl = $('.prli_bulk_action_apply').attr('data-url') +
|
138 |
+
window.location.search +
|
139 |
+
'&action=bulk-destroy' +
|
140 |
+
'&_wpnonce=' + $('.prli_bulk_action_apply').attr('data-wpnonce') +
|
141 |
+
'&ids=' + ids;
|
142 |
+
|
143 |
+
window.location = delurl;
|
144 |
+
}
|
145 |
+
}
|
146 |
});
|
147 |
|
148 |
+
$('.bulk-edit-cancel').click( function() {
|
149 |
+
$('#bulk-edit').slideUp('slow');
|
150 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
|
152 |
+
$('.bulk-edit-update').click( function() {
|
153 |
+
var ids = $('.link-action-checkbox:checkbox:checked').map(function() {
|
154 |
+
return $(this).attr('data-id');
|
155 |
+
}).get().join(',');
|
156 |
+
var editurl = $('.prli_bulk_action_apply').attr('data-url') +
|
157 |
+
window.location.search +
|
158 |
+
'&action=bulk-update' +
|
159 |
+
'&_wpnonce=' + $('.prli_bulk_action_apply').attr('data-wpnonce') +
|
160 |
+
'&ids=' + ids;
|
161 |
+
|
162 |
+
$('.bulk-edit-select').each( function() {
|
163 |
+
if($(this).val() != '##nochange##')
|
164 |
+
editurl += '&' + $(this).attr('name') + '=' + encodeURIComponent($(this).val());
|
165 |
+
});
|
166 |
|
167 |
+
$('.bulk-edit-text').each( function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
editurl += '&' + $(this).attr('name') + '=' + encodeURIComponent($(this).val());
|
169 |
+
});
|
170 |
|
171 |
+
window.location = editurl;
|
|
|
172 |
});
|
173 |
|
174 |
+
$('.link-action-checkbox').change( function() {
|
175 |
+
if($(this).prop('checked')==false)
|
176 |
+
$('.select-all-link-action-checkboxes').prop('checked',false);
|
|
|
|
|
|
|
177 |
|
178 |
+
$('#bulk-titles').html('');
|
179 |
+
$('.link-action-checkbox:checkbox:checked').each( function() {
|
|
|
|
|
|
|
|
|
180 |
var nid = $(this).attr('data-id');
|
181 |
+
var ntitle = $(this).attr('data-title');
|
182 |
+
$('#bulk-titles').append('<div id="ttle'+nid+'"><a data-id="'+nid+'" class="ntdelbutton" title="Remove From Bulk Edit">X</a>"'+ntitle+'"</div>');
|
183 |
+
$('.ntdelbutton').click( function() {
|
184 |
+
var nid = $(this).attr('data-id');
|
185 |
+
$('.link-action-checkbox[data-id='+nid+']').prop('checked',false);
|
186 |
+
$('.link-action-checkbox[data-id='+nid+']').trigger('change');
|
187 |
+
});
|
188 |
});
|
189 |
});
|
|
|
190 |
|
191 |
+
// Check all boxes when the select all box is checked, etc
|
192 |
+
$('.select-all-link-action-checkboxes').change(function() {
|
193 |
+
if($(this).prop('checked'))
|
194 |
+
$('.link-action-checkbox').prop('checked',true);
|
195 |
+
else
|
196 |
+
$('.link-action-checkbox').prop('checked',false);
|
197 |
|
198 |
+
$('.link-action-checkbox').trigger('change');
|
199 |
+
});
|
200 |
+
|
201 |
+
// Set the correct colspan for the bulk-edit form
|
202 |
+
// This is necessary because in some cases, PLP adds a
|
203 |
+
// keyword column to this table -- so it has to be dynamic
|
204 |
+
$('.prli-edit-table td.colspanchange').attr('colspan', $('table.prli-edit-table thead tr th').length);
|
205 |
|
206 |
+
$('#prli_add_link_rotation').on('click', function(e) {
|
207 |
+
e.preventDefault();
|
208 |
+
$('#prli_link_rotations').append(PlpLink.rotation_row_html);
|
209 |
+
});
|
210 |
|
211 |
+
//PAGE TOGGLING IN LIST MODE
|
212 |
+
$('.prli-page-size').change(function() {
|
213 |
+
window.location.href = $(this).data("url") + $(this).val();
|
214 |
+
});
|
215 |
});
|
|
|
216 |
})(jQuery);
|
pretty-link.php
CHANGED
@@ -3,11 +3,11 @@
|
|
3 |
Plugin Name: Pretty Link
|
4 |
Plugin URI: http://prettylinkpro.com
|
5 |
Description: Shrink, track and share any URL on the Internet from your WordPress website!
|
6 |
-
Version: 2.0.
|
7 |
Author: Blair Williams
|
8 |
Author URI: http://blairwilliams.com
|
9 |
Text Domain: pretty-link
|
10 |
-
Copyright: 2004-
|
11 |
|
12 |
GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
|
13 |
This program is free software; you can redistribute it and/or modify
|
3 |
Plugin Name: Pretty Link
|
4 |
Plugin URI: http://prettylinkpro.com
|
5 |
Description: Shrink, track and share any URL on the Internet from your WordPress website!
|
6 |
+
Version: 2.0.2
|
7 |
Author: Blair Williams
|
8 |
Author URI: http://blairwilliams.com
|
9 |
Text Domain: pretty-link
|
10 |
+
Copyright: 2004-2017, Caseproof, LLC
|
11 |
|
12 |
GNU General Public License, Free Software Foundation <http://creativecommons.org/licenses/GPL/2.0/>
|
13 |
This program is free software; you can redistribute it and/or modify
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://prettylinkpro.com
|
|
4 |
Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 4.7.1
|
7 |
-
Stable tag: 2.0.
|
8 |
|
9 |
Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
|
10 |
|
@@ -66,6 +66,11 @@ http://blairwilliams.com/w7a
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
69 |
= 2.0.1 =
|
70 |
* Fixed Link titles on the Pretty Link listing admin screen
|
71 |
* Fixed a small collation issue
|
@@ -141,6 +146,9 @@ http://blairwilliams.com/w7a
|
|
141 |
|
142 |
== Upgrade Notice ==
|
143 |
|
|
|
|
|
|
|
144 |
= 2.0.1 =
|
145 |
* Fixed a few small issues. People should generally upgrade.
|
146 |
|
4 |
Tags: links, link, url, urls, affiliate, affiliates, pretty, marketing, redirect, forward, plugin, twitter, tweet, rewrite, shorturl, hoplink, hop, shortlink, short, shorten, click, clicks, track, tracking, tiny, tinyurl, budurl, shrinking, domain, shrink, mask, masking, cloak, cloaking, slug, slugs, admin, administration, stats, statistics, stat, statistic, email, ajax, javascript, ui, csv, download, page, post, pages, posts, shortcode, seo, automation, widget, widgets, dashboard
|
5 |
Requires at least: 4.7
|
6 |
Tested up to: 4.7.1
|
7 |
+
Stable tag: 2.0.2
|
8 |
|
9 |
Shrink, beautify, track, manage and share any URL on or off of your WordPress website. Create links that look how you want using your own domain name!
|
10 |
|
66 |
|
67 |
== Changelog ==
|
68 |
|
69 |
+
= 2.0.2 =
|
70 |
+
* Fixed a small javascript issue
|
71 |
+
* Fixed a small issue with Keyword Replacements
|
72 |
+
* Fixed an issue with the pro automatic update code that was affecting lite users
|
73 |
+
|
74 |
= 2.0.1 =
|
75 |
* Fixed Link titles on the Pretty Link listing admin screen
|
76 |
* Fixed a small collation issue
|
146 |
|
147 |
== Upgrade Notice ==
|
148 |
|
149 |
+
= 2.0.2 =
|
150 |
+
* Fixed several bugs ... one of which could affect site performance so everyone should upgrade immediately.
|
151 |
+
|
152 |
= 2.0.1 =
|
153 |
* Fixed a few small issues. People should generally upgrade.
|
154 |
|