Dotclear

Changeset 401


Ignore:
Timestamp:
04/07/08 14:39:28 (16 years ago)
Author:
Moe
Message:

blocNotes : changed permissions + shorter textareas + localization

Location:
plugins/blocNotes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plugins/blocNotes/_admin.php

    r378 r401  
    2525 
    2626     # dashboard 
    27      if (isset($__dashboard_icons) && $core->auth->check('blocNotes',$core->blog->id)) { 
    28           $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon.png'); 
     27     if ($core->auth->check('usage,contentadmin',$core->blog->id)) 
     28     { 
     29          # 2.0-beta7 
     30          if (isset($__dashboard_icons)) { 
     31               $__dashboard_icons[] = array(__('Notebook'),'plugin.php?p=blocNotes','index.php?pf=blocNotes/icon.png'); 
     32          } 
     33          # 2.0-be 
     34          $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 
    2935     } 
    30      $core->addBehavior('adminDashboardIcons',array('blocNotes','adminDashboardIcons')); 
    3136 
    3237     # post 
     
    4045     'index.php?pf=blocNotes/icon.png', 
    4146     preg_match('/plugin.php\?p=blocNotes(&.*)?$/',$_SERVER['REQUEST_URI']), 
    42      $core->auth->check('admin',$core->blog->id)); 
     47     $core->auth->check('usage,contentadmin',$core->blog->id)); 
    4348?> 
  • plugins/blocNotes/_define.php

    r377 r401  
    2626        /* Description*/                "Display notebooks on the backend", 
    2727        /* Author */                    "Moe (http://gniark.net/)", 
    28         /* Version */                   '1.0-beta3', 
     28        /* Version */                   '1.0', 
    2929        /* Permissions */               'usage,contentadmin' 
    3030); 
  • plugins/blocNotes/lib.blocNotes.php

    r378 r401  
    3838                         __('Personal notebook (other users can't edit it) :'). 
    3939                    '</label>'. 
    40                     form::textarea('blocNotes_personal_text',80,10, 
     40                    form::textarea('blocNotes_personal_text',80,5, 
    4141                    html::escapeHTML($core->blog->settings->{'blocNotes_text_'.$core->auth->userID()})). 
    4242                    '</p>'. 
    4343                    '<p class="area" id="blocNotes">'. 
    4444                    '<label for="blocNotes_text">'. 
    45                          __('Blog-specific notebook (all the users of the blog can edit it) :'). 
     45                         __('Blog-specific notebook (users of the blog can edit it) :'). 
    4646                    '</label>'. 
    47                     form::textarea('blocNotes_text',80,10, 
     47                    form::textarea('blocNotes_text',80,5, 
    4848                    html::escapeHTML($core->blog->settings->blocNotes_text)). 
    4949                    '</p>'. 
  • plugins/blocNotes/locales/fr/main.lang.php

    r378 r401  
    33// This file is generated by LangOmatic, a plugin for Dotclear 
    44 
    5 # _admin.php:28 
    6 # _admin.php:38 
     5# _admin.php:31 
     6# _admin.php:43 
    77# index.php:47 
    88# index.php:55 
     
    2323 
    2424# lib.blocNotes.php:45 
    25 $GLOBALS['__l10n']['Blog-specific notebook (all the users of the blog can edit it) :']='Bloc-notes spécifique à ce blog (tous les utilisateurs du blog peuvent le modifier) :'; 
     25$GLOBALS['__l10n']['Blog-specific notebook (users of the blog can edit it) :']='Bloc-notes spécifique à ce blog (les utilisateurs du blog peuvent le modifier) :'; 
    2626 
    2727# lib.blocNotes.php:51 
    28 $GLOBALS['__l10n']['These notes may be read by anyone, don&#39;t write some sensitive information (password, personal information, etc.)']='Ces notes pourraientt être lues par n\'importe qui, n\'écrivez pas d\'information sensible (mot de passe, information personnelle, etc.)'; 
     28$GLOBALS['__l10n']['These notes may be read by anyone, don&#39;t write some sensitive information (password, personal information, etc.)']='Ces notes pourraient être lues par n\'importe qui, n\'écrivez pas d\'information sensible (mot de passe, information personnelle, etc.)'; 
    2929 
    3030?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map