PluginProbe
Enable CORS / 1.2.3
Enable CORS v1.2.3
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.3, at strings.php

161 lines 7.1 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 'description' => [
80 'bug' => esc_attr__( 'Bug fix contributors', 'enable-cors' ),
81 'feature' => esc_attr__( 'Feature request contributors', 'enable-cors' )
82 ],
83 'peoples' => array(
84 'bug' => [
85 'mehbubrashid' => array(
86 'name' => esc_attr__( 'Mehbub Rashid', 'enable-cors' ),
87 'image' => esc_attr( '7a692106063b5b14dfe8962e83a738f0' ),
88 'link' => esc_attr( 'error-404-while-saving-the-settings' ),
89 ),
90 'oyvindwe' => array(
91 'name' => esc_attr__( 'oyvindwe', 'enable-cors' ),
92 'image' => esc_attr( '56c12316332438bb3dc6435cbe03da02' ),
93 'link' => esc_attr( 'wrong-value-for-access-control-allow-credentials/' ),
94 ),
95 ],
96 'feature' => [
97 'kocevskiigorw' => array(
98 'name' => esc_attr__( 'kocevskiigorw', 'enable-cors' ),
99 'image' => esc_attr( 'f27a92b58dd8e8c810eac8a384d55731' ),
100 'link' => esc_attr( 'additional-allowed-websites/' ),
101 ),
102 ]
103 ),
104
105 ),
106 'sponsors' => array(
107 'title' => esc_attr__( 'Sponsors', 'enable-cors' ),
108 'description' => esc_attr__( 'Investors in new features', 'enable-cors' ),
109 'peoples' => array(
110 'philip' => array(
111 'name' => esc_attr__( 'Philip Schöttler', 'enable-cors' ),
112 'image' => esc_attr( '267094f8008173f94e5e5d3e9b912cb5' ),
113 'profile' => esc_attr( 'philipschoettler' ),
114 ),
115 ),
116
117 ),
118 'notices' => array(
119 'title' => esc_attr__( 'Announcements', 'enable-cors' ),
120 'description' => esc_attr__( 'Updates from support system.', 'enable-cors' ),
121 'endpoint' => array(
122 'title' => esc_attr__( 'Your API endpoint is', 'enable-cors' ),
123 'description' => sprintf( '<a href="%s" target="_blank">%s</a>', esc_url_raw( get_rest_url() ), esc_url_raw( get_rest_url() ) ),
124 ),
125 'review' => array(
126 'title' => esc_attr__( 'Before posting your review', 'enable-cors' ),
127 'description' => array(
128 'title' => esc_attr__( 'Please follow these steps,', 'enable-cors' ),
129 'list' => array(
130 esc_attr__( 'Watch the video I have added on plugin description, and learn how this plugin works.', 'enable-cors' ),
131 esc_attr__( 'Clear your cache after saving the settings.', 'enable-cors' ),
132 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' ) ),
133 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' ) ),
134 esc_attr__( 'Still the issue persists? Share your thoughts and experiences via review.', 'enable-cors' ),
135 ),
136 'happy' => esc_attr__( 'Happy with the plugin?', 'enable-cors' ),
137 'happy_message' => esc_attr__( 'Share your thoughts and experiences via review', 'enable-cors' ),
138 'link' => 'https://wordpress.org/support/plugin/enable-cors/reviews/',
139 'link_text' => esc_attr__( 'Write a review', 'enable-cors' ),
140 ),
141 ),
142 ),
143 'validation' => array(
144 'website' => array(
145 'title' => esc_attr__( 'Invalid Website', 'enable-cors' ),
146 'description' => esc_attr__( 'Please enter valid website address. otherwise it may down your website', 'enable-cors' ),
147 'type' => 'warning',
148 ),
149 'security' => array(
150 'title' => esc_attr__( 'Security Warning', 'enable-cors' ),
151 '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' ) ),
152 'type' => 'error',
153 ),
154 'unsaved' => array(
155 'title' => esc_attr__( 'Unsaved Settings', 'enable-cors' ),
156 'description' => esc_attr__( 'To enable CORS on your site, please save settings.', 'enable-cors' ),
157 'type' => 'warning',
158 ),
159 ),
160 );
161