Changeset 1392:f654316f6e43 for plugins/tags
- Timestamp:
- 08/16/13 10:39:47 (12 years ago)
- Branch:
- default
- Location:
- plugins/tags
- Files:
- 
          - 3 edited
 
 - 
          _admin.php (modified) (3 diffs)
- 
          _define.php (modified) (1 diff)
- 
          js/post.js (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
        plugins/tags/_admin.phpr1365 r1392 18 18 require dirname(__FILE__).'/_widgets.php'; 19 19 20 $core->addBehavior('adminPostFormSidebar ',array('tagsBehaviors','tagsField'));20 $core->addBehavior('adminPostFormSidebarItems',array('tagsBehaviors','tagsField')); 21 21 22 22 $core->addBehavior('adminAfterPostCreate',array('tagsBehaviors','setTags')); … … 71 71 } 72 72 73 public static function tagsField($ post)73 public static function tagsField($items,$post) 74 74 { 75 75 $meta =& $GLOBALS['core']->meta; … … 80 80 $value = ($post) ? $meta->getMetaStr($post->post_meta,'tag') : ''; 81 81 } 82 83 echo 84 '<h5><label for="post_tags">'.__('Tags:').'</label></h5>'. 85 '<div class="p" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal').'</div>'; 82 $items['metas-box']['items']['post_tags']= 83 '<h5><label class="s-tags" for="post_tags">'.__('Tags:').'</label></h5>'. 84 '<div class="p s-tags" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal').'</div>'; 86 85 } 87 86 
- 
        plugins/tags/_define.phpr1179 r1392 18 18 /* Version */ '1.2', 19 19 array( 20 'permissions' => 'usage,contentadmin' 20 'permissions' => 'usage,contentadmin', 21 'priority' => 998 21 22 ) 22 23 ); 
- 
        plugins/tags/js/post.jsr1112 r1392 58 58 }); 59 59 }); 60 61 $('h5 .s-tags').toggleWithLegend($('.s-tags').not('label'),{ 62 cookie: 'post_tags' 63 }); 64 60 65 }); 61 66 
Note: See TracChangeset
          for help on using the changeset viewer.
      