Skip to content

Commit

Permalink
46119 change info text for seo title and description settings (#780)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
dai-eastgate and fredericalpers authored May 2, 2024
1 parent b634d45 commit 51814fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions css/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
21 changes: 11 additions & 10 deletions plugin/Gui/AdminPageApiSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ), '<code>objektnr_extern</code>', '<code>objekttitel</code>', '<code>onoffice_objektnr_extern</code>', '<code>onoffice_objekttitel</code>');
$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' ), '<code>onoffice_</code>');
$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' ), '<code>onoffice_ellipsis50_objektbeschreibung</code>', '<code>onoffice_ellipsis150_objektbeschreibung</code>');
$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' ), '<br>', '<code>%%cf_onoffice_objekttitel%%</code>', '<code>%%cf_onoffice_objektnr_extern%%</code>', '<code>%%cf_onoffice_objektbeschreibung%%</code>');
$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' ), '<code>&lt;title&gt;</code>', '<code>&lt;meta name="description&gt;</code>');
$descriptionDoNotModify = sprintf( '<div class="do-not-modify">
Expand All @@ -241,10 +240,12 @@ private function addFormModelGoogleBotSettings()
<p>%4$s</p>
</br>
<p>%5$s</p>
</br>
<p>%6$s</p>
</details>
</br>
</div> <p>%6$s</p>', $titleDoNotModify, $summaryDetailDoNotModify,
$descriptionDetailDoNotModify, $searchSupportDoNotModify, $titleEllipsisDoNotModify,
</div> <p>%7$s</p>', $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);
Expand Down

0 comments on commit 51814fd

Please sign in to comment.