Changeset 368 for plugins/blocNotes
- Timestamp:
- 03/26/08 20:16:29 (16 years ago)
- Location:
- plugins/blocNotes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/blocNotes/_admin.php
r366 r368 3 3 # 4 4 # This file is part of Bloc-Notes. 5 # Copyright 200 7Moe (http://gniark.net/)5 # Copyright 2008 Moe (http://gniark.net/) 6 6 # 7 7 # Bloc-Notes is free software; you can redistribute it and/or modify … … 18 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 19 # 20 # I mages arefrom Silk Icons : http://www.famfamfam.com/lab/icons/silk/20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 24 24 require_once(dirname(__FILE__).'/lib.blocNotes.php'); 25 25 $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 26 $core->addBehavior('adminPostForm',array('blocNotes',' adminPostForm'));26 $core->addBehavior('adminPostForm',array('blocNotes','textarea')); 27 27 $core->addBehavior('adminAfterPostCreate',array('blocNotes','adminPost')); 28 28 $core->addBehavior('adminAfterPostUpdate',array('blocNotes','adminPost')); 29 $core->addBehavior('adminPostHeaders',array('blocNotes','adminpostHeaders')); 29 30 30 $_menu['Plugins']->addItem(__('Bloc- Notes'),31 $_menu['Plugins']->addItem(__('Bloc-notes'), 31 32 'plugin.php?p=blocNotes', 32 33 'index.php?pf=blocNotes/icon.png', -
plugins/blocNotes/_define.php
r366 r368 3 3 # 4 4 # This file is part of Bloc-Notes. 5 # Copyright 200 7Moe (http://gniark.net/)5 # Copyright 2008 Moe (http://gniark.net/) 6 6 # 7 7 # Bloc-Notes is free software; you can redistribute it and/or modify … … 18 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 19 # 20 # I mages arefrom Silk Icons : http://www.famfamfam.com/lab/icons/silk/20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 26 26 /* Description*/ "Display a notebook on the backend", 27 27 /* Author */ "Moe (http://gniark.net/)", 28 /* Version */ '1.0-beta 1',28 /* Version */ '1.0-beta2', 29 29 /* Permissions */ 'usage,contentadmin' 30 30 ); … … 34 34 personal notebook 35 35 -> global setting with username 36 hideable textarea on post.php37 36 */ 38 37 ?> -
plugins/blocNotes/index.php
r366 r368 3 3 # 4 4 # This file is part of Bloc-Notes. 5 # Copyright 200 7Moe (http://gniark.net/)5 # Copyright 2008 Moe (http://gniark.net/) 6 6 # 7 7 # Bloc-Notes is free software; you can redistribute it and/or modify … … 19 19 # 20 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 21 #22 # Inspired by http://txfx.net/code/wordpress/subscribe-to-comments/23 21 # 24 22 # ***** END LICENSE BLOCK ***** … … 58 56 <body> 59 57 60 <h2><?php echo html::escapeHTML($core->blog->name).' > '.__('Bloc- Notes'); ?></h2>58 <h2><?php echo html::escapeHTML($core->blog->name).' > '.__('Bloc-notes'); ?></h2> 61 59 62 60 <?php … … 68 66 <fieldset> 69 67 <legend><?php echo(__('Text')); ?></legend> 70 <p class="field"> 71 <?php echo(blocNotes::adminPostForm()); ?> 72 </p> 68 <?php echo(blocNotes::textarea()); ?> 73 69 </fieldset> 74 70 -
plugins/blocNotes/lib.blocNotes.php
r366 r368 3 3 # 4 4 # This file is part of Bloc-Notes. 5 # Copyright 200 7Moe (http://gniark.net/)5 # Copyright 2008 Moe (http://gniark.net/) 6 6 # 7 7 # Bloc-Notes is free software; you can redistribute it and/or modify … … 18 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 19 # 20 # I mages arefrom Silk Icons : http://www.famfamfam.com/lab/icons/silk/20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 30 30 } 31 31 32 public static function adminPostForm(&$post='')32 public static function textarea(&$post='') 33 33 { 34 34 global $core; 35 35 36 echo('<div id="blocNotes">'. 36 echo('<p class="area" id="blocNotes">'. 37 '<label for="blocNotes_text">'.__('Bloc-notes :').'</label>'. 37 38 form::textarea('blocNotes_text',80,20, 38 39 html::escapeHTML($core->blog->settings->blocNotes_text)). 39 '</ div>');40 '</p>'); 40 41 } 41 42 … … 52 53 } 53 54 } 55 56 public static function adminPostHeaders() 57 { 58 return '<script type="text/javascript" src="index.php?pf=blocNotes/post.js">'. 59 '</script>'."\n"; 60 } 54 61 } 55 62
Note: See TracChangeset
for help on using the changeset viewer.