Dotclear

Changeset 368 for plugins/blocNotes


Ignore:
Timestamp:
03/26/08 20:16:29 (16 years ago)
Author:
Moe
Message:

hideable textarea on post page

Location:
plugins/blocNotes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/blocNotes/_admin.php

    r366 r368  
    33# 
    44# This file is part of Bloc-Notes. 
    5 # Copyright 2007 Moe (http://gniark.net/) 
     5# Copyright 2008 Moe (http://gniark.net/) 
    66# 
    77# Bloc-Notes is free software; you can redistribute it and/or modify 
     
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1919# 
    20 # Images are from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
     20# Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    2424     require_once(dirname(__FILE__).'/lib.blocNotes.php'); 
    2525     $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 
    26      $core->addBehavior('adminPostForm',array('blocNotes','adminPostForm')); 
     26     $core->addBehavior('adminPostForm',array('blocNotes','textarea')); 
    2727     $core->addBehavior('adminAfterPostCreate',array('blocNotes','adminPost')); 
    2828     $core->addBehavior('adminAfterPostUpdate',array('blocNotes','adminPost')); 
     29     $core->addBehavior('adminPostHeaders',array('blocNotes','adminpostHeaders')); 
    2930 
    30      $_menu['Plugins']->addItem(__('Bloc-Notes'), 
     31     $_menu['Plugins']->addItem(__('Bloc-notes'), 
    3132     'plugin.php?p=blocNotes', 
    3233     'index.php?pf=blocNotes/icon.png', 
  • plugins/blocNotes/_define.php

    r366 r368  
    33# 
    44# This file is part of Bloc-Notes. 
    5 # Copyright 2007 Moe (http://gniark.net/) 
     5# Copyright 2008 Moe (http://gniark.net/) 
    66# 
    77# Bloc-Notes is free software; you can redistribute it and/or modify 
     
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1919# 
    20 # Images are from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
     20# Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    2626        /* Description*/                "Display a notebook on the backend", 
    2727        /* Author */                    "Moe (http://gniark.net/)", 
    28         /* Version */                   '1.0-beta1', 
     28        /* Version */                   '1.0-beta2', 
    2929        /* Permissions */               'usage,contentadmin' 
    3030); 
     
    3434     personal notebook 
    3535          -> global setting with username 
    36      hideable textarea on post.php 
    3736*/ 
    3837?> 
  • plugins/blocNotes/index.php

    r366 r368  
    33# 
    44# This file is part of Bloc-Notes. 
    5 # Copyright 2007 Moe (http://gniark.net/) 
     5# Copyright 2008 Moe (http://gniark.net/) 
    66# 
    77# Bloc-Notes is free software; you can redistribute it and/or modify 
     
    1919# 
    2020# 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/ 
    2321# 
    2422# ***** END LICENSE BLOCK ***** 
     
    5856<body> 
    5957 
    60      <h2><?php echo html::escapeHTML($core->blog->name).' &gt '.__('Bloc-Notes'); ?></h2> 
     58     <h2><?php echo html::escapeHTML($core->blog->name).' &gt '.__('Bloc-notes'); ?></h2> 
    6159 
    6260     <?php  
     
    6866               <fieldset> 
    6967                    <legend><?php echo(__('Text')); ?></legend> 
    70                     <p class="field"> 
    71                          <?php echo(blocNotes::adminPostForm()); ?> 
    72                     </p> 
     68                    <?php echo(blocNotes::textarea()); ?> 
    7369               </fieldset> 
    7470 
  • plugins/blocNotes/lib.blocNotes.php

    r366 r368  
    33# 
    44# This file is part of Bloc-Notes. 
    5 # Copyright 2007 Moe (http://gniark.net/) 
     5# Copyright 2008 Moe (http://gniark.net/) 
    66# 
    77# Bloc-Notes is free software; you can redistribute it and/or modify 
     
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    1919# 
    20 # Images are from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
     20# Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    3030          } 
    3131 
    32           public static function adminPostForm(&$post='') 
     32          public static function textarea(&$post='') 
    3333          { 
    3434               global $core; 
    3535 
    36                echo('<div id="blocNotes">'. 
     36               echo('<p class="area" id="blocNotes">'. 
     37                    '<label for="blocNotes_text">'.__('Bloc-notes :').'</label>'. 
    3738                    form::textarea('blocNotes_text',80,20, 
    3839                    html::escapeHTML($core->blog->settings->blocNotes_text)). 
    39                     '</div>'); 
     40                    '</p>'); 
    4041          } 
    4142 
     
    5253               } 
    5354          } 
     55 
     56          public static function adminPostHeaders() 
     57          { 
     58               return '<script type="text/javascript" src="index.php?pf=blocNotes/post.js">'. 
     59               '</script>'."\n"; 
     60          } 
    5461     } 
    5562 
Note: See TracChangeset for help on using the changeset viewer.

Sites map