| 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( 'WpssoMessagesTooltipMetaContact' ) ) { |
| 19 |
|
| 20 |
/* |
| 21 |
* Instantiated by WpssoMessagesTooltipMeta->get() only when needed. |
| 22 |
*/ |
| 23 |
class WpssoMessagesTooltipMetaContact 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-contact_name': // Contact Name. |
| 32 |
|
| 33 |
$text = __( 'A name for this contact point (required).', 'wpsso' ) . ' '; |
| 34 |
|
| 35 |
break; |
| 36 |
|
| 37 |
case 'tooltip-meta-contact_name_alt': // Contact Alternate Name. |
| 38 |
|
| 39 |
$text = __( 'An alternate name for this contact point.', 'wpsso' ) . ' '; |
| 40 |
|
| 41 |
break; |
| 42 |
|
| 43 |
case 'tooltip-meta-contact_desc': // Contact Description. |
| 44 |
|
| 45 |
$text = __( 'A description for this contact point.', 'wpsso' ) . ' '; |
| 46 |
|
| 47 |
break; |
| 48 |
|
| 49 |
case 'tooltip-meta-contact_schema_type': // Contact Schema Type. |
| 50 |
|
| 51 |
$text = __( 'You may optionally choose a more accurate Schema type for this contact point (default is ContactPoint).', 'wpsso' ) . ' '; |
| 52 |
|
| 53 |
break; |
| 54 |
|
| 55 |
case 'tooltip-meta-contact_phone': // Contact Telephone. |
| 56 |
|
| 57 |
$text = __( 'An optional telephone number for this contact point.', 'wpsso' ); |
| 58 |
|
| 59 |
break; |
| 60 |
|
| 61 |
case 'tooltip-meta-contact_fax': // Contact Fax. |
| 62 |
|
| 63 |
$text = __( 'An optional fax number for this contact point.', 'wpsso' ); |
| 64 |
|
| 65 |
break; |
| 66 |
|
| 67 |
case 'tooltip-meta-contact_email': // Contact Email. |
| 68 |
|
| 69 |
$text = __( 'An optional email address for this contact point.', 'wpsso' ); |
| 70 |
|
| 71 |
break; |
| 72 |
|
| 73 |
case 'tooltip-meta-contact_sameas_url': // Contact Same-As URLs. |
| 74 |
|
| 75 |
$text = $this->p->msgs->get( 'tooltip-meta-schema_sameas_url' ); |
| 76 |
|
| 77 |
break; |
| 78 |
|
| 79 |
/* |
| 80 |
* Postal Address Information. |
| 81 |
*/ |
| 82 |
case 'tooltip-meta-contact_street_address': // Street Address. |
| 83 |
|
| 84 |
$text = __( 'An optional street address for this contact point.', 'wpsso' ); |
| 85 |
|
| 86 |
break; |
| 87 |
|
| 88 |
case 'tooltip-meta-contact_po_box_number': // P.O. Box Number. |
| 89 |
|
| 90 |
$text = __( 'An optional post office box number for this contact point.', 'wpsso' ); |
| 91 |
|
| 92 |
break; |
| 93 |
|
| 94 |
case 'tooltip-meta-contact_city': // City. |
| 95 |
|
| 96 |
$text = __( 'An optional city name for this contact point.', 'wpsso' ); |
| 97 |
|
| 98 |
break; |
| 99 |
|
| 100 |
case 'tooltip-meta-contact_region': // State / Province. |
| 101 |
|
| 102 |
$text = __( 'An optional state or province name for this contact point.', 'wpsso' ); |
| 103 |
|
| 104 |
break; |
| 105 |
|
| 106 |
case 'tooltip-meta-contact_postal_code': // Zip / Postal Code. |
| 107 |
|
| 108 |
$text = __( 'An optional postal or zip code for this contact point.', 'wpsso' ); |
| 109 |
|
| 110 |
break; |
| 111 |
|
| 112 |
case 'tooltip-meta-contact_country': // Country. |
| 113 |
|
| 114 |
$text = __( 'An optional country for this contact point.', 'wpsso' ); |
| 115 |
|
| 116 |
break; |
| 117 |
|
| 118 |
case 'tooltip-meta-contact_days': // Open Days / Hours. |
| 119 |
|
| 120 |
$text = __( 'Select the days and hours that this contact point is open.', 'wpsso' ); |
| 121 |
|
| 122 |
break; |
| 123 |
|
| 124 |
case 'tooltip-meta-contact_season_dates': // Seasonal Dates. |
| 125 |
|
| 126 |
$text = __( 'If this contact point is open seasonally, select the open and close dates of the season.', 'wpsso' ); |
| 127 |
|
| 128 |
break; |
| 129 |
|
| 130 |
default: |
| 131 |
|
| 132 |
$text = apply_filters( 'wpsso_messages_tooltip_meta_contact', $text, $msg_key, $info ); |
| 133 |
|
| 134 |
break; |
| 135 |
} |
| 136 |
|
| 137 |
return $text; |
| 138 |
} |
| 139 |
} |
| 140 |
} |
| 141 |
|