Uptolike Social Share Buttons - Version 1.5.4

Version Description

*

Download this release

Release Info

Developer na1vez
Plugin Icon 128x128 Uptolike Social Share Buttons
Version 1.5.4
Comparing to
See all releases

Code changes from version 1.5.3 to 1.5.4

Files changed (3) hide show
  1. readme.txt +48 -56
  2. uptolike_share_widget.php +1 -1
  3. widget_options.php +12 -4
readme.txt CHANGED
@@ -3,51 +3,12 @@ Contributors: Uptolike Team
3
  Tags: +1, UpToLike, AddThis, social buttons, bookmark, bookmarking, like, share, share button, sharing, social bookmarking, social bookmarks, social buttons, кнопки соцсетей, социальные кнопки
4
  Requires at least: 3.0.1
5
  Tested up to: 4.6.1
6
- Stable tag: 1.5.3
7
 
8
  Uptolike Social Share Buttons - social bookmarking widget with sharing statistics.
9
 
10
  == Description ==
11
 
12
- **What Can You Do With UpToLike Social Share Buttons?**
13
-
14
- * Create custom buttons that will visually appeal to users
15
- * Easily manage social activity online
16
- * Increase online engagement through Shares and Likes
17
- * Attract new visitors from social networks
18
- * Collect and analyze the social activity of users
19
- * Adjust content strategy based on analytics
20
-
21
- UpToLike is a single interface from which you can manage the appearance and efficiency of social buttons on your site, as well as collect and analyze statistics on
22
- likes, shares, returns, new users, sources of social traffic, and more.
23
-
24
- **Which social networks does UpToLike Social Share Buttons support?**
25
-
26
- UpToLike is compatible with 25 popular social networking sites. It supports the following functions: Bookmark, Print, Email, Follow, etc.
27
-
28
- **Unique Functions of UpToLike Social Share Buttons**
29
-
30
- * Customization of social buttons:
31
- 1. 3 different shapes
32
- 2. 3 sizes
33
- 3. Hover effect (increase, clockwise rotation)
34
- 4. 14 button styles
35
- 5. Button background
36
- 6. Text color
37
- 7. Text size of the counter
38
-
39
- * Social Media Following
40
- * Automatic text selection: the system gives you the option to share a highlighted piece of text on a social network
41
- * Gathering unique statistics of social media activity
42
-
43
- **What statistics does UpToLike collect?**
44
-
45
- * Number of Likes and Shares on site during the selected period
46
- * Number of users attracted because of Likes and Shares
47
- * Separation of traffic on social networks
48
- * Per-page site activity: how many Likes and Shares for each individual page, and how many new visitors came to each page
49
- * Social buttons adapted to mobile devices
50
-
51
  **Uptolike Social Share Buttons - бесплатный русскоязычный плагин социальных кнопок**
52
 
53
  **Какие задачи выполняет плагин Uptolike?**
@@ -81,36 +42,64 @@ Uptolike поддерживает 25 популярных социальных
81
  * Уникальная статистика социальной активности на сайте
82
  * Кнопки социальных сетей, адаптированные под мобильные устройства
83
 
84
- **Статистика, которую собирает Uptolike**
85
 
86
- * Количество лайков и шаров на сайте за выбранный период
87
- * Количество привлеченных пользователей, благодаря лайкам и шарам
88
- * Разделение трафика по социальным сетям
89
- * Постраничная статистика по сайту: сколько лайков и шаров получила каждая отдельная. страница сайта, и сколько новых посетителей пришли именно на эту страницу
90
 
91
- == Installation ==
92
- 1. Go to Plugins -> Add New
93
- 2. Search for Uptolike
94
- 3. Install the plugin called *Uptolike Social Share Buttons* and activate it
95
- 4. Adjust your settings
96
- 5. Request and fill the secret key field, if you want to receive the statistics
97
- 6. Enjoy!
98
 
