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 +17 -6 1.61.30 View file →
@@ -29,19 +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 - //if (Install::isPro()):
42 + <h3><?php _e('Your Social Groups','mbsocial'); ?></h3>
43 + <?php
43 44
45 + echo '<div class="item heading"><span>' . __('name', 'mbsocial') . '</span><span>' . __('no buttons', 'mbsocial') . '</span><span>' . __('shortcode', 'mbsocial') . '</span></div>';
46 +
44 47 foreach($collection_ids as $id) {
45 48 $collection = new collection($id);
46 49 $genBlock = $collection->getBlock('generalBlock');
47 50 $name = $genBlock->getValue('name');
@@ -51,17 +54,24 @@
51 54
52 55 $name = ( strlen($name) > 0) ? $name : '#' . $id;
53 56 $active = ($id == $the_collection_id) ? 'active' : '';
54 57
58 +
59 +
55 60 if ( Install::isPRO() )
56 - $link = '<span><a href="' . add_query_arg('social_id', $id) . '">' . $name . '</a></span>';
61 + {
62 + $link = '<a href="' . esc_url(add_query_arg('social_id', $id, $url)) . '"><span>' . $name . '</span>';
63 + $linkend = '</a>';
64 + }
57 65 else {
58 66 $link = '<span>' . $name . '</span>';
67 + $linkend = '';
59 68 }
60 69 echo '<div class="item ' . $active . '">';
61 70 echo $link;
62 71 echo '<span> [' . $networks_number . ' buttons] </span>';
63 72 echo '<span> [maxsocial id="' . $id . '"] </span>';
73 + echo $linkend;
64 74 echo '</div>';
65 75
66 76 }
67 77
@@ -66,9 +76,9 @@
66 76 }
67 77
68 78 if ( Install::isPRO() )
69 79 {
70 - $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>';
71 81 }
72 82 else {
73 83 $link = '<a><span class="plus">+</span> ' . __('Add', 'mbsocial') . '</a>';
74 84 }
@@ -92,8 +102,9 @@
92 102 </div>
93 103 <?php endif; ?>
94 104
95 105 <input type='hidden' name="collection_id" value="<?php echo $collection_id ?>" />
106 + <input type='hidden' name="form_post" value="true" />
96 107
97 108 <div class="form-actions ">
98 109 <button type="button" class="button-primary button-save mb-ajax-submit" data-action='save_collection'><?php _e('Save', 'mbsocial') ?></button>
99 110 <?php if ($collection_id > 0 && Install::isPro()): ?>