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