99
- ***
 
 
 
 
 
 
 
 
 
 
100
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  1. Выберите Плагины -> Добавить новый
102
  2. В строке поиска введите Uptolike
103
  3. Установите плагин *Uptolike Social Share Buttons* и активируйте
104
- 4. Настройте внешний вид кнопок
105
  5. Для отображения статистики получите на адресс электронной почты секретный ключ и введите его на странице Статистика
106
  6. Наслаждайтесь!
107
 
 
 
 
 
 
 
 
 
 
108
  == Frequently Asked Questions ==
109
- Answers to Frequently Asked Questions you can find at http://uptolike.ru/faq
110
 
111
  ***
112
 
113
- Ответы на часто задаваемые вопросы вы можете найти на http://uptolike.ru/faq
114
 
115
  == Screenshots ==
116
  1. Customizing sharing buttons
@@ -118,6 +107,9 @@ Answers to Frequently Asked Questions you can find at http://uptolike.ru/faq
118
  3. Traffic and sharing statistics
119
 
120
  == Changelog ==
 
 
 
121
  = 1.5.3 =
122
  * HOTFIX
123
 
3
  Tags: +1, UpToLike, AddThis, social buttons, bookmark, bookmarking, like, share, share button, sharing, social bookmarking, social bookmarks, social buttons, кнопки соцсетей, социальные кнопки
4
  Requires at least: 3.0.1
5
  Tested up to: 4.6.1
6
+ Stable tag: 1.5.4
7
 
8
  Uptolike Social Share Buttons - social bookmarking widget with sharing statistics.
9
 
10
  == Description ==
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  **Uptolike Social Share Buttons - бесплатный русскоязычный плагин социальных кнопок**
13
 
14
  **Какие задачи выполняет плагин Uptolike?**
42
  * Уникальная статистика социальной активности на сайте
43
  * Кнопки социальных сетей, адаптированные под мобильные устройства
44
 
45
+ ***
46
 
47
+ **Uptolike Social Share Buttons - social bookmarking widget with sharing statistics**
 
 
 
48
 
49
+ **What Can You Do With UpToLike Social Share Buttons?**
 
 
 
 
 
 
50
 
51
+ * Create custom buttons that will visually appeal to users
52
+ * Easily manage social activity online
53
+ * Increase online engagement through Shares and Likes
54
+ * Attract new visitors from social networks
55
+ * Collect and analyze the social activity of users
56
+ * Adjust content strategy based on analytics
57
+
58
+ UpToLike is a single interface from which you can manage the appearance and efficiency of social buttons on your site, as well as collect and analyze statistics on
59
+ likes, shares, returns, new users, sources of social traffic, and more.
60
+
61
+ **Which social networks does UpToLike Social Share Buttons support?**
62
 
63
+ UpToLike is compatible with 25 popular social networking sites. It supports the following functions: Bookmark, Print, Email, Follow, etc.
64
+
65
+ **Unique Functions of UpToLike Social Share Buttons**
66
+
67
+ * Customization of social buttons:
68
+ 1. 3 different shapes
69
+ 2. 3 sizes
70
+ 3. Hover effect (increase, clockwise rotation)
71
+ 4. 14 button styles
72
+ 5. Button background
73
+ 6. Text color
74
+ 7. Text size of the counter
75
+
76
+ * Social Media Following
77
+ * Automatic text selection: the system gives you the option to share a highlighted piece of text on a social network
78
+ * Gathering unique statistics of social media activity
79
+
80
+ == Installation ==
81
  1. Выберите Плагины -> Добавить новый
82
  2. В строке поиска введите Uptolike
83
  3. Установите плагин *Uptolike Social Share Buttons* и активируйте
84
+ 4. Настройте внешний вид кнопок
85
  5. Для отображения статистики получите на адресс электронной почты секретный ключ и введите его на странице Статистика
86
  6. Наслаждайтесь!
87
 
