diff --git a/includes/help.php b/includes/help.php index f84ccaf..1f29119 100644 --- a/includes/help.php +++ b/includes/help.php @@ -1,5 +1,51 @@ add_help_tab( + array( + 'id' => 'template-tags', + 'title' => \__( 'Template Tags', 'activitypub' ), + 'content' => + '
' . __( 'The following Template Tags are available:', 'activitypub' ) . '
' . + '[ap_title]
[ap_content]
[ap_excerpt lenght="400"]
[ap_permalink type="url"]
url
or html
(an <a /> tag to the url).', 'activitypub' ), 'default' ) . '[ap_shortlink type="url"]
url
or html
(an <a /> tag to the url). I can recommend Hum, to prettify the Shortlinks.', 'activitypub' ), 'default' ) . '[ap_hashtags]
[ap_hashcats]
[ap_image type=full]
thumbnail
, medium
, large
, full
', 'activitypub' ), 'default' ) . '[ap_author]
[ap_authorurl]
[ap_date]
[ap_time]
[ap_datetime]
[ap_blogurl]
[ap_blogname]
[ap_blogdesc]
' . __( 'You may also use any Shortcode normally available to you on your site, however be aware that Shortcodes may significantly increase the size of your content depending on what they do.', 'activitypub' ) . '
' . + '' . __( 'Note: the old Template Tags are now deprecated and automatically converted to the new ones.', 'activitypub' ) . '
' . + '' . \wp_kses( \__( 'Let me know if you miss a template pattern.', 'activitypub' ), 'activitypub' ) . '
', + ) +); + \get_current_screen()->add_help_tab( array( 'id' => 'glossar', diff --git a/templates/settings.php b/templates/settings.php index eb01128..24cd5c4 100644 --- a/templates/settings.php +++ b/templates/settings.php @@ -56,35 +56,22 @@
-
+
+
- [ap_title]
- [ap_content]
- [ap_excerpt lenght=400]
- [ap_permalink type=url]
- [ap_shortlink type=url]
- Hum, to prettify the Shortlinks. Type can be either: url (default, the escaped url), html (an a tag to the url).', 'activitypub' ), 'default' ); ?>[ap_excerpt]
- [ap_permalink]
- [ap_shortlink]
- Hum.', 'activitypub' ), 'default' ); ?>[ap_hashtags]
- [ap_hashcats]
- [ap_image type=full]
- [ap_author]
- [ap_authorurl]
- [ap_date]
- [ap_time]
- [ap_datetime]
- [ap_blogurl]
- [ap_blogname]
- [ap_blogdesc]
- [ap_image]
-
Let me know if you miss a template pattern.', 'activitypub' ), 'activitypub' ); ?>