Changeset 3144
- Timestamp:
- 07/31/13 15:10:33 (10 years ago)
- Location:
- plugins/acronyms/trunk
- Files:
-
- 2 added
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/acronyms/trunk/CHANGELOG
r595 r3144 1 Acronyms 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 1 8 2 9 Acronyms 1.0 - 2008-12-10 -
plugins/acronyms/trunk/_admin.php
r595 r3144 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 if (!defined('DC_CONTEXT_ADMIN')) { return; } 13 14 l10n::set(dirname(__FILE__).'/locales/'.$_lang.'/admin'); 13 15 14 16 $_menu['Blog']->addItem(__('Acronyms Manager'),'plugin.php?p=acronyms','index.php?pf=acronyms/icon.png', … … 30 32 class acronymsAdminBehaviors 31 33 { 32 public static function coreInitWikiPost( &$wiki2xhtml)34 public static function coreInitWikiPost($wiki2xhtml) 33 35 { 34 36 $acronyms = new dcAcronyms($GLOBALS['core']); … … 40 42 public static function jsLoad() 41 43 { 42 if ($GLOBALS['core']->blog->settings->acronyms_but on_enabled)44 if ($GLOBALS['core']->blog->settings->acronyms_button_enabled) 43 45 { 44 46 return … … 54 56 } 55 57 56 public static function adminBlogPreferencesForm( &$core,&$settings)58 public static function adminBlogPreferencesForm($core,$settings) 57 59 { 58 60 echo 59 61 '<fieldset><legend>'.__('Acronyms Manager').'</legend>'. 60 62 '<p><label class="classic">'. 61 form::checkbox('acronyms_but on_enabled','1',$settings->acronyms_buton_enabled).62 __('Enable acronyms but on on toolbar').'</label></p>'.63 form::checkbox('acronyms_button_enabled','1',$settings->acronyms_button_enabled). 64 __('Enable acronyms button on toolbar').'</label></p>'. 63 65 '<p><label class="classic">'. 64 66 form::checkbox('acronyms_public_enabled','1',$settings->acronyms_public_enabled). … … 67 69 } 68 70 69 public static function adminBeforeBlogSettingsUpdate( &$settings)71 public static function adminBeforeBlogSettingsUpdate($settings) 70 72 { 71 73 $settings->setNameSpace('acronyms'); 72 $settings->put('acronyms_but on_enabled',!empty($_POST['acronyms_buton_enabled']),'boolean');74 $settings->put('acronyms_button_enabled',!empty($_POST['acronyms_button_enabled']),'boolean'); 73 75 $settings->put('acronyms_public_enabled',!empty($_POST['acronyms_public_enabled']),'boolean'); 74 76 $settings->setNameSpace('system'); … … 76 78 77 79 } # class acronymsAdminBehaviors 80 81 82 $core->addBehavior('adminDashboardFavs',array('acronymsfavBehaviors','dashboardFavs')); 83 84 class 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 15 15 /* Name */ "Acronyms Manager", 16 16 /* 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', 19 19 /* Permissions */ 'acronyms' 20 20 ); 21 ?> -
plugins/acronyms/trunk/_prepend.php
r595 r3144 15 15 16 16 $GLOBALS['core']->url->register('acronyms','acronyms','^acronyms$',array('acronymsURL','acronyms')); 17 ?> -
plugins/acronyms/trunk/_public.php
r595 r3144 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 if (!defined('DC_RC_PATH')) { return; } 13 14 13 15 14 $core->tpl->addBlock('Acronyms',array('tplAcronyms','Acronyms')); … … 88 87 89 88 } # class acronymsURL 89 ?> -
plugins/acronyms/trunk/class.dc.acronyms.php
r584 r3144 93 93 94 94 } # class 95 ?> -
plugins/acronyms/trunk/default-templates/acronyms.html
r595 r3144 4 4 <head> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 6 <meta name="MSSmartTagsPreventParsing" content="TRUE" />7 6 <meta name="ROBOTS" content="{{tpl:BlogMetaRobots robots="NOINDEX,NOARCHIVE"}}" /> 8 7 … … 20 19 21 20 <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}}" /> 23 22 24 23 {{tpl:include src="_head.html"}} -
plugins/acronyms/trunk/index.php
r595 r3144 78 78 #add_acronyms fieldset { position:relative; } 79 79 .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; } 81 81 #listacro { height:200px; overflow:auto; } 82 82 </style> … … 105 105 ?> 106 106 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> 108 109 109 110 … … 131 132 echo $core->formNonce(); ?> 132 133 <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> 134 135 </form> 135 136 137 138 136 139 137 <form id="add_acronyms" action="plugin.php" method="post"> … … 156 154 </body> 157 155 </html> 156 ?> -
plugins/acronyms/trunk/post.js
r593 r3144 1 2 3 1 jsToolBar.prototype.elements.acronyms = { 4 2 type: 'button',
Note: See TracChangeset
for help on using the changeset viewer.