Changeset 2172
- Timestamp:
- 04/10/10 15:52:12 (13 years ago)
- Location:
- plugins/contribute
- Files:
-
- 3 added
- 1 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
plugins/contribute/_admin.php
r1633 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 156 156 157 157 echo 158 '<div id=" planet-infos">'.'<h3>'.('Contribute').'</h3>'.158 '<div id="contribute-infos">'.'<h3>'.('Contribute').'</h3>'. 159 159 $str. 160 160 '<p>'. -
plugins/contribute/_define.php
r1849 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 26 26 $this->registerModule( 27 27 /* Name */ "Contribute", 28 /* Description*/ "Allow visitors to contribute toyour blog",28 /* Description*/ "Allow visitors to write an entry for your blog", 29 29 /* Author */ "Moe (http://gniark.net/)", 30 /* Version */ '1.0-alpha2 3',30 /* Version */ '1.0-alpha24', 31 31 /* Permissions */ 'admin' 32 32 ); -
plugins/contribute/_install.php
r1576 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 37 37 # default settings 38 38 $core->blog->settings->setNameSpace('contribute'); 39 # Time interval in seconds between sends to Popularity Contest : 3 days 39 40 40 $core->blog->settings->put('contribute_help', 41 41 base64_encode('<p>help</p>'),'string', -
plugins/contribute/_prepend.php
r1633 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 28 28 $__autoload['contributeAntispam'] = 29 29 dirname(__FILE__).'/inc/lib.antispam.contribute.php'; 30 $__autoload['contributeDocument'] = 31 dirname(__FILE__).'/inc/lib.contribute.document.php'; 30 32 31 33 # inspired by contactMe/_public.php -
plugins/contribute/_widget.php
r848 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 36 36 @param w <b>object</b> Widget 37 37 */ 38 public static function initWidgets( &$w)38 public static function initWidgets($w) 39 39 { 40 40 $w->create('contribute',__('Contribute'),array('contributeWidget','show')); -
plugins/contribute/default-templates/contribute.html
r1849 r2172 23 23 input[type=text], textarea {width:100%;} 24 24 .message { 25 margin: 20px 0 0; 26 padding: 10px 5px; 25 padding:0.5em; 27 26 background: #ffc; 28 27 border: 2px solid yellow; … … 31 30 } 32 31 #available-tags .tags li, #available-tags .tags li a {display:inline;} 32 #contribute-preview { 33 padding:1em; 34 border: 2px solid yellow; 35 } 33 36 </style> 34 37 … … 124 127 125 128 <tpl:ContributePreview> 126 <div class="post" >129 <div class="post" id="contribute-preview"> 127 130 <h2 id="p{{tpl:EntryID}}" class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 128 131 … … 315 318 316 319 <p class="field"><label for="c_mail">{{tpl:lang Email address}} 317 <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}}) 320 <tpl:ContributeIfNameAndEmailAreNotRequired> 321 ({{tpl:lang optional}}) 318 322 </tpl:ContributeIfNameAndEmailAreNotRequired> 319 323 ({{tpl:lang won't be displayed}}) :</label> -
plugins/contribute/inc/lib.antispam.contribute.php
r1576 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** -
plugins/contribute/inc/lib.contribute.php
r1576 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute .5 # Copyright 2008,2009Moe (http://gniark.net/)4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program . If not, see <http://www.gnu.org/licenses/>.17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 19 18 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** -
plugins/contribute/index.php
r1633 r2172 2 2 # ***** BEGIN LICENSE BLOCK ***** 3 3 # 4 # This file is part of Contribute. 5 # Copyright 2008,2009 Moe (http://gniark.net/) 6 # 7 # Contribute is free software; you can redistribute it and/or modify 8 # it under the terms of the GNU General Public License as published by 9 # the Free Software Foundation; either version 3 of the License, or 10 # (at your option) any later version. 4 # This file is part of Contribute, a plugin for Dotclear 2 5 # Copyright (C) 2008,2009,2010 Moe (http://gniark.net/) 6 # 7 # Contribute is free software; you can redistribute it and/or 8 # modify it under the terms of the GNU General Public License v2.0 9 # as published by the Free Software Foundation. 11 10 # 12 11 # Contribute is distributed in the hope that it will be useful, 13 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 14 # GNU General Public License for more details. 16 15 # 17 16 # You should have received a copy of the GNU General Public License 18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 19 # 20 # Icon (icon.png) is from Silk Icons : http://www.famfamfam.com/lab/icons/silk/ 17 # along with this program; if not, see <http://www.gnu.org/licenses/>. 18 # 19 # Icon (icon.png) is from Silk Icons : 20 # <http://www.famfamfam.com/lab/icons/silk/> 21 21 # 22 22 # ***** END LICENSE BLOCK ***** … … 198 198 <?php echo(__('Only the users with the following permissions on this blog are shown:')); ?> 199 199 </p> 200 <ul class="form-note">201 <li ><!-- usage --><?php echo(__('manage their own entries and comments')); ?></li>200 <ul> 201 <li class="form-note" style="color:#f60;"><!-- usage --><?php echo(__('manage their own entries and comments')); ?></li> 202 202 </ul> 203 203 … … 211 211 <p class="form-note"> 212 212 <?php echo(__('You can enter several email addresses by separating these by a comma (<code>,</code>).').' '. 213 __('Leave empty to cancelthis feature.')); ?>213 __('Leave blank to disable this feature.')); ?> 214 214 </p> 215 215 … … 253 253 __('unpublished')).' '; 254 254 echo(__('The form will be filled with the values of this post.').' '. 255 __('Leave empty to cancelthis feature.')); ?>255 __('Leave blank to disable this feature.')); ?> 256 256 </p> 257 257 … … 266 266 <?php echo(__('Contributors will be able to choose the format.').' '. 267 267 __('Some formats may be unavailable on the blog.').' '. 268 __('Leave empty to cancelthis feature.')); ?>268 __('Leave blank to disable this feature.')); ?> 269 269 </p> 270 270 … … 336 336 </p> 337 337 <p class="form-note"> 338 <?php echo(__('Leave empty to cancelthis feature.')); ?>338 <?php echo(__('Leave blank to disable this feature.')); ?> 339 339 </p> 340 340 </fieldset> … … 355 355 356 356 <?php 357 if ($core->plugins->moduleExists('mymeta')) 357 if ($core->plugins->moduleExists('mymeta') 358 && !array_key_exists('mymeta', 359 $core->plugins->getDisabledModules())) 358 360 { 359 361 $mymeta = new myMeta($core);
Note: See TracChangeset
for help on using the changeset viewer.