PluginProbe
Social Share Buttons / 1.30
Social Share Buttons v1.30
trunk 0.9 1.0 1.1 1.1.1 1.1.2 1.10 1.11 1.12 1.15 1.16 1.17 1.18 1.19 1.2 1.20 1.3 1.30 1.4 1.5 1.6 1.7 1.8 1.9
← All changes | admin/page_editor.php +8 -6 1.151.30 View file →
@@ -29,20 +29,22 @@
29 29 }
30 30 else {
31 31 $collection_id = 0;
32 32 }
33 +
34 +$url = mbSocial()->get_page_url();
33 35 ?>
34 36
35 -<form class='mb-ajax-form' data-action='save-share'>
37 +<form class='mb-ajax-form save-on-key' data-action='save-share'>
36 38
37 39
38 40 <?php if($number_of_collections > 0) : ?>
39 41 <div class='help-side collection_switcher'>
40 - <h3>Your Social Groups</h3>
41 - <?php //
42 + <h3><?php _e('Your Social Groups','mbsocial'); ?></h3>
43 + <?php
42 44
43 45 echo '<div class="item heading"><span>' . __('name', 'mbsocial') . '</span><span>' . __('no buttons', 'mbsocial') . '</span><span>' . __('shortcode', 'mbsocial') . '</span></div>';
44 -
46 +
45 47 foreach($collection_ids as $id) {
46 48 $collection = new collection($id);
47 49 $genBlock = $collection->getBlock('generalBlock');
48 50 $name = $genBlock->getValue('name');
@@ -56,9 +58,9 @@
56 58
57 59
58 60 if ( Install::isPRO() )
59 61 {
60 - $link = '<a href="' . add_query_arg('social_id', $id) . '"><span>' . $name . '</span>';
62 + $link = '<a href="' . esc_url(add_query_arg('social_id', $id, $url)) . '"><span>' . $name . '</span>';
61 63 $linkend = '</a>';
62 64 }
63 65 else {
64 66 $link = '<span>' . $name . '</span>';
@@ -74,9 +76,9 @@
74 76 }
75 77
76 78 if ( Install::isPRO() )
77 79 {
78 - $link = '<a href="' . add_query_arg('social_id', 0) . '" title="' . __('Add', 'mbsocial') . '"> <span class="plus">+</span> ' . __('Add', 'mbsocial') . '</a>';
80 + $link = '<a href="' . esc_url(add_query_arg('social_id', 0, $url)) . '" title="' . __('Add', 'mbsocial') . '"> <span class="plus">+</span> ' . __('Add', 'mbsocial') . '</a>';
79 81 }
80 82 else {
81 83 $link = '<a><span class="plus">+</span> ' . __('Add', 'mbsocial') . '</a>';
82 84 }