Dotclear

Changeset 3144


Ignore:
Timestamp:
07/31/13 15:10:33 (10 years ago)
Author:
brol
Message:

version 1.1 :

Location:
plugins/acronyms/trunk
Files:
2 added
1 deleted
10 edited

Legend:

Unmodified
Added
Removed
  • plugins/acronyms/trunk/CHANGELOG

    r595 r3144  
     1Acronyms 1.1 - 2013-07-31 
     2=========================================================== 
     3* http://lab.dotclear.org/ticket/262 
     4* fermeture des fichiers php 
     5* mise à jour de head dans tpl 
     6* compatibilité php 5.3 
     7 
    18 
    29Acronyms 1.0 - 2008-12-10 
  • plugins/acronyms/trunk/_admin.php

    r595 r3144  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212if (!defined('DC_CONTEXT_ADMIN')) { return; } 
     13 
     14l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/admin'); 
    1315 
    1416$_menu['Blog']->addItem(__('Acronyms Manager'),'plugin.php?p=acronyms','index.php?pf=acronyms/icon.png', 
     
    3032class acronymsAdminBehaviors 
    3133{ 
    32      public static function coreInitWikiPost(&$wiki2xhtml) 
     34     public static function coreInitWikiPost($wiki2xhtml) 
    3335     { 
    3436          $acronyms = new dcAcronyms($GLOBALS['core']); 
     
    4042     public static function jsLoad() 
    4143     { 
    42           if ($GLOBALS['core']->blog->settings->acronyms_buton_enabled) 
     44          if ($GLOBALS['core']->blog->settings->acronyms_button_enabled) 
    4345          { 
    4446               return 
     
    5456     } 
    5557 
    56      public static function adminBlogPreferencesForm(&$core,&$settings) 
     58     public static function adminBlogPreferencesForm($core,$settings) 
    5759     { 
    5860          echo 
    5961          '<fieldset><legend>'.__('Acronyms Manager').'</legend>'. 
    6062          '<p><label class="classic">'. 
    61           form::checkbox('acronyms_buton_enabled','1',$settings->acronyms_buton_enabled). 
    62           __('Enable acronyms buton on toolbar').'</label></p>'. 
     63          form::checkbox('acronyms_button_enabled','1',$settings->acronyms_button_enabled). 
     64          __('Enable acronyms button on toolbar').'</label></p>'. 
    6365          '<p><label class="classic">'. 
    6466          form::checkbox('acronyms_public_enabled','1',$settings->acronyms_public_enabled). 
     
    6769     } 
    6870 
    69      public static function adminBeforeBlogSettingsUpdate(&$settings) 
     71     public static function adminBeforeBlogSettingsUpdate($settings) 
    7072     { 
    7173          $settings->setNameSpace('acronyms'); 
    72           $settings->put('acronyms_buton_enabled',!empty($_POST['acronyms_buton_enabled']),'boolean'); 
     74          $settings->put('acronyms_button_enabled',!empty($_POST['acronyms_button_enabled']),'boolean'); 
    7375          $settings->put('acronyms_public_enabled',!empty($_POST['acronyms_public_enabled']),'boolean'); 
    7476          $settings->setNameSpace('system'); 
     
    7678 
    7779} # class acronymsAdminBehaviors 
     80 
     81 
     82$core->addBehavior('adminDashboardFavs',array('acronymsfavBehaviors','dashboardFavs')); 
     83 
     84class acronymsfavBehaviors 
     85{ 
     86    public static function dashboardFavs($core,$favs) 
     87    { 
     88        $favs['Acronyms'] = new ArrayObject(array( 
     89            'Acronyms', 
     90            __('Acronyms'), 
     91            'plugin.php?p=acronyms', 
     92            'index.php?pf=acronyms/icon.png', 
     93            'index.php?pf=acronyms/icon-big.png', 
     94            'usage,contentadmin', 
     95            null, 
     96            null)); 
     97    } 
     98} 
     99?> 
  • plugins/acronyms/trunk/_define.php

    r595 r3144  
    1515     /* Name */                    "Acronyms Manager", 
    1616     /* Description*/         "Add, remove and modify acronyms for the wiki syntax.", 
    17      /* Author */             "Vincent Garnier", 
    18      /* Version */            '1.0', 
     17     /* Author */             "Vincent Garnier, Pierre Van Glabeke", 
     18     /* Version */            '1.1', 
    1919     /* Permissions */        'acronyms' 
    2020); 
     21?> 
  • plugins/acronyms/trunk/_prepend.php

    r595 r3144  
    1515 
    1616$GLOBALS['core']->url->register('acronyms','acronyms','^acronyms$',array('acronymsURL','acronyms')); 
     17?> 
  • plugins/acronyms/trunk/_public.php

    r595 r3144  
    1111# -- END LICENSE BLOCK ------------------------------------ 
    1212if (!defined('DC_RC_PATH')) { return; } 
    13  
    1413 
    1514$core->tpl->addBlock('Acronyms',array('tplAcronyms','Acronyms')); 
     
    8887 
    8988} # class acronymsURL 
     89?> 
  • plugins/acronyms/trunk/class.dc.acronyms.php

    r584 r3144  
    9393      
    9494} # class 
     95?> 
  • plugins/acronyms/trunk/default-templates/acronyms.html

    r595 r3144  
    44<head> 
    55  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    6   <meta name="MSSmartTagsPreventParsing" content="TRUE" /> 
    76  <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 
    87 
     
    2019 
    2120  <link rel="top" href="{{tpl:BlogURL}}" title="{{tpl:lang Home}}" /> 
    22   <link rel="contents" title="{{tpl:lang Archives}}" href="{{tpl:BlogArchiveURL}}" /> 
     21  <link rel="contents" href="{{tpl:BlogArchiveURL}}" title="{{tpl:lang Archives}}" /> 
    2322 
    2423  {{tpl:include src="_head.html"}} 
  • plugins/acronyms/trunk/index.php

    r595 r3144  
    7878     #add_acronyms fieldset { position:relative; } 
    7979     .acroleft { display:block; width:14em; } 
    80      .acroright { display:inline; left:15em; position:absolute; top:0; } 
     80     .acroright { display:inline; left:15em; position:absolute; top:43px; } 
    8181     #listacro { height:200px; overflow:auto; } 
    8282     </style> 
     
    105105?> 
    106106 
    107 <p><?php echo __('The acronyms in this list will be automatically recognized by the system when you use the wiki syntax. This means that you will not have to take the title, simply enclose an acronym by double question marks.') ?></p> 
     107<p><?php echo __('The acronyms in this list will be automatically recognized by the system when you use the wiki syntax. This means that you will not have to take the title, simply enclose an acronym by double question marks.') ?><br /> 
     108<strong><?php echo __('Note'); ?> :</strong> <?php echo __('To remove an acronym, just empty its title.'); ?></p> 
    108109 
    109110 
     
    131132     echo $core->formNonce(); ?> 
    132133     <input type="submit" class="submit" value="<?php echo __('Edit'); ?>" /> 
    133      <strong><?php echo __('Note'); ?> :</strong> <?php echo __('To remove an acronym, just empty its title.'); ?></p> 
     134     </p> 
    134135</form> 
    135  
    136  
    137  
    138136 
    139137<form id="add_acronyms" action="plugin.php" method="post"> 
     
    156154</body> 
    157155</html> 
     156?> 
  • plugins/acronyms/trunk/post.js

    r593 r3144  
    1  
    2  
    31jsToolBar.prototype.elements.acronyms = { 
    42     type: 'button', 
Note: See TracChangeset for help on using the changeset viewer.

Sites map