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