PluginProbe
AliNext – WooCommerce Dropshipping Plugin for AliExpress / trunk
AliNext – WooCommerce Dropshipping Plugin for AliExpress vtrunk
ali2woo-lite / includes / classes / enum / Pages.php

Pages.php in AliNext – WooCommerce Dropshipping Plugin for AliExpress trunk, at includes/classes/enum/Pages.php

56 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /* * class
4 * Description of Pages
5 *
6 * @author Ali2Woo Team
7 *
8 */
9
10 final class Pages {
11
12 public const DASHBOARD = 'a2wl_dashboard';
13 public const IMPORT_LIST = 'a2wl_import';
14 public const STORE = 'a2wl_store';
15 public const TRANSFER = 'a2wl_transfer';
16 public const MIGRATION_TOOL = 'a2wl_converter';
17 public const SETTINGS = 'a2wl_setting';
18 public const ADDONS = 'a2wl_addons';
19 public const DEBUG = 'a2wl_debug';
20 public const SHIPPING = 'a2wl_shipping';
21 public const JSON_API = 'a2wl_json_api';
22
23 public const ORDER_MANAGEMENT = 'a2wl_order';
24 public const WIZARD = 'a2wl_wizard';
25 public const HELP = 'a2wl_help';
26 public const SURVEY = 'a2wl_survey';
27
28 public static function getLabels(): array
29 {
30
31 return [
32 self::DASHBOARD => esc_html_x('Search Products', 'page title', 'ali2woo'),
33 self::IMPORT_LIST => esc_html_x('Import List', 'page title', 'ali2woo'),
34 self::ORDER_MANAGEMENT => esc_html_x('Order Management', 'page title', 'ali2woo'),
35 self::STORE => esc_html_x('Search In Store', 'page title', 'ali2woo'),
36 self::TRANSFER => esc_html_x('Transfer', 'page title', 'ali2woo'),
37 self::MIGRATION_TOOL => esc_html_x('Migration Tool', 'page title', 'ali2woo'),
38 self::SETTINGS => esc_html_x('Settings', 'page title', 'ali2woo'),
39 self::ADDONS => esc_html_x('Add-ons', 'page title', 'ali2woo'),
40 self::DEBUG => esc_html_x('Debug', 'page title', 'ali2woo'),
41 self::SHIPPING => esc_html_x('Shipping List', 'page title', 'ali2woo'),
42 self::JSON_API => esc_html_x('JSON API', 'page title', 'ali2woo'),
43 self::WIZARD => esc_html_x('Wizard', 'page title', 'ali2woo'),
44 self::HELP => esc_html_x('Help', 'page title', 'ali2woo'),
45 self::SURVEY => esc_html_x('Survey', 'page title', 'ali2woo'),
46 ];
47 }
48
49 public static function getLabel(string $slug): string
50 {
51 $labels = self::getLabels();
52
53 return $labels[$slug] ?? $slug;
54 }
55 }
56