PluginProbe
WPSSO Core – Complete Schema Markup and Meta Tags / 22.7.0
WPSSO Core – Complete Schema Markup and Meta Tags v22.7.0
22.7.0 22.6.1 22.6.0 22.5.3 22.5.2 22.5.1 22.4.0 22.3.0 22.2.1 22.2.0 22.1.3 22.1.2 22.1.1 22.1.0 22.0.0 21.13.3 21.13.2 trunk 21.13.1
wpsso / lib / messages-tooltip-meta-place.php

messages-tooltip-meta-place.php in WPSSO Core – Complete Schema Markup and Meta Tags 22.7.0, at lib/messages-tooltip-meta-place.php

238 lines 6.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * License: GPLv3
4 * License URI: https://www.gnu.org/licenses/gpl.txt
5 * Copyright 2012-2026 Jean-Sebastien Morisset (https://wpsso.com/)
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9
10 die( 'These aren\'t the droids you\'re looking for.' );
11 }
12
13 if ( ! defined( 'WPSSO_PLUGINDIR' ) ) {
14
15 die( 'Do. Or do not. There is no try.' );
16 }
17
18 if ( ! class_exists( 'WpssoMessagesTooltipMetaPlace' ) ) {
19
20 /*
21 * Instantiated by WpssoMessagesTooltipMeta->get() only when needed.
22 */
23 class WpssoMessagesTooltipMetaPlace extends WpssoMessages {
24
25 public function get( $msg_key = false, $info = array() ) {
26
27 $text = '';
28
29 switch ( $msg_key ) {
30
31 case 'tooltip-meta-place_name': // Place Name.
32
33 $text = __( 'A name for this place (required).', 'wpsso' ) . ' ';
34
35 break;
36
37 case 'tooltip-meta-place_name_alt': // Place Alternate Name.
38
39 $text = __( 'An alternate name for this place.', 'wpsso' ) . ' ';
40
41 break;
42
43 case 'tooltip-meta-place_desc': // Place Description.
44
45 $text = __( 'A description for this place.', 'wpsso' ) . ' ';
46
47 break;
48
49 case 'tooltip-meta-place_schema_type': // Place Schema Type.
50
51 $text = __( 'You may optionally choose a more accurate Schema type for this place (default is LocalBusiness).', 'wpsso' ) . ' ';
52
53 break;
54
55 case 'tooltip-meta-place_is_default': // Place Is Default.
56
57 $text = __( 'You may choose this place as the default event venue, job location, etc.', 'wpsso' ) . ' ';
58
59 break;
60
61 case 'tooltip-meta-place_img_id': // Place Image ID.
62
63 $text = __( 'An image of this place (ie. an image of the business storefront or location).', 'wpsso' ) . ' ';
64
65 $text .= __( 'The image you select should show the physical location of this place (ie. of the latitude and longitude entered).', 'wpsso' ) . ' ';
66
67 $text .= '<em>' . __( 'This option is disabled if a place image URL is entered.', 'wpsso' ) . '</em>';
68
69 break;
70
71 case 'tooltip-meta-place_img_url': // or Place Image URL.
72
73 $text = __( 'You can enter a place image URL (including the http/https prefix) instead of selecting an image ID.', 'wpsso' ) . ' ';
74
75 $text .= __( 'The image URL option allows you to choose an image outside of the WordPress Media Library and/or a smaller logo style image.', 'wpsso' ) . ' ';
76
77 $text .= '<em>' . __( 'This option is disabled if a place image ID is selected.', 'wpsso' ) . '</em>';
78
79 break;
80
81 case 'tooltip-meta-place_latitude': // Place Latitude.
82
83 $text = __( 'The numeric decimal degrees latitude for this place (required).', 'wpsso' ) . ' ';
84
85 $text .= __( 'You may use a service like <a href="http://www.gps-coordinates.net/">Google Maps GPS Coordinates</a> (as an example), to find the approximate GPS coordinates of a street address.', 'wpsso' );
86
87 break;
88
89 case 'tooltip-meta-place_longitude': // Place Longitude.
90
91 $text = __( 'The numeric decimal degrees longitude for this place (required).', 'wpsso' ) . ' ';
92
93 $text .= __( 'You may use a service like <a href="http://www.gps-coordinates.net/">Google Maps GPS Coordinates</a> (as an example), to find the approximate GPS coordinates of a street address.', 'wpsso' );
94
95 break;
96
97 case 'tooltip-meta-place_altitude': // Place Altitude.
98
99 $text = __( 'An optional numeric altitude (in meters above sea level) for this place.', 'wpsso' );
100
101 break;
102
103 case 'tooltip-meta-place_timezone': // Place Timezone.
104
105 $text = __( 'A timezone for the open and close hours of this place.', 'wpsso' ) . ' ';
106
107 $text .= __( 'The default timezone value is provided by WordPress.', 'wpsso' );
108
109 break;
110
111 case 'tooltip-meta-place_phone': // Place Telephone.
112
113 $text = __( 'An optional telephone number for this place.', 'wpsso' );
114
115 break;
116
117 case 'tooltip-meta-place_fax': // Place Fax.
118
119 $text = __( 'An optional fax number for this place.', 'wpsso' );
120
121 break;
122
123 case 'tooltip-meta-place_sameas_url': // Place Same-As URLs.
124
125 $text = $this->p->msgs->get( 'tooltip-meta-schema_sameas_url' );
126
127 break;
128
129 /*
130 * Postal Address Information.
131 */
132 case 'tooltip-meta-place_street_address': // Street Address.
133
134 $text = __( 'An optional street address for this place.', 'wpsso' );
135
136 break;
137
138 case 'tooltip-meta-place_po_box_number': // P.O. Box Number.
139
140 $text = __( 'An optional post office box number for this place.', 'wpsso' );
141
142 break;
143
144 case 'tooltip-meta-place_city': // City.
145
146 $text = __( 'An optional city name for this place.', 'wpsso' );
147
148 break;
149
150 case 'tooltip-meta-place_region': // State / Province.
151
152 $text = __( 'An optional state or province name for this place.', 'wpsso' );
153
154 break;
155
156 case 'tooltip-meta-place_postal_code': // Zip / Postal Code.
157
158 $text = __( 'An optional postal or zip code for this place.', 'wpsso' );
159
160 break;
161
162 case 'tooltip-meta-place_country': // Country.
163
164 $text = __( 'An optional country for this place.', 'wpsso' );
165
166 break;
167
168 /*
169 * Opening Hours Information.
170 */
171 case 'tooltip-meta-place_days': // Open Days / Hours.
172
173 $text = __( 'Select the days and hours that this place is open.', 'wpsso' );
174
175 break;
176
177 case 'tooltip-meta-place_season_dates': // Seasonal Dates.
178
179 $text = __( 'If this place is open seasonally, select the open and close dates of the season.', 'wpsso' );
180
181 break;
182
183 case 'tooltip-meta-place_currencies_accepted': // Currencies Accepted.
184
185 $text = sprintf( __( 'A comma-delimited list of <a href="%1$s">ISO 4217 currency codes</a> accepted by the local business (example: %2$s).', 'wpsso' ), 'https://en.wikipedia.org/wiki/ISO_4217', 'USD, CAD' );
186
187 break;
188
189 case 'tooltip-meta-place_payment_accepted': // Payment Accepted.
190
191 $text = __( 'A comma-delimited list of payment options accepted by the local business (example: Cash, Credit Card).', 'wpsso' );
192
193 break;
194
195 case 'tooltip-meta-place_price_range': // Price Range.
196
197 $text = __( 'The relative price of goods or services provided by the local business (example: $, $$, $$$, or $$$$).', 'wpsso' );
198
199 break;
200
201 case 'tooltip-meta-place_accept_res':
202
203 $text = __( 'This food establishment accepts reservations.', 'wpsso' );
204
205 break;
206
207 case 'tooltip-meta-place_menu_url':
208
209 $text = __( 'The menu URL for this food establishment.', 'wpsso' );
210
211 break;
212
213 case 'tooltip-meta-place_cuisine':
214
215 $text = __( 'The cuisine served by this food establishment.', 'wpsso' );
216
217 break;
218
219 case 'tooltip-meta-place_order_urls':
220
221 $text = __( 'A comma-delimited list of website and mobile app URLs to order products.', 'wpsso' ) . ' ';
222
223 $text .= __( 'These order action URL(s) will be used in the Schema potentialAction property.', 'wpsso' );
224
225 break;
226
227 default:
228
229 $text = apply_filters( 'wpsso_messages_tooltip_meta_place', $text, $msg_key, $info );
230
231 break;
232 }
233
234 return $text;
235 }
236 }
237 }
238