Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin - Version 1.6.4

Version Description

  • i18n enhancements
  • Small fix to auto tweeting in pro
  • Fixed small IP address issue in hits
  • Added help text
  • Fixed small Google Analytics issue in pro
  • Fixed issue with meta refresh / javascript redirect in pro
  • Added titles to keywords in pro
  • Added redirect header hooks in pro
  • Security Fixes
Download this release

Release Info

Developer supercleanse
Plugin Icon 128x128 Shortlinks by Pretty Links – Best WordPress Link Tracking Plugin
Version 1.6.4
Comparing to
See all releases

Code changes from version 1.6.3 to 1.6.4

classes/models/PrliClick.php CHANGED
@@ -232,11 +232,11 @@ class PrliClick
232
  $type_string = "Unique hits";
233
 
234
  if($title_only)
235
- return __('Pretty Link:').' '.$type_string.' '.__('on').' '.$link_slug.' '.__('between').' '.date("Y-n-j", $start_timestamp).' '.__('and').' '.date("Y-n-j", $end_timestamp);
236
 
237
  $dates_array = $this->get_counts_by_days($start_timestamp,$end_timestamp,$link_id,$type,$group);
238
 
239
- $chart_data = array('cols' => array(array("label" => __('Date'), 'type' => 'string'), array("label" => __('Hits'), 'type' => 'number')));
240
 
241
  foreach($dates_array as $key => $value)
242
  $chart_data['rows'][] = array('c' => array(array('v' => $key, 'f' => null), array('v' => (int)$value, 'f' => null)));
@@ -249,7 +249,7 @@ class PrliClick
249
  {
250
  $values = array(
251
  'paged' => (isset($_GET['paged'])?$_GET['paged']:(isset($_POST['paged'])?$_POST['paged']:1)),
252
- 'l' => (isset($_GET['l'])?$_GET['l']:(isset($_POST['l'])?$_POST['l']:'all')),
253
  'group' => (isset($_GET['group'])?$_GET['group']:(isset($_POST['group'])?$_POST['group']:'')),
254
  'ip' => (isset($_GET['ip'])?$_GET['ip']:(isset($_POST['ip'])?$_POST['ip']:'')),
255
  'vuid' => (isset($_GET['vuid'])?$_GET['vuid']:(isset($_POST['vuid'])?$_POST['vuid']:'')),
@@ -260,7 +260,7 @@ class PrliClick
260
  'sort' => (isset($_GET['sort'])?$_GET['sort']:(isset($_POST['sort'])?$_POST['sort']:'')),
261
  'sdir' => (isset($_GET['sdir'])?$_GET['sdir']:(isset($_POST['sdir'])?$_POST['sdir']:''))
262
  );
263
-
264
  return $values;
265
  }
266
 
232
  $type_string = "Unique hits";
233
 
234
  if($title_only)
235
+ return __('Pretty Link:', 'pretty-link').' '.$type_string.' '.__('on', 'pretty-link').' '.$link_slug.' '.__('between', 'pretty-link').' '.date("Y-n-j", $start_timestamp).' '.__('and', 'pretty-link').' '.date("Y-n-j", $end_timestamp);
236
 
237
  $dates_array = $this->get_counts_by_days($start_timestamp,$end_timestamp,$link_id,$type,$group);
238
 
239
+ $chart_data = array('cols' => array(array("label" => __('Date', 'pretty-link'), 'type' => 'string'), array("label" => __('Hits', 'pretty-link'), 'type' => 'number')));
240
 
241
  foreach($dates_array as $key => $value)
242
  $chart_data['rows'][] = array('c' => array(array('v' => $key, 'f' => null), array('v' => (int)$value, 'f' => null)));
249
  {
250
  $values = array(
251
  'paged' => (isset($_GET['paged'])?$_GET['paged']:(isset($_POST['paged'])?$_POST['paged']:1)),
252
+ 'l' => (isset($_GET['l'])?(int)$_GET['l']:(isset($_POST['l'])?(int)$_POST['l']:'all')),
253
  'group' => (isset($_GET['group'])?$_GET['group']:(isset($_POST['group'])?$_POST['group']:'')),
254
  'ip' => (isset($_GET['ip'])?$_GET['ip']:(isset($_POST['ip'])?$_POST['ip']:'')),
255
  'vuid' => (isset($_GET['vuid'])?$_GET['vuid']:(isset($_POST['vuid'])?$_POST['vuid']:'')),
260
  'sort' => (isset($_GET['sort'])?$_GET['sort']:(isset($_POST['sort'])?$_POST['sort']:'')),
261
  'sdir' => (isset($_GET['sdir'])?$_GET['sdir']:(isset($_POST['sdir'])?$_POST['sdir']:''))
262
  );
263
+
264
  return $values;
265
  }
266
 
classes/models/PrliLink.php CHANGED
@@ -462,34 +462,34 @@ class PrliLink
462
 
463
  $errors = array();
464
  if( ( $values['url'] == null or $values['url'] == '') and $values['redirect_type'] != 'pixel' )
465
- $errors[] = "Target URL can't be blank";
466
 
467
  if( $values['slug'] == null or $values['slug'] == '' )
468
- $errors[] = "Pretty Link can't be blank";
469
 
470
  if( $values['url'] == $prli_blogurl.PrliUtils::get_permalink_pre_slug_uri().$values['slug'] )
471
- $errors[] = "Target URL must be different than the Pretty Link";
472
 
473
  if( !empty($values['url']) and
474
  !preg_match('/^http.?:\/\/.*\..*$/', $values['url'] ) and
475
  !preg_match('!^(http|https)://(localhost|127\.0\.0\.1)(:\d+)?(/[\w- ./?%&=]*)?!', $values['url'] ) )
476
- $errors[] = "Link URL must be a correctly formatted url";
477
 
478
  if( preg_match('/^[\?\&\#]+$/', $values['slug'] ) )
479
- $errors[] = "Pretty Link slugs must not contain question marks, ampersands or number signs.";
480
 
481
  if( preg_match('#/$#', $values['slug']) )
482
- $errors[] = "Pretty Link slugs must not end with a slash (\"/\")";
483
 
484
  $id = isset($values['id'])?$values['id']:null;
485
  if( !$prli_utils->slugIsAvailable($values['slug'],$id) )
486
- $errors[] = "This Pretty Link Slug is already taken. Check to make sure it isn't being used by another pretty link, post, page, category or tag slug. If none of these are true then check to see that this slug isn't the name of a file in the root folder of your wordpress install.";
487
 
488
  if( isset($values['param_forwarding']) and $values['param_forwarding'] == 'custom' and empty($values['param_struct']) )
489
- $errors[] = "If Custom Parameter Forwarding has been selected then you must specify a forwarding format.";
490
 
491
  if( isset($values['param_forwarding']) and $values['param_forwarding'] == 'custom' and !preg_match('#%.*?%#', $values['param_struct']) )
492
- $errors[] = "Your parameter forwarding must have at least one parameter specified in the format ex: <code>/%var1%/%var_two%/%varname3% ...</code>";
493
 
494
  return $errors;
495
  }
462
 
463
  $errors = array();
464
  if( ( $values['url'] == null or $values['url'] == '') and $values['redirect_type'] != 'pixel' )
465
+ $errors[] = __("Target URL can't be blank", 'pretty-link');
466
 
467
  if( $values['slug'] == null or $values['slug'] == '' )
468
+ $errors[] = __("Pretty Link can't be blank", 'pretty-link');
469
 
470
  if( $values['url'] == $prli_blogurl.PrliUtils::get_permalink_pre_slug_uri().$values['slug'] )
471
+ $errors[] = __("Target URL must be different than the Pretty Link", 'pretty-link');
472
 
473
  if( !empty($values['url']) and
474
  !preg_match('/^http.?:\/\/.*\..*$/', $values['url'] ) and
475
  !preg_match('!^(http|https)://(localhost|127\.0\.0\.1)(:\d+)?(/[\w- ./?%&=]*)?!', $values['url'] ) )
476
+ $errors[] = __("Link URL must be a correctly formatted url", 'pretty-link');
477
 
478
  if( preg_match('/^[\?\&\#]+$/', $values['slug'] ) )
479
+ $errors[] = __("Pretty Link slugs must not contain question marks, ampersands or number signs.", 'pretty-link');
480
 
481
  if( preg_match('#/$#', $values['slug']) )
482
+ $errors[] = __("Pretty Link slugs must not end with a slash (\"/\")", 'pretty-link');
483
 
484
  $id = isset($values['id'])?$values['id']:null;
485
  if( !$prli_utils->slugIsAvailable($values['slug'],$id) )
486
+ $errors[] = __("This Pretty Link Slug is already taken. Check to make sure it isn't being used by another pretty link, post, page, category or tag slug. If none of these are true then check to see that this slug isn't the name of a file in the root folder of your wordpress install.", 'pretty-link');
487
 
488
  if( isset($values['param_forwarding']) and $values['param_forwarding'] == 'custom' and empty($values['param_struct']) )
489
+ $errors[] = __("If Custom Parameter Forwarding has been selected then you must specify a forwarding format.", 'pretty-link');
490
 
491
  if( isset($values['param_forwarding']) and $values['param_forwarding'] == 'custom' and !preg_match('#%.*?%#', $values['param_struct']) )
492
+ $errors[] = __("Your parameter forwarding must have at least one parameter specified in the format ex: <code>/%var1%/%var_two%/%varname3% ...</code>", 'pretty-link');
493
 
494
  return $errors;
495
  }
classes/views/prli-clicks/list.php CHANGED
@@ -4,21 +4,21 @@
4
  require(PRLI_VIEWS_PATH.'/shared/nav.php');
5
  ?>
6
  <?php echo PrliAppHelper::page_title(__('Hits', 'pretty-link')); ?>
7
- <span style="font-size: 14px; font-weight: bold;">For <?php echo stripslashes($link_name); ?>: </span>
8
  <?php
9
  // Don't show this sheesh if we're displaying the vuid or ip grouping
10
  if(empty($params['ip']) and empty($params['vuid']))
11
  {
12
  ?>
13
- <a href="#" style="display:inline;" class="filter_toggle">Customize Report</a>
14
  <?php
15
  }
16
  ?>
17
  <?php
18
  if(!empty($params['l']) and $params['l'] != 'all')
19
- echo '<br/><a href="' . admin_url("admin.php?page=pretty-link") . '">&laquo Back to Links</a>';
20
  else if(!empty($params['ip']) or !empty($params['vuid']))
21
- echo '<br/><a href="?page='. PRLI_PLUGIN_NAME .'/prli-clicks.php">&laquo Back to Hits</a>';
22
 
23
  if(empty($params['ip']) and empty($params['vuid']))
24
  {
@@ -28,20 +28,20 @@
28
  <div class="filter_pane">
29
  <form class="form-fields" name="form2" method="post" action="">
30
  <?php wp_nonce_field('prli-reports'); ?>
31
- <span>Type:</span>&nbsp;
32
  <select id="type" name="type" style="display: inline;">
33
- <option value="all"<?php print ((empty($params['type']) or $params['type'] == "all")?" selected=\"true\"":""); ?>>All Hits&nbsp;</option>
34
- <option value="unique"<?php print (($params['type'] == "unique")?" selected=\"true\"":""); ?>>Unique Hits&nbsp;</option>
35
  </select>
36
  <br/>
37
  <br/>
38
- <span>Date Range:</span>
39
  <div id="dateselectors" style="display: inline;">
40
- <input type="text" name="sdate" id="sdate" value="<?php echo $params['sdate']; ?>" style="display:inline;"/>&nbsp;to&nbsp;<input type="text" name="edate" id="edate" value="<?php echo $params['edate']; ?>" style="display:inline;"/>
41
  </div>
42
  <br/>
43
  <br/>
44
- <div class="submit" style="display: inline;"><input type="submit" name="Submit" value="Customize"/> or <a href="#" class="filter_toggle">Cancel</a></div>
45
  </form>
46
  </div>
47
 
@@ -65,7 +65,7 @@
65
  if(!empty($search_str))
66
  {
67
  ?>
68
- or <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo (!empty($params['l'])?'&l='.$params['l']:''); ?>">Reset</a>
69
  <?php
70
  }
71
  ?>
@@ -76,33 +76,33 @@
76
  <thead>
77
  <tr>
78
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
79
- <th class="manage-column" width="5%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=btype<?php echo (($sort_str == 'btype' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Browser<?php echo (($sort_str == 'btype')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
80
  </th>
81
  <?php } ?>
