| @@ -1,9 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace MBSocial; |
| 3 | 3 | defined('ABSPATH') or die('No direct access permitted'); |
| 4 | 4 | |
| 5 | -/** Class for loading Social Share Presets. Presets are in JSON format */ | |
| 5 | + | |
| 6 | 6 | class Presets |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | 9 | protected $presets = array(); |
| @@ -35,10 +35,8 @@ | ||
| 35 | 35 | |
| 36 | 36 | 'square_flip' => ' |
| 37 | 37 | {"style":{"mbs-style":"square","mbs-width":"40","mbs-height":"40"},"layout":{"margin_left":"0","margin_right":"0","margin_top":"0","margin_bottom":"0","orientation":"auto","font":"","font_label_size":"12","font_label_style":"normal","font_label_weight":"normal","font_label_upper":"none","font_icon_size":"20","font_icon_style":"normal","font_icon_weight":"normal","use_background":"1","color":"#ffffff","color_hover":"#fff","button_spacing":"5","ignore_container":0},"effect":{"effect_type":"flip"},"count":{"font_count_size":"12"}}', |
| 38 | 38 | |
| 39 | - 'rectangle_flip' => '{"style":{"mbs-style":"square","mbs-width":"90","mbs-height":"35"},"layout":{"margin_left":"5","margin_right":"0","margin_top":"0","margin_bottom":"0","orientation":"auto","font":"","font_label_size":"13","font_label_style":"normal","font_label_weight":"bold","font_label_upper":"uppercase","font_icon_size":"20","font_icon_style":"normal","font_icon_weight":"bold","use_background":"1","background_color":"#000","background_color_hover":"#000","color":"#ffffff","color_hover":"#fff","button_spacing":"5","ignore_container":0},"effect":{"effect_type":"flip","scale":"120"},"count":{"font_count_size":"15"}}', | |
| 40 | - | |
| 41 | 39 | 'stretch' => '{"style":{"mbs-style":"square","mbs-width":"55","mbs-height":"55"},"layout":{"margin_left":"0","margin_right":"0","margin_top":"36","margin_bottom":"0","orientation":"auto","font":"","font_label_size":"13","font_label_style":"normal","font_label_weight":"normal","font_label_upper":"uppercase","font_icon_size":"20","font_icon_style":"normal","font_icon_weight":"normal","use_background":"1","background_color":"#666666","background_color_hover":"#31f41f","color":"#ffffff","color_hover":"#fff","button_spacing":"5","ignore_container":0},"effect":{"effect_type":"stretch","scale":"120"},"count":{"font_count_size":"13"}}', |
| 42 | 40 | ); |
| 43 | 41 | |
| 44 | 42 | return $presets; |
| @@ -55,9 +53,8 @@ | ||
| 55 | 53 | 'square_drop' => __('Square with drop effect', 'mbsocial'), |
| 56 | 54 | 'square_lift' => __('Square with lift effect', 'mbsocial'), |
| 57 | 55 | 'square_shift' => __('Square with shift effect', 'mbsocial'), |
| 58 | 56 | 'square_flip' => __('Square small with flip effect', 'mbsocial'), |
| 59 | - 'rectangle_flip' => __('Rectangle with flip effect', 'mbsocial'), | |
| 60 | 57 | 'stretch' => __('Stretch buttons', 'mbsocial'), |
| 61 | 58 | ); |
| 62 | 59 | |
| 63 | 60 | return $labels; |