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-site.php

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

134 lines 4.2 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( 'WpssoMessagesTooltipSite' ) ) {
19
20 /*
21 * Instantiated by WpssoMessagesTooltip->get() only when needed.
22 */
23 class WpssoMessagesTooltipSite extends WpssoMessages {
24
25 public function get( $msg_key = false, $info = array() ) {
26
27 $this->maybe_set_properties();
28
29 $text = '';
30
31 switch ( $msg_key ) {
32
33 case 'tooltip-site_name': // Site Name.
34
35 $text = __( 'The website name used in meta tags and Schema markup.', 'wpsso' );
36
37 break;
38
39 case 'tooltip-site_name_alt': // Site Alternate Name.
40
41 $text = __( 'An optional alternate name that you want Google to consider for your website.', 'wpsso' );
42
43 break;
44
45 case 'tooltip-site_desc': // Site Description.
46
47 $text = __( 'A short description for the home page tagline and the blog (non-static) front page description.', 'wpsso' );
48
49 break;
50
51 case 'tooltip-site_home_url': // Site Home URL.
52
53 $text = __( 'The website home URL used in meta tags and Schema markup.', 'wpsso' );
54
55 break;
56
57 case 'tooltip-site_pub_schema_type': // Site Publisher Type.
58
59 $text .= __( 'Select a Schema type for the publisher of content for this website.', 'wpsso' ) . ' ';
60
61 $text .= __( 'Traditionally, the Schema Organization type is selected for business websites, where-as the Schema Person type is selected for personal websites.', 'wpsso' );
62
63 break;
64
65 case 'tooltip-site_pub_person_id': // Site Publisher Person.
66
67 $text = __( 'Select a user for the Schema Person publisher markup.', 'wpsso' ) . ' ';
68
69 $text .= sprintf( __( 'The available Person list includes all users in the %1$s or %2$s roles.', 'wpsso' ),
70 _x( 'Administrator', 'user role', 'wpsso' ), _x( 'Editor', 'user role', 'wpsso' ) );
71
72 break;
73
74 /*
75 * This help text is also used for the WPSSO OPM add-on 'tooltip-meta-org_logo_url' help text.
76 */
77 case 'tooltip-site_org_logo_url': // Organization Logo URL.
78
79 $min_width = $this->p->cf[ 'head' ][ 'limit_min' ][ 'org_logo_width' ];
80 $min_height = $this->p->cf[ 'head' ][ 'limit_min' ][ 'org_logo_height' ];
81 $minimum_dims = $min_width . 'x' . $min_height . 'px';
82
83 $text = __( 'A URL for this organization\'s logo image that Google can show in search results and its Knowledge Graph.', 'wpsso' ) . ' ';
84
85 // translators: %s is 600x60px.
86 $text .= sprintf( __( 'The image must be at least %s for Google, but preferably 1200x1200px or more.', 'wpsso' ), $minimum_dims );
87
88 break;
89
90 /*
91 * This help text is also used for the WPSSO OPM add-on 'tooltip-meta-org_banner_url' help text.
92 */
93 case 'tooltip-site_org_banner_url': // Organization Banner URL.
94
95 $min_width = $this->p->cf[ 'head' ][ 'limit' ][ 'org_banner_width' ];
96 $min_height = $this->p->cf[ 'head' ][ 'limit' ][ 'org_banner_height' ];
97 $required_dims = $min_width . 'x' . $min_height . 'px';
98
99 // translators: %s is 600x60px.
100 $text = sprintf( __( 'A URL for this organization\'s banner image <strong>measuring exactly %s</strong>, that Google News can show for Schema Article type content from this publisher.', 'wpsso' ), $required_dims ) . ' ';
101
102 break;
103
104 case 'tooltip-site_org_place_id': // Organization Location.
105
106 $text = __( 'Select an optional location for this organization.', 'wpsso' );
107
108 break;
109
110 case 'tooltip-site_org_schema_type': // Organization Schema Type.
111
112 $text .= __( 'The site organization must be Schema Organization.', 'wpsso' );
113
114 break;
115
116 case 'tooltip-site-use':
117
118 $text = __( 'Individual sites/blogs may use this value as a default (when the plugin is first activated), if the current site/blog option value is blank, or force every site/blog to use this specific value.', 'wpsso' );
119
120 break;
121
122 default:
123
124 $text = apply_filters( 'wpsso_messages_tooltip_site', $text, $msg_key, $info );
125
126 break;
127
128 } // End of 'tooltip-site' switch.
129
130 return $text;
131 }
132 }
133 }
134