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