Changeset 1953
- Timestamp:
- 06/10/10 12:02:59 (3 years ago)
- Location:
- branches/1.4/content/plugins/tags
- Files:
-
- 2 added
- 3 edited
-
languages/tags_language.php (modified) (1 diff)
-
libs (added)
-
readme.txt (modified) (1 diff)
-
tags.php (modified) (3 diffs)
-
tags_settings.php (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.4/content/plugins/tags/languages/tags_language.php
r1720 r1953 11 11 12 12 /* RSS */ 13 $lang['post_rss_tagged'] = "Stories tagged"; 13 $lang['post_rss_tagged'] = "Stories tagged"; 14 15 16 $lang['tags_settings_header'] = "Tags Settings"; 17 $lang['tags_setting_exclude_words'] = "Tag words to exclude (separate by comma)"; 18 $lang['tags_setting_exclude_active'] = "Exclusion words active"; 14 19 ?> -
branches/1.4/content/plugins/tags/readme.txt
r1717 r1953 13 13 Changelog 14 14 --------- 15 v.1.8 2010/06/10 - Alan - Added admin settings page, exclusion tag words for list and post page 15 16 v.1.7 2010/05/22 - Nick - Fix for home page title tags and moved Tag RSS from SB Base into this plugin 16 17 v.1.6 2010/04/14 - Nick - Top stories page name changed from "index" to "popular" -
branches/1.4/content/plugins/tags/tags.php
r1834 r1953 3 3 * name: Tags 4 4 * description: Show tags, filter tags and RSS for tags 5 * version: 1. 75 * version: 1.8 6 6 * folder: tags 7 7 * class: Tags 8 8 * type: tags 9 * hooks: theme_index_top, header_include, header_include_raw, header_meta, show_post_extra_fields, show_post_extras, bookmarking_functions_preparelist, breadcrumbs, post_rss_feed 9 * hooks: theme_index_top, header_include, header_include_raw, header_meta, show_post_extra_fields, show_post_extras, bookmarking_functions_preparelist, breadcrumbs, post_rss_feed, admin_plugin_settings, admin_sidebar_plugin_settings 10 10 * author: Nick Ramsay 11 11 * authorurl: http://hotarucms.org/member.php?1-Nick … … 147 147 148 148 $tags = explode(',', $h->post->tags); 149 149 150 $tags_settings = $h->getSerializedSettings('tags'); 151 152 if ($tags_settings['tags_setting_exclude_active'] && $tags_settings['tags_setting_exclude_words']) { 153 $exclude_tags = explode(',', $tags_settings['tags_setting_exclude_words']); 154 array_walk($exclude_tags, array($this,'trim_value')); 155 if ($exclude_tags) { 156 $tags = array_diff( $tags, $exclude_tags ); 157 } 158 } 159 150 160 // lots of nice issets for php 5.3 compatibility 151 161 if (isset($vars[0]) && isset($vars[1]) && ($vars[0] == "tags") && ($vars[1] == "raw")) { … … 169 179 echo "<div class='clear'> </div>\n"; 170 180 } 171 } 181 182 } 183 184 185 186 //required for above array_walk method 187 public function trim_value(&$value) 188 { 189 $value = trim($value); 190 } 191 192 172 193 173 194
Note: See TracChangeset
for help on using the changeset viewer.