Dotclear

Changeset 3366


Ignore:
Timestamp:
02/20/15 10:46:59 (9 years ago)
Author:
brol
Message:

voir changelog

Location:
plugins/disclaimer
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • plugins/disclaimer/CHANGELOG

    r3330 r3366  
     1diclaimer 0.8 - 20-02-2015 - Pierre Van Glabeke 
     2=========================================================== 
     3 * ajout barre d'édition dcLegacyEditor 
     4 * correction tpl mustek disclaimer.html 
     5 
    16diclaimer 0.7 - 16-01-2015 - Pierre Van Glabeke 
    27=========================================================== 
  • plugins/disclaimer/_admin.php

    r3330 r3366  
    2323); 
    2424$core->addBehavior( 
     25     'adminBlogPreferencesHeaders', 
     26     array('adminDisclaimer', 'adminDisclaimerHeaders') 
     27); 
     28$core->addBehavior( 
    2529     'adminBlogPreferencesForm', 
    2630     array('adminDisclaimer', 'adminBlogPreferencesForm') 
     
    3438class adminDisclaimer 
    3539{ 
     40 
    3641     /** 
    3742      * Save settings 
     
    7782     } 
    7883 
     84     public static function adminDisclaimerHeaders() 
     85{ 
     86        global $core; 
     87 
     88        $post_format = $core->auth->getOption('post_format'); 
     89        $post_editor = $core->auth->getOption('editor'); 
     90 
     91        $admin_post_behavior = ''; 
     92        if ($post_editor && !empty($post_editor[$post_format])) { 
     93            $admin_post_behavior = $core->callBehavior('adminPostEditor', $post_editor[$post_format], 
     94                                                       'disclaimer_text', array('#disclaimer_text') 
     95            ); 
     96        } 
     97 
     98     return 
     99          dcPage::jsToolBar(). 
     100    $admin_post_behavior. 
     101    dcPage::jsConfirmClose('opts-forms'). 
     102    dcPage::jsLoad('index.php?pf=disclaimer/js/config.js'); 
     103} 
    79104     /** 
    80105      * Form 
  • plugins/disclaimer/_define.php

    r3330 r3366  
    2626     "Jean-Christian Denis, Pierre Van Glabeke", 
    2727     /* Version */ 
    28      '0.7', 
     28     '0.8', 
    2929     /* Properties */ 
    3030     array( 
  • plugins/disclaimer/_install.php

    r3330 r3366  
    5050          'disclaimer_text', 
    5151          'Description for disclaimer', 
    52           'You must accept this term before entering', 
     52          __('<p>You must accept this term before entering</p>'), 
     53          //'You must accept this term before entering', 
    5354          'string' 
    5455     ), 
  • plugins/disclaimer/default-templates/mustek/disclaimer.html

    r3330 r3366  
    2929  <script type="text/javascript" src="{{tpl:BlogQmarkURL}}pf={{tpl:BlogJsJQuery}}/jquery.cookie.js"></script> 
    3030 
    31 {{tpl:include src="user_head.html"}} 
     31{{tpl:include src="_head.html"}} 
    3232</head> 
    3333 
  • plugins/disclaimer/locales/fr/main.po

    r3330 r3366  
    6565msgstr "Ajoute un avertissement à l'entrée sur le blog" 
    6666 
    67 msgid "You must accept this term before entering" 
    68 msgstr "Vous devez accepter ces conditions avant d'entrer" 
     67msgid "<p>You must accept this term before entering</p>" 
     68msgstr "<p>Vous devez accepter ces conditions avant d'entrer</p>" 
    6969 
Note: See TracChangeset for help on using the changeset viewer.

Sites map