| @@ -29,8 +29,10 @@ | ||
| 29 | 29 | } |
| 30 | 30 | else { |
| 31 | 31 | $collection_id = 0; |
| 32 | 32 | } |
| 33 | + | |
| 34 | +$url = mbSocial()->get_page_url(); | |
| 33 | 35 | ?> |
| 34 | 36 | |
| 35 | 37 | <form class='mb-ajax-form save-on-key' data-action='save-share'> |
| 36 | 38 | |
| @@ -37,9 +39,9 @@ | ||
| 37 | 39 | |
| 38 | 40 | <?php if($number_of_collections > 0) : ?> |
| 39 | 41 | <div class='help-side collection_switcher'> |
| 40 | 42 | <h3><?php _e('Your Social Groups','mbsocial'); ?></h3> |
| 41 | - <?php // | |
| 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) { |
| @@ -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 | } |