82
  <th class="manage-column" width="12%">
83
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=ip<?php echo (($sort_str == 'ip' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">IP<?php echo (($sort_str == 'ip')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
84
  </th>
85
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
86
  <th class="manage-column" width="12%">
87
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=vuid<?php echo (($sort_str == 'vuid' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Visitor<?php echo (($sort_str == 'vuid')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
88
  </th>
89
  <?php } ?>
90
  <th class="manage-column" width="13%">
91
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=created_at<?php echo (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Timestamp<?php echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
92
  </th>
93
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
94
  <th class="manage-column" width="16%">
95
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=host<?php echo (($sort_str == 'host' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Host<?php echo (($sort_str == 'host')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
96
  </th>
97
  <?php } ?>
98
  <th class="manage-column" width="16%">
99
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=uri<?php echo (($sort_str == 'uri' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">URI<?php echo (($sort_str == 'uri')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
100
  </th>
101
  <th class="manage-column" width="16%">
102
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=referer<?php echo (($sort_str == 'referer' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Referrer<?php echo (($sort_str == 'referer')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
103
  </th>
104
  <th class="manage-column" width="13%">
105
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=link<?php echo (($sort_str == 'link' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Link<?php echo (($sort_str == 'link')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
106
  </th>
107
  </tr>
108
  </thead>
@@ -112,7 +112,7 @@
112
  {
113
  ?>
114
  <tr>
115
- <td colspan="7">No Hits have been recorded yet</td>
116
  </tr>
117
  <?php
118
  }
@@ -144,24 +144,24 @@
144
  <tfoot>
145
  <tr>
146
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
147
- <th class="manage-column">Browser</th>
148
  <?php } ?>
149
- <th class="manage-column">IP</th>
150
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
151
- <th class="manage-column">Visitor</th>
152
  <?php } ?>
153
- <th class="manage-column">Timestamp</th>
154
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
155
- <th class="manage-column">Host</th>
156
  <?php } ?>
157
- <th class="manage-column">URI</th>
158
- <th class="manage-column">Referrer</th>
159
- <th class="manage-column">Link</th>
160
  </tr>
161
  </tfoot>
162
  </table>
163
 
164
- <a href="?page=pretty-link/prli-clicks.php&action=csv<?php echo $page_params; ?>">Download CSV (<?php echo stripslashes($link_name); ?>)</a>
165
 
166
  <?php
167
  require(PRLI_VIEWS_PATH.'/shared/table-nav.php');
4
  require(PRLI_VIEWS_PATH.'/shared/nav.php');
5
  ?>
6
  <?php echo PrliAppHelper::page_title(__('Hits', 'pretty-link')); ?>
7
+ <span style="font-size: 14px; font-weight: bold;"><?php echo __('For', 'pretty-link').' '.stripslashes($link_name); ?>: </span>
8
  <?php
9
  // Don't show this sheesh if we're displaying the vuid or ip grouping
10
  if(empty($params['ip']) and empty($params['vuid']))
11
  {
12
  ?>
13
+ <a href="#" style="display:inline;" class="filter_toggle"><?php _e('Customize Report', 'pretty-link'); ?></a>
14
  <?php
15
  }
16
  ?>
17
  <?php
18
  if(!empty($params['l']) and $params['l'] != 'all')
19
+ echo '<br/><a href="'.admin_url("admin.php?page=pretty-link").'">&laquo '.__("Back to Links", 'pretty-link').'</a>';
20
  else if(!empty($params['ip']) or !empty($params['vuid']))
21
+ echo '<br/><a href="?page='. PRLI_PLUGIN_NAME .'/prli-clicks.php">&laquo '.__("Back to Hits", 'pretty-link').'</a>';
22
 
23
  if(empty($params['ip']) and empty($params['vuid']))
24
  {
28
  <div class="filter_pane">
29
  <form class="form-fields" name="form2" method="post" action="">
30
  <?php wp_nonce_field('prli-reports'); ?>
31
+ <span><?php _e('Type:', 'pretty-link'); ?></span>&nbsp;
32
  <select id="type" name="type" style="display: inline;">
33
+ <option value="all"<?php print ((empty($params['type']) or $params['type'] == "all")?" selected=\"true\"":""); ?>><?php _e('All Hits', 'pretty-link'); ?>&nbsp;</option>
34
+ <option value="unique"<?php print (($params['type'] == "unique")?" selected=\"true\"":""); ?>><?php _e('Unique Hits', 'pretty-link'); ?>&nbsp;</option>
35
  </select>
36
  <br/>
37
  <br/>
38
+ <span><?php _e('Date Range:', 'pretty-link'); ?></span>
39
  <div id="dateselectors" style="display: inline;">
40
+ <input type="text" name="sdate" id="sdate" value="<?php echo $params['sdate']; ?>" style="display:inline;"/>&nbsp;<?php _e('to', 'pretty-link'); ?>&nbsp;<input type="text" name="edate" id="edate" value="<?php echo $params['edate']; ?>" style="display:inline;"/>
41
  </div>
42
  <br/>
43
  <br/>
44
+ <div class="submit" style="display: inline;"><input type="submit" name="Submit" value="Customize"/> <?php _e('or', 'pretty-link'); ?> <a href="#" class="filter_toggle"><?php _e('Cancel', 'pretty-link'); ?></a></div>
45
  </form>
46
  </div>
47
 
65
  if(!empty($search_str))
66
  {
67
  ?>
68
+ <?php _e('or', 'pretty-link'); ?> <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo (!empty($params['l'])?'&l='.$params['l']:''); ?>"><?php _e('Reset', 'pretty-link'); ?></a>
69
  <?php
70
  }
71
  ?>
76
  <thead>
77
  <tr>
78
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
79
+ <th class="manage-column" width="5%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=btype<?php echo (($sort_str == 'btype' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Browser', 'pretty-link'); echo (($sort_str == 'btype')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
80
  </th>
81
  <?php } ?>
82
  <th class="manage-column" width="12%">
83
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=ip<?php echo (($sort_str == 'ip' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('IP', 'pretty-link'); echo (($sort_str == 'ip')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
84
  </th>
85
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
86
  <th class="manage-column" width="12%">
87
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=vuid<?php echo (($sort_str == 'vuid' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Visitor', 'pretty-link'); echo (($sort_str == 'vuid')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
88
  </th>
89
  <?php } ?>
90
  <th class="manage-column" width="13%">
91
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=created_at<?php echo (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Timestamp', 'pretty-link'); echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
92
  </th>
93
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
94
  <th class="manage-column" width="16%">
95
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=host<?php echo (($sort_str == 'host' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Host', 'pretty-link'); echo (($sort_str == 'host')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
96
  </th>
97
  <?php } ?>
98
  <th class="manage-column" width="16%">
99
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=uri<?php echo (($sort_str == 'uri' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('URI', 'pretty-link'); echo (($sort_str == 'uri')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
100
  </th>
101
  <th class="manage-column" width="16%">
102
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=referer<?php echo (($sort_str == 'referer' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Referrer', 'pretty-link'); echo (($sort_str == 'referer')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
103
  </th>
104
  <th class="manage-column" width="13%">
105
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php<?php echo $sort_params; ?>&sort=link<?php echo (($sort_str == 'link' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Link', 'pretty-link'); echo (($sort_str == 'link')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a>
106
  </th>
107
  </tr>
108
  </thead>
112
  {
113
  ?>
114
  <tr>
115
+ <td colspan="7"><?php _e('No Hits have been recorded yet', 'pretty-link'); ?></td>
116
  </tr>
117
  <?php
118
  }
144
  <tfoot>
145
  <tr>
146
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
147
+ <th class="manage-column"><?php _e('Browser', 'pretty-link'); ?></th>
148
  <?php } ?>
149
+ <th class="manage-column"><?php _e('IP', 'pretty-link'); ?></th>
150
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
151
+ <th class="manage-column"><?php _e('Visitor', 'pretty-link'); ?></th>
152
  <?php } ?>
153
+ <th class="manage-column"><?php _e('Timestamp', 'pretty-link'); ?></th>
154
  <?php if( isset($prli_options->extended_tracking) and $prli_options->extended_tracking == "extended" ) { ?>
155
+ <th class="manage-column"><?php _e('Host', 'pretty-link'); ?></th>
156
  <?php } ?>
157
+ <th class="manage-column"><?php _e('URI', 'pretty-link'); ?></th>
158
+ <th class="manage-column"><?php _e('Referrer', 'pretty-link'); ?></th>
159
+ <th class="manage-column"><?php _e('Link', 'pretty-link'); ?></th>
160
  </tr>
161
  </tfoot>
162
  </table>
163
 
164
+ <a href="?page=pretty-link/prli-clicks.php&action=csv<?php echo $page_params; ?>"><?php _e('Download CSV', 'pretty-link'); ?> (<?php echo stripslashes($link_name); ?>)</a>
165
 
166
  <?php
167
  require(PRLI_VIEWS_PATH.'/shared/table-nav.php');
classes/views/prli-groups/edit.php CHANGED
@@ -17,23 +17,23 @@ if(!defined('ABSPATH'))
17
 
18
  <table class="form-table">
19
  <tr class="form-field">
20
- <td width="75px" valign="top">Name: </td>
21
  <td><input type="text" name="name" value="<?php echo htmlspecialchars(stripslashes(((isset($_POST['name']) and $record == null)?$_POST['name']:$record->name))); ?>" size="75">
22
- <br/><span class="setting-description">This is how you'll identify your Group.</span></td>
23
  </tr>
24
  <tr class="form-field">
25
- <td valign="top">Description: </td>
26
  <td><textarea style="height: 100px;" name="description"><?php echo ((isset($_POST['description']) and $record == null)?$_POST['description']:$record->description); ?></textarea>
27
- <br/><span class="setting-description">A Description of this group.</span></td>
28
  </tr>
29
  <tr class="form-field" valign="top">
30
- <td valign="top">Links: </td>
31
  <td valign="top">
32
  <div style="height: 150px; width: 95%; border: 1px solid #8cbdd5; overflow: auto;">
33
  <table width="100%" cellspacing="0">
34
  <thead style="background-color: #dedede; padding: 0px; margin: 0px; line-height: 8px; font-size: 14px;">
35
- <th style="padding-left: 5px; margin: 0px; width: 50%; min-width: 50%;"><strong>Name</strong></th>
36
- <th style="padding-left: 5px; margin: 0px; width: 50%; min-width: 50%;"><strong>Current Group</strong></th>
37
  </thead>
38
  <?php
39
  for($i = 0; $i < count($links); $i++)
@@ -50,13 +50,13 @@ if(!defined('ABSPATH'))
50
  ?>
51
  </table>
52
  </div>
53
- <span class="setting-description">Select some links for this group. <strong>Note: each link can only be in one group at a time.</strong></span></td>
54
  </td>
55
  </tr>
56
  </table>
57
 
58
  <p class="submit">
59
- <input type="submit" name="Submit" value="Update" />&nbsp;or&nbsp;<a href="?page=<?php echo PRLI_PLUGIN_NAME ?>/prli-groups.php">Cancel</a>
60
  </p>
61
 
62
  </form>
17
 
18
  <table class="form-table">
19
  <tr class="form-field">
20
+ <td width="75px" valign="top"><?php _e('Name:', 'pretty-link'); ?> </td>
21
  <td><input type="text" name="name" value="<?php echo htmlspecialchars(stripslashes(((isset($_POST['name']) and $record == null)?$_POST['name']:$record->name))); ?>" size="75">
22
+ <br/><span class="setting-description"><?php _e("This is how you'll identify your Group.", 'pretty-link'); ?></span></td>
23
  </tr>
24
  <tr class="form-field">
25
+ <td valign="top"><?php _e('Description:', 'pretty-link'); ?> </td>
26
  <td><textarea style="height: 100px;" name="description"><?php echo ((isset($_POST['description']) and $record == null)?$_POST['description']:$record->description); ?></textarea>
27
+ <br/><span class="setting-description"><?php _e('A Description of this group.', 'pretty-link'); ?></span></td>
28
  </tr>
29
  <tr class="form-field" valign="top">
30
+ <td valign="top"><?php _e('Links:', 'pretty-link'); ?> </td>
31
  <td valign="top">
32
  <div style="height: 150px; width: 95%; border: 1px solid #8cbdd5; overflow: auto;">
33
  <table width="100%" cellspacing="0">
34
  <thead style="background-color: #dedede; padding: 0px; margin: 0px; line-height: 8px; font-size: 14px;">
35
+ <th style="padding-left: 5px; margin: 0px; width: 50%; min-width: 50%;"><strong><?php _e('Name', 'pretty-link'); ?></strong></th>
36
+ <th style="padding-left: 5px; margin: 0px; width: 50%; min-width: 50%;"><strong><?php _e('Current Group', 'pretty-link'); ?></strong></th>
37
  </thead>
38
  <?php
39
  for($i = 0; $i < count($links); $i++)
50
  ?>
51
  </table>
52
  </div>
53
+ <span class="setting-description"><?php _e('Select some links for this group. <strong>Note: each link can only be in one group at a time.</strong>', 'pretty-link'); ?></span>
54
  </td>
55
  </tr>
56
  </table>
57
 
58
  <p class="submit">
59
+ <input type="submit" name="Submit" value="Update" />&nbsp;<?php _e('or', 'pretty-link'); ?>&nbsp;<a href="?page=<?php echo PRLI_PLUGIN_NAME ?>/prli-groups.php"><?php _e('Cancel', 'pretty-link'); ?></a>
60
  </p>
61
 
62
  </form>
classes/views/prli-groups/list.php CHANGED
@@ -19,7 +19,7 @@ if(!defined('ABSPATH'))
19
  if(!empty($search_str))
20
  {
21
  ?>
22
- or <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php">Reset</a>
23
  <?php
24
  }
25
  ?>
@@ -27,7 +27,7 @@ if(!defined('ABSPATH'))
27
  </form>
28
  </div>
29
  <div id="button_bar">
30
- <p><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=new">Add a Pretty Link Group</a></p>
31
  </div>
32
 
33
  <?php
@@ -36,9 +36,9 @@ if(!defined('ABSPATH'))
36
  <table class="widefat post fixed" cellspacing="0">
37
  <thead>
38
  <tr>
39
- <th class="manage-column" width="50%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=name<?php echo (($sort_str == 'name' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Name<?php echo (($sort_str == 'name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
40
- <th class="manage-column" width="20%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=link_count<?php echo (($sort_str == 'link_count' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Links<?php echo (($sort_str == 'link_count')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
41
- <th class="manage-column" width="30%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=created_at<?php echo (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':''); ?>">Created<?php echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
42
  </tr>
43
  </thead>
44
  <?php
@@ -47,7 +47,7 @@ if(!defined('ABSPATH'))
47
  {
48
  ?>
49
  <tr>
50
- <td colspan="5">No Pretty Link Groups were found</td>
51
  </tr>
52
  <?php
53
  }
@@ -61,10 +61,10 @@ if(!defined('ABSPATH'))
61
  <a class="group_name" href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=edit&id=<?php echo $group->id; ?>" title="Edit <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php echo htmlspecialchars(stripslashes($group->name)); ?></a>
62
  <br/>
63
  <div class="group_actions">
64
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=edit&id=<?php echo $group->id; ?>" title="Edit <?php echo htmlspecialchars(stripslashes($group->name)); ?>">Edit</a>&nbsp;|
65
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=destroy&id=<?php echo $group->id; ?>" onclick="return confirm('Are you sure you want to delete your <?php echo htmlspecialchars(stripslashes($group->name)); ?> Pretty Link Group?');" title="Delete <?php echo htmlspecialchars(stripslashes($group->name)); ?>">Delete</a>&nbsp;|
66
- <a href="<?php echo admin_url("admin.php?page=pretty-link&group={$group->id}"); ?>" title="View links in <?php echo htmlspecialchars(stripslashes($group->name)); ?>">Links</a>&nbsp;|
67
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php&group=<?php echo $group->id; ?>" title="View hits in <?php echo htmlspecialchars(stripslashes($group->name)); ?>">Hits</a>
68
  </div>
69
  </td>
70
  <td><a href="<?php echo admin_url("admin.php?page=pretty-link&group={$group->id}"); ?>" title="View links in <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php echo $group->link_count; ?></a></td>
@@ -76,9 +76,9 @@ if(!defined('ABSPATH'))
76
  ?>
77
  <tfoot>
78
  <tr>
79
- <th class="manage-column">Name</th>
80
- <th class="manage-column">Links</th>
81
- <th class="manage-column">Created</th>
82
  </tr>
83
  </tfoot>
84
  </table>
19
  if(!empty($search_str))
20
  {
21
  ?>
22
+ <?php _e('or', 'pretty-link'); ?> <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php"><?php _e('Reset', 'pretty-link'); ?></a>
23
  <?php
24
  }
25
  ?>
27
  </form>
28
  </div>
29
  <div id="button_bar">
30
+ <p><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=new"><?php _e('Add a Pretty Link Group', 'pretty-link'); ?></a></p>
31
  </div>
32
 
33
  <?php
36
  <table class="widefat post fixed" cellspacing="0">
37
  <thead>
38
  <tr>
39
+ <th class="manage-column" width="50%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=name<?php echo (($sort_str == 'name' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Name', 'pretty-link'); echo (($sort_str == 'name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
40
+ <th class="manage-column" width="20%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=link_count<?php echo (($sort_str == 'link_count' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Links', 'pretty-link'); echo (($sort_str == 'link_count')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
41
+ <th class="manage-column" width="30%"><a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&sort=created_at<?php echo (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':''); ?>"><?php _e('Created', 'pretty-link'); echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL.'/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
42
  </tr>
43
  </thead>
44
  <?php
47
  {
48
  ?>
49
  <tr>
50
+ <td colspan="5"><?php _e('No Pretty Link Groups were found', 'pretty-link'); ?></td>
51
  </tr>
52
  <?php
53
  }
61
  <a class="group_name" href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=edit&id=<?php echo $group->id; ?>" title="Edit <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php echo htmlspecialchars(stripslashes($group->name)); ?></a>
62
  <br/>
63
  <div class="group_actions">
64
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=edit&id=<?php echo $group->id; ?>" title="Edit <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php _e('Edit', 'pretty-link'); ?></a>&nbsp;|
65
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php&action=destroy&id=<?php echo $group->id; ?>" onclick="return confirm('Are you sure you want to delete your <?php echo htmlspecialchars(stripslashes($group->name)); ?> Pretty Link Group?');" title="Delete <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php _e('Delete', 'pretty-link'); ?></a>&nbsp;|
66
+ <a href="<?php echo admin_url("admin.php?page=pretty-link&group={$group->id}"); ?>" title="View links in <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php _e('Links', 'pretty-link'); ?></a>&nbsp;|
67
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-clicks.php&group=<?php echo $group->id; ?>" title="View hits in <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php _e('Hits', 'pretty-link'); ?></a>
68
  </div>
69
  </td>
70
  <td><a href="<?php echo admin_url("admin.php?page=pretty-link&group={$group->id}"); ?>" title="View links in <?php echo htmlspecialchars(stripslashes($group->name)); ?>"><?php echo $group->link_count; ?></a></td>
76
  ?>
77
  <tfoot>
78
  <tr>
79
+ <th class="manage-column"><?php _e('Name', 'pretty-link'); ?></th>
80
+ <th class="manage-column"><?php _e('Links', 'pretty-link'); ?></th>
81
+ <th class="manage-column"><?php _e('Created', 'pretty-link'); ?></th>
82
  </tr>
83
  </tfoot>
84
  </table>
classes/views/prli-groups/new.php CHANGED
@@ -19,23 +19,23 @@ if(!defined('ABSPATH'))
19
 
20
  <table class="form-table">
21
  <tr class="form-field">
22
- <td width="75px" valign="top">Name*: </td>
23
  <td><input type="text" name="name" value="<?php echo $name; ?>" size="75">
24
- <br/><span class="setting-description">This is how you'll identify your Group.</span></td>
25
  </tr>
26
  <tr class="form-field">
27
- <td valign="top">Description: </td>
28
  <td><textarea style="height: 100px;" name="description"><?php echo ((isset($_POST['description']))?$_POST['description']:''); ?></textarea>
29
- <br/><span class="setting-description">A Description of this group.</span></td>
30
  </tr>
31
  <tr class="form-field" valign="top">
32
- <td valign="top">Links: </td>
33
  <td valign="top">
34
  <div style="height: 150px; width: 95%; border: 1px solid #8cbdd5; overflow: auto;">
35
  <table width="100%" cellspacing="0">
36
  <thead style="background-color: #dedede; padding: 0px; margin: 0px; line-height: 8px; font-size: 14px;">
37
- <th width="50%" style="padding-left: 5px; margin: 0px;"><strong>Name</strong></th>
38
- <th width="50%" style="padding-left: 5px; margin: 0px;"><strong>Current Group</strong></th>
39
  </thead>
40
  <?php
41
  for($i = 0; $i < count($links); $i++)
@@ -52,14 +52,14 @@ if(!defined('ABSPATH'))
52
  ?>
53
  </table>
54
  </div>
55
- <span class="setting-description">Select some links for this group. <strong>Note: each link can only be in one group at a time.</strong></span></td>
56
  </td>
57
  </tr>
58
  </table>
59
  </div>
60
 
61
  <p class="submit">
62
- <input type="submit" name="Submit" value="Create" />&nbsp;or&nbsp;<a href="?page=<?php echo PRLI_PLUGIN_NAME ?>/prli-groups.php">Cancel</a>
63
  </p>
64
 
65
  </form>
19
 
20
  <table class="form-table">
21
  <tr class="form-field">
22
+ <td width="75px" valign="top"><?php _e('Name*:', 'pretty-link'); ?> </td>
23
  <td><input type="text" name="name" value="<?php echo $name; ?>" size="75">
24
+ <br/><span class="setting-description"><?php _e("This is how you'll identify your Group.", 'pretty-link'); ?></span></td>
25
  </tr>
26
  <tr class="form-field">
27
+ <td valign="top"><?php _e('Description:', 'pretty-link'); ?> </td>
28
  <td><textarea style="height: 100px;" name="description"><?php echo ((isset($_POST['description']))?$_POST['description']:''); ?></textarea>
29
+ <br/><span class="setting-description"><?php _e('A Description of this group.', 'pretty-link'); ?></span></td>
30
  </tr>
31
  <tr class="form-field" valign="top">
32
+ <td valign="top"><?php _e('Links:', 'pretty-link'); ?> </td>
33
  <td valign="top">
34
  <div style="height: 150px; width: 95%; border: 1px solid #8cbdd5; overflow: auto;">
35
  <table width="100%" cellspacing="0">
36
  <thead style="background-color: #dedede; padding: 0px; margin: 0px; line-height: 8px; font-size: 14px;">
37
+ <th width="50%" style="padding-left: 5px; margin: 0px;"><strong><?php _e('Name', 'pretty-link'); ?></strong></th>
38
+ <th width="50%" style="padding-left: 5px; margin: 0px;"><strong><?php _e('Current Group', 'pretty-link'); ?></strong></th>
39
  </thead>
40
  <?php
41
  for($i = 0; $i < count($links); $i++)
52
  ?>
53
  </table>
54
  </div>
55
+ <span class="setting-description"><?php _e('Select some links for this group. <strong>Note: each link can only be in one group at a time.</strong>', 'pretty-link'); ?></span>
56
  </td>
57
  </tr>
58
  </table>
59
  </div>
60
 
61
  <p class="submit">
62
+ <input type="submit" name="Submit" value="Create" />&nbsp;<?php _e('or', 'pretty-link'); ?>&nbsp;<a href="?page=<?php echo PRLI_PLUGIN_NAME ?>/prli-groups.php"><?php _e('Cancel', 'pretty-link'); ?></a>
63
  </p>
64
 
65
  </form>
classes/views/prli-links/edit.php CHANGED
@@ -20,8 +20,8 @@ if(!defined('ABSPATH'))
20
  ?>
21
 
22
  <p class="submit">
23
- <input type="submit" name="Submit" value="Update" />&nbsp;or&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link'); ?>">Cancel</a>
24
  </p>
25
 
26
  </form>
27
- </div>
20
  ?>
21
 
22
  <p class="submit">
23
+ <input type="submit" name="Submit" value="Update" />&nbsp;<?php _e('or', 'pretty-link'); ?>&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link'); ?>"><?php _e('Cancel', 'pretty-link'); ?></a>
24
  </p>
25
 
26
  </form>
27
+ </div>
classes/views/prli-links/list.php CHANGED
@@ -15,7 +15,7 @@ if(!defined('ABSPATH'))
15
  if(!$permalink_structure or empty($permalink_structure))
16
  {
17
  ?>
18
- <div class="error" style="padding-top: 5px; padding-bottom: 5px;"><strong>WordPress Must be Configured:</strong> Pretty Link won't work until you select a Permalink Structure other than "Default" ... <a href="<?php echo $prli_siteurl; ?>/wp-admin/options-permalink.php">Permalink Settings</a></div>
19
  <?php
20
  }
21
  ?>
@@ -32,7 +32,7 @@ if(!defined('ABSPATH'))
32
  if(!empty($search_str))
33
  {
34
  ?>
35
- or <a href="<?php echo admin_url('admin.php?page=pretty-link&action=reset'); ?>">Reset</a>
36
  <?php
37
  }
38
  ?>
@@ -40,8 +40,8 @@ if(!defined('ABSPATH'))
40
  </form>
41
  </div>
42
  <div id="button_bar">
43
- <p><a href="<?php echo admin_url('admin.php?page=add-new-pretty-link'); ?>"><img src="<?php echo PRLI_IMAGES_URL . '/pretty-link-add.png'; ?>"/> Add a Pretty Link</a>
44
- &nbsp;|&nbsp;<a href="http://blairwilliams.com/plintro">Watch Pretty Link Intro Video</a>
45
  <?php do_action('prli-link-nav'); ?>
46
  </p>
47
  </div>
@@ -51,7 +51,7 @@ if(!defined('ABSPATH'))
51
  {
52
  ?>
53
  <h3><?php echo $prli_message; ?></h3>
54
- <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php">&laquo Back to Groups</a>
55
  <br/><br/>
56
  <?php
57
  }
@@ -60,12 +60,12 @@ if(!defined('ABSPATH'))
60
  <table class="prli-edit-table widefat post fixed" cellspacing="0">
61
  <thead>
62
  <tr>
63
- <th class="manage-column" width="30%"><input type="checkbox" name="check-all" class="select-all-link-action-checkboxes" style="margin-left: 1px;"/>&nbsp;&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link&sort=name' . (($sort_str == 'name' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>">Name<?php echo (($sort_str == 'name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
64
  <?php do_action('prli_link_column_header'); ?>
65
- <th class="manage-column" width="10%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=clicks' . (($sort_str == 'clicks' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>">Hits / Uniq<?php echo (($sort_str == 'clicks')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
66
- <th class="manage-column" width="5%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=group_name' . (($sort_str == 'group_name' and $sdir_str == 'asc')?'&sdir=desc':'')) ?>">Group<?php echo (($sort_str == 'group_name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
67
- <th class="manage-column" width="12%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=created_at' . (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>">Created<?php echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
68
- <th class="manage-column" width="20%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=slug' . (($sort_str == 'slug' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>">Links<?php echo (($sort_str == 'slug')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
69
  </tr>
70
  </thead>
71
  <tr id="bulk-edit" class="inline-edit-row inline-edit-row-post inline-edit-post bulk-edit-row bulk-edit-row-post bulk-edit-post" style="display: none;">
@@ -113,7 +113,7 @@ if(!defined('ABSPATH'))
113
  {
114
  ?>
115
  <tr>
116
- <td colspan="5">Watch this video to see how to get started! -- <a href="http://blairwilliams.com/xba"><strong>Get More Video Tutorials like this one...</strong></a><br/><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/i6C2Bljby3k&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/i6C2Bljby3k&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></td>
117
  </tr>
118
  <?php
119
  }
@@ -184,18 +184,18 @@ if(!defined('ABSPATH'))
184
  <a class="slug_name" href="<?php echo admin_url('admin.php?page=pretty-link&action=edit&id=' . $link->id); ?>" title="Edit <?php echo stripslashes($link->name); ?>"><?php echo stripslashes($link->name); ?></a>
185
  <br/>
186
  <div class="link_actions">
187
- <a href="<?php echo admin_url('admin.php?page=pretty-link&action=edit&id=' . $link->id); ?>" title="Edit <?php echo $link->slug; ?>">Edit</a>&nbsp;|
188
- <a href="<?php echo admin_url('admin.php?page=pretty-link&action=destroy&id=' . $link->id); ?>" onclick="return confirm('Are you sure you want to delete your <?php echo $link->name; ?> Pretty Link? This will delete the Pretty Link and all of the statistical data about it in your database.');" title="Delete <?php echo $link->slug; ?>">Delete</a>
189
- |&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link&action=reset&id=' . $link->id); ?>" onclick="return confirm('Are you sure you want to reset your <?php echo $link->name; ?> Pretty Link? This will delete all of the statistical data about this Pretty Link in your database.');" title="Reset <?php echo $link->name; ?>">Reset</a>
190
  <?php if( $link->track_me and $prli_options->extended_tracking!='count' ) { ?>
191
- |&nbsp;<a href="<?php echo admin_url("admin.php?page=pretty-link/prli-clicks.php&l={$link->id}"); ?>" title="View clicks for <?php echo $link->slug; ?>">Hits</a>
192
  <?php do_action('prli-link-action',$link->id); ?>
193
  <?php } ?>
194
  <?php if( $link->redirect_type != 'pixel' )
195
  {
196
  ?>
197
- |&nbsp;<a href="http://twitter.com/home?status=<?php echo $pretty_link_url; ?>" target="_blank" title="Post <?php echo $pretty_link_url; ?> to Twitter">Tweet</a>&nbsp;|
198
- <a href="mailto:?subject=Pretty Link&body=<?php echo $pretty_link_url; ?>" target="_blank" title="Send <?php echo $pretty_link_url; ?> in an Email">Email</a>
199
  <?php
200
  }
201
  ?>
@@ -218,7 +218,7 @@ if(!defined('ABSPATH'))
218
  <?php if( $link->redirect_type != 'pixel' )
219
  {
220
  ?>
221
- <span style="font-size: 8px;" title="<?php echo $link->url; ?>"><strong>Target URL:</strong> <?php echo htmlentities((substr($link->url,0,47) . ((strlen($link->url) >= 47)?'...':'')),ENT_COMPAT,'UTF-8'); ?></span></td>
222
  <?php
223
  }
224
  ?>
@@ -229,12 +229,12 @@ if(!defined('ABSPATH'))
229
  ?>
230
  <tfoot>
231
  <tr>
232
- <th class="manage-column"><?php do_action('prli-list-header-icon'); ?>Name</th>
233
  <?php do_action('prli_link_column_footer'); ?>
234
- <th class="manage-column">Hits / Uniq</th>
235
- <th class="manage-column">Group</th>
236
- <th class="manage-column">Created</th>
237
- <th class="manage-column">Links</th>
238
  </tr>
239
  </tfoot>
240
  </table>
15
  if(!$permalink_structure or empty($permalink_structure))
16
  {
17
  ?>
18
+ <div class="error" style="padding-top: 5px; padding-bottom: 5px;"><strong><?php _e("WordPress Must be Configured:</strong> Pretty Link won't work until you select a Permalink Structure other than 'Default'", 'pretty-link'); ?> ... <a href="<?php echo $prli_siteurl; ?>/wp-admin/options-permalink.php"><?php _e('Permalink Settings', 'pretty-link'); ?></a></div>
19
  <?php
20
  }
21
  ?>
32
  if(!empty($search_str))
33
  {
34
  ?>
35
+ or <a href="<?php echo admin_url('admin.php?page=pretty-link&action=reset'); ?>"><?php _e('Reset', 'pretty-link'); ?></a>
36
  <?php
37
  }
38
  ?>
40
  </form>
41
  </div>
42
  <div id="button_bar">
43
+ <p><a href="<?php echo admin_url('admin.php?page=add-new-pretty-link'); ?>"><img src="<?php echo PRLI_IMAGES_URL . '/pretty-link-add.png'; ?>"/> <?php _e('Add a Pretty Link', 'pretty-link'); ?></a>
44
+ &nbsp;|&nbsp;<a href="http://blairwilliams.com/plintro"><?php _e('Watch Pretty Link Intro Video', 'pretty-link'); ?></a>
45
  <?php do_action('prli-link-nav'); ?>
46
  </p>
47
  </div>
51
  {
52
  ?>
53
  <h3><?php echo $prli_message; ?></h3>
54
+ <a href="?page=<?php echo PRLI_PLUGIN_NAME; ?>/prli-groups.php">&laquo <?php _e('Back to Groups', 'pretty-link'); ?></a>
55
  <br/><br/>
56
  <?php
57
  }
60
  <table class="prli-edit-table widefat post fixed" cellspacing="0">
61
  <thead>
62
  <tr>
63
+ <th class="manage-column" width="30%"><input type="checkbox" name="check-all" class="select-all-link-action-checkboxes" style="margin-left: 1px;"/>&nbsp;&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link&sort=name' . (($sort_str == 'name' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>"><?php _e('Name', 'pretty-link'); echo (($sort_str == 'name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
64
  <?php do_action('prli_link_column_header'); ?>
65
+ <th class="manage-column" width="10%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=clicks' . (($sort_str == 'clicks' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>"><?php _e('Hits / Uniq', 'pretty-link'); echo (($sort_str == 'clicks')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
66
+ <th class="manage-column" width="5%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=group_name' . (($sort_str == 'group_name' and $sdir_str == 'asc')?'&sdir=desc':'')) ?>"><?php _e('Group', 'pretty-link'); echo (($sort_str == 'group_name')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
67
+ <th class="manage-column" width="12%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=created_at' . (($sort_str == 'created_at' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>"><?php _e('Created', 'pretty-link'); echo ((empty($sort_str) or $sort_str == 'created_at')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.((empty($sort_str) or $sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
68
+ <th class="manage-column" width="20%"><a href="<?php echo admin_url('admin.php?page=pretty-link&sort=slug' . (($sort_str == 'slug' and $sdir_str == 'asc')?'&sdir=desc':'')); ?>"><?php _e('Links', 'pretty-link'); echo (($sort_str == 'slug')?'&nbsp;&nbsp;&nbsp;<img src="'.PRLI_IMAGES_URL . '/'.(($sdir_str == 'desc')?'arrow_down.png':'arrow_up.png').'"/>':'') ?></a></th>
69
  </tr>
70
  </thead>
71
  <tr id="bulk-edit" class="inline-edit-row inline-edit-row-post inline-edit-post bulk-edit-row bulk-edit-row-post bulk-edit-post" style="display: none;">
113
  {
114
  ?>
115
  <tr>
116
+ <td colspan="5"><?php _e('Watch this video to see how to get started!', 'pretty-link'); ?> -- <a href="http://blairwilliams.com/xba"><strong><?php _e('Get More Video Tutorials like this one', 'pretty-link'); ?>...</strong></a><br/><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/i6C2Bljby3k&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/i6C2Bljby3k&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></td>
117
  </tr>
118
  <?php
119
  }
184
  <a class="slug_name" href="<?php echo admin_url('admin.php?page=pretty-link&action=edit&id=' . $link->id); ?>" title="Edit <?php echo stripslashes($link->name); ?>"><?php echo stripslashes($link->name); ?></a>
185
  <br/>
186
  <div class="link_actions">
187
+ <a href="<?php echo admin_url('admin.php?page=pretty-link&action=edit&id=' . $link->id); ?>" title="Edit <?php echo $link->slug; ?>"><?php _e('Edit', 'pretty-link'); ?></a>&nbsp;|
188
+ <a href="<?php echo admin_url('admin.php?page=pretty-link&action=destroy&id=' . $link->id); ?>" onclick="return confirm('Are you sure you want to delete your <?php echo $link->name; ?> Pretty Link? This will delete the Pretty Link and all of the statistical data about it in your database.');" title="Delete <?php echo $link->slug; ?>"><?php _e('Delete', 'pretty-link'); ?></a>
189
+ |&nbsp;<a href="<?php echo admin_url('admin.php?page=pretty-link&action=reset&id=' . $link->id); ?>" onclick="return confirm('Are you sure you want to reset your <?php echo $link->name; ?> Pretty Link? This will delete all of the statistical data about this Pretty Link in your database.');" title="Reset <?php echo $link->name; ?>"><?php _e('Reset', 'pretty-link'); ?></a>
190
  <?php if( $link->track_me and $prli_options->extended_tracking!='count' ) { ?>
191
+ |&nbsp;<a href="<?php echo admin_url("admin.php?page=pretty-link/prli-clicks.php&l={$link->id}"); ?>" title="View clicks for <?php echo $link->slug; ?>"><?php _e('Hits', 'pretty-link'); ?></a>
192
  <?php do_action('prli-link-action',$link->id); ?>
193
  <?php } ?>
194
  <?php if( $link->redirect_type != 'pixel' )
195
  {
196
  ?>
197
+ |&nbsp;<a href="http://twitter.com/home?status=<?php echo $pretty_link_url; ?>" target="_blank" title="Post <?php echo $pretty_link_url; ?> to Twitter"><?php _e('Tweet', 'pretty-link'); ?></a>&nbsp;|
198
+ <a href="mailto:?subject=Pretty Link&body=<?php echo $pretty_link_url; ?>" target="_blank" title="Send <?php echo $pretty_link_url; ?> in an Email"><?php _e('Email', 'pretty-link'); ?></a>
199
  <?php
200
  }
201
  ?>
218
  <?php if( $link->redirect_type != 'pixel' )
219
  {
220
  ?>
221
+ <span style="font-size: 8px;" title="<?php echo $link->url; ?>"><strong><?php _e('Target URL:', 'pretty-link'); ?></strong> <?php echo htmlentities((substr($link->url,0,47) . ((strlen($link->url) >= 47)?'...':'')),ENT_COMPAT,'UTF-8'); ?></span></td>
222
  <?php
223
  }
224
  ?>
229
  ?>
230
  <tfoot>
231
  <tr>
232
+ <th class="manage-column"><?php do_action('prli-list-header-icon'); ?><?php _e('Name', 'pretty-link'); ?></th>
233
  <?php do_action('prli_link_column_footer'); ?>
234
+ <th class="manage-column"><?php _e('Hits / Uniq', 'pretty-link'); ?></th>
235
+ <th class="manage-column"><?php _e('Group', 'pretty-link'); ?></th>
236
+ <th class="manage-column"><?php _e('Created', 'pretty-link'); ?></th>
237
+ <th class="manage-column"><?php _e('Links', 'pretty-link'); ?></th>
238
  </tr>
239
  </tfoot>
240
  </table>
classes/views/prli-links/new.php CHANGED
@@ -20,8 +20,8 @@ if(!defined('ABSPATH'))
20
  ?>
21
 
22
  <p class="submit">
23
- <input type="submit" name="Submit" value="Create" />&nbsp;or&nbsp;<a href="<?php admin_url('admin.php?page=pretty-link'); ?>">Cancel</a>
24
  </p>
25
 
26
  </form>
27
- </div>
20
  ?>
21
 
22
  <p class="submit">
23
+ <input type="submit" name="Submit" value="Create" />&nbsp;<?php _e('or', 'pretty-link'); ?>&nbsp;<a href="<?php admin_url('admin.php?page=pretty-link'); ?>"><?php _e('Cancel', 'pretty-link'); ?></a>
24
  </p>
25
 
26
  </form>
27
+ </div>
classes/views/prli-options/form.php CHANGED
@@ -11,12 +11,12 @@ $permalink_structure = get_option('permalink_structure');
11
  if(!$permalink_structure or empty($permalink_structure))
12
  {
13
  ?>
14
- <div class="error" style="padding-top: 5px; padding-bottom: 5px;"><strong>WordPress Must be Configured:</strong> Pretty Link won't work until you select a Permalink Structure other than "Default" ... <a href="<?php echo $prli_siteurl; ?>/wp-admin/options-permalink.php">Permalink Settings</a></div>
15
  <?php
16
  }
17
  ?>
18
  <?php do_action('prli-options-message'); ?>
19
- <a href="<?php echo admin_url("admin.php?page=pretty-link"); ?>">&laquo; Pretty Link Admin</a>
20
 
21
  <form name="form1" method="post" action="<?php echo admin_url("/admin.php?page=pretty-link/prli-options.php"); ?>">
22
  <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
@@ -26,25 +26,25 @@ if(!$permalink_structure or empty($permalink_structure))
26
  <ul class="link-toggle-pane" style="list-style-type: none; padding-left: 10px;">
27
  <li>
28
  <h3><?php _e('Link Defaults:', 'pretty-link') ?></h3>
29
- <input type="checkbox" name="<?php echo $link_track_me; ?>" <?php echo (($prli_options->link_track_me != 0)?'checked="true"':''); ?>/>&nbsp; Track Link
30
- <br/><span class="description">Default all new links to be tracked.</span>
31
  </li>
32
  <li>
33
- <input type="checkbox" name="<?php echo $link_nofollow; ?>" <?php echo (($prli_options->link_nofollow != 0)?'checked="true"':''); ?>/>&nbsp; Add <code>nofollow</code> to Link
34
- <br/><span class="description">Add the <code>nofollow</code> attribute by default to new links.</span>
35
  </li>
36
  <li>
37
- <input type="checkbox" name="<?php echo $link_prefix; ?>" <?php echo (($prli_options->link_prefix != 0)?'checked="true"':''); ?>/>&nbsp; Use a prefix from your Permalink structure in your Pretty Links
38
- <br/><span class="description">This option should only be checked if you have elements in your permalink structure that must be present in any link on your site. For example, some WordPress installs don't have the benefit of full rewrite capabilities and in this case you'd need an index.php included in each link (http://example.com/index.php/mycoolslug instead of http://example.com/mycoolslug). If this is the case for you then check this option but the vast majority of users will want to keep this unchecked.</span>
39
  </li>
40
  <li>
41
  <span><strong><?php _e('Default Link Redirection Type:', 'pretty-link') ?> </strong></span>
42
  <select name="<?php echo $link_redirect_type; ?>">
43
- <option value="307" <?php echo (($prli_options->link_redirect_type == '307')?' selected="selected"':''); ?>>Temporary (307)</option>
44
- <option value="301" <?php echo (($prli_options->link_redirect_type == '301')?' selected="selected"':''); ?>>Permanent (301)</option>
45
  <?php do_action('prli_default_redirection_types',$prli_options->link_redirect_type); ?>
46
  </select>
47
- <br/><span class="description">Select the type of redirection you want your newly created links to have.</span>
48
  </li>
49
  <?php do_action('prli_custom_link_options'); ?>
50
  <li>
@@ -58,14 +58,14 @@ if(!$permalink_structure or empty($permalink_structure))
58
  </li>
59
  </ul>
60
  <?php do_action('prli_custom_option_pane'); ?>
61
- <h3><a class="toggle reporting-toggle-button">Reporting Options <span class="reporting-expand" style="display: none;">[+]</span><span class="reporting-collapse">[-]</span></a></h3>
62
  <table class="reporting-toggle-pane form-table">
63
  <tr class="form-field">
64
- <td valign="top">Excluded IP Addresses: </td>
65
  <td>
66
  <input type="text" name="<?php echo $prli_exclude_ips; ?>" value="<?php echo $prli_options->prli_exclude_ips; ?>">
67
- <br/><span class="description">Enter IP Addresses or IP Ranges you want to exclude from your Hit data and Stats. Each IP Address should be separated by commas. Example: <code>192.168.0.1, 192.168.2.1, 192.168.3.4 or 192.168.*.*</code></span>
68
- <br/><span class="description" style="color: red;">Your Current IP Address is <?php echo $_SERVER['REMOTE_ADDR']; ?></span>
69
  </td>
70
  </tr>
71
  <tr>
@@ -108,18 +108,18 @@ if(!$permalink_structure or empty($permalink_structure))
108
  </p>
109
 
110
 
111
- <h3>Trim Hit Database</h3>
112
 
113
  <?php if($prli_options->extended_tracking != 'count') { ?>
114
- <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_30day_clicks" onclick="return confirm('***WARNING*** If you click OK you will delete ALL of the Hit data that is older than 30 days. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete this data because there is no going back!');">Delete Hits older than 30 days</a>
115
- <br/><span class="description">This will clear all hits in your database that are older than 30 days.</span></p>
116
 
117
- <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_90day_clicks" onclick="return confirm('***WARNING*** If you click OK you will delete ALL of the Hit data that is older than 90 days. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete this data because there is no going back!');">Delete Hits older than 90 days</a>
118
- <br/><span class="description">This will clear all hits in your database that are older than 90 days.</span></p>
119
  <?php } ?>
120
 
121
- <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_all_clicks" onclick="return confirm('***WARNING*** If you click OK you will delete ALL of the Hit data in your Database. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete all your data because there is no going back!');">Delete All Hits</a>
122
- <br/><span class="description">Seriously, only click this link if you want to delete all the Hit data in your database.</span></p>
123
 
124
  </form>
125
  </div>
11
  if(!$permalink_structure or empty($permalink_structure))
12
  {
13
  ?>
14
+ <div class="error" style="padding-top: 5px; padding-bottom: 5px;"><strong><?php _e('WordPress Must be Configured:', 'pretty-link'); ?></strong> <?php _e("Pretty Link won't work until you select a Permalink Structure other than 'Default'", 'pretty-link'); ?> ... <a href="<?php echo $prli_siteurl; ?>/wp-admin/options-permalink.php"><?php _e('Permalink Settings', 'pretty-link'); ?></a></div>
15
  <?php
16
  }
17
  ?>
18
  <?php do_action('prli-options-message'); ?>
19
+ <a href="<?php echo admin_url("admin.php?page=pretty-link"); ?>">&laquo; <?php _e('Pretty Link Admin', 'pretty-link'); ?></a>
20
 
21
  <form name="form1" method="post" action="<?php echo admin_url("/admin.php?page=pretty-link/prli-options.php"); ?>">
22
  <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
26
  <ul class="link-toggle-pane" style="list-style-type: none; padding-left: 10px;">
27
  <li>
28
  <h3><?php _e('Link Defaults:', 'pretty-link') ?></h3>
29
+ <input type="checkbox" name="<?php echo $link_track_me; ?>" <?php echo (($prli_options->link_track_me != 0)?'checked="true"':''); ?>/>&nbsp; <?php _e('Track Link', 'pretty-link'); ?>
30
+ <br/><span class="description"><?php _e('Default all new links to be tracked.', 'pretty-link'); ?></span>
31
  </li>
32
  <li>
33
+ <input type="checkbox" name="<?php echo $link_nofollow; ?>" <?php echo (($prli_options->link_nofollow != 0)?'checked="true"':''); ?>/>&nbsp; <?php _e('Add <code>nofollow</code> to Link', 'pretty-link'); ?>
34
+ <br/><span class="description"><?php _e('Add the <code>nofollow</code> attribute by default to new links.', 'pretty-link'); ?></span>
35
  </li>
36
  <li>
37
+ <input type="checkbox" name="<?php echo $link_prefix; ?>" <?php echo (($prli_options->link_prefix != 0)?'checked="true"':''); ?>/>&nbsp; <?php _e('Use a prefix from your Permalink structure in your Pretty Links', 'pretty-link'); ?>
38
+ <br/><span class="description"><?php _e("This option should only be checked if you have elements in your permalink structure that must be present in any link on your site. For example, some WordPress installs don't have the benefit of full rewrite capabilities and in this case you'd need an index.php included in each link (http://example.com/index.php/mycoolslug instead of http://example.com/mycoolslug). If this is the case for you then check this option but the vast majority of users will want to keep this unchecked.", 'pretty-link'); ?></span>
39
  </li>
40
  <li>
41
  <span><strong><?php _e('Default Link Redirection Type:', 'pretty-link') ?> </strong></span>
42
  <select name="<?php echo $link_redirect_type; ?>">
43
+ <option value="307" <?php echo (($prli_options->link_redirect_type == '307')?' selected="selected"':''); ?>><?php _e('Temporary (307)', 'pretty-link'); ?></option>
44
+ <option value="301" <?php echo (($prli_options->link_redirect_type == '301')?' selected="selected"':''); ?>><?php _e('Permanent (301)', 'pretty-link'); ?></option>
45
  <?php do_action('prli_default_redirection_types',$prli_options->link_redirect_type); ?>
46
  </select>
47
+ <br/><span class="description"><?php _e('Select the type of redirection you want your newly created links to have.', 'pretty-link'); ?></span>
48
  </li>
49
  <?php do_action('prli_custom_link_options'); ?>
50
  <li>
58
  </li>
59
  </ul>
60
  <?php do_action('prli_custom_option_pane'); ?>
61
+ <h3><a class="toggle reporting-toggle-button"><?php _e('Reporting Options', 'pretty-link'); ?> <span class="reporting-expand" style="display: none;">[+]</span><span class="reporting-collapse">[-]</span></a></h3>
62
  <table class="reporting-toggle-pane form-table">
63
  <tr class="form-field">
64
+ <td valign="top"><?php _e('Excluded IP Addresses:', 'pretty-link'); ?> </td>
65
  <td>
66
  <input type="text" name="<?php echo $prli_exclude_ips; ?>" value="<?php echo $prli_options->prli_exclude_ips; ?>">
67
+ <br/><span class="description"><?php _e('Enter IP Addresses or IP Ranges you want to exclude from your Hit data and Stats. Each IP Address should be separated by commas. Example: <code>192.168.0.1, 192.168.2.1, 192.168.3.4 or 192.168.*.*</code>', 'pretty-link'); ?></span>
68
+ <br/><span class="description" style="color: red;"><?php _e('Your Current IP Address is', 'pretty-link'); echo $_SERVER['REMOTE_ADDR']; ?></span>
69
  </td>
70
  </tr>
71
  <tr>
108
  </p>
109
 
110
 
111
+ <h3><?php _e('Trim Hit Database', 'pretty-link'); ?></h3>
112
 
113
  <?php if($prli_options->extended_tracking != 'count') { ?>
114
+ <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_30day_clicks" onclick="return confirm('<?php _e('***WARNING*** If you click OK you will delete ALL of the Hit data that is older than 30 days. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete this data because there is no going back!', 'pretty-link'); ?>');"><?php _e('Delete Hits older than 30 days', 'pretty-link'); ?></a>
115
+ <br/><span class="description"><?php _e('This will clear all hits in your database that are older than 30 days.', 'pretty-link'); ?></span></p>
116
 
117
+ <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_90day_clicks" onclick="return confirm('<?php _e('***WARNING*** If you click OK you will delete ALL of the Hit data that is older than 90 days. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete this data because there is no going back!', 'pretty-link'); ?>');"><?php _e('Delete Hits older than 90 days', 'pretty-link'); ?></a>
118
+ <br/><span class="description"><?php _e('This will clear all hits in your database that are older than 90 days.', 'pretty-link'); ?></span></p>
119
  <?php } ?>
120
 
121
+ <p><a href="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI'] ); ?>&action=clear_all_clicks" onclick="return confirm('<?php _e('***WARNING*** If you click OK you will delete ALL of the Hit data in your Database. Your data will be gone forever -- no way to retreive it. Do not click OK unless you are absolutely sure you want to delete all your data because there is no going back!', 'pretty-link'); ?>');"><?php _e('Delete All Hits', 'pretty-link'); ?></a>
122
+ <br/><span class="description"><?php _e('Seriously, only click this link if you want to delete all the Hit data in your database.', 'pretty-link'); ?></span></p>
123
 
124
  </form>
125
  </div>
classes/views/prli-options/pro-settings.php CHANGED
@@ -6,17 +6,17 @@ if(!defined('ABSPATH'))
6
  <div class="wrap">
7
  <?php echo PrliAppHelper::page_title(__('Pro Account Information', 'pretty-link')); ?>
8
  <?php $this_uri = preg_replace('#&.*?$#', '', str_replace( '%7E', '~', $_SERVER['REQUEST_URI'])); ?>
9
- <h3>Pretty Link Pro Account Information</h3>
10
  <?php if($prli_update->pro_is_installed_and_authorized()) { ?>
11
- <p><a href="http://prettylinkpro.com/user-manual">User Manual</a></p>
12
  <?php } ?>
13
  <?php echo $prli_update->pro_cred_form(); ?>
14
  <?php if($prli_update->pro_is_installed_and_authorized()) { ?>
15
- <div><p><strong>Pretty Link Pro is Installed</strong></p><p><a href="<?php echo $this_uri; ?>&action=pro-uninstall" onclick="return confirm('Are you sure you want to Un-Install Pretty Link Pro? This will delete your pro username & password from your local database, remove all the pro software but will leave all your data intact incase you want to reinstall sometime :) ...');" title="Downgrade to Pretty Link Standard" >Downgrade to Pretty Link Standard</a></p><br/><p><strong>Edit/Update Your Profile:</strong><br/><span class="description">Use your account username and password to log in to your Account and Affiliate Control Panel</span></p><p><a href="http://prettylinkpro.com/amember/member.php">Account</a>&nbsp;|&nbsp;<a href="http://prettylinkpro.com/amember/aff_member.php">Affiliate Control Panel</a></div>
16
 
17
  <?php } else { ?>
18
- <p><strong>Ready to take your marketing efforts to the next level?</strong><br/>
19
- <a href="http://prettylinkpro.com">Pretty Link Pro</a> will help you automate, share, test and get more clicks &amp; conversions from your Pretty Links!<br/><br/><a href="http://prettylinkpro.com">Learn More &raquo;</a></p>
20
  <?php } ?>
21
 
22
- </div>
6
  <div class="wrap">
7
  <?php echo PrliAppHelper::page_title(__('Pro Account Information', 'pretty-link')); ?>
8
  <?php $this_uri = preg_replace('#&.*?$#', '', str_replace( '%7E', '~', $_SERVER['REQUEST_URI'])); ?>
9
+ <h3><?php _e('Pretty Link Pro Account Information', 'pretty-link'); ?></h3>
10
  <?php if($prli_update->pro_is_installed_and_authorized()) { ?>
11
+ <p><a href="http://prettylinkpro.com/user-manual"><?php _e('User Manual', 'pretty-link'); ?></a></p>
12
  <?php } ?>
13
  <?php echo $prli_update->pro_cred_form(); ?>
14
  <?php if($prli_update->pro_is_installed_and_authorized()) { ?>
15
+ <div><p><strong><?php _e('Pretty Link Pro is Installed', 'pretty-link'); ?></strong></p><p><a href="<?php echo $this_uri; ?>&action=pro-uninstall" onclick="return confirm('<?php _e('Are you sure you want to Un-Install Pretty Link Pro? This will delete your pro username & password from your local database, remove all the pro software but will leave all your data intact incase you want to reinstall sometime :) ...', 'pretty-link'); ?>');" title="<?php _e('Downgrade to Pretty Link Standard', 'pretty-link'); ?>" ><?php _e('Downgrade to Pretty Link Standard', 'pretty-link'); ?></a></p><br/><p><strong><?php _e('Edit/Update Your Profile:', 'pretty-link'); ?></strong><br/><span class="description"><?php _e('Use your account username and password to log in to your Account and Affiliate Control Panel', 'pretty-link'); ?></span></p><p><a href="http://prettylinkpro.com/amember/member.php"><?php _e('Account', 'pretty-link'); ?></a>&nbsp;|&nbsp;<a href="http://prettylinkpro.com/amember/aff_member.php"><?php _e('Affiliate Control Panel', 'pretty-link'); ?></a></div>
16
 
17
  <?php } else { ?>
18
+ <p><strong><?php _e('Ready to take your marketing efforts to the next level?', 'pretty-link'); ?></strong><br/>
19
+ <a href="http://prettylinkpro.com"><?php _e('Pretty Link Pro', 'pretty-link'); ?></a> <?php _e('will help you automate, share, test and get more clicks and conversions from your Pretty Links!', 'pretty-link'); ?><br/><br/><a href="http://prettylinkpro.com"><?php _e('Learn More', 'pretty-link'); ?> &raquo;</a></p>
20
  <?php } ?>
21
 
22
+ </div>
classes/views/prli-tools/bookmarklet.php CHANGED
@@ -60,7 +60,7 @@ $twitter_status = esc_html( $twitter_status );
60
  <p><a href="http://prettylinkpro.com"><img src="<?php echo PRLI_IMAGES_URL; ?>/prettylink_logo.jpg" /></a></p>
61
  <h4><em><?php _e('here\'s your pretty link for:', 'pretty-link'); ?></em><br/><?php echo $target_url_title; ?><br/>(<span title="<?php echo $target_url; ?>"><?php echo substr($target_url,0,50) . ((strlen($target_url)>50)?"...":''); ?></span>)</h4>
62
  <h2><a href="<?php echo $pretty_link_raw; ?>"><?php echo $pretty_link; ?></a><br/><span class="clippy"><?php echo $pretty_link_raw; ?></span></h2>
63
- <p>send this link to:<br/>
64
  <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url=<?php echo urlencode($pretty_link_raw); ?>&title=<?php echo urlencode($target_url_title); ?>', 'delicious','toolbar=no,width=550,height=550'); return false;"><img src="<?php echo PRLI_IMAGES_URL; ?>/delicious_32.png" title="delicious" width="32px" height="32px" border="0" /></a>&nbsp;&nbsp;
65
  <!-- Place this tag where you want the su badge to render -->
66
  <su:badge layout="6"></su:badge>&nbsp;&nbsp;
60
  <p><a href="http://prettylinkpro.com"><img src="<?php echo PRLI_IMAGES_URL; ?>/prettylink_logo.jpg" /></a></p>
61
  <h4><em><?php _e('here\'s your pretty link for:', 'pretty-link'); ?></em><br/><?php echo $target_url_title; ?><br/>(<span title="<?php echo $target_url; ?>"><?php echo substr($target_url,0,50) . ((strlen($target_url)>50)?"...":''); ?></span>)</h4>
62
  <h2><a href="<?php echo $pretty_link_raw; ?>"><?php echo $pretty_link; ?></a><br/><span class="clippy"><?php echo $pretty_link_raw; ?></span></h2>
63
+ <p><?php _e('send this link to:', 'pretty-link'); ?><br/>
64
  <a href="http://www.delicious.com/save" onclick="window.open('http://www.delicious.com/save?v=5&noui&jump=close&url=<?php echo urlencode($pretty_link_raw); ?>&title=<?php echo urlencode($target_url_title); ?>', 'delicious','toolbar=no,width=550,height=550'); return false;"><img src="<?php echo PRLI_IMAGES_URL; ?>/delicious_32.png" title="delicious" width="32px" height="32px" border="0" /></a>&nbsp;&nbsp;
65
  <!-- Place this tag where you want the su badge to render -->
66
  <su:badge layout="6"></su:badge>&nbsp;&nbsp;
classes/views/prli-tools/form.php CHANGED
@@ -16,18 +16,18 @@ function toggle_iphone_instructions()
16
  ?>
17
  <?php echo PrliAppHelper::page_title(__('Tools', 'pretty-link')); ?>
18
  <h3><?php _e('Bookmarklet:', 'pretty-link'); ?></h3>
19
- <p><strong><a href="<?php echo PrliLink::bookmarklet_link(); ?>">Get PrettyLink</a></strong><br/>
20
  <span class="description"><?php _e('Just drag this "Get PrettyLink" link to your toolbar to install the bookmarklet. As you browse the web, you can just click this bookmarklet to create a pretty link from the current url you\'re looking at. <a href="http://blairwilliams.com/pretty-link-bookmarklet/">(more help)</a>', 'pretty-link'); ?></span>
21
  <br/><br/><a href="javascript:toggle_iphone_instructions()"><strong><?php _e('Show iPhone Bookmarklet Instructions', 'pretty-link'); ?></strong></a>
22
  <div class="iphone_instructions" style="display: none"><?php _e('<strong>Note:</strong> iPhone users can install this bookmarklet in their Safari to create Pretty Links with the following steps:', 'pretty-link'); ?><br/>
23
  <ol>
24
- <li>Copy this text:<br/><code><?php echo PrliLink::bookmarklet_link(); ?></code></li>
25
- <li>Tap the + button at the bottom of the screen</li>
26
- <li>Choose "Add Bookmark", rename your bookmark to "Get PrettyLink" (or whatever you want) and then "Save"</li>
27
- <li>Navigate through your Bookmarks folders until you find the new bookmark and click "Edit"</li>
28
- <li>Delete all the text from the address</li>
29
- <li>Paste the text you copied in Step 1 into the address field</li>
30
- <li>To save the changes hit "Bookmarks" and <strong>you're done!</strong> Now when you find a page you want to save off as a Pretty Link, just click the "Bookmarks" icon at the bottom of the screen and select your link.</li>
31
  </ol>
32
  </div>
33
  <?php do_action('prli-add-tools'); ?>
16
  ?>
17
  <?php echo PrliAppHelper::page_title(__('Tools', 'pretty-link')); ?>
18
  <h3><?php _e('Bookmarklet:', 'pretty-link'); ?></h3>
19
+ <p><strong><a href="<?php echo PrliLink::bookmarklet_link(); ?>"><?php _e('Get PrettyLink', 'pretty-link'); ?></a></strong><br/>
20
  <span class="description"><?php _e('Just drag this "Get PrettyLink" link to your toolbar to install the bookmarklet. As you browse the web, you can just click this bookmarklet to create a pretty link from the current url you\'re looking at. <a href="http://blairwilliams.com/pretty-link-bookmarklet/">(more help)</a>', 'pretty-link'); ?></span>
21
  <br/><br/><a href="javascript:toggle_iphone_instructions()"><strong><?php _e('Show iPhone Bookmarklet Instructions', 'pretty-link'); ?></strong></a>
22
  <div class="iphone_instructions" style="display: none"><?php _e('<strong>Note:</strong> iPhone users can install this bookmarklet in their Safari to create Pretty Links with the following steps:', 'pretty-link'); ?><br/>
23
  <ol>
24
+ <li><?php _e('Copy this text:', 'pretty-link'); ?><br/><code><?php echo PrliLink::bookmarklet_link(); ?></code></li>
25
+ <li><?php _e('Tap the + button at the bottom of the screen', 'pretty-link'); ?></li>
26
+ <li><?php _e('Choose "Add Bookmark", rename your bookmark to "Get PrettyLink" (or whatever you want) and then "Save"', 'pretty-link'); ?></li>
27
+ <li><?php _e('Navigate through your Bookmarks folders until you find the new bookmark and click "Edit"', 'pretty-link'); ?></li>
28
+ <li><?php _e('Delete all the text from the address', 'pretty-link'); ?></li>
29
+ <li><?php _e('Paste the text you copied in Step 1 into the address field', 'pretty-link'); ?></li>
30
+ <li><?php _e('To save the changes hit "Bookmarks" and <strong>you\'re done!', 'pretty-link'); ?></strong> <?php _e('Now when you find a page you want to save off as a Pretty Link, just click the "Bookmarks" icon at the bottom of the screen and select your link.', 'pretty-link'); ?></li>
31
  </ol>
32
  </div>
33
  <?php do_action('prli-add-tools'); ?>
classes/views/shared/errors.php CHANGED
@@ -9,11 +9,11 @@
9
  foreach( $errors as $error )
10
  {
11
  ?>
12
- <li><strong>ERROR</strong>: <?php echo esc_html($error); ?></li>
13
  <?php
14
  }
15
  ?>
16
  </ul>
17
  </div>
18
  <?php
19
- }
9
  foreach( $errors as $error )
10
  {
11
  ?>
12
+ <li><strong><?php _e('ERROR', 'pretty-link'); ?></strong>: <?php echo esc_html($error); ?></li>
13
  <?php
14
  }
15
  ?>
16
  </ul>
17
  </div>
18
  <?php
19
+ }
classes/views/shared/link-table-nav.php CHANGED
@@ -7,7 +7,7 @@ if(!defined('ABSPATH'))
7
  {
8
  ?>
9
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
10
- <div class='tablenav-pages'><span class="displaying-num">Displaying <?php echo "$page_first_record&#8211;$page_last_record of $record_count"; ?></span>
11
 
12
  <?php
13
  // Only show the prev page button if the current page is not the first page
@@ -107,7 +107,7 @@ if(!defined('ABSPATH'))
107
  ?>
108
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
109
  <div class='tablenav-pages'>
110
- <span class="displaying-num">Displaying <?php echo "$page_first_record&#8211;$page_last_record of $record_count"; ?></span>
111
  <select class="prli-page-size" onchange="location='<?php echo admin_url("admin.php?page=" . esc_html($_REQUEST['page'].$page_params) . "&paged=1&size='+this.options[this.selectedIndex].value"); ?>">
112
  <option value="10" selected="selected">10</option>
113
  <option value="25" <?php if(isset($_REQUEST['size']) and $_REQUEST['size'] == 25) echo 'selected="selected"'; ?>>25</option>
7
  {
8
  ?>
9
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
10
+ <div class='tablenav-pages'><span class="displaying-num"><?php _e('Displaying', 'pretty-link'); echo "$page_first_record&#8211;$page_last_record of $record_count"; ?></span>
11
 
12
  <?php
13
  // Only show the prev page button if the current page is not the first page
107
  ?>
108
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"$navstyle\"":''); ?>>
109
  <div class='tablenav-pages'>
110
+ <span class="displaying-num"><?php _e('Displaying', 'pretty-link'); echo "$page_first_record&#8211;$page_last_record of $record_count"; ?></span>
111
  <select class="prli-page-size" onchange="location='<?php echo admin_url("admin.php?page=" . esc_html($_REQUEST['page'].$page_params) . "&paged=1&size='+this.options[this.selectedIndex].value"); ?>">
112
  <option value="10" selected="selected">10</option>
113
  <option value="25" <?php if(isset($_REQUEST['size']) and $_REQUEST['size'] == 25) echo 'selected="selected"'; ?>>25</option>
classes/views/shared/nav.php CHANGED
@@ -9,4 +9,4 @@ if(!defined('ABSPATH'))
9
  else
10
  $support_link = "&nbsp;|&nbsp;<a href=\"http://prettylinkpro.com\">" . __('Upgrade to Pro', 'pretty-link') . '</a>';
11
  ?>
12
- <p style="font-size: 14px; font-weight: bold; float: right; text-align: right; padding-top: 0px; padding-right: 10px;"><?php _e('Connect', 'pretty-link'); ?>:&nbsp;&nbsp;<a href="http://twitter.com/blairwilli"><img src="<?php echo PRLI_IMAGES_URL; ?>/twitter_32.png" style="width: 24px; height: 24px;" /></a>&nbsp;<a href="http://www.facebook.com/pages/Pretty-Link/283252860401"><img src="<?php echo PRLI_IMAGES_URL; ?>/facebook_32.png" style="width: 24px; height: 24px;" /></a><br/><?php _e('Get Help', 'pretty-link'); ?>:&nbsp;&nbsp;<a href="http://blairwilliams.com/xba" target="_blank"><?php _e('Tutorials', 'pretty-link'); ?></a><?php echo $support_link; ?>&nbsp;|&nbsp;<a href="http://blairwilliams.com/work"><?php _e('One on One', 'pretty-link'); ?></a></p>
9
  else
10
  $support_link = "&nbsp;|&nbsp;<a href=\"http://prettylinkpro.com\">" . __('Upgrade to Pro', 'pretty-link') . '</a>';
11
  ?>
12
+ <p style="font-size: 14px; font-weight: bold; float: right; text-align: right; padding-top: 0px; padding-right: 10px;"><?php _e('Connect', 'pretty-link'); ?>:&nbsp;&nbsp;<a href="http://twitter.com/blairwilli"><img src="<?php echo PRLI_IMAGES_URL; ?>/twitter_32.png" style="width: 24px; height: 24px;" /></a>&nbsp;<a href="http://www.facebook.com/pages/Pretty-Link/283252860401"><img src="<?php echo PRLI_IMAGES_URL; ?>/facebook_32.png" style="width: 24px; height: 24px;" /></a><br/><?php _e('Get Help', 'pretty-link'); ?>:&nbsp;&nbsp;<a href="http://blairwilliams.com/xba" target="_blank"><?php _e('Tutorials', 'pretty-link'); ?></a><?php echo $support_link; ?>&nbsp;|&nbsp;<a href="http://blairwilliams.com/work"><?php _e('One on One', 'pretty-link'); ?></a></p>
classes/views/shared/table-nav.php CHANGED
@@ -5,7 +5,7 @@
5
  {
6
  ?>
7
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"" . esc_html($navstyle) . "\"":''); ?>>
8
- <div class='tablenav-pages'><span class="displaying-num">Displaying <?php echo esc_html("$page_first_record&#8211;$page_last_record of $record_count"); ?></span>
9
 
10
  <?php
11
  // Only show the prev page button if the current page is not the first page
5
  {
6
  ?>
7
  <div class="tablenav"<?php echo (isset($navstyle)?" style=\"" . esc_html($navstyle) . "\"":''); ?>>
8
+ <div class='tablenav-pages'><span class="displaying-num"><?php _e('Displaying', 'pretty-link'); echo esc_html("$page_first_record&#8211;$page_last_record of $record_count"); ?></span>
9
 
10
  <?php
11
  // Only show the prev page button if the current page is not the first page
classes/views/shared/title_text.php CHANGED
@@ -1,2 +1,2 @@
1
  <?php if(!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); } ?>
2
- <h2 id="prli_title" style="margin: 10px 0px 0px 0px; padding: 0px 0px 0px 169px; height: 64px; background: url(<?php echo PRLI_IMAGES_URL; ?>/prettylink_logo_64.jpg) no-repeat">&nbsp;&nbsp;<?php echo esc_html($page_title); ?></h2>
1
  <?php if(!defined('ABSPATH')) { die('You are not allowed to call this page directly.'); } ?>
2
+ <h2 id="prli_title" style="margin: 10px 0px 0px 0px; padding: 0px 0px 0px 169px; height: 64px; background: url(<?php echo PRLI_IMAGES_URL; ?>/prettylink_logo_64.jpg) no-repeat">&nbsp;&nbsp;<?php echo esc_html($page_title); ?></h2>
i18n/pretty-link.pot CHANGED
@@ -1,59 +1,83 @@
1
- # Copyright (C) 2010 Pretty Link Lite
2
  # This file is distributed under the same license as the Pretty Link Lite package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Pretty Link Lite 1.6.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/pretty-link\n"
7
- "POT-Creation-Date: 2012-11-09 16:40:10+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
15
- #: prli-pro-settings.php:25
16
  msgid ""
17
- "You're almost done!<br/>%1$sFinish your Re-Install of Pretty Link Pro%2$s"
 
18
  msgstr ""
19
 
20
- #: prli-pro-settings.php:33
21
- msgid "Pretty Link Pro Successfully Uninstalled."
22
  msgstr ""
23
 
24
- #: prli-options.php:61 pro/prlipro-options.php:195
25
- msgid "Options saved."
26
  msgstr ""
27
 
28
- #: prli-options.php:68
29
- msgid "Hit Database was Cleared."
30
  msgstr ""
31
 
32
- #: prli-options.php:77
33
- msgid "No hits older than 30 days were found, so nothing was deleted"
34
  msgstr ""
35
 
36
- #: prli-options.php:86
37
- msgid "No hits older than 90 days were found, so nothing was deleted"
38
  msgstr ""
39
 
40
- #: prli-clicks.php:52
41
- msgid "IP Address: "
42
  msgstr ""
43
 
44
- #: prli-clicks.php:58
45
- msgid "Visitor: "
 
46
  msgstr ""
47
 
48
- #: prli-clicks.php:65
49
- msgid "Group: "
50
  msgstr ""
51
 
52
- #: prli-clicks.php:71
53
- msgid "All Links"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  msgstr ""
55
 
56
  #: classes/helpers/PrliLinksHelper.php:14 classes/views/prli-links/form.php:44
 
 
 
 
 
57
  msgid "None"
58
  msgstr ""
59
 
@@ -70,10 +94,14 @@ msgid "Bulk Actions"
70
  msgstr ""
71
 
72
  #: classes/helpers/PrliLinksHelper.php:50
 
 
73
  msgid "Edit"
74
  msgstr ""
75
 
76
  #: classes/helpers/PrliLinksHelper.php:51
 
 
77
  msgid "Delete"
78
  msgstr ""
79
 
@@ -98,226 +126,326 @@ msgstr ""
98
  msgid "On"
99
  msgstr ""
100
 
101
- #: classes/controllers/PrliAppController.php:33
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
102
  msgid ""
103
- "Database Upgrade is required for Pretty Link to work properly<br/>%1"
104
- "$sAutomatically Upgrade your Database%2$s"
105
  msgstr ""
106
 
107
- #: classes/controllers/PrliAppController.php:69
108
- msgid "Your Database Has Been Successfully Upgraded."
109
  msgstr ""
110
 
111
- #: classes/controllers/PrliLinksController.php:65
112
- msgid "Links in Group: "
 
 
 
 
113
  msgstr ""
114
 
115
- #: classes/controllers/PrliLinksController.php:110
116
- #: classes/controllers/PrliLinksController.php:133
117
- msgid "Your Pretty Link was Successfully Created"
 
118
  msgstr ""
119
 
120
- #: classes/controllers/PrliLinksController.php:168
121
- msgid "Your Pretty Link was Successfully Updated"
 
 
122
  msgstr ""
123
 
124
- #: classes/controllers/PrliLinksController.php:183
125
- msgid "Your links were updated successfully"
126
  msgstr ""
127
 
128
- #: classes/controllers/PrliLinksController.php:200
129
- #: classes/controllers/PrliLinksController.php:239
130
- msgid "You are unauthorized to view this page."
131
  msgstr ""
132
 
133
- #: classes/controllers/PrliLinksController.php:206
134
- msgid "Your Pretty Link was Successfully Reset"
135
  msgstr ""
136
 
137
- #: classes/controllers/PrliLinksController.php:213
138
- msgid "Your Pretty Link was Successfully Destroyed"
 
 
139
  msgstr ""
140
 
141
- #: classes/controllers/PrliLinksController.php:226
142
- msgid "Your links were deleted successfully"
 
143
  msgstr ""
144
 
145
- #: classes/controllers/PrliGroupsController.php:17
146
- msgid "An unknown error occurred when creating your group."
 
147
  msgstr ""
148
 
149
- #: classes/controllers/PrliGroupsController.php:26
150
- msgid "Group Created"
 
151
  msgstr ""
152
 
153
- #: classes/controllers/PrliGroupsController.php:32
154
- msgid "A name must be specified for your new group name"
155
  msgstr ""
156
 
157
- #: classes/controllers/PrliGroupsController.php:36
158
- msgid "Cannot add group because security nonce failed"
 
 
159
  msgstr ""
160
 
161
- #: classes/views/prli-options/form.php:7 classes/views/prli-links/form.php:35
162
- #: pro/classes/views/prlipro-options/form.php:7
163
- msgid "Options"
164
  msgstr ""
165
 
166
- #: classes/views/prli-options/form.php:25
167
- msgid "Link Options"
168
  msgstr ""
169
 
170
- #: classes/views/prli-options/form.php:28
171
- msgid "Link Defaults:"
172
  msgstr ""
173
 
174
- #: classes/views/prli-options/form.php:41
175
- msgid "Default Link Redirection Type:"
176
  msgstr ""
177
 
178
- #: classes/views/prli-options/form.php:51 classes/views/prli-links/form.php:36
179
- msgid "Advanced"
180
  msgstr ""
181
 
182
- #: classes/views/prli-options/form.php:52
183
- msgid "WordPress Redirection Action:"
 
 
184
  msgstr ""
185
 
186
- #: classes/views/prli-options/form.php:54
187
- msgid "WordPress 'init' Action"
188
  msgstr ""
189
 
190
- #: classes/views/prli-options/form.php:55
191
- msgid "WordPress 'template_redirect' Action"
 
 
 
 
 
 
192
  msgstr ""
193
 
194
- #: classes/views/prli-options/form.php:57
195
- msgid ""
196
- "Defaults to use WordPress' 'init' action. Init works more reliably for many "
197
- "users but the better option for performance and compatibility is to use the "
198
- "'template_redirect' action."
 
 
199
  msgstr ""
200
 
201
- #: classes/views/prli-options/form.php:73
202
- msgid "Filter Robots"
 
 
203
  msgstr ""
204
 
205
- #: classes/views/prli-options/form.php:74
206
- msgid ""
207
- "Filter known Robots and unidentifiable browser clients from your hit data, "
208
- "stats and reports. <code>IMPORTANT: Any robot hits recorded with any version "
209
- "of Pretty Link before 1.4.22 won't be filtered by this setting.</code>"
210
  msgstr ""
211
 
212
- #: classes/views/prli-options/form.php:77
213
- msgid "Whitelist IP Addresses:"
 
214
  msgstr ""
215
 
216
- #: classes/views/prli-options/form.php:80
217
- msgid ""
218
- "Enter IP Addresses or IP Ranges you want to always include in your Hit data "
219
- "and Stats even if they are flagged as robots. Each IP Address should be "
220
- "separated by commas. Example: <code>192.168.0.1, 192.168.2.1, 192.168.3.4 or "
221
- "192.168.*.*</code>"
222
  msgstr ""
223
 
224
- #: classes/views/prli-options/form.php:88
225
- msgid "Tracking Style:"
 
226
  msgstr ""
227
 
228
- #: classes/views/prli-options/form.php:88
229
- msgid ""
230
- "Note: Changing your tracking style can affect the accuracy of your existing "
231
- "statistics."
232
  msgstr ""
233
 
234
- #: classes/views/prli-options/form.php:92
235
- msgid "Normal Tracking"
 
236
  msgstr ""
237
 
238
- #: classes/views/prli-options/form.php:95
239
- msgid "Extended Tracking (more stats / slower performance)"
 
240
  msgstr ""
241
 
242
- #: classes/views/prli-options/form.php:98
243
- msgid "Simple Click Count Tracking (less stats / faster performance)"
 
244
  msgstr ""
245
 
246
- #: classes/views/prli-options/form.php:107
247
- msgid "Update Options"
248
  msgstr ""
249
 
250
- #: classes/views/prli-options/pro-settings.php:7
251
- msgid "Pro Account Information"
252
  msgstr ""
253
 
254
- #: classes/views/prli-groups/new.php:9
255
- msgid "New Group"
256
  msgstr ""
257
 
258
- #: classes/views/prli-groups/list.php:9
259
- msgid "Groups"
 
 
 
 
260
  msgstr ""
261
 
262
  #: classes/views/prli-groups/edit.php:7
263
  msgid "Edit Group"
264
  msgstr ""
265
 
266
- #: classes/views/prli-links/new.php:7
267
- msgid "Add Link"
 
268
  msgstr ""
269
 
270
- #: classes/views/prli-links/list.php:10
271
- msgid "Links"
272
  msgstr ""
273
 
274
- #: classes/views/prli-links/list.php:79
275
- msgid "Bulk Edit"
276
  msgstr ""
277
 
278
- #: classes/views/prli-links/list.php:86
279
- msgid "Basic Link Options"
280
  msgstr ""
281
 
282
- #: classes/views/prli-links/list.php:87
283
- msgid "Redirect Type"
284
  msgstr ""
285
 
286
- #: classes/views/prli-links/list.php:90 classes/views/prli-links/form.php:41
287
- #: pro/classes/views/prli-links/form.php:62
288
- msgid "Group"
 
 
 
 
 
 
289
  msgstr ""
290
 
291
- #: classes/views/prli-links/list.php:93
292
- msgid "Track"
293
  msgstr ""
294
 
295
- #: classes/views/prli-links/list.php:95
296
- msgid "Nofollow"
 
 
297
  msgstr ""
298
 
299
- #: classes/views/prli-links/list.php:97
300
- msgid "Forward Params"
301
  msgstr ""
302
 
303
- #: classes/views/prli-links/list.php:104
304
- msgid "Cancel"
305
  msgstr ""
306
 
307
- #: classes/views/prli-links/list.php:105
308
- msgid "Update"
 
 
 
 
309
  msgstr ""
310
 
311
- #: classes/views/prli-links/list.php:105
312
- msgid "Bulk Update"
 
 
 
313
  msgstr ""
314
 
315
- #: classes/views/prli-links/list.php:144
316
- msgid "Meta Refresh Redirection"
317
  msgstr ""
318
 
319
- #: classes/views/prli-links/list.php:147
320
- msgid "Javascript Redirection"
 
 
 
 
 
 
 
 
 
321
  msgstr ""
322
 
323
  #: classes/views/prli-links/form.php:5
@@ -342,7 +470,26 @@ msgstr ""
342
  msgid "Title:"
343
  msgstr ""
344
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
345
  #: classes/views/prli-links/form.php:54
 
 
346
  msgid "Add a New Group"
347
  msgstr ""
348
 
@@ -417,400 +564,1793 @@ msgid ""
417
  "links using Google Analytics until one is."
418
  msgstr ""
419
 
420
- #: classes/views/prli-links/form.php:114
421
  msgid ""
422
  "To enable Double Redirection, Keyword Replacements, URL Replacements, URL "
423
  "Rotations, Split Tests, and more, %sUpgrade to Pretty Link Pro%s today!"
424
  msgstr ""
425
 
426
- #: classes/views/prli-links/edit.php:7
427
- msgid "Edit Link"
 
 
428
  msgstr ""
429
 
430
- #: classes/views/prli-clicks/list.php:6 pro/pretty-link-pro.php:164
431
- msgid "Hits"
432
  msgstr ""
433
 
434
- #: classes/views/prli-tools/form.php:17
435
- msgid "Tools"
436
  msgstr ""
437
 
438
- #: classes/views/prli-tools/form.php:18
439
- msgid "Bookmarklet:"
440
  msgstr ""
441
 
442
- #: classes/views/prli-tools/form.php:20
443
- msgid ""
444
- "Just drag this \"Get PrettyLink\" link to your toolbar to install the "
445
- "bookmarklet. As you browse the web, you can just click this bookmarklet to "
446
- "create a pretty link from the current url you're looking at. <a href="
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
447
  "\"http://blairwilliams.com/pretty-link-bookmarklet/\">(more help)</a>"
448
  msgstr ""
449
 
450
- #: classes/views/prli-tools/form.php:21
451
- msgid "Show iPhone Bookmarklet Instructions"