PluginProbe
Enable CORS / 1.2.4
Enable CORS v1.2.4
2.1.0 2.0.4 trunk 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.0.2 2.0.3
enable-cors / strings.php

strings.php in Enable CORS 1.2.4, at strings.php

146 lines 6.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php //phpcs:ignore
2 /*
3 |--------------------------------------------------------------------------
4 | If this file is called directly, abort.
5 |--------------------------------------------------------------------------
6 */
7 if ( ! defined( 'Enable\Cors\SLUG' ) ) {
8 exit;
9 }
10
11
12 return array(
13 'name' => esc_attr__( 'Enable CORS', 'enable-cors' ),
14 'description' => esc_attr__( 'Enable Cross-Origin Resource Sharing for any or specific origin.', 'enable-cors' ),
15 'form' => array(
16 'inputs' => array(
17 'enable' => array(
18 'label' => esc_attr__( 'Enable CORS', 'enable-cors' ),
19 'hint' => esc_attr__(
20 'Configure the server to include CORS headers in the response to allow cross-origin requests.',
21 'enable-cors'
22 ),
23 ),
24 'website' => array(
25 'label' => esc_attr__( 'Allowed Websites', 'enable-cors' ),
26 'hint' => esc_attr__(
27 'Specify the specific website (e.g., https://devkabir.github.io/) that is allowed to make requests.',
28 'enable-cors'
29 ),
30 ),
31 'method' => array(
32 'label' => esc_attr__( 'Allowed Request Methods', 'enable-cors' ),
33 'hint' => esc_attr__(
34 'Specify the allowed HTTP methods (e.g., GET,POST,OPTIONS) for cross-origin requests.',
35 'enable-cors'
36 ),
37 ),
38 'header' => array(
39 'label' => esc_attr__( 'Set Response Headers', 'enable-cors' ),
40 'hint' => esc_attr__(
41 'Set the desired response headers (e.g., Content-Type,Authorization) to be included in the response for other websites.',
42 'enable-cors'
43 ),
44 ),
45 'cred' => array(
46 'label' => esc_attr__( 'Allow Credentials', 'enable-cors' ),
47 'hint' => esc_attr__(
48 'Configure the server to allow credentials (such as cookies or authorization headers) to be included in the cross-origin request.',
49 'enable-cors'
50 ),
51 ),
52 'font' => array(
53 'label' => esc_attr__( 'Allow Fonts Sharing', 'enable-cors' ),
54 'hint' => esc_attr__(
55 'Configure the server to share fonts (such as ttf or font.css) to be included in the cross-origin request.',
56 'enable-cors'
57 ),
58 ),
59 'image' => array(
60 'label' => esc_attr__( 'Allow Images Sharing', 'enable-cors' ),
61 'hint' => esc_attr__(
62 'Configure the server to share Images (such as svg or webp) to be included in the cross-origin request.',
63 'enable-cors'
64 ),
65 ),
66 ),
67 'save' => esc_attr__( 'Save', 'enable-cors' ),
68 'reset' => esc_attr__( 'Reset', 'enable-cors' ),
69 'cache' => esc_attr__( 'Facing issues? Clear Cache', 'enable-cors' ),
70 'add' => esc_attr__( 'Add Website', 'enable-cors' ),
71 'remove' => esc_attr__( 'Remove', 'enable-cors' ),
72 'wait' => esc_attr__( 'Please wait...', 'enable-cors' ),
73 'wildcard' => esc_attr__( '* represents a wildcard. Only a single wildcard is allowed.', 'enable-cors' ),
74 'wildOrigin' => esc_attr__( 'You can use either wildcard or specific origins. Both are not allowed.', 'enable-cors' ),
75 'invalidUrl' => esc_attr__( 'Are all URLs valid? Please verify.', 'enable-cors' ),
76 ),
77 'thanks' => array(
78 'title' => esc_attr__( 'Thank You', 'enable-cors' ),
79 'peoples' => array(
80 'philipschoettler' => array(
81 'name' => esc_attr__( 'Philip Schöttler', 'enable-cors' ),
82 'image' => esc_attr( '267094f8008173f94e5e5d3e9b912cb5' ),
83 'profile' => esc_attr( 'philipschoettler' ),
84 ),
85 'mehbubrashid' => array(
86 'name' => esc_attr__( 'Mehbub Rashid', 'enable-cors' ),
87 'image' => esc_attr( '7a692106063b5b14dfe8962e83a738f0' ),
88 'profile' => esc_attr( 'mehbubrashid' ),
89 ),
90 'oyvindwe' => array(
91 'name' => esc_attr__( 'oyvindwe', 'enable-cors' ),
92 'image' => esc_attr( '56c12316332438bb3dc6435cbe03da02' ),
93 'profile' => esc_attr( 'oyvindwe' ),
94 ),
95 'kocevskiigorw' => array(
96 'name' => esc_attr__( 'kocevskiigorw', 'enable-cors' ),
97 'image' => esc_attr( 'f27a92b58dd8e8c810eac8a384d55731' ),
98 'profile' => esc_attr( 'kocevskiigorw' ),
99 ),
100 ),
101
102 ),
103 'notices' => array(
104 'title' => esc_attr__( 'Announcements', 'enable-cors' ),
105 'description' => esc_attr__( 'Updates from support system.', 'enable-cors' ),
106 'endpoint' => array(
107 'title' => esc_attr__( 'Your API endpoint is', 'enable-cors' ),
108 'description' => sprintf( '<a href="%s" target="_blank">%s</a>', esc_url_raw( get_rest_url() ), esc_url_raw( get_rest_url() ) ),
109 ),
110 'review' => array(
111 'title' => esc_attr__( 'Before posting your review', 'enable-cors' ),
112 'description' => array(
113 'title' => esc_attr__( 'Please follow these steps,', 'enable-cors' ),
114 'list' => array(
115 esc_attr__( 'Watch the video I have added on plugin description, and learn how this plugin works.', 'enable-cors' ),
116 esc_attr__( 'Clear your cache after saving the settings.', 'enable-cors' ),
117 sprintf( '%s <a href=%s target="_blank">%s</a>', esc_attr__( 'Test your settings', 'enable-cors' ), esc_url_raw( 'https://cors-test.codehappy.dev/' ), esc_attr__( 'here', 'enable-cors' ) ),
118 sprintf( '%s <p><a href=%s target="_blank">%s</a></p>', esc_attr__( 'If the issue persists, start a new support thread on WordPress.org', 'enable-cors' ), esc_url_raw( 'https://wordpress.org/support/plugin/enable-cors/' ), esc_attr__( 'Create a new topic', 'enable-cors' ) ),
119 esc_attr__( 'Still the issue persists? Share your thoughts and experiences via review.', 'enable-cors' ),
120 ),
121 'happy' => esc_attr__( 'Happy with the plugin?', 'enable-cors' ),
122 'happy_message' => esc_attr__( 'Share your thoughts and experiences via review', 'enable-cors' ),
123 'link' => 'https://wordpress.org/support/plugin/enable-cors/reviews/',
124 'link_text' => esc_attr__( 'Write a review', 'enable-cors' ),
125 ),
126 ),
127 ),
128 'validation' => array(
129 'website' => array(
130 'title' => esc_attr__( 'Invalid Website', 'enable-cors' ),
131 'description' => esc_attr__( 'Please enter valid website address. otherwise it may down your website', 'enable-cors' ),
132 'type' => 'warning',
133 ),
134 'security' => array(
135 'title' => esc_attr__( 'Security Warning', 'enable-cors' ),
136 'description' => sprintf( '<strong>*</strong> %s', esc_attr__( 'means that any website can send a request to your WordPress site and access the server\'s response. This can be a potential security risk.', 'enable-cors' ) ),
137 'type' => 'error',
138 ),
139 'unsaved' => array(
140 'title' => esc_attr__( 'Unsaved Settings', 'enable-cors' ),
141 'description' => esc_attr__( 'To enable CORS on your site, please save settings.', 'enable-cors' ),
142 'type' => 'warning',
143 ),
144 ),
145 );
146