From 51814fda25930154eb530cea3a0a60327dfb61e6 Mon Sep 17 00:00:00 2001 From: dai-eastgate <106214469+dai-eastgate@users.noreply.github.com> Date: Thu, 2 May 2024 14:23:47 +0700 Subject: [PATCH] 46119 change info text for seo title and description settings (#780) * 46119 change info text for seo title and description settings * 46119 update text * 46119 update cursor pointer --------- Co-authored-by: Frederic Alpers <88546396+fredericalpers@users.noreply.github.com> --- css/admin.css | 5 +++++ plugin/Gui/AdminPageApiSettings.php | 21 +++++++++++---------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/css/admin.css b/css/admin.css index 6bd6b4453..9153698b7 100644 --- a/css/admin.css +++ b/css/admin.css @@ -320,6 +320,11 @@ div[data-name^=oopluginfieldconfigformdefaultsvalues-value].multiselect > input. list-style: disc; margin-left: 25px; } + +.do-not-modify summary { + cursor: pointer; +} + input#onoffice-input-submit { color: #2271b1; border-color: #2271b1; diff --git a/plugin/Gui/AdminPageApiSettings.php b/plugin/Gui/AdminPageApiSettings.php index 59f40ed66..efcd58136 100644 --- a/plugin/Gui/AdminPageApiSettings.php +++ b/plugin/Gui/AdminPageApiSettings.php @@ -222,14 +222,13 @@ private function addFormModelGoogleBotSettings() $listPluginSEOActive = $pAdminViewController->getPluginSEOActive(); $listNamePluginSEO = implode(", ",$listPluginSEOActive); $titleDoNotModify = esc_html__("This plugin will not modify the title and description. This enables other plugins to manage those tags.",'onoffice-for-wp-websites'); - $summaryDetailDoNotModify = esc_html__( 'Custom fields', 'onoffice-for-wp-websites' ); - $descriptionDetailDoNotModify = sprintf(esc_html__( 'When this option is active, you can use special custom fields to use data from onOffice enterprise in your SEO plugins. - To display the property number (fieldname %1$s) and title (fieldname %2$s) of the current estate in the detail page\'s title, you can use the custom fields %3$s and %4$s. - For information on how to use custom fields consult you SEO plugin\'s documentation.', 'onoffice-for-wp-websites' ), 'objektnr_extern', 'objekttitel', 'onoffice_objektnr_extern', 'onoffice_objekttitel'); - $searchSupportDoNotModify = sprintf(esc_html__( 'To find out the fieldname of a field, look in the detail page\'s field list. When you expand a field, it shows you the "Key of Field" which you should put behind %s to form the custom field name. You can use any field that you have added to the estate field list on the right of the detail page.', - 'onoffice-for-wp-websites' ), 'onoffice_'); - $titleEllipsisDoNotModify = sprintf(esc_html__( 'If you need to shorten a field to e.g. 50 characters, you can use %1$s. This will shorten the estate\'s description to at most 50 characters, including the ellipsis. It will not cut words in the middle, but leave them out if they are too long, so "This is too loooong" will never become "This is too looo…" but rather "This is too…". To display up to 150 characters, you can use %2$s.', - 'onoffice-for-wp-websites' ), 'onoffice_ellipsis50_objektbeschreibung', 'onoffice_ellipsis150_objektbeschreibung'); + $summaryDetailDoNotModify = esc_html__( 'Further information on custom fields', 'onoffice-for-wp-websites' ); + $descriptionDetailDoNotModify = esc_html__( 'With the help of an SEO plugin, it is possible to use individual fields to insert data directly from onOffice enterprise into the title and metadata of your website.', 'onoffice-for-wp-websites' ); + $guideUseCustomFieldsDoNotModify = esc_html__( 'These custom fields allow you to insert specific information, such as the property title and property number from onOffice enterprise. The corresponding field names can be found in the field list on the detail page. Please note that only fields that are active for the detail page, for example, can be output.', + 'onoffice-for-wp-websites' ); + $snippetVariablesExampleDoNotModify = sprintf(esc_html__( 'An example of integration with the Yoast SEO plugin would be:%1$s %2$s or%1$s %3$s or%1$s %4$s', + 'onoffice-for-wp-websites' ), '
', '%%cf_onoffice_objekttitel%%', '%%cf_onoffice_objektnr_extern%%', '%%cf_onoffice_objektbeschreibung%%'); + $referUseCustomFieldsInSeoPluginDocsDoNotModify = esc_html__( 'For information on how to use custom fields in your SEO plugin, please refer to its documentation.', 'onoffice-for-wp-websites' ); $titleDescriptionDoNotModify = sprintf(esc_html__( 'The title and description of the detail page are set using the %1$s and %2$s tags. They make it possible to show a summary of the page when you share a link.', 'onoffice-for-wp-websites' ), '<title>', '<meta name="description>'); $descriptionDoNotModify = sprintf( '
@@ -241,10 +240,12 @@ private function addFormModelGoogleBotSettings()

%4$s


%5$s

+
+

%6$s


-

%6$s

', $titleDoNotModify, $summaryDetailDoNotModify, - $descriptionDetailDoNotModify, $searchSupportDoNotModify, $titleEllipsisDoNotModify, +

%7$s

', $titleDoNotModify, $summaryDetailDoNotModify, + $descriptionDetailDoNotModify, $guideUseCustomFieldsDoNotModify, $snippetVariablesExampleDoNotModify, $referUseCustomFieldsInSeoPluginDocsDoNotModify, $titleDescriptionDoNotModify ); $messageNoticeSEO = sprintf(esc_html__('We have detected an active SEO plugin: %s. This option can lead to conflicts with the SEO plugin. We recommend that you configure the onOffice plugin to not modify the title and description.','onoffice-for-wp-websites'), $listNamePluginSEO);