Changeset 2832
- Timestamp:
- 01/07/11 15:07:08 (13 years ago)
- Location:
- plugins/hyphenator
- Files:
-
- 2 added
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/hyphenator/CHANGELOG
r1829 r2832 1 Hyphenator plugin 1.0 for Dotclear 2 1 Hyphenator plugin 1.1 for Dotclear 2 2 =========================================== 3 * Activation dans les préférences du blog 4 5 Hyphenator plugin 1.0 2 6 =========================================== 3 7 * Javascript that implements client-side hyphenation of HTML-Documents -
plugins/hyphenator/_admin.php
r1829 r2832 11 11 # -- END LICENSE BLOCK ------------------------------------ 12 12 13 /* Add menu item in extension list */ 14 $_menu['Plugins']->addItem(__('Hyphenator'),'plugin.php?p=hyphenator','index.php?pf=hyphenator/icon.png', 15 preg_match('/plugin.php\?p=hyphenator(&.*)?$/',$_SERVER['REQUEST_URI']), 16 $core->auth->check('contentadmin',$core->blog->id)); 13 # Class 14 $GLOBALS['__autoload']['dcHyphenator'] = dirname(__FILE__).'/inc/class.dc.hyphenator.php'; 15 $GLOBALS['__autoload']['LipkiUtils'] = dirname(__FILE__).'/inc/class.lipki.utils.php'; 16 17 # Préférences du blog 18 $core->addBehavior('adminBlogPreferencesForm',array('LipkiUtils','adminEnabledPlugin')); 19 $core->addBehavior('adminEnabledPlugin',array('dcHyphenator','adminEnabledPlugin')); 20 $core->addBehavior('adminBeforeBlogSettingsUpdate',array('dcHyphenator','adminBeforeBlogSettingsUpdate')); -
plugins/hyphenator/_define.php
r1829 r2832 13 13 $this->registerModule( 14 14 /* Name */ "Hyphenator", 15 /* Description*/ " Javascript that implements client-side hyphenation of HTML-Documents",15 /* Description*/ "Hyphenator apply hyphenation on post-content ", 16 16 /* Author */ "kévin Lepeltier", 17 /* Version */ '1. 0',17 /* Version */ '1.1', 18 18 /* Permissions */ 'contentadmin' 19 19 ); -
plugins/hyphenator/_public.php
r1829 r2832 14 14 $core->addBehavior('publicHeadContent',array('hyphenator','publicHeadContent')); 15 15 16 class hyphenator 17 { 18 public static function publicHeadContent(&$core) 19 {20 if ($core->blog->settings->hyphenate_active) 21 {16 class hyphenator { 17 18 public static function publicHeadContent(&$core) { 19 20 if ($core->blog->settings->hyphenate_active) { 21 22 22 /* Add the js scripts for hyphenate */ 23 23 echo '<script type="text/javascript" '.
Note: See TracChangeset
for help on using the changeset viewer.