Changeset 2661:86631ca0a3c4 for plugins
- Timestamp:
- 02/14/14 14:05:41 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/tags/_public.php
r2607 r2661 234 234 public static function tagsWidget($w) 235 235 { 236 global $core ;236 global $core, $_ctx; 237 237 238 238 if (($w->homeonly == 1 && $core->url->type != 'default') || … … 271 271 '<ul>'; 272 272 273 if ($core->url->type == 'post' && $_ctx->posts instanceof record) { 274 $_ctx->meta = $core->meta->getMetaRecordset($_ctx->posts->post_meta,'tag'); 275 } 273 276 while ($rs->fetch()) 274 277 { 278 $class = ''; 279 if ($core->url->type == 'post' && $_ctx->posts instanceof record) { 280 while ($_ctx->meta->fetch()) { 281 if ($_ctx->meta->meta_id == $rs->meta_id) { 282 $class = ' class="tag-current"'; 283 break; 284 } 285 } 286 } 275 287 $res .= 276 '<li ><a href="'.$core->blog->url.$core->url->getURLFor('tag',rawurlencode($rs->meta_id)).'" '.288 '<li'.$class.'><a href="'.$core->blog->url.$core->url->getURLFor('tag',rawurlencode($rs->meta_id)).'" '. 277 289 'class="tag'.$rs->roundpercent.'">'. 278 290 $rs->meta_id.'</a> </li>';
Note: See TracChangeset
for help on using the changeset viewer.