array(
array('use_tag_pages', __('Active tags for page:', 'simpletags'), 'checkbox', '1',
__('This feature allow page to be tagged. This option add pages in tags search. Also this feature add tag management in write page.', 'simpletags')),
array('allow_embed_tcloud', __('Allow tag cloud in post/page content:', 'simpletags'), 'checkbox', '1',
__('Enabling this will allow Wordpress to look for tag cloud marker <!--st_tag_cloud--> when displaying posts. WP replace this marker by a tag cloud.', 'simpletags')),
array('auto_link_tags', __('Active auto link tags into post content:', 'simpletags'), 'checkbox', '1',
__('Example: You have a tag called "WordPress" and your post content contains "wordpress", this feature will replace "wordpress" by a link to "wordpress" tags page. (http://myblog.net/tag/wordpress/)', 'simpletags')),
array('auto_link_min', __('Min usage for auto link tags:', 'simpletags'), 'text', 10,
__('This parameter allows to fix a minimal value of use of tags. Default: 1.', 'simpletags')),
array('auto_link_case', __('Ignore case for auto link feature ?', 'simpletags'), 'checkbox', '1',
__('Example: If you ignore case, auto link feature will replace the word "wordpress" by the tag link "WordPress".', 'simpletags')),
array('no_follow', __('Add the rel="nofollow" on each tags link ?', 'simpletags'), 'checkbox', '1',
__("Nofollow is a non-standard HTML attribute value used to instruct search engines that a hyperlink should not influence the link target's ranking in the search engine's index.",'simpletags'))
),
'administration' => array(
array('use_click_tags', __('Activate click tags feature:', 'simpletags'), 'checkbox', '1',
__('This feature add a link allowing you to display all the tags of your database. Once displayed, you can click over to add tags to post.', 'simpletags')),
array('use_autocompletion', __('Activate autocompletion feature:', 'simpletags'), 'checkbox', '1',
__('This feature displays a visual help allowing to enter tags more easily.', 'simpletags')),
array('use_suggested_tags', __('Activate suggested tags feature: (Yahoo! Term Extraction API, Tag The Net, Local DB)', 'simpletags'), 'checkbox', '1',
__('This feature add a box allowing you get suggested tags, by comparing post content and various sources of tags. (external and internal)', 'simpletags'))
),
'metakeywords' => array(
array('meta_autoheader', __('Automatically include in header:', 'simpletags'), 'checkbox', '1',
__('Includes the meta keywords tag automatically in your header (most, but not all, themes support this). These keywords are sometimes used by search engines. Warning: If the plugin "All in One SEO Pack" is installed and enabled. This feature is automatically disabled.', 'simpletags')),
array('meta_always_include', __('Always add these keywords:', 'simpletags'), 'text', 80),
array('meta_keywords_qty', __('Max keywords display:', 'simpletags'), 'text', 10,
__('You must set zero (0) for display all keywords in HTML header.', 'simpletags')),
),
'embeddedtags' => array(
array('use_embed_tags', __('Use embedded tags:', 'simpletags'), 'checkbox', '1',
__('Enabling this will allow Wordpress to look for embedded tags when saving and displaying posts. Such set of tags is marked [tags]like this, and this[/tags], and is added to the post when the post is saved, but does not display on the post.', 'simpletags')),
array('start_embed_tags', __('Prefix for embedded tags:', 'simpletags'), 'text', 40),
array('end_embed_tags', __('Suffix for embedded tags:', 'simpletags'), 'text', 40)
),
'tagspost' => array(
array('tt_feed', __('Automatically display tags list into feeds', 'simpletags'), 'checkbox', '1'),
array('tt_embedded', __('Automatically display tags list into post content:', 'simpletags'), 'dropdown', 'no/all/blogonly/feedonly/homeonly/singularonly/pageonly/singleonly',
'
'.__('no – Nowhere (default)', 'simpletags').'
'.__('all – On your blog and feeds.', 'simpletags').'
'.__('blogonly – Only on your blog.', 'simpletags').'
'.__('homeonly – Only on your home page.', 'simpletags').'
'.__('singularonly – Only on your singular view (single & page).', 'simpletags').'
'.__('singleonly – Only on your single view.', 'simpletags').'
'.__('pageonly – Only on your page view.', 'simpletags').'
'),
array('tt_separator', __('Post tag separator string:', 'simpletags'), 'text', 10),
array('tt_before', __('Text to display before tags list:', 'simpletags'), 'text', 40),
array('tt_after', __('Text to display after tags list:', 'simpletags'), 'text', 40),
array('tt_number', __('Max tags display:', 'simpletags'), 'text', 10,
__('You must set zero (0) for display all tags.', 'simpletags')),
array('tt_inc_cats', __('Include categories in result ?', 'simpletags'), 'checkbox', '1'),
array('tt_xformat', __('Tag link format:', 'simpletags'), 'text', 80,
__('You can find markers and explanations in the online documentation.', 'simpletags')),
array('tt_notagstext', __('Text to display if no tags found:', 'simpletags'), 'text', 80),
array('tt_adv_usage', __('Advanced usage:', 'simpletags'), 'text', 80,
__('You can use the same syntax as st_the_tags() function to customize display. See documentation for more details.', 'simpletags'))
),
'relatedposts' => array(
array('rp_feed', __('Automatically display related posts into feeds', 'simpletags'), 'checkbox', '1'),
array('rp_embedded', __('Automatically display related posts into post content', 'simpletags'), 'dropdown', 'no/all/blogonly/feedonly/homeonly/singularonly/pageonly/singleonly',
'
'.__('no – Nowhere (default)', 'simpletags').'
'.__('all – On your blog and feeds.', 'simpletags').'
'.__('blogonly – Only on your blog.', 'simpletags').'
'.__('homeonly – Only on your home page.', 'simpletags').'
'.__('singularonly – Only on your singular view (single & page).', 'simpletags').'
'.__('singleonly – Only on your single view.', 'simpletags').'
'.__('pageonly – Only on your page view.', 'simpletags').'
'),
array('rp_xformat', __('Post link format:', 'simpletags'), 'text', 80,
__('You can find markers and explanations in the online documentation.', 'simpletags')),
array('rp_limit_qty', __('Maximum number of related posts to display: (default: 5)', 'simpletags'), 'text', 10),
array('rp_notagstext', __('Enter the text to show when there is no related post:', 'simpletags'), 'text', 80),
array('rp_title', __('Enter the positioned title before the list, leave blank for no title:', 'simpletags'), 'text', 80),
array('rp_adv_usage', __('Advanced usage:', 'simpletags'), 'text', 80,
__('You can use the same syntax as st_related_posts()function to customize display. See documentation for more details.', 'simpletags'))
),
'relatedtags' => array(
array('rt_number', __('Maximum number of related tags to display: (default: 5)', 'simpletags'), 'text', 10),
array('rt_order', __('Order related tags:', 'simpletags'), 'dropdown', 'count-asc/count-desc/name-asc/name-desc/random',
'
'.__('count-asc – Least used.', 'simpletags').'
'.__('count-desc – Most popular. (default)', 'simpletags').'
'),
array('rt_format', __('Related tags type format:', 'simpletags'), 'dropdown', 'list/flat',
'
'.__('list – Display a formatted list (ul/li).', 'simpletags').'
'.__('flat – Display inline (no list, just a div)', 'simpletags').'
'),
array('rt_method', __('Method of tags intersections and unions used to build related tags link:', 'simpletags'), 'dropdown', 'OR/AND',
'
'.__('OR – Fetches posts with either the "Tag1" or the "Tag2" tag. (default)', 'simpletags').'
'.__('AND – Fetches posts with both the "Tag1" and the "Tag2" tag.', 'simpletags').'
'),
array('rt_xformat', __('Related tags link format:', 'simpletags'), 'text', 80,
__('You can find markers and explanations in the online documentation.', 'simpletags')),
array('rt_separator', __('Related tags separator:', 'simpletags'), 'text', 10,
__('Leave empty for list format.', 'simpletags')),
array('rt_notagstext', __('Enter the text to show when there is no related tags:', 'simpletags'), 'text', 80),
array('rt_title', __('Enter the positioned title before the list, leave blank for no title:', 'simpletags'), 'text', 80),
array('rt_adv_usage', __('Advanced usage:', 'simpletags'), 'text', 80,
__('You can use the same syntax as st_related_tags()function to customize display. See documentation for more details.', 'simpletags')),
// Remove related tags
array('text_helper', 'text_helper', 'helper', '', '
'.__('Remove related Tags', 'simpletags').'
'),
array('rt_format', __('Remove related Tags type format:', 'simpletags'), 'dropdown', 'list/flat',
'
'.__('list – Display a formatted list (ul/li).', 'simpletags').'
'.__('flat – Display inline (no list, just a div)', 'simpletags').'
'),
array('rt_remove_separator', __('Remove related tags separator:', 'simpletags'), 'text', 10,
__('Leave empty for list format.', 'simpletags')),
array('rt_remove_notagstext', __('Enter the text to show when there is no remove related tags:', 'simpletags'), 'text', 80),
array('rt_remove_xformat', __('Remove related tags link format:', 'simpletags'), 'text', 80,
__('You can find markers and explanations in the online documentation.', 'simpletags')),
),
'tagcloud' => array(
array('text_helper', 'text_helper', 'helper', '', __('Which difference between ‘Order tags selection’ and ‘Order tags display’ ? ', 'simpletags')
. '
'.__('‘Order tags selection’ is the first step during tag\'s cloud generation, corresponding to collect tags.', 'simpletags').'
'.__('‘Order tags display’ is the second. Once tags choosen, you can reorder them before display.', 'simpletags').'
'.
__('Example: You want display randomly the 100 tags most popular. ', 'simpletags').
__('You must set ‘Order tags selection’ to count-desc for retrieve the 100 tags most popular and ‘Order tags display’ to random for randomize cloud.', 'simpletags')),
array('cloud_selection', __('Order tags selection:', 'simpletags'), 'dropdown', 'count-asc/count-desc/name-asc/name-desc/random',
'
'.__('count-asc – Least used.', 'simpletags').'
'.__('count-desc – Most popular. (default)', 'simpletags').'
'),
array('cloud_inc_cats', __('Include categories in tag cloud ?', 'simpletags'), 'checkbox', '1'),
array('cloud_format', __('Tags cloud type format:', 'simpletags'), 'dropdown', 'list/flat',
'
'.__('list – Display a formatted list (ul/li).', 'simpletags').'
'.__('flat – Display inline (no list, just a div)', 'simpletags').'
'),
array('cloud_xformat', __('Tag link format:', 'simpletags'), 'text', 80,
__('You can find markers and explanations in the online documentation.', 'simpletags')),
array('cloud_limit_qty', __('Maximum number of tags to display: (default: 45)', 'simpletags'), 'text', 10),
array('cloud_notagstext', __('Enter the text to show when there is no tag:', 'simpletags'), 'text', 80),
array('cloud_title', __('Enter the positioned title before the list, leave blank for no title:', 'simpletags'), 'text', 80),
array('cloud_max_color', __('Most popular color:', 'simpletags'), 'text-color', 10,
__("The colours are hexadecimal colours, and need to have the full six digits (#eee is the shorthand version of #eeeeee).", 'simpletags')),
array('cloud_min_color', __('Least popular color:', 'simpletags'), 'text-color', 10),
array('cloud_max_size', __('Most popular font size:', 'simpletags'), 'text', 10,
__("The two font sizes are the size of the largest and smallest tags.", 'simpletags')),
array('cloud_min_size', __('Least popular font size:', 'simpletags'), 'text', 10),
array('cloud_unit', __('The units to display the font sizes with, on tag clouds:', 'simpletags'), 'dropdown', 'pt/px/em/%',
__("The font size units option determines the units that the two font sizes use.", 'simpletags')),
array('cloud_adv_usage', __('Advanced usage:', 'simpletags'), 'text', 80,
__('You can use the same syntax as st_tag_cloud() function to customize display. See documentation for more details.', 'simpletags'))
),
);
// Update or reset options
if ( isset($_POST['updateoptions']) ) {
foreach((array) $this->options as $key => $value) {
$newval = ( isset($_POST[$key]) ) ? stripslashes($_POST[$key]) : '0';
$skipped_options = array('use_auto_tags', 'auto_list');
if ( $newval != $value && !in_array($key, $skipped_options) ) {
$this->setOption( $key, $newval );
}
}
$this->saveOptions();
$this->message = __('Options saved', 'simpletags');
$this->status = 'updated';
} elseif ( isset($_POST['reset_options']) ) {
$this->resetToDefaultOptions();
$this->message = __('Simple Tags options resetted to default options!', 'simpletags');
}
// Delete all options ?
if ( $_POST['delete_all_options'] == 'true' ) {
$this->deleteAllOptions();
$this->message = sprintf( __('All Simple Tags options are deleted ! You deactive plugin now !', 'simpletags'), $this->info['siteurl']. '/wp-admin/plugins.php');
}
$this->displayMessage();
?>
plugin\'s homepage for further details. If you find a bug, or have a fantastic idea for this plugin, ask me !', 'simpletags'); ?>