| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class Settings_Helper |
| 5 |
* |
| 6 |
* This class contains helper methods for retrieving menu item types, share services, |
| 7 |
* and translation options. |
| 8 |
* |
| 9 |
* @package BubbleMenu |
| 10 |
* @subpackage Admin |
| 11 |
* @author Dmytro Lobov <hey@wow-company.com>, Wow-Company |
| 12 |
* @copyright 2024 Dmytro Lobov |
| 13 |
* @license GPL-2.0+ |
| 14 |
*/ |
| 15 |
|
| 16 |
namespace BubbleMenu; |
| 17 |
|
| 18 |
defined( 'ABSPATH' ) || exit; |
| 19 |
|
| 20 |
class Settings_Helper { |
| 21 |
|
| 22 |
public static function item_type(): array { |
| 23 |
return [ |
| 24 |
'link' => __( 'Link', 'bubble-menu' ), |
| 25 |
'users_start' => __( 'User Links', 'bubble-menu' ), |
| 26 |
'login' => __( 'Login', 'bubble-menu' ), |
| 27 |
'logout' => __( 'Logout', 'bubble-menu' ), |
| 28 |
'lostpassword' => __( 'Lostpassword', 'bubble-menu' ), |
| 29 |
'register' => __( 'Register', 'bubble-menu' ), |
| 30 |
'users_end' => __( 'User Links', 'bubble-menu' ), |
| 31 |
]; |
| 32 |
} |
| 33 |
|
| 34 |
public static function label_position(): array { |
| 35 |
return [ |
| 36 |
'' => __( 'Auto', 'bubble-menu' ), |
| 37 |
'-top-right-important' => __( 'Top Right', 'bubble-menu' ), |
| 38 |
'-top-left-important' => __( 'Top Left', 'bubble-menu' ), |
| 39 |
'-left-important' => __( 'Left', 'bubble-menu' ), |
| 40 |
'-right-important' => __( 'Right', 'bubble-menu' ), |
| 41 |
'-bottom-right-important' => __( 'Bottom Right', 'bubble-menu' ), |
| 42 |
'-bottom-left-important' => __( 'Bottom Left', 'bubble-menu' ), |
| 43 |
]; |
| 44 |
} |
| 45 |
|
| 46 |
|
| 47 |
} |
| 48 |
|