Dotclear

Changeset 2172


Ignore:
Timestamp:
04/10/10 15:52:12 (13 years ago)
Author:
Moe
Message:

Contribute 1.0-alpha24 :

  • moved PHP classes in their own files
  • added a different style to the post preview
  • updated strings for new translations
Location:
plugins/contribute
Files:
3 added
1 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • plugins/contribute/_admin.php

    r1633 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    156156                
    157157               echo 
    158                '<div id="planet-infos">'.'<h3>'.('Contribute').'</h3>'. 
     158               '<div id="contribute-infos">'.'<h3>'.('Contribute').'</h3>'. 
    159159               $str. 
    160160               '<p>'. 
  • plugins/contribute/_define.php

    r1849 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    2626$this->registerModule( 
    2727     /* Name */                      "Contribute", 
    28      /* Description*/                "Allow visitors to contribute to your blog", 
     28     /* Description*/                "Allow visitors to write an entry for your blog", 
    2929     /* Author */                    "Moe (http://gniark.net/)", 
    30      /* Version */                   '1.0-alpha23', 
     30     /* Version */                   '1.0-alpha24', 
    3131     /* Permissions */               'admin' 
    3232); 
  • plugins/contribute/_install.php

    r1576 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    3737# default settings 
    3838$core->blog->settings->setNameSpace('contribute'); 
    39 # Time interval in seconds between sends to Popularity Contest : 3 days 
     39 
    4040$core->blog->settings->put('contribute_help', 
    4141     base64_encode('<p>help</p>'),'string', 
  • plugins/contribute/_prepend.php

    r1633 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    2828$__autoload['contributeAntispam'] = 
    2929     dirname(__FILE__).'/inc/lib.antispam.contribute.php'; 
     30$__autoload['contributeDocument'] = 
     31     dirname(__FILE__).'/inc/lib.contribute.document.php'; 
    3032 
    3133# inspired by contactMe/_public.php 
  • plugins/contribute/_widget.php

    r848 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    3636     @param    w    <b>object</b>  Widget 
    3737     */ 
    38      public static function initWidgets(&$w) 
     38     public static function initWidgets($w) 
    3939     { 
    4040          $w->create('contribute',__('Contribute'),array('contributeWidget','show')); 
  • plugins/contribute/default-templates/contribute.html

    r1849 r2172  
    2323          input[type=text], textarea {width:100%;} 
    2424          .message { 
    25                margin: 20px 0 0; 
    26                padding: 10px 5px; 
     25               padding:0.5em; 
    2726               background: #ffc; 
    2827               border: 2px solid yellow; 
     
    3130          } 
    3231          #available-tags .tags li, #available-tags .tags li a {display:inline;} 
     32          #contribute-preview { 
     33               padding:1em; 
     34               border: 2px solid yellow; 
     35          } 
    3336     </style> 
    3437      
     
    124127           
    125128     <tpl:ContributePreview> 
    126           <div class="post"> 
     129          <div class="post" id="contribute-preview"> 
    127130         <h2 id="p{{tpl:EntryID}}" class="post-title">{{tpl:EntryTitle encode_html="1"}}</h2> 
    128131          
     
    315318              
    316319             <p class="field"><label for="c_mail">{{tpl:lang Email address}} 
    317                <tpl:ContributeIfNameAndEmailAreNotRequired>({{tpl:lang optional}}) 
     320               <tpl:ContributeIfNameAndEmailAreNotRequired> 
     321                    ({{tpl:lang optional}}) 
    318322               </tpl:ContributeIfNameAndEmailAreNotRequired> 
    319323               ({{tpl:lang won't be displayed}})&nbsp;:</label> 
  • plugins/contribute/inc/lib.antispam.contribute.php

    r1576 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
  • plugins/contribute/inc/lib.contribute.php

    r1576 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    4 # This file is part of Contribute. 
    5 # Copyright 2008,2009 Moe (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/) 
    66# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/>. 
    1918# 
    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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
  • plugins/contribute/index.php

    r1633 r2172  
    22# ***** BEGIN LICENSE BLOCK ***** 
    33# 
    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. 
    1110# 
    1211# Contribute is distributed in the hope that it will be useful, 
    1312# but WITHOUT ANY WARRANTY; without even the implied warranty of 
    14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1514# GNU General Public License for more details. 
    1615# 
    1716# 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/> 
    2121# 
    2222# ***** END LICENSE BLOCK ***** 
     
    198198                    <?php echo(__('Only the users with the following permissions on this blog are shown:')); ?> 
    199199               </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> 
    202202               </ul> 
    203203                
     
    211211               <p class="form-note"> 
    212212                    <?php echo(__('You can enter several email addresses by separating these by a comma (<code>,</code>).').' '. 
    213                     __('Leave empty to cancel this feature.')); ?> 
     213                    __('Leave blank to disable this feature.')); ?> 
    214214               </p> 
    215215                
     
    253253                    __('unpublished')).' '; 
    254254                    echo(__('The form will be filled with the values of this post.').' '. 
    255                     __('Leave empty to cancel this feature.')); ?> 
     255                    __('Leave blank to disable this feature.')); ?> 
    256256               </p> 
    257257                
     
    266266                    <?php echo(__('Contributors will be able to choose the format.').' '. 
    267267                         __('Some formats may be unavailable on the blog.').' '. 
    268                          __('Leave empty to cancel this feature.')); ?> 
     268                         __('Leave blank to disable this feature.')); ?> 
    269269               </p> 
    270270                
     
    336336               </p> 
    337337               <p class="form-note"> 
    338                     <?php echo(__('Leave empty to cancel this feature.')); ?> 
     338                    <?php echo(__('Leave blank to disable this feature.')); ?> 
    339339               </p> 
    340340          </fieldset>     
     
    355355                
    356356               <?php 
    357                     if ($core->plugins->moduleExists('mymeta')) 
     357                    if ($core->plugins->moduleExists('mymeta') 
     358                         && !array_key_exists('mymeta', 
     359                              $core->plugins->getDisabledModules())) 
    358360                    { 
    359361                         $mymeta = new myMeta($core); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map