88
+ ***
89
+
90
+ 1. Go to Plugins -> Add New
91
+ 2. Search for Uptolike
92
+ 3. Install the plugin called *Uptolike Social Share Buttons* and activate it
93
+ 4. Adjust your settings
94
+ 5. Request and fill the secret key field, if you want to receive the statistics
95
+ 6. Enjoy!
96
+
97
  == Frequently Asked Questions ==
98
+ Ответы на часто задаваемые вопросы вы можете найти на http://uptolike.ru/faq
99
 
100
  ***
101
 
102
+ Answers to Frequently Asked Questions you can find at http://uptolike.ru/faq
103
 
104
  == Screenshots ==
105
  1. Customizing sharing buttons
107
  3. Traffic and sharing statistics
108
 
109
  == Changelog ==
110
+ = 1.5.4 =
111
+ * Исправлен некорректный вывод шорткода
112
+
113
  = 1.5.3 =
114
  * HOTFIX
115
 
uptolike_share_widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: UpToLike Social Share Buttons
4
  * Plugin URI: https://uptolike.com/
5
  * Description: Uptolike Social Share Buttons - social bookmarking widget with sharing statistics.
6
- * Version: 1.5.3
7
  * Requires at least: 4.1
8
  * Tested up to: 4.6.1
9
  * Author: Uptolike Team
3
  * Plugin Name: UpToLike Social Share Buttons
4
  * Plugin URI: https://uptolike.com/
5
  * Description: Uptolike Social Share Buttons - social bookmarking widget with sharing statistics.
6
+ * Version: 1.5.4
7
  * Requires at least: 4.1
8
  * Tested up to: 4.6.1
9
  * Author: Uptolike Team
widget_options.php CHANGED
@@ -22,7 +22,7 @@ class MySettingsPage {
22
  * @param $mail
23
  * @param $cryptKey
24
  *
25
- * @return string
26
  */
27
  public function statIframe($projectId, $partnerId, $mail, $cryptKey) {
28
  $params = array('mail' => $mail, 'partner' => $partnerId, 'projectId' => $projectId,
@@ -516,7 +516,15 @@ function get_widget_code($url = '') {
516
  $protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"], 0, strpos($_SERVER["SERVER_PROTOCOL"], '/'))) . '://';
517
  if ($url == '') {
518
  if (is_single() || is_page()) {
519
- $url = the_permalink();
 
 
 
 
 
 
 
 
520
  } else $url = $protocol . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
521
  }
522
 
@@ -614,8 +622,8 @@ function uptolike_shortcode() {
614
  $widget_mode = $options['widget_mode'];
615
  if (($widget_mode == 'code') or ($widget_mode == 'both')) {
616
  return get_widget_code();
617
- };
618
- return true;
619
  }
620
 
621
  add_shortcode('uptolike', 'uptolike_shortcode');
22
  * @param $mail
23
  * @param $cryptKey
24
  *
25
+ * @return stringшfr
26
  */
27
  public function statIframe($projectId, $partnerId, $mail, $cryptKey) {
28
  $params = array('mail' => $mail, 'partner' => $partnerId, 'projectId' => $projectId,
516
  $protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"], 0, strpos($_SERVER["SERVER_PROTOCOL"], '/'))) . '://';
517
  if ($url == '') {
518
  if (is_single() || is_page()) {
519
+ if(json_decode($options['uptolike_json'])->orientation != 2) {
520
+ $url = get_permalink();
521
+ } else {
522
+ if ($options['widget_mode'] == 'plg') {
523
+ $url = the_permalink();
524
+ } else {
525
+ $url = get_permalink();
526
+ }
527
+ }
528
  } else $url = $protocol . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
529
  }
530
 
622
  $widget_mode = $options['widget_mode'];
623
  if (($widget_mode == 'code') or ($widget_mode == 'both')) {
624
  return get_widget_code();
625
+ }
626
+ return;
627
  }
628
 
629
  add_shortcode('uptolike', 'uptolike_shortcode');