Changeset 1443
- Timestamp:
- 09/09/09 16:10:36 (14 years ago)
- Location:
- plugins/supSubTags
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/supSubTags/_admin.php
r664 r1443 3 3 # 4 4 # This file is part of Sup Sub Tags. 5 # Copyright 2007 Moe (http://gniark.net/)5 # Copyright 2007,2009 Moe (http://gniark.net/) 6 6 # 7 7 # Sup Sub Tags is free software; you can redistribute it and/or modify … … 32 32 { 33 33 public static function wiki(&$wiki2xhtml) 34 { 35 global $core;34 { 35 $s = $GLOBALS['core']->blog->settings; 36 36 37 $tags = array( 38 'sup'=>array($core->blog->settings->supsub_tags_sup_open, 39 $core->blog->settings->supsub_tags_sup_close), 40 'sub'=>array($core->blog->settings->supsub_tags_sub_open, 41 $core->blog->settings->supsub_tags_sub_close) 42 ); 37 $tags = array(); 38 39 # empty tags cause errors, we ignore them 40 if (!empty($s->supsub_tags_sup_open) 41 && (!empty($s->supsub_tags_sup_close))) 42 { 43 $tags['sup'] =array($s->supsub_tags_sup_open, 44 $s->supsub_tags_sup_close); 45 } 46 47 if (!empty($s->supsub_tags_sub_open) 48 && (!empty($s->supsub_tags_sub_close))) 49 { 50 $tags['sup'] =array($s->supsub_tags_sub_open, 51 $s->supsub_tags_sub_close); 52 } 53 54 if (empty($tags)) {return;} 55 43 56 $wiki2xhtml->custom_tags = array_merge($wiki2xhtml->custom_tags,$tags); 44 57 } … … 46 59 public static function postHeaders() 47 60 { 48 global $core;61 $s = $GLOBALS['core']->blog->settings; 49 62 50 63 return … … 57 70 "jsToolBar.prototype.elements.sup.fn.wiki = ". 58 71 "function() { this.encloseSelection('". 59 html::escapeJS($ core->blog->settings->supsub_tags_sup_open)."','".60 html::escapeJS($ core->blog->settings->supsub_tags_sup_close)."') };".72 html::escapeJS($s->supsub_tags_sup_open)."','". 73 html::escapeJS($s->supsub_tags_sup_close)."') };". 61 74 "jsToolBar.prototype.elements.sub.fn.wiki = ". 62 75 "function() { this.encloseSelection('". 63 html::escapeJS($ core->blog->settings->supsub_tags_sub_open)."','".64 html::escapeJS($ core->blog->settings->supsub_tags_sub_close)."') };".76 html::escapeJS($s->supsub_tags_sub_open)."','". 77 html::escapeJS($s->supsub_tags_sub_close)."') };". 65 78 "</script>\n"; 66 79 } -
plugins/supSubTags/_define.php
r664 r1443 3 3 # 4 4 # This file is part of Sup Sub Tags. 5 # Copyright 2007 Moe (http://gniark.net/)5 # Copyright 2007,2009 Moe (http://gniark.net/) 6 6 # 7 7 # Sup Sub Tags is free software; you can redistribute it and/or modify … … 26 26 /* Description*/ "Add superscript and subscript tags to syntax", 27 27 /* Author */ "Moe (http://gniark.net/)", 28 /* Version */ '1.0 ',28 /* Version */ '1.0.1', 29 29 /* Permissions */ 'usage,contentadmin' 30 30 ); -
plugins/supSubTags/_install.php
r664 r1443 3 3 # 4 4 # This file is part of Sup Sub Tags. 5 # Copyright 2007 Moe (http://gniark.net/)5 # Copyright 2007,2009 Moe (http://gniark.net/) 6 6 # 7 7 # Sup Sub Tags is free software; you can redistribute it and/or modify … … 36 36 $settings = new dcSettings($core,$core->blog->id); 37 37 $settings->setNamespace('supsubtags'); 38 $settings->put('supsub_tags_sup_open','**','string','Superscript open tag',false,true); 39 $settings->put('supsub_tags_sup_close','**','string','Superscript close tag',false,true); 40 $settings->put('supsub_tags_sub_open',',,','string','Subscript open tag',false,true); 41 $settings->put('supsub_tags_sub_close',',,','string','Subscript close tag',false,true); 38 $settings->put('supsub_tags_sup_open','**','string', 39 'Superscript open tag',false,true); 40 $settings->put('supsub_tags_sup_close','**','string', 41 'Superscript close tag',false,true); 42 $settings->put('supsub_tags_sub_open',',,','string', 43 'Subscript open tag',false,true); 44 $settings->put('supsub_tags_sub_close',',,','string', 45 'Subscript close tag',false,true); 46 $settings->setNamespace('system'); 42 47 43 48 # La procédure d'installation commence vraiment là -
plugins/supSubTags/index.php
r664 r1443 3 3 # 4 4 # This file is part of Sup Sub Tags. 5 # Copyright 2007 Moe (http://gniark.net/)5 # Copyright 2007,2009 Moe (http://gniark.net/) 6 6 # 7 7 # Sup Sub Tags is free software; you can redistribute it and/or modify -
plugins/supSubTags/post.js
r664 r1443 2 2 // 3 3 // This file is part of Sup Sub Tags. 4 // Copyright 2007 Moe (http://gniark.net/)4 // Copyright 2007,2009 Moe (http://gniark.net/) 5 5 // 6 6 // Sup Sub Tags is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.