Changeset 2566:9bf417837888 for plugins/attachments/_admin.php
- Timestamp:
- 11/17/13 20:25:53 (12 years ago)
- Branch:
- 2.6
- Children:
- 2567:6c11245cbf04, 2568:61c67a7d17fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/attachments/_admin.php
r2360 r2566 38 38 public static function postHeaders() 39 39 { 40 return 40 return 41 41 '<script type="text/javascript" src="index.php?pf=attachments/js/post.js"></script>'; 42 42 } 43 public static function adminPostFormItems($main,$sidebar,$post) 43 public static function adminPostFormItems($main,$sidebar,$post) 44 44 { 45 45 if ($post !== null) … … 66 66 '<li>'.files::size($f->size).' - '. 67 67 '<a href="'.$f->file_url.'">'.__('open').'</a>'.'</li>'. 68 68 69 69 '<li class="media-action"><a class="attachment-remove" id="attachment-'.$f->media_id.'" '. 70 70 'href="post_media.php?post_id='.$post->post_id.'&media_id='.$f->media_id.'&remove=1">'. 71 71 '<img src="images/trash.png" alt="'.__('remove').'" /></a>'. 72 72 '</li>'. 73 73 74 74 '</ul>'. 75 75 '</div>'; 76 76 } 77 77 unset($f); 78 78 79 79 if (empty($post_media)) { 80 80 $item .= '<p class="form-note s-attachments">'.__('No attachment.').'</p>'; 81 } 81 } 82 82 $item .= '<p class="s-attachments"><a class="button" href="media.php?post_id='.$post->post_id.'">'.__('Add files to this entry').'</a></p>'; 83 83 $sidebar['metas-box']['items']['attachments']= $item; 84 84 } 85 85 } 86 86 87 87 public static function adminPostAfterForm($post) { 88 88 if ($post !== null) … … 98 98 } 99 99 } 100 ?>
Note: See TracChangeset
for help on using the changeset viewer.