Version Description
- Improvement: Add render function for URL input type on settings
- Improvement: Remove Save Changes button on Import/Export setting page
- Bug Fix: Can only click normal links once
- Bug Fix: Exporting CSV produces PHP notice: Undefined index: link_health_issue
- Bug Fix: Fix settings html markup wrapper
Download this release
Release Info
Developer | jkohlbach |
Plugin | ThirstyAffiliates Affiliate Link Manager |
Version | 3.3.1 |
Comparing to | |
See all releases |
Code changes from version 3.3.0 to 3.3.1
- Helpers/Plugin_Constants.php +1 -1
- Models/Affiliate_Link.php +23 -6
- Models/Settings.php +72 -24
- css/admin/ta-settings.css +12 -10
- js/app/ta.js +32 -31
- languages/thirstyaffiliates.pot +102 -102
- readme.txt +10 -3
- thirstyaffiliates.php +1 -1
Helpers/Plugin_Constants.php
CHANGED
@@ -27,7 +27,7 @@ class Plugin_Constants {
|
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
-
const VERSION = '3.3.
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
27 |
// Plugin configuration constants
|
28 |
const TOKEN = 'ta';
|
29 |
const INSTALLED_VERSION = 'ta_installed_version';
|
30 |
+
const VERSION = '3.3.1';
|
31 |
const TEXT_DOMAIN = 'thirstyaffiliates';
|
32 |
const THEME_TEMPLATE_PATH = 'thirstyaffiliates';
|
33 |
const META_DATA_PREFIX = '_ta_';
|
Models/Affiliate_Link.php
CHANGED
@@ -54,7 +54,7 @@ class Affiliate_Link {
|
|
54 |
* Stores affiliate link ID.
|
55 |
*
|
56 |
* @since 3.0.0
|
57 |
-
* @access
|
58 |
* @var array
|
59 |
*/
|
60 |
protected $id;
|
@@ -63,7 +63,7 @@ class Affiliate_Link {
|
|
63 |
* Stores affiliate link data.
|
64 |
*
|
65 |
* @since 3.0.0
|
66 |
-
* @access
|
67 |
* @var array
|
68 |
*/
|
69 |
protected $data = array();
|
@@ -72,7 +72,7 @@ class Affiliate_Link {
|
|
72 |
* Stores affiliate link default data.
|
73 |
*
|
74 |
* @since 3.0.0
|
75 |
-
* @access
|
76 |
* @var array
|
77 |
*/
|
78 |
protected $default_data = array(
|
@@ -101,7 +101,7 @@ class Affiliate_Link {
|
|
101 |
* Stores affiliate link default data.
|
102 |
*
|
103 |
* @since 3.0.0
|
104 |
-
* @access
|
105 |
* @var array
|
106 |
*/
|
107 |
protected $extend_data = array();
|
@@ -119,7 +119,7 @@ class Affiliate_Link {
|
|
119 |
* This is where changes to the $data will be saved.
|
120 |
*
|
121 |
* @since 3.0.0
|
122 |
-
* @access
|
123 |
* @var object
|
124 |
*/
|
125 |
protected $changes = array();
|
@@ -128,11 +128,23 @@ class Affiliate_Link {
|
|
128 |
* Stores boolean if the data has been read from the database or not.
|
129 |
*
|
130 |
* @since 3.0.0
|
131 |
-
* @access
|
132 |
* @var object
|
133 |
*/
|
134 |
protected $object_is_read = false;
|
135 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
136 |
|
137 |
|
138 |
|
@@ -156,6 +168,7 @@ class Affiliate_Link {
|
|
156 |
|
157 |
$this->_constants = ThirstyAffiliates()->helpers[ 'Plugin_Constants' ];
|
158 |
$this->_helper_functions = ThirstyAffiliates()->helpers[ 'Helper_Functions' ];
|
|
|
159 |
|
160 |
if ( filter_var( $id , FILTER_VALIDATE_INT ) && $id ) {
|
161 |
|
@@ -290,6 +303,7 @@ class Affiliate_Link {
|
|
290 |
* Return data property.
|
291 |
*
|
292 |
* @since 3.0.0
|
|
|
293 |
* @access public
|
294 |
*
|
295 |
* @param string $prop Data property slug.
|
@@ -300,6 +314,9 @@ class Affiliate_Link {
|
|
300 |
|
301 |
$default_data = $this->get_merged_default_extended_data();
|
302 |
|
|
|
|
|
|
|
303 |
if ( array_key_exists( $prop , $this->data ) && $this->data[ $prop ] )
|
304 |
$return_value = $this->data[ $prop ];
|
305 |
else
|
54 |
* Stores affiliate link ID.
|
55 |
*
|
56 |
* @since 3.0.0
|
57 |
+
* @access protected
|
58 |
* @var array
|
59 |
*/
|
60 |
protected $id;
|
63 |
* Stores affiliate link data.
|
64 |
*
|
65 |
* @since 3.0.0
|
66 |
+
* @access protected
|
67 |
* @var array
|
68 |
*/
|
69 |
protected $data = array();
|
72 |
* Stores affiliate link default data.
|
73 |
*
|
74 |
* @since 3.0.0
|
75 |
+
* @access protected
|
76 |
* @var array
|
77 |
*/
|
78 |
protected $default_data = array(
|
101 |
* Stores affiliate link default data.
|
102 |
*
|
103 |
* @since 3.0.0
|
104 |
+
* @access protected
|
105 |
* @var array
|
106 |
*/
|
107 |
protected $extend_data = array();
|
119 |
* This is where changes to the $data will be saved.
|
120 |
*
|
121 |
* @since 3.0.0
|
122 |
+
* @access protected
|
123 |
* @var object
|
124 |
*/
|
125 |
protected $changes = array();
|
128 |
* Stores boolean if the data has been read from the database or not.
|
129 |
*
|
130 |
* @since 3.0.0
|
131 |
+
* @access protected
|
132 |
* @var object
|
133 |
*/
|
134 |
protected $object_is_read = false;
|
135 |
|
136 |
+
/**
|
137 |
+
* List of deprecated properties.
|
138 |
+
*
|
139 |
+
* @since 3.3.1
|
140 |
+
* @access protected
|
141 |
+
* @var array
|
142 |
+
*/
|
143 |
+
protected $deprecated_props = array(
|
144 |
+
'link_health_issue',
|
145 |
+
'link_health_issue_ignored'
|
146 |
+
);
|
147 |
+
|
148 |
|
149 |
|
150 |
|
168 |
|
169 |
$this->_constants = ThirstyAffiliates()->helpers[ 'Plugin_Constants' ];
|
170 |
$this->_helper_functions = ThirstyAffiliates()->helpers[ 'Helper_Functions' ];
|
171 |
+
$this->deprecated_props = apply_filters( 'ta_affiliate_link_deprecated_props' , $this->deprecated_props );
|
172 |
|
173 |
if ( filter_var( $id , FILTER_VALIDATE_INT ) && $id ) {
|
174 |
|
303 |
* Return data property.
|
304 |
*
|
305 |
* @since 3.0.0
|
306 |
+
* @since 3.3.1 Make sure deprecated props are ignored.
|
307 |
* @access public
|
308 |
*
|
309 |
* @param string $prop Data property slug.
|
314 |
|
315 |
$default_data = $this->get_merged_default_extended_data();
|
316 |
|
317 |
+
if ( in_array( $prop , $this->deprecated_props ) )
|
318 |
+
return $default;
|
319 |
+
|
320 |
if ( array_key_exists( $prop , $this->data ) && $this->data[ $prop ] )
|
321 |
$return_value = $this->data[ $prop ];
|
322 |
else
|
Models/Settings.php
CHANGED
@@ -190,12 +190,14 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
190 |
* Initialize the list of plugin built-in settings sections and its corresponding options.
|
191 |
*
|
192 |
* @since 3.0.0
|
|
|
193 |
* @access public
|
194 |
*/
|
195 |
public function init_settings_sections_and_options() {
|
196 |
|
197 |
$this->_supported_field_types = apply_filters( 'ta_supported_field_types' , array(
|
198 |
'text' => array( $this , 'render_text_option_field' ),
|
|
|
199 |
'number' => array( $this , 'render_number_option_field' ),
|
200 |
'textarea' => array( $this , 'render_textarea_option_field' ),
|
201 |
'checkbox' => array( $this , 'render_checkbox_option_field' ),
|
@@ -690,6 +692,7 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
690 |
* Settings page view.
|
691 |
*
|
692 |
* @since 3.0.0
|
|
|
693 |
* @access public
|
694 |
*/
|
695 |
public function view_settings_page() {
|
@@ -704,27 +707,38 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
704 |
$active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'ta_general_settings';
|
705 |
?>
|
706 |
|
707 |
-
<
|
708 |
-
<?php foreach ( $this->_settings_sections as $section_key => $section_data ) { ?>
|
709 |
-
<a href="?post_type=thirstylink&page=thirsty-settings&tab=<?php echo $section_key; ?>" class="nav-tab <?php echo $active_tab == $section_key ? 'nav-tab-active' : ''; ?> <?php echo $section_key; ?>"><?php echo $section_data[ 'title' ]; ?></a>
|
710 |
-
<?php } ?>
|
711 |
|
712 |
-
<?php
|
713 |
-
<a class="tapro-upgrade nav-tab" href="https://thirstyaffiliates.com/pricing/?utm_source=Free%20Plugin&utm_medium=Pro&utm_campaign=Admin%20Settings" target="_blank"><?php _e( 'Pro Features →' , 'thirstyaffiliates' ); ?></a>
|
714 |
-
<?php endif; ?>
|
715 |
-
</h2>
|
716 |
|
717 |
-
|
|
|
|
|
|
|
718 |
|
719 |
-
|
|
|
|
|
|
|
720 |
|
721 |
-
<?php
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
|
727 |
-
|
|
|
|
|
728 |
|
729 |
</div><!--wrap-->
|
730 |
|
@@ -800,6 +814,9 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
800 |
*/
|
801 |
public function render_settings_section_fields( $active_tab ) {
|
802 |
|
|
|
|
|
|
|
803 |
?>
|
804 |
|
805 |
<table class="form-table">
|
@@ -817,9 +834,6 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
817 |
else
|
818 |
$this->_supported_field_types[ $option[ 'type' ] ]( $option );
|
819 |
|
820 |
-
// if ( $option[ 'type' ] === 'editor' )
|
821 |
-
// add_filter( );
|
822 |
-
|
823 |
}
|
824 |
|
825 |
}
|
@@ -827,11 +841,11 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
827 |
</tbody>
|
828 |
</table>
|
829 |
|
830 |
-
|
831 |
-
<
|
832 |
-
|
833 |
-
|
834 |
-
<?php
|
835 |
|
836 |
}
|
837 |
|
@@ -878,6 +892,40 @@ class Settings implements Model_Interface , Activatable_Interface , Initiable_In
|
|
878 |
|
879 |
}
|
880 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
881 |
/**
|
882 |
* Render 'text' type option field.
|
883 |
*
|
190 |
* Initialize the list of plugin built-in settings sections and its corresponding options.
|
191 |
*
|
192 |
* @since 3.0.0
|
193 |
+
* @since 3.3.1 Add support for URL input type.
|
194 |
* @access public
|
195 |
*/
|
196 |
public function init_settings_sections_and_options() {
|
197 |
|
198 |
$this->_supported_field_types = apply_filters( 'ta_supported_field_types' , array(
|
199 |
'text' => array( $this , 'render_text_option_field' ),
|
200 |
+
'url' => array( $this , 'render_url_option_field' ),
|
201 |
'number' => array( $this , 'render_number_option_field' ),
|
202 |
'textarea' => array( $this , 'render_textarea_option_field' ),
|
203 |
'checkbox' => array( $this , 'render_checkbox_option_field' ),
|
692 |
* Settings page view.
|
693 |
*
|
694 |
* @since 3.0.0
|
695 |
+
* @since 3.3.1 Add a new <div> to wrap the side navigation and form. Add additional action hooks.
|
696 |
* @access public
|
697 |
*/
|
698 |
public function view_settings_page() {
|
707 |
$active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'ta_general_settings';
|
708 |
?>
|
709 |
|
710 |
+
<div class="ta-settings-wrapper">
|
|
|
|
|
|
|
711 |
|
712 |
+
<?php do_action( 'ta_before_settings_sidenav' ); ?>
|
|
|
|
|
|
|
713 |
|
714 |
+
<h2 class="nav-tab-wrapper">
|
715 |
+
<?php foreach ( $this->_settings_sections as $section_key => $section_data ) { ?>
|
716 |
+
<a href="?post_type=thirstylink&page=thirsty-settings&tab=<?php echo $section_key; ?>" class="nav-tab <?php echo $active_tab == $section_key ? 'nav-tab-active' : ''; ?> <?php echo $section_key; ?>"><?php echo $section_data[ 'title' ]; ?></a>
|
717 |
+
<?php } ?>
|
718 |
|
719 |
+
<?php if ( ! $this->_helper_functions->is_plugin_active( 'thirstyaffiliates-pro/thirstyaffiliates-pro.php' ) ) : ?>
|
720 |
+
<a class="tapro-upgrade nav-tab" href="https://thirstyaffiliates.com/pricing/?utm_source=Free%20Plugin&utm_medium=Pro&utm_campaign=Admin%20Settings" target="_blank"><?php _e( 'Pro Features →' , 'thirstyaffiliates' ); ?></a>
|
721 |
+
<?php endif; ?>
|
722 |
+
</h2>
|
723 |
|
724 |
+
<?php do_action( 'ta_before_settings_form' ); ?>
|
725 |
+
|
726 |
+
<div class="ta-settings-form">
|
727 |
+
|
728 |
+
<form method="post" action="options.php" enctype="multipart/form-data">
|
729 |
+
|
730 |
+
<?php
|
731 |
+
$this->render_settings_section_nonces( $active_tab );
|
732 |
+
$this->render_settings_section_header( $active_tab );
|
733 |
+
$this->render_settings_section_fields( $active_tab );
|
734 |
+
?>
|
735 |
+
|
736 |
+
</form>
|
737 |
+
</div>
|
738 |
|
739 |
+
<?php do_action( 'ta_after_settings_form' ); ?>
|
740 |
+
|
741 |
+
</div>
|
742 |
|
743 |
</div><!--wrap-->
|
744 |
|
814 |
*/
|
815 |
public function render_settings_section_fields( $active_tab ) {
|
816 |
|
817 |
+
$no_save_sections = apply_filters( 'ta_render_settings_no_save_section' , array(
|
818 |
+
'ta_import_export_settings'
|
819 |
+
) );
|
820 |
?>
|
821 |
|
822 |
<table class="form-table">
|
834 |
else
|
835 |
$this->_supported_field_types[ $option[ 'type' ] ]( $option );
|
836 |
|
|
|
|
|
|
|
837 |
}
|
838 |
|
839 |
}
|
841 |
</tbody>
|
842 |
</table>
|
843 |
|
844 |
+
<?php if ( ! in_array( $active_tab , $no_save_sections ) ) : ?>
|
845 |
+
<p class="submit">
|
846 |
+
<input name="submit" id="submit" class="button button-primary" value="<?php _e( 'Save Changes' , 'thirstyaffiliates' ); ?>" type="submit">
|
847 |
+
</p>
|
848 |
+
<?php endif;
|
849 |
|
850 |
}
|
851 |
|
892 |
|
893 |
}
|
894 |
|
895 |
+
/**
|
896 |
+
* Render 'url' type option field.
|
897 |
+
*
|
898 |
+
* @since 3.3.1
|
899 |
+
* @access public
|
900 |
+
*
|
901 |
+
* @param array $option Array of options data. May vary depending on option type.
|
902 |
+
*/
|
903 |
+
public function render_url_option_field( $option ) {
|
904 |
+
|
905 |
+
?>
|
906 |
+
|
907 |
+
<tr valign="top" class="<?php echo esc_attr( $option[ 'id' ] ) . '-row'; ?>">
|
908 |
+
|
909 |
+
<th scope="row"><?php echo sanitize_text_field( $option[ 'title' ] ); ?></th>
|
910 |
+
|
911 |
+
<td class="forminp forminp-<?php echo sanitize_title( $option[ 'type' ] ) ?>">
|
912 |
+
<input
|
913 |
+
type = "url"
|
914 |
+
name = "<?php echo esc_attr( $option[ 'id' ] ); ?>"
|
915 |
+
id = "<?php echo esc_attr( $option[ 'id' ] ); ?>"
|
916 |
+
class = "option-field <?php echo isset( $option[ 'class' ] ) ? esc_attr( $option[ 'class' ] ) : ''; ?>"
|
917 |
+
style = "<?php echo isset( $option[ 'style' ] ) ? $option[ 'style' ] : 'width: 360px;'; ?>"
|
918 |
+
value = "<?php echo get_option( $option[ 'id' ] ); ?>" >
|
919 |
+
<br>
|
920 |
+
<p class="desc"><?php echo isset( $option[ 'desc' ] ) ? $option[ 'desc' ] : ''; ?></p>
|
921 |
+
</td>
|
922 |
+
|
923 |
+
</tr>
|
924 |
+
|
925 |
+
<?php
|
926 |
+
|
927 |
+
}
|
928 |
+
|
929 |
/**
|
930 |
* Render 'text' type option field.
|
931 |
*
|
css/admin/ta-settings.css
CHANGED
@@ -1,31 +1,30 @@
|
|
1 |
#wpbody-content {
|
2 |
padding-bottom: 10px;
|
3 |
-
overflow: hidden !important;
|
4 |
margin-bottom: 45px;
|
5 |
}
|
6 |
-
#wpbody-content .ta-settings {
|
7 |
position: relative;
|
8 |
}
|
9 |
-
#wpbody-content .ta-settings .nav-tab-wrapper {
|
10 |
float: left;
|
11 |
width: 150px;
|
12 |
border: 0;
|
13 |
margin-left: 20px;
|
14 |
}
|
15 |
-
#wpbody-content .ta-settings .nav-tab-wrapper a {
|
16 |
width: 100%;
|
17 |
float: right;
|
18 |
clear: right;
|
19 |
position: relative;
|
20 |
z-index: 3;
|
21 |
}
|
22 |
-
#wpbody-content .ta-settings .nav-tab-wrapper a.nav-tab-active {
|
23 |
border-right: 1px solid #f1f1f1;
|
24 |
}
|
25 |
-
#wpbody-content .ta-settings .nav-tab-wrapper a:last-child {
|
26 |
border-bottom: 1px solid #ccc;
|
27 |
}
|
28 |
-
#wpbody-content .ta-settings .nav-tab-wrapper a.tapro-upgrade.nav-tab {
|
29 |
color: #fff;
|
30 |
background: #338850;
|
31 |
background: -moz-linear-gradient(left, #338850 0%, #2f867e 51%, #2e6e8a 100%);
|
@@ -34,27 +33,30 @@
|
|
34 |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#338850', endColorstr='#2e6e8a',GradientType=1 );
|
35 |
border: 1px solid #276573 !important;
|
36 |
}
|
37 |
-
#wpbody-content .ta-settings > form {
|
38 |
position: relative;
|
39 |
float:left;
|
|
|
40 |
padding-left: 20px;
|
41 |
width: -moz-calc(100% - 190px);
|
42 |
width: -webkit-calc(100% - 190px);
|
43 |
width: -o-calc(100% - 190px);
|
44 |
width: calc(100% - 190px);
|
|
|
45 |
}
|
46 |
-
#wpbody-content .ta-settings > form:before {
|
47 |
content: '';
|
48 |
position: absolute;
|
49 |
z-index: 1;
|
50 |
top: 0;
|
51 |
-
left
|
52 |
display: block;
|
53 |
width: 1px;
|
54 |
height: 3000px;
|
55 |
border-left:1px solid #ccc;
|
56 |
}
|
57 |
#wpbody-content .ta-settings:after,
|
|
|
58 |
#wpbody-content .ta-settings .nav-tab-wrapper:after {
|
59 |
content: '';
|
60 |
display: table;
|
1 |
#wpbody-content {
|
2 |
padding-bottom: 10px;
|
|
|
3 |
margin-bottom: 45px;
|
4 |
}
|
5 |
+
#wpbody-content .ta-settings-wrapper {
|
6 |
position: relative;
|
7 |
}
|
8 |
+
#wpbody-content .ta-settings-wrapper .nav-tab-wrapper {
|
9 |
float: left;
|
10 |
width: 150px;
|
11 |
border: 0;
|
12 |
margin-left: 20px;
|
13 |
}
|
14 |
+
#wpbody-content .ta-settings-wrapper .nav-tab-wrapper a {
|
15 |
width: 100%;
|
16 |
float: right;
|
17 |
clear: right;
|
18 |
position: relative;
|
19 |
z-index: 3;
|
20 |
}
|
21 |
+
#wpbody-content .ta-settings-wrapper .nav-tab-wrapper a.nav-tab-active {
|
22 |
border-right: 1px solid #f1f1f1;
|
23 |
}
|
24 |
+
#wpbody-content .ta-settings-wrapper .nav-tab-wrapper a:last-child {
|
25 |
border-bottom: 1px solid #ccc;
|
26 |
}
|
27 |
+
#wpbody-content .ta-settings-wrapper .nav-tab-wrapper a.tapro-upgrade.nav-tab {
|
28 |
color: #fff;
|
29 |
background: #338850;
|
30 |
background: -moz-linear-gradient(left, #338850 0%, #2f867e 51%, #2e6e8a 100%);
|
33 |
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#338850', endColorstr='#2e6e8a',GradientType=1 );
|
34 |
border: 1px solid #276573 !important;
|
35 |
}
|
36 |
+
#wpbody-content .ta-settings-wrapper > .ta-settings-form {
|
37 |
position: relative;
|
38 |
float:left;
|
39 |
+
left: -1px;
|
40 |
padding-left: 20px;
|
41 |
width: -moz-calc(100% - 190px);
|
42 |
width: -webkit-calc(100% - 190px);
|
43 |
width: -o-calc(100% - 190px);
|
44 |
width: calc(100% - 190px);
|
45 |
+
overflow: hidden;
|
46 |
}
|
47 |
+
#wpbody-content .ta-settings-wrapper > .ta-settings-form:before {
|
48 |
content: '';
|
49 |
position: absolute;
|
50 |
z-index: 1;
|
51 |
top: 0;
|
52 |
+
left: 0px;
|
53 |
display: block;
|
54 |
width: 1px;
|
55 |
height: 3000px;
|
56 |
border-left:1px solid #ccc;
|
57 |
}
|
58 |
#wpbody-content .ta-settings:after,
|
59 |
+
#wpbody-content .ta-settings-wrapper:after,
|
60 |
#wpbody-content .ta-settings .nav-tab-wrapper:after {
|
61 |
content: '';
|
62 |
display: table;
|
js/app/ta.js
CHANGED
@@ -21,6 +21,7 @@ jQuery( document ).ready( function($) {
|
|
21 |
* @since 3.0.0
|
22 |
* @since 3.2.0 Removed event trigger. Added keyword variable in the AJAX trigger.
|
23 |
* @since 3.3.0 Add javascript redirect feature.
|
|
|
24 |
*/
|
25 |
recordLinkStat : function( e ) {
|
26 |
|
@@ -31,49 +32,49 @@ jQuery( document ).ready( function($) {
|
|
31 |
imgsrc,
|
32 |
newWindow;
|
33 |
|
|
|
|
|
|
|
34 |
// prevent duplicate clicks.
|
35 |
if ( $link.data( "clicked" ) ) {
|
36 |
e.preventDefault();
|
37 |
return;
|
38 |
}
|
39 |
$link.data( "clicked" , true );
|
40 |
-
|
41 |
// get image filename and use it as keyword.
|
42 |
if ( ! keyword && $link.find( 'img' ).length ) {
|
43 |
-
|
44 |
imgsrc = $link.find( 'img' ).prop( 'src' ).split('/');
|
45 |
keyword = imgsrc[ imgsrc.length - 1 ];
|
46 |
}
|
47 |
-
|
48 |
-
if (
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
if ( $link.prop( 'target' ) == '_blank' )
|
55 |
-
newWindow = window.open( '' , '_blank' );
|
56 |
-
}
|
57 |
-
|
58 |
-
$.post( thirsty_global_vars.ajax_url , {
|
59 |
-
action : 'ta_click_data_redirect',
|
60 |
-
href : href,
|
61 |
-
page : window.location.href,
|
62 |
-
link_id : linkID,
|
63 |
-
keyword : keyword
|
64 |
-
} , function( redirect_url ) {
|
65 |
-
|
66 |
-
$link.data( "clicked" , false );
|
67 |
-
|
68 |
-
if ( thirsty_global_vars.enable_js_redirect !== 'yes' || $link.data( 'nojs' ) == true )
|
69 |
-
return;
|
70 |
-
|
71 |
-
if ( newWindow )
|
72 |
-
newWindow.location.href = redirect_url ? redirect_url : href;
|
73 |
-
else
|
74 |
-
window.location.href = redirect_url ? redirect_url : href;
|
75 |
-
} );
|
76 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
},
|
78 |
|
79 |
/**
|
21 |
* @since 3.0.0
|
22 |
* @since 3.2.0 Removed event trigger. Added keyword variable in the AJAX trigger.
|
23 |
* @since 3.3.0 Add javascript redirect feature.
|
24 |
+
* @since 3.3.1 Make sure the duplicate click prevention only works on affiliate links.
|
25 |
*/
|
26 |
recordLinkStat : function( e ) {
|
27 |
|
32 |
imgsrc,
|
33 |
newWindow;
|
34 |
|
35 |
+
// if link clicked is not an affiliate link, then skip.
|
36 |
+
if ( ! thirstyFunctions.isThirstyLink( href ) && ! linkID ) return;
|
37 |
+
|
38 |
// prevent duplicate clicks.
|
39 |
if ( $link.data( "clicked" ) ) {
|
40 |
e.preventDefault();
|
41 |
return;
|
42 |
}
|
43 |
$link.data( "clicked" , true );
|
44 |
+
|
45 |
// get image filename and use it as keyword.
|
46 |
if ( ! keyword && $link.find( 'img' ).length ) {
|
47 |
+
|
48 |
imgsrc = $link.find( 'img' ).prop( 'src' ).split('/');
|
49 |
keyword = imgsrc[ imgsrc.length - 1 ];
|
50 |
}
|
51 |
+
|
52 |
+
if ( thirsty_global_vars.enable_js_redirect === 'yes' && $link.data( 'nojs' ) != true ) {
|
53 |
+
|
54 |
+
e.preventDefault();
|
55 |
+
|
56 |
+
if ( $link.prop( 'target' ) == '_blank' )
|
57 |
+
newWindow = window.open( '' , '_blank' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
}
|
59 |
+
|
60 |
+
$.post( thirsty_global_vars.ajax_url , {
|
61 |
+
action : 'ta_click_data_redirect',
|
62 |
+
href : href,
|
63 |
+
page : window.location.href,
|
64 |
+
link_id : linkID,
|
65 |
+
keyword : keyword
|
66 |
+
} , function( redirect_url ) {
|
67 |
+
|
68 |
+
$link.data( "clicked" , false );
|
69 |
+
|
70 |
+
if ( thirsty_global_vars.enable_js_redirect !== 'yes' || $link.data( 'nojs' ) == true )
|
71 |
+
return;
|
72 |
+
|
73 |
+
if ( newWindow )
|
74 |
+
newWindow.location.href = redirect_url ? redirect_url : href;
|
75 |
+
else
|
76 |
+
window.location.href = redirect_url ? redirect_url : href;
|
77 |
+
} );
|
78 |
},
|
79 |
|
80 |
/**
|
languages/thirstyaffiliates.pot
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: ThirstyAffiliates\n"
|
5 |
-
"POT-Creation-Date: 2018-04-
|
6 |
"PO-Revision-Date: 2016-04-29 07:38+0800\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Rymera Web Co <support@thirstyaffiliates.com>\n"
|
@@ -33,7 +33,7 @@ msgstr ""
|
|
33 |
msgid "307 Temporary (alternative)"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: Models/Affiliate_Link.php:
|
37 |
msgid "Unable to save affiliate link as there are no changes registered on the object yet."
|
38 |
msgstr ""
|
39 |
|
@@ -43,7 +43,7 @@ msgstr ""
|
|
43 |
#: Models/Link_Fixer.php:216 Models/Link_Fixer.php:218
|
44 |
#: Models/Link_Picker.php:279 Models/Link_Picker.php:337
|
45 |
#: Models/Link_Picker.php:457 Models/Marketing.php:175 Models/Marketing.php:300
|
46 |
-
#: Models/Marketing.php:445 Models/Settings.php:
|
47 |
#: Models/Stats_Reporting.php:351 Models/Stats_Reporting.php:396
|
48 |
msgid "Invalid AJAX call"
|
49 |
msgstr ""
|
@@ -259,7 +259,7 @@ msgstr ""
|
|
259 |
msgid "Show Link Categories"
|
260 |
msgstr ""
|
261 |
|
262 |
-
#: Models/Bootstrap.php:389 Models/Settings.php:
|
263 |
msgid "Settings"
|
264 |
msgstr ""
|
265 |
|
@@ -370,7 +370,7 @@ msgstr ""
|
|
370 |
msgid "No affiliate links found"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: Models/Marketing.php:177 Models/Settings.php:
|
374 |
msgid "Required parameter not passed"
|
375 |
msgstr ""
|
376 |
|
@@ -517,7 +517,7 @@ msgstr ""
|
|
517 |
msgid "Start Tour"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: Models/Settings.php:
|
521 |
#: views/cpt/view-link-options-metabox.php:24
|
522 |
#: views/cpt/view-link-options-metabox.php:36
|
523 |
#: views/cpt/view-link-options-metabox.php:49
|
@@ -526,7 +526,7 @@ msgstr ""
|
|
526 |
msgid "Yes"
|
527 |
msgstr ""
|
528 |
|
529 |
-
#: Models/Settings.php:
|
530 |
#: views/cpt/view-link-options-metabox.php:25
|
531 |
#: views/cpt/view-link-options-metabox.php:37
|
532 |
#: views/cpt/view-link-options-metabox.php:50
|
@@ -535,384 +535,384 @@ msgstr ""
|
|
535 |
msgid "No"
|
536 |
msgstr ""
|
537 |
|
538 |
-
#: Models/Settings.php:
|
539 |
msgid "Per category"
|
540 |
msgstr ""
|
541 |
|
542 |
-
#: Models/Settings.php:
|
543 |
#: views/reports/link-performance-report.php:80
|
544 |
msgid "General"
|
545 |
msgstr ""
|
546 |
|
547 |
-
#: Models/Settings.php:
|
548 |
msgid "Settings that change the general behaviour of ThirstyAffiliates."
|
549 |
msgstr ""
|
550 |
|
551 |
-
#: Models/Settings.php:
|
552 |
msgid "Link Appearance"
|
553 |
msgstr ""
|
554 |
|
555 |
-
#: Models/Settings.php:
|
556 |
msgid "Settings that specifically affect the behaviour & appearance of your affiliate links."
|
557 |
msgstr ""
|
558 |
|
559 |
-
#: Models/Settings.php:
|
560 |
msgid "Modules"
|
561 |
msgstr ""
|
562 |
|
563 |
-
#: Models/Settings.php:
|
564 |
msgid "This section allows you to turn certain parts of ThirstyAffiliates on or off. Below are the individual modules and features of the plugin that can be controlled."
|
565 |
msgstr ""
|
566 |
|
567 |
-
#: Models/Settings.php:
|
568 |
msgid "Import/Export"
|
569 |
msgstr ""
|
570 |
|
571 |
-
#: Models/Settings.php:
|
572 |
msgid "Import and Export global ThirstyAffiliates plugin settings from one site to another."
|
573 |
msgstr ""
|
574 |
|
575 |
-
#: Models/Settings.php:
|
576 |
msgid "Help"
|
577 |
msgstr ""
|
578 |
|
579 |
-
#: Models/Settings.php:
|
580 |
msgid "Links to knowledge base and other utilities."
|
581 |
msgstr ""
|
582 |
|
583 |
-
#: Models/Settings.php:
|
584 |
msgid "Default Link Insertion Type"
|
585 |
msgstr ""
|
586 |
|
587 |
-
#: Models/Settings.php:
|
588 |
msgid "Determines the default link type when inserting a link using the quick search."
|
589 |
msgstr ""
|
590 |
|
591 |
-
#: Models/Settings.php:
|
592 |
msgid "Link"
|
593 |
msgstr ""
|
594 |
|
595 |
-
#: Models/Settings.php:
|
596 |
msgid "Shortcode"
|
597 |
msgstr ""
|
598 |
|
599 |
-
#: Models/Settings.php:
|
600 |
msgid "Disable \"uncategorized\" category on save?"
|
601 |
msgstr ""
|
602 |
|
603 |
-
#: Models/Settings.php:
|
604 |
msgid "If links are including categories in the URL then by default ThirstyAffiliates will add an \"uncategorized\" category to apply to non-categorised links during save. If you disable this, it allows you to have some links with categories in the URL and some without."
|
605 |
msgstr ""
|
606 |
|
607 |
-
#: Models/Settings.php:
|
608 |
msgid "Disable buttons on the Visual editor?"
|
609 |
msgstr ""
|
610 |
|
611 |
-
#: Models/Settings.php:
|
612 |
msgid "Hide the ThirstyAffiliates buttons on the Visual editor."
|
613 |
msgstr ""
|
614 |
|
615 |
-
#: Models/Settings.php:
|
616 |
msgid "Disable buttons on the Text/Quicktags editor?"
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: Models/Settings.php:
|
620 |
msgid "Hide the ThirstyAffiliates buttons on the Text editor."
|
621 |
msgstr ""
|
622 |
|
623 |
-
#: Models/Settings.php:
|
624 |
msgid "Trim stats older than:"
|
625 |
msgstr ""
|
626 |
|
627 |
-
#: Models/Settings.php:
|
628 |
msgid "months (Automatically clean the statistics database records older than a set point. Setting this to 0 will disable it)."
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: Models/Settings.php:
|
632 |
msgid "Don't cache 301 redirects? (server side redirects)"
|
633 |
msgstr ""
|
634 |
|
635 |
-
#: Models/Settings.php:
|
636 |
msgid "By default, browsers caches the 301 redirects. Enabling this option will tell the browser not to cache 301 redirects. Be aware that it is still up to the browser if it will cache it or not."
|
637 |
msgstr ""
|
638 |
|
639 |
-
#: Models/Settings.php:
|
640 |
msgid "Enable Enhanced Javascript Redirect on Frontend"
|
641 |
msgstr ""
|
642 |
|
643 |
-
#: Models/Settings.php:
|
644 |
msgid "By default affiliate links are redirected on the server side. Enabling this will set all affiliate links to be redirected via javascript on your website's frontend. This will then improve the accuracy of the link performance report."
|
645 |
msgstr ""
|
646 |
|
647 |
-
#: Models/Settings.php:
|
648 |
msgid "Link Prefix"
|
649 |
msgstr ""
|
650 |
|
651 |
-
#: Models/Settings.php:
|
652 |
#, php-format
|
653 |
msgid "The prefix that comes before your cloaked link's slug. <br>eg. %s/<strong>recommends</strong>/your-affiliate-link-name.<br><br><b>Warning :</b> Changing this setting after you've used links in a post could break those links. Be careful!"
|
654 |
msgstr ""
|
655 |
|
656 |
-
#: Models/Settings.php:
|
657 |
msgid "Custom Link Prefix"
|
658 |
msgstr ""
|
659 |
|
660 |
-
#: Models/Settings.php:
|
661 |
msgid "Enter your preferred link prefix."
|
662 |
msgstr ""
|
663 |
|
664 |
-
#: Models/Settings.php:
|
665 |
msgid "Link Category in URL?"
|
666 |
msgstr ""
|
667 |
|
668 |
-
#: Models/Settings.php:
|
669 |
#, php-format
|
670 |
msgid "Shows the primary selected category in the url. eg. %s/recommends/<strong>link-category</strong>/your-affiliate-link-name.<br><br><b>Warning :</b> Changing this setting after you've used links in a post could break those links. Be careful!"
|
671 |
msgstr ""
|
672 |
|
673 |
-
#: Models/Settings.php:
|
674 |
msgid "Link Redirect Type (server side redirects)"
|
675 |
msgstr ""
|
676 |
|
677 |
-
#: Models/Settings.php:
|
678 |
msgid "This is the type of redirect ThirstyAffiliates will use to redirect the user to your affiliate link."
|
679 |
msgstr ""
|
680 |
|
681 |
-
#: Models/Settings.php:
|
682 |
msgid "Use no follow on links? (server side redirects)"
|
683 |
msgstr ""
|
684 |
|
685 |
-
#: Models/Settings.php:
|
686 |
msgid "Add the nofollow attribute to links so search engines don't index them."
|
687 |
msgstr ""
|
688 |
|
689 |
-
#: Models/Settings.php:
|
690 |
msgid "No follow categories (server side redirects)"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: Models/Settings.php:
|
694 |
msgid "The links assigned to the selected category will be set as \"no follow\"."
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: Models/Settings.php:
|
698 |
-
#: Models/Settings.php:
|
699 |
msgid "Select category..."
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: Models/Settings.php:
|
703 |
msgid "Open links in new window?"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: Models/Settings.php:
|
707 |
msgid "Make links open in a new browser tab by default."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: Models/Settings.php:
|
711 |
msgid "New window categories"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: Models/Settings.php:
|
715 |
msgid "The links assigned to the selected category will be set as \"new window\"."
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: Models/Settings.php:
|
719 |
msgid "Pass query strings to destination url?"
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: Models/Settings.php:
|
723 |
msgid "Enabling this option will pass all of the query strings present after the cloaked url to the destination url automatically when redirecting."
|
724 |
msgstr ""
|
725 |
|
726 |
-
#: Models/Settings.php:
|
727 |
msgid "Pass query strings categories"
|
728 |
msgstr ""
|
729 |
|
730 |
-
#: Models/Settings.php:
|
731 |
msgid "The links assigned to the selected category will be set as \"pass query strings\"."
|
732 |
msgstr ""
|
733 |
|
734 |
-
#: Models/Settings.php:
|
735 |
msgid "Additional rel attribute tags"
|
736 |
msgstr ""
|
737 |
|
738 |
-
#: Models/Settings.php:
|
739 |
msgid "Allows you to add extra tags into the rel= attribute when links are inserted."
|
740 |
msgstr ""
|
741 |
|
742 |
-
#: Models/Settings.php:
|
743 |
msgid "Disable ThirstyAffiliates CSS classes?"
|
744 |
msgstr ""
|
745 |
|
746 |
-
#: Models/Settings.php:
|
747 |
msgid "To help with styling a CSS class called \"thirstylink\" is added links on insertion.<br>Likewise the \"thirstylinkimg\" class is added to images when using the image insertion type. This option disables the addition these CSS classes."
|
748 |
msgstr ""
|
749 |
|
750 |
-
#: Models/Settings.php:
|
751 |
msgid "Disable title attribute on link insertion?"
|
752 |
msgstr ""
|
753 |
|
754 |
-
#: Models/Settings.php:
|
755 |
msgid "Links are automatically output with a title html attribute (by default this shows the title of the affiliate link).<br>This option disables the output of the title attribute on your links."
|
756 |
msgstr ""
|
757 |
|
758 |
-
#: Models/Settings.php:
|
759 |
msgid "Select Category to Uncloak"
|
760 |
msgstr ""
|
761 |
|
762 |
-
#: Models/Settings.php:
|
763 |
msgid "The links assigned to the selected category will be uncloaked."
|
764 |
msgstr ""
|
765 |
|
766 |
-
#: Models/Settings.php:
|
767 |
msgid "Statistics"
|
768 |
msgstr ""
|
769 |
|
770 |
-
#: Models/Settings.php:
|
771 |
msgid "When enabled, ThirstyAffiliates will collect click statistics information about visitors that click on your affiliate links. Also adds a new Reports section."
|
772 |
msgstr ""
|
773 |
|
774 |
-
#: Models/Settings.php:
|
775 |
msgid "Link Fixer"
|
776 |
msgstr ""
|
777 |
|
778 |
-
#: Models/Settings.php:
|
779 |
msgid "Link Fixer is a tiny piece of javascript code that runs on the frontend of your site to fix any outdated/broken affiliate links it detects. It's cache-friendly and runs after page load so it doesn't affect the rendering of content. Changed the settings on your site recently? Enabling Link Fixer means you don't need to update all your previously inserted affiliate links one by one – your visitors will never see an out of date affiliate link again."
|
780 |
msgstr ""
|
781 |
|
782 |
-
#: Models/Settings.php:
|
783 |
msgid "Uncloak Links"
|
784 |
msgstr ""
|
785 |
|
786 |
-
#: Models/Settings.php:
|
787 |
msgid "Uncloak Links is a feature to allow uncloaking of specific links on your site. It replaces the cloaked url with the actual destination url which is important for compatibility with some affiliate program with stricter terms (such as Amazon Associates). Once enabled, you will see a new Uncloak Link checkbox on the affiliate link edit screen. It also introduces a new setting under the Links tab for uncloaking whole categories.<br><br><b>Warning : </b>For this feature to work, the <strong>Link Fixer</strong> module needs to be turned on."
|
788 |
msgstr ""
|
789 |
|
790 |
-
#: Models/Settings.php:
|
791 |
msgid "Import Global Settings"
|
792 |
msgstr ""
|
793 |
|
794 |
-
#: Models/Settings.php:
|
795 |
msgid "Paste settings string here..."
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: Models/Settings.php:
|
799 |
msgid "Export Global Settings"
|
800 |
msgstr ""
|
801 |
|
802 |
-
#: Models/Settings.php:
|
803 |
msgid "Knowledge Base"
|
804 |
msgstr ""
|
805 |
|
806 |
-
#: Models/Settings.php:
|
807 |
msgid "Documentation"
|
808 |
msgstr ""
|
809 |
|
810 |
-
#: Models/Settings.php:
|
811 |
msgid "Guides, troubleshooting, FAQ and more."
|
812 |
msgstr ""
|
813 |
|
814 |
-
#: Models/Settings.php:
|
815 |
msgid "Our Blog"
|
816 |
msgstr ""
|
817 |
|
818 |
-
#: Models/Settings.php:
|
819 |
msgid "ThirstyAffiliates Blog"
|
820 |
msgstr ""
|
821 |
|
822 |
-
#: Models/Settings.php:
|
823 |
msgid "Learn & grow your affiliate marketing – covering increasing sales, generating traffic, optimising your affiliate marketing, interviews & case studies."
|
824 |
msgstr ""
|
825 |
|
826 |
-
#: Models/Settings.php:
|
827 |
msgid "Join the Community"
|
828 |
msgstr ""
|
829 |
|
830 |
-
#: Models/Settings.php:
|
831 |
msgid "Other Utilities"
|
832 |
msgstr ""
|
833 |
|
834 |
-
#: Models/Settings.php:
|
835 |
msgid "Migrate Old Data"
|
836 |
msgstr ""
|
837 |
|
838 |
-
#: Models/Settings.php:
|
839 |
msgid "Migrate old ThirstyAffiliates version 2 data to new version 3 data model."
|
840 |
msgstr ""
|
841 |
|
842 |
-
#: Models/Settings.php:
|
843 |
msgid "ThirstyAffiliates Settings"
|
844 |
msgstr ""
|
845 |
|
846 |
-
#: Models/Settings.php:
|
847 |
msgid "Pro Features →"
|
848 |
msgstr ""
|
849 |
|
850 |
-
#: Models/Settings.php:
|
851 |
msgid "Save Changes"
|
852 |
msgstr ""
|
853 |
|
854 |
-
#: Models/Settings.php:
|
855 |
msgid "Key"
|
856 |
msgstr ""
|
857 |
|
858 |
-
#: Models/Settings.php:
|
859 |
msgid "Value"
|
860 |
msgstr ""
|
861 |
|
862 |
-
#: Models/Settings.php:
|
863 |
msgid "Another application is currently processing the database. Please wait for this to complete."
|
864 |
msgstr ""
|
865 |
|
866 |
-
#: Models/Settings.php:
|
867 |
msgid "Migrate"
|
868 |
msgstr ""
|
869 |
|
870 |
-
#: Models/Settings.php:
|
871 |
msgid "Migrating data. Please wait..."
|
872 |
msgstr ""
|
873 |
|
874 |
-
#: Models/Settings.php:
|
875 |
msgid "Like us on Facebook"
|
876 |
msgstr ""
|
877 |
|
878 |
-
#: Models/Settings.php:
|
879 |
msgid "Follow us on Twitter"
|
880 |
msgstr ""
|
881 |
|
882 |
-
#: Models/Settings.php:
|
883 |
msgid "Follow us on Linkedin"
|
884 |
msgstr ""
|
885 |
|
886 |
-
#: Models/Settings.php:
|
887 |
msgid "Join Our Affiliate Program"
|
888 |
msgstr ""
|
889 |
|
890 |
-
#: Models/Settings.php:
|
891 |
#, php-format
|
892 |
msgid "(up to 30% commisions)"
|
893 |
msgstr ""
|
894 |
|
895 |
-
#: Models/Settings.php:
|
896 |
msgid "Copy"
|
897 |
msgstr ""
|
898 |
|
899 |
-
#: Models/Settings.php:
|
900 |
msgid "Import Settings"
|
901 |
msgstr ""
|
902 |
|
903 |
-
#: Models/Settings.php:
|
904 |
msgid "Unauthorized operation. Only authorized accounts can access global plugin settings string"
|
905 |
msgstr ""
|
906 |
|
907 |
-
#: Models/Settings.php:
|
908 |
msgid "Settings successfully imported"
|
909 |
msgstr ""
|
910 |
|
911 |
-
#: Models/Settings.php:
|
912 |
msgid "Unauthorized operation. Only authorized accounts can import settings"
|
913 |
msgstr ""
|
914 |
|
915 |
-
#: Models/Settings.php:
|
916 |
msgid "Invalid global settings string"
|
917 |
msgstr ""
|
918 |
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
"Project-Id-Version: ThirstyAffiliates\n"
|
5 |
+
"POT-Creation-Date: 2018-04-18 07:13+0800\n"
|
6 |
"PO-Revision-Date: 2016-04-29 07:38+0800\n"
|
7 |
"Last-Translator: \n"
|
8 |
"Language-Team: Rymera Web Co <support@thirstyaffiliates.com>\n"
|
33 |
msgid "307 Temporary (alternative)"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: Models/Affiliate_Link.php:590
|
37 |
msgid "Unable to save affiliate link as there are no changes registered on the object yet."
|
38 |
msgstr ""
|
39 |
|
43 |
#: Models/Link_Fixer.php:216 Models/Link_Fixer.php:218
|
44 |
#: Models/Link_Picker.php:279 Models/Link_Picker.php:337
|
45 |
#: Models/Link_Picker.php:457 Models/Marketing.php:175 Models/Marketing.php:300
|
46 |
+
#: Models/Marketing.php:445 Models/Settings.php:1791 Models/Settings.php:1839
|
47 |
#: Models/Stats_Reporting.php:351 Models/Stats_Reporting.php:396
|
48 |
msgid "Invalid AJAX call"
|
49 |
msgstr ""
|
259 |
msgid "Show Link Categories"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: Models/Bootstrap.php:389 Models/Settings.php:683
|
263 |
msgid "Settings"
|
264 |
msgstr ""
|
265 |
|
370 |
msgid "No affiliate links found"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: Models/Marketing.php:177 Models/Settings.php:1841
|
374 |
msgid "Required parameter not passed"
|
375 |
msgstr ""
|
376 |
|
517 |
msgid "Start Tour"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: Models/Settings.php:229 views/cpt/view-link-options-metabox.php:12
|
521 |
#: views/cpt/view-link-options-metabox.php:24
|
522 |
#: views/cpt/view-link-options-metabox.php:36
|
523 |
#: views/cpt/view-link-options-metabox.php:49
|
526 |
msgid "Yes"
|
527 |
msgstr ""
|
528 |
|
529 |
+
#: Models/Settings.php:230 views/cpt/view-link-options-metabox.php:13
|
530 |
#: views/cpt/view-link-options-metabox.php:25
|
531 |
#: views/cpt/view-link-options-metabox.php:37
|
532 |
#: views/cpt/view-link-options-metabox.php:50
|
535 |
msgid "No"
|
536 |
msgstr ""
|
537 |
|
538 |
+
#: Models/Settings.php:231
|
539 |
msgid "Per category"
|
540 |
msgstr ""
|
541 |
|
542 |
+
#: Models/Settings.php:237 views/reports/link-performance-report.php:39
|
543 |
#: views/reports/link-performance-report.php:80
|
544 |
msgid "General"
|
545 |
msgstr ""
|
546 |
|
547 |
+
#: Models/Settings.php:238
|
548 |
msgid "Settings that change the general behaviour of ThirstyAffiliates."
|
549 |
msgstr ""
|
550 |
|
551 |
+
#: Models/Settings.php:241
|
552 |
msgid "Link Appearance"
|
553 |
msgstr ""
|
554 |
|
555 |
+
#: Models/Settings.php:242
|
556 |
msgid "Settings that specifically affect the behaviour & appearance of your affiliate links."
|
557 |
msgstr ""
|
558 |
|
559 |
+
#: Models/Settings.php:245
|
560 |
msgid "Modules"
|
561 |
msgstr ""
|
562 |
|
563 |
+
#: Models/Settings.php:246
|
564 |
msgid "This section allows you to turn certain parts of ThirstyAffiliates on or off. Below are the individual modules and features of the plugin that can be controlled."
|
565 |
msgstr ""
|
566 |
|
567 |
+
#: Models/Settings.php:249
|
568 |
msgid "Import/Export"
|
569 |
msgstr ""
|
570 |
|
571 |
+
#: Models/Settings.php:250
|
572 |
msgid "Import and Export global ThirstyAffiliates plugin settings from one site to another."
|
573 |
msgstr ""
|
574 |
|
575 |
+
#: Models/Settings.php:253
|
576 |
msgid "Help"
|
577 |
msgstr ""
|
578 |
|
579 |
+
#: Models/Settings.php:254
|
580 |
msgid "Links to knowledge base and other utilities."
|
581 |
msgstr ""
|
582 |
|
583 |
+
#: Models/Settings.php:263
|
584 |
msgid "Default Link Insertion Type"
|
585 |
msgstr ""
|
586 |
|
587 |
+
#: Models/Settings.php:264
|
588 |
msgid "Determines the default link type when inserting a link using the quick search."
|
589 |
msgstr ""
|
590 |
|
591 |
+
#: Models/Settings.php:268
|
592 |
msgid "Link"
|
593 |
msgstr ""
|
594 |
|
595 |
+
#: Models/Settings.php:269
|
596 |
msgid "Shortcode"
|
597 |
msgstr ""
|
598 |
|
599 |
+
#: Models/Settings.php:275
|
600 |
msgid "Disable \"uncategorized\" category on save?"
|
601 |
msgstr ""
|
602 |
|
603 |
+
#: Models/Settings.php:276
|
604 |
msgid "If links are including categories in the URL then by default ThirstyAffiliates will add an \"uncategorized\" category to apply to non-categorised links during save. If you disable this, it allows you to have some links with categories in the URL and some without."
|
605 |
msgstr ""
|
606 |
|
607 |
+
#: Models/Settings.php:282
|
608 |
msgid "Disable buttons on the Visual editor?"
|
609 |
msgstr ""
|
610 |
|
611 |
+
#: Models/Settings.php:283
|
612 |
msgid "Hide the ThirstyAffiliates buttons on the Visual editor."
|
613 |
msgstr ""
|
614 |
|
615 |
+
#: Models/Settings.php:289
|
616 |
msgid "Disable buttons on the Text/Quicktags editor?"
|
617 |
msgstr ""
|
618 |
|
619 |
+
#: Models/Settings.php:290
|
620 |
msgid "Hide the ThirstyAffiliates buttons on the Text editor."
|
621 |
msgstr ""
|
622 |
|
623 |
+
#: Models/Settings.php:296
|
624 |
msgid "Trim stats older than:"
|
625 |
msgstr ""
|
626 |
|
627 |
+
#: Models/Settings.php:297
|
628 |
msgid "months (Automatically clean the statistics database records older than a set point. Setting this to 0 will disable it)."
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: Models/Settings.php:306
|
632 |
msgid "Don't cache 301 redirects? (server side redirects)"
|
633 |
msgstr ""
|
634 |
|
635 |
+
#: Models/Settings.php:307
|
636 |
msgid "By default, browsers caches the 301 redirects. Enabling this option will tell the browser not to cache 301 redirects. Be aware that it is still up to the browser if it will cache it or not."
|
637 |
msgstr ""
|
638 |
|
639 |
+
#: Models/Settings.php:313
|
640 |
msgid "Enable Enhanced Javascript Redirect on Frontend"
|
641 |
msgstr ""
|
642 |
|
643 |
+
#: Models/Settings.php:314
|
644 |
msgid "By default affiliate links are redirected on the server side. Enabling this will set all affiliate links to be redirected via javascript on your website's frontend. This will then improve the accuracy of the link performance report."
|
645 |
msgstr ""
|
646 |
|
647 |
+
#: Models/Settings.php:323
|
648 |
msgid "Link Prefix"
|
649 |
msgstr ""
|
650 |
|
651 |
+
#: Models/Settings.php:324
|
652 |
#, php-format
|
653 |
msgid "The prefix that comes before your cloaked link's slug. <br>eg. %s/<strong>recommends</strong>/your-affiliate-link-name.<br><br><b>Warning :</b> Changing this setting after you've used links in a post could break those links. Be careful!"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: Models/Settings.php:352
|
657 |
msgid "Custom Link Prefix"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: Models/Settings.php:353
|
661 |
msgid "Enter your preferred link prefix."
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: Models/Settings.php:359
|
665 |
msgid "Link Category in URL?"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: Models/Settings.php:360
|
669 |
#, php-format
|
670 |
msgid "Shows the primary selected category in the url. eg. %s/recommends/<strong>link-category</strong>/your-affiliate-link-name.<br><br><b>Warning :</b> Changing this setting after you've used links in a post could break those links. Be careful!"
|
671 |
msgstr ""
|
672 |
|
673 |
+
#: Models/Settings.php:366
|
674 |
msgid "Link Redirect Type (server side redirects)"
|
675 |
msgstr ""
|
676 |
|
677 |
+
#: Models/Settings.php:367
|
678 |
msgid "This is the type of redirect ThirstyAffiliates will use to redirect the user to your affiliate link."
|
679 |
msgstr ""
|
680 |
|
681 |
+
#: Models/Settings.php:375
|
682 |
msgid "Use no follow on links? (server side redirects)"
|
683 |
msgstr ""
|
684 |
|
685 |
+
#: Models/Settings.php:376
|
686 |
msgid "Add the nofollow attribute to links so search engines don't index them."
|
687 |
msgstr ""
|
688 |
|
689 |
+
#: Models/Settings.php:385
|
690 |
msgid "No follow categories (server side redirects)"
|
691 |
msgstr ""
|
692 |
|
693 |
+
#: Models/Settings.php:386
|
694 |
msgid "The links assigned to the selected category will be set as \"no follow\"."
|
695 |
msgstr ""
|
696 |
|
697 |
+
#: Models/Settings.php:390 Models/Settings.php:412 Models/Settings.php:434
|
698 |
+
#: Models/Settings.php:468
|
699 |
msgid "Select category..."
|
700 |
msgstr ""
|
701 |
|
702 |
+
#: Models/Settings.php:397
|
703 |
msgid "Open links in new window?"
|
704 |
msgstr ""
|
705 |
|
706 |
+
#: Models/Settings.php:398
|
707 |
msgid "Make links open in a new browser tab by default."
|
708 |
msgstr ""
|
709 |
|
710 |
+
#: Models/Settings.php:407
|
711 |
msgid "New window categories"
|
712 |
msgstr ""
|
713 |
|
714 |
+
#: Models/Settings.php:408
|
715 |
msgid "The links assigned to the selected category will be set as \"new window\"."
|
716 |
msgstr ""
|
717 |
|
718 |
+
#: Models/Settings.php:419
|
719 |
msgid "Pass query strings to destination url?"
|
720 |
msgstr ""
|
721 |
|
722 |
+
#: Models/Settings.php:420
|
723 |
msgid "Enabling this option will pass all of the query strings present after the cloaked url to the destination url automatically when redirecting."
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: Models/Settings.php:429
|
727 |
msgid "Pass query strings categories"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: Models/Settings.php:430
|
731 |
msgid "The links assigned to the selected category will be set as \"pass query strings\"."
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: Models/Settings.php:441
|
735 |
msgid "Additional rel attribute tags"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: Models/Settings.php:442
|
739 |
msgid "Allows you to add extra tags into the rel= attribute when links are inserted."
|
740 |
msgstr ""
|
741 |
|
742 |
+
#: Models/Settings.php:448
|
743 |
msgid "Disable ThirstyAffiliates CSS classes?"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: Models/Settings.php:449
|
747 |
msgid "To help with styling a CSS class called \"thirstylink\" is added links on insertion.<br>Likewise the \"thirstylinkimg\" class is added to images when using the image insertion type. This option disables the addition these CSS classes."
|
748 |
msgstr ""
|
749 |
|
750 |
+
#: Models/Settings.php:455
|
751 |
msgid "Disable title attribute on link insertion?"
|
752 |
msgstr ""
|
753 |
|
754 |
+
#: Models/Settings.php:456
|
755 |
msgid "Links are automatically output with a title html attribute (by default this shows the title of the affiliate link).<br>This option disables the output of the title attribute on your links."
|
756 |
msgstr ""
|
757 |
|
758 |
+
#: Models/Settings.php:462
|
759 |
msgid "Select Category to Uncloak"
|
760 |
msgstr ""
|
761 |
|
762 |
+
#: Models/Settings.php:463
|
763 |
msgid "The links assigned to the selected category will be uncloaked."
|
764 |
msgstr ""
|
765 |
|
766 |
+
#: Models/Settings.php:477
|
767 |
msgid "Statistics"
|
768 |
msgstr ""
|
769 |
|
770 |
+
#: Models/Settings.php:478
|
771 |
msgid "When enabled, ThirstyAffiliates will collect click statistics information about visitors that click on your affiliate links. Also adds a new Reports section."
|
772 |
msgstr ""
|
773 |
|
774 |
+
#: Models/Settings.php:485
|
775 |
msgid "Link Fixer"
|
776 |
msgstr ""
|
777 |
|
778 |
+
#: Models/Settings.php:486
|
779 |
msgid "Link Fixer is a tiny piece of javascript code that runs on the frontend of your site to fix any outdated/broken affiliate links it detects. It's cache-friendly and runs after page load so it doesn't affect the rendering of content. Changed the settings on your site recently? Enabling Link Fixer means you don't need to update all your previously inserted affiliate links one by one – your visitors will never see an out of date affiliate link again."
|
780 |
msgstr ""
|
781 |
|
782 |
+
#: Models/Settings.php:493
|
783 |
msgid "Uncloak Links"
|
784 |
msgstr ""
|
785 |
|
786 |
+
#: Models/Settings.php:494
|
787 |
msgid "Uncloak Links is a feature to allow uncloaking of specific links on your site. It replaces the cloaked url with the actual destination url which is important for compatibility with some affiliate program with stricter terms (such as Amazon Associates). Once enabled, you will see a new Uncloak Link checkbox on the affiliate link edit screen. It also introduces a new setting under the Links tab for uncloaking whole categories.<br><br><b>Warning : </b>For this feature to work, the <strong>Link Fixer</strong> module needs to be turned on."
|
788 |
msgstr ""
|
789 |
|
790 |
+
#: Models/Settings.php:504
|
791 |
msgid "Import Global Settings"
|
792 |
msgstr ""
|
793 |
|
794 |
+
#: Models/Settings.php:506
|
795 |
msgid "Paste settings string here..."
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: Models/Settings.php:511
|
799 |
msgid "Export Global Settings"
|
800 |
msgstr ""
|
801 |
|
802 |
+
#: Models/Settings.php:520 Models/Settings.php:528
|
803 |
msgid "Knowledge Base"
|
804 |
msgstr ""
|
805 |
|
806 |
+
#: Models/Settings.php:525
|
807 |
msgid "Documentation"
|
808 |
msgstr ""
|
809 |
|
810 |
+
#: Models/Settings.php:529
|
811 |
msgid "Guides, troubleshooting, FAQ and more."
|
812 |
msgstr ""
|
813 |
|
814 |
+
#: Models/Settings.php:534
|
815 |
msgid "Our Blog"
|
816 |
msgstr ""
|
817 |
|
818 |
+
#: Models/Settings.php:537
|
819 |
msgid "ThirstyAffiliates Blog"
|
820 |
msgstr ""
|
821 |
|
822 |
+
#: Models/Settings.php:538
|
823 |
msgid "Learn & grow your affiliate marketing – covering increasing sales, generating traffic, optimising your affiliate marketing, interviews & case studies."
|
824 |
msgstr ""
|
825 |
|
826 |
+
#: Models/Settings.php:543
|
827 |
msgid "Join the Community"
|
828 |
msgstr ""
|
829 |
|
830 |
+
#: Models/Settings.php:550
|
831 |
msgid "Other Utilities"
|
832 |
msgstr ""
|
833 |
|
834 |
+
#: Models/Settings.php:555
|
835 |
msgid "Migrate Old Data"
|
836 |
msgstr ""
|
837 |
|
838 |
+
#: Models/Settings.php:557
|
839 |
msgid "Migrate old ThirstyAffiliates version 2 data to new version 3 data model."
|
840 |
msgstr ""
|
841 |
|
842 |
+
#: Models/Settings.php:682 Models/Settings.php:703
|
843 |
msgid "ThirstyAffiliates Settings"
|
844 |
msgstr ""
|
845 |
|
846 |
+
#: Models/Settings.php:720
|
847 |
msgid "Pro Features →"
|
848 |
msgstr ""
|
849 |
|
850 |
+
#: Models/Settings.php:846
|
851 |
msgid "Save Changes"
|
852 |
msgstr ""
|
853 |
|
854 |
+
#: Models/Settings.php:1355
|
855 |
msgid "Key"
|
856 |
msgstr ""
|
857 |
|
858 |
+
#: Models/Settings.php:1356
|
859 |
msgid "Value"
|
860 |
msgstr ""
|
861 |
|
862 |
+
#: Models/Settings.php:1479
|
863 |
msgid "Another application is currently processing the database. Please wait for this to complete."
|
864 |
msgstr ""
|
865 |
|
866 |
+
#: Models/Settings.php:1489
|
867 |
msgid "Migrate"
|
868 |
msgstr ""
|
869 |
|
870 |
+
#: Models/Settings.php:1492
|
871 |
msgid "Migrating data. Please wait..."
|
872 |
msgstr ""
|
873 |
|
874 |
+
#: Models/Settings.php:1523
|
875 |
msgid "Like us on Facebook"
|
876 |
msgstr ""
|
877 |
|
878 |
+
#: Models/Settings.php:1527
|
879 |
msgid "Follow us on Twitter"
|
880 |
msgstr ""
|
881 |
|
882 |
+
#: Models/Settings.php:1531
|
883 |
msgid "Follow us on Linkedin"
|
884 |
msgstr ""
|
885 |
|
886 |
+
#: Models/Settings.php:1534
|
887 |
msgid "Join Our Affiliate Program"
|
888 |
msgstr ""
|
889 |
|
890 |
+
#: Models/Settings.php:1535
|
891 |
#, php-format
|
892 |
msgid "(up to 30% commisions)"
|
893 |
msgstr ""
|
894 |
|
895 |
+
#: Models/Settings.php:1568
|
896 |
msgid "Copy"
|
897 |
msgstr ""
|
898 |
|
899 |
+
#: Models/Settings.php:1605
|
900 |
msgid "Import Settings"
|
901 |
msgstr ""
|
902 |
|
903 |
+
#: Models/Settings.php:1820
|
904 |
msgid "Unauthorized operation. Only authorized accounts can access global plugin settings string"
|
905 |
msgstr ""
|
906 |
|
907 |
+
#: Models/Settings.php:1849
|
908 |
msgid "Settings successfully imported"
|
909 |
msgstr ""
|
910 |
|
911 |
+
#: Models/Settings.php:1871
|
912 |
msgid "Unauthorized operation. Only authorized accounts can import settings"
|
913 |
msgstr ""
|
914 |
|
915 |
+
#: Models/Settings.php:1876
|
916 |
msgid "Invalid global settings string"
|
917 |
msgstr ""
|
918 |
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Contributors: jkohlbach, RymeraWebCo
|
3 |
Donate link:
|
4 |
Tags: affiliate, link, affiliate link management, link cloaker, link redirect, shortlink, thirstyaffiliates, thirsty affiliates
|
5 |
-
Requires at least: 4
|
6 |
Requires PHP: 5.6
|
7 |
-
Tested up to: 4.9.
|
8 |
-
Stable tag: 3.3.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -159,6 +159,13 @@ See our [Knowledge Base](https://thirstyaffiliates.com/knowledge-base/?utm_sourc
|
|
159 |
|
160 |
== Changelog ==
|
161 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
= 3.3.0 =
|
163 |
* Feature: Introduce Enhanced JS Redirect Feature
|
164 |
* Bug Fix: Link Fixer: When a link has been inserted with category in url, and it is removed in the backend, link won't be detected
|
2 |
Contributors: jkohlbach, RymeraWebCo
|
3 |
Donate link:
|
4 |
Tags: affiliate, link, affiliate link management, link cloaker, link redirect, shortlink, thirstyaffiliates, thirsty affiliates
|
5 |
+
Requires at least: 3.4
|
6 |
Requires PHP: 5.6
|
7 |
+
Tested up to: 4.9.5
|
8 |
+
Stable tag: 3.3.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
159 |
|
160 |
== Changelog ==
|
161 |
|
162 |
+
= 3.3.1 =
|
163 |
+
* Improvement: Add render function for URL input type on settings
|
164 |
+
* Improvement: Remove Save Changes button on Import/Export setting page
|
165 |
+
* Bug Fix: Can only click normal links once
|
166 |
+
* Bug Fix: Exporting CSV produces PHP notice: Undefined index: link_health_issue
|
167 |
+
* Bug Fix: Fix settings html markup wrapper
|
168 |
+
|
169 |
= 3.3.0 =
|
170 |
* Feature: Introduce Enhanced JS Redirect Feature
|
171 |
* Bug Fix: Link Fixer: When a link has been inserted with category in url, and it is removed in the backend, link won't be detected
|
thirstyaffiliates.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
-
* Version: 3.3.
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|
3 |
* Plugin Name: ThirstyAffiliates
|
4 |
* Plugin URI: http://thirstyaffiliates.com/
|
5 |
* Description: ThirstyAffiliates is a revolution in affiliate link management. Collect, collate and store your affiliate links for use in your posts and pages.
|
6 |
+
* Version: 3.3.1
|
7 |
* Author: Rymera Web Co
|
8 |
* Author URI: https://rymera.com.au/
|
9 |
* Requires at least: 4.4.2
|