Dotclear

Changeset 554


Ignore:
Timestamp:
11/10/08 11:43:26 (15 years ago)
Author:
Osku
google:author:
popech
Message:

Javatars (Version 0.6RC3) fully automatic ; Gravatars friendly - NEED at least DC 2.1RC1

Location:
plugins/javatar
Files:
3 added
12 edited

Legend:

Unmodified
Added
Removed
  • plugins/javatar/_define.php

    r481 r554  
    2020     /* Description*/    'Display Javatars of comment authors', 
    2121     /* Author */        'Osku', 
    22      /* Version */       '0.3.1', 
     22     /* Version */       '0.6rc3', 
    2323     /* Permissions */   'usage,admin' 
    2424); 
  • plugins/javatar/_prepend.php

    r473 r554  
    1616if (!defined('DC_RC_PATH')) { return; } 
    1717 
    18 $core->url->register('post', 
    19     $core->url->getBase('post'), 
    20     sprintf('^%s/(.+)$',$core->url->getBase('post')), 
    21     array('JabberHandler','post')); 
    2218$GLOBALS['__autoload']['rsExtCommentJavatar'] = dirname(__FILE__).'/rs.extensions.php'; 
    2319$GLOBALS['__autoload']['publicJavatar'] = dirname(__FILE__).'/class.public.javatar.php'; 
  • plugins/javatar/_public.php

    r472 r554  
    1616if (!defined('DC_RC_PATH')) { return; } 
    1717 
     18$core->addBehavior('publicBeforeCommentPreview',array('publicJavatar','publicBeforeCommentPreview')); 
     19$core->addBehavior('publicBeforeCommentCreate',array('publicJavatar','publicBeforeCommentCreate')); 
     20$core->addBehavior('publicCommentFormAfterContent',array('publicJavatar','publicCommentFormAfterContent')); 
    1821$core->addBehavior('publicHeadContent',array('publicJavatar','publicHeadContent')); 
     22$core->addBehavior('publicFooterContent',array('publicJavatar','publicFooterContent')); 
    1923$core->addBehavior('coreBlogGetComments',array('publicJavatar','coreBlogGetComments')); 
    20 $core->tpl->addValue('CommentJID',array('tplJavatar','CommentJID')); 
    21 $core->tpl->addValue('CommentPreviewJabber',array('tplJavatar','CommentPreviewJabber')); 
    22 $core->tpl->addValue('JavatarSize',array('tplJavatar','JavatarSize')); 
    23 $core->tpl->addValue('JavatarImgDefaut',array('tplJavatar','JavatarImgDefaut')); 
    24 $core->tpl->addValue('CommentAuthorJavatar',array('tplJavatar','CommentAuthorJavatar')); 
     24$core->addBehavior('publicCommentBeforeContent',array('publicJavatar','publicCommentBeforeContent')); 
     25 
     26$core->tpl->addValue('CommentAuthorJabberMD5',array('tplJavatar','CommentAuthorJabberMD5')); 
    2527?> 
  • plugins/javatar/class.public.javatar.php

    r479 r554  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    17 class JabberHandler extends dcUrlHandlers 
    18 { 
    19      public static function post($args) 
    20      { 
    21           if ($args == '') { 
    22                self::p404(); 
    23           } 
    24            
    25           $_ctx =& $GLOBALS['_ctx']; 
    26           $core =& $GLOBALS['core']; 
    27            
    28           $core->blog->withoutPassword(false); 
    29            
    30           $params = new ArrayObject(); 
    31           $params['post_url'] = $args; 
    32            
    33           $_ctx->posts = $core->blog->getPosts($params); 
    34            
    35           $_ctx->comment_preview = new ArrayObject(); 
    36           $_ctx->comment_preview['content'] = ''; 
    37           $_ctx->comment_preview['rawcontent'] = ''; 
    38           $_ctx->comment_preview['name'] = ''; 
    39           $_ctx->comment_preview['mail'] = ''; 
    40           $_ctx->comment_preview['jabber'] = ''; 
    41           $_ctx->comment_preview['site'] = ''; 
    42           $_ctx->comment_preview['preview'] = false; 
    43           $_ctx->comment_preview['remember'] = false; 
    44            
    45           $core->blog->withoutPassword(true); 
    46            
    47            
    48           if ($_ctx->posts->isEmpty()) 
    49           { 
    50                # No entry 
    51                self::p404(); 
    52           } 
    53            
    54           $post_id = $_ctx->posts->post_id; 
    55           $post_password = $_ctx->posts->post_password; 
    56            
    57           # Password protected entry 
    58           if ($post_password != '') 
    59           { 
    60                # Get passwords cookie 
    61                if (isset($_COOKIE['dc_passwd'])) { 
    62                     $pwd_cookie = unserialize($_COOKIE['dc_passwd']); 
    63                } else { 
    64                     $pwd_cookie = array(); 
    65                } 
    66                 
    67                # Check for match 
    68                if ((!empty($_POST['password']) && $_POST['password'] == $post_password) 
    69                || (isset($pwd_cookie[$post_id]) && $pwd_cookie[$post_id] == $post_password)) 
    70                { 
    71                     $pwd_cookie[$post_id] = $post_password; 
    72                     setcookie('dc_passwd',serialize($pwd_cookie),0,'/'); 
    73                } 
    74                else 
    75                { 
    76                     self::serveDocument('password-form.html','text/html',false); 
    77                     exit; 
    78                } 
    79           } 
    80            
    81           $post_comment = 
    82                isset($_POST['c_name']) && isset($_POST['c_mail']) && 
    83                isset($_POST['c_jabber']) && 
    84                isset($_POST['c_site']) && isset($_POST['c_content']) && 
    85                $_ctx->posts->commentsActive(); 
    86            
    87           # Posting a comment 
    88           if ($post_comment) 
    89           { 
    90                # Spam trap 
    91                if (!empty($_POST['f_mail'])) { 
    92                     http::head(412,'Precondition Failed'); 
    93                     header('Content-Type: text/plain'); 
    94                     echo "So Long, and Thanks For All the Fish"; 
    95                     exit; 
    96                } 
    97                 
    98                $name = $_POST['c_name']; 
    99                $mail = $_POST['c_mail']; 
    100                $jabber = $_POST['c_jabber']; 
    101                $site = $_POST['c_site']; 
    102                $content = $_POST['c_content']; 
    103                $preview = !empty($_POST['preview']); 
    104                 
    105                if ($content != '') 
    106                { 
    107                     if ($core->blog->settings->wiki_comments) { 
    108                          $core->initWikiComment(); 
    109                     } else { 
    110                          $core->initWikiSimpleComment(); 
    111                     } 
    112                     $content = $core->wikiTransform($content); 
    113                     $content = $core->HTMLfilter($content); 
    114                } 
    115                 
    116                $_ctx->comment_preview['content'] = $content; 
    117                $_ctx->comment_preview['rawcontent'] = $_POST['c_content']; 
    118                $_ctx->comment_preview['name'] = $name; 
    119                $_ctx->comment_preview['mail'] = $mail; 
    120                $_ctx->comment_preview['jabber'] = $jabber; 
    121                $_ctx->comment_preview['site'] = $site; 
    122                 
    123                if ($preview) 
    124                { 
    125                     $_ctx->comment_preview['preview'] = true; 
    126                } 
    127                else 
    128                { 
    129                     # Post the comment 
    130                     $cur = $core->con->openCursor($core->prefix.'comment'); 
    131                     $cur->comment_author = $name; 
    132                     $cur->comment_site = html::clean($site); 
    133                     $cur->comment_email = html::clean($mail); 
    134                     $cur->comment_jabber = html::clean($jabber); 
    135                     $cur->comment_content = $content; 
    136                     $cur->post_id = $_ctx->posts->post_id; 
    137                     $cur->comment_status = $core->blog->settings->comments_pub ? 1 : -1; 
    138                     $cur->comment_ip = http::realIP(); 
    139                      
    140                     $redir = $_ctx->posts->getURL(); 
    141                     $redir .= strpos($redir,'?') !== false ? '&' : '?'; 
    142                      
    143                     try 
    144                     { 
    145                          if (!text::isEmail($cur->comment_email)) { 
    146                               throw new Exception(__('You must provide a valid email address.')); 
    147                          } 
    148                          # --BEHAVIOR-- publicBeforeCommentCreate 
    149                          $core->callBehavior('publicBeforeCommentCreate',$cur); 
    150                          if ($cur->post_id) {                          
    151                               $comment_id = $core->blog->addComment($cur); 
    152                           
    153                               # --BEHAVIOR-- publicAfterCommentCreate 
    154                               $core->callBehavior('publicAfterCommentCreate',$cur,$comment_id); 
    155                          } 
    156                           
    157                          if ($cur->comment_status == 1) { 
    158                               $redir_arg = 'pub=1'; 
    159                          } else { 
    160                               $redir_arg = 'pub=0'; 
    161                          } 
    162                           
    163                          header('Location: '.$redir.$redir_arg); 
    164                          exit; 
    165                     } 
    166                     catch (Exception $e) 
    167                     { 
    168                          $_ctx->form_error = $e->getMessage(); 
    169                          $_ctx->form_error; 
    170                     } 
    171                } 
    172           } 
    173            
    174           # The entry 
    175           self::serveDocument('post.html'); 
    176           exit; 
    177      } 
    178 } 
    17918class publicJavatar 
    18019{ 
    18120     public static $c_info = array(); 
    182       
     21 
     22     public static function publicBeforeCommentPreview() 
     23     { 
     24          global $_ctx; 
     25           
     26          $_ctx->comment_preview['jabber'] = $_POST['c_jabber']; 
     27     } 
     28 
     29     public static function publicBeforeCommentCreate(&$cur) 
     30     { 
     31          global $core; 
     32           
     33          $cur->comment_jabber = $_POST['c_jabber']; 
     34     } 
     35 
     36     public static function publicCommentFormAfterContent() 
     37     { 
     38          global $core,$_ctx; 
     39          $jabber = null; 
     40           
     41          if (!$core->blog->settings->javatar_active) { 
     42               return; 
     43          } 
     44          $jabber = isset($_ctx->comment_preview['jabber']) ? html::escapeHTML($_ctx->comment_preview['jabber']) : ''; 
     45 
     46          echo '<p class="field jabber"><label for="c_jabber">'.__('Jabber'). 
     47          ' ('.__('optionnal').') '.':</label>'. 
     48          '<input name="c_jabber" id="c_jabber" type="text" size="30" maxlength="255"'. 
     49          'value="'.$jabber.'"/></p>';  
     50     } 
     51 
     52     public static function publicCommentBeforeContent() 
     53     { 
     54          global $core,$_ctx; 
     55           
     56          if (!$core->blog->settings->javatar_active) { 
     57               return; 
     58          } 
     59 
     60          $jid = $_ctx->comments->getJID(); 
     61          $mid = md5($_ctx->comments->comment_email); 
     62          $default_img = $core->blog->settings->javatar_default_img; 
     63          $javatar_img_size = $core->blog->settings->javatar_img_size; 
     64          if (!empty($default_img)) { 
     65               $img = $default_img; 
     66          } 
     67          else { 
     68               $img = $core->blog->getQmarkURL().'pf=javatar/default/logo-'.$javatar_img_size.'.png'; 
     69          } 
     70          if (!$core->blog->settings->gravatar_default) { 
     71               echo '<img src="http://presence.jabberfr.org/avatar.php?hash='.$jid.'&size='.$javatar_img_size.'&default='.$img.'" 
     72               alt="avatar jabber" class="javatar" />'; 
     73          } 
     74          else { 
     75               echo '<img src="http://presence.jabberfr.org/avatar.php?hash='.$jid.'&size='.$javatar_img_size.'&default=http://www.gravatar.com/avatar/'.$mid.'?s='.$javatar_img_size.'" 
     76               alt="avatar" class="javatar" />'; 
     77          } 
     78     } 
     79 
    18380     public static function publicHeadContent() 
    18481     { 
     
    210107          echo 
    211108          '<style type="text/css" media="screen">@import url('.$css.');</style>'."\n"; 
     109     } 
     110 
     111     public static function publicFooterContent() 
     112     { 
     113          global $core; 
     114           
     115          if (!$core->blog->settings->javatar_active) { 
     116               return; 
     117          } 
     118           
     119          $js = html::stripHostURL($core->blog->getQmarkURL().'pf=javatar/js/post.js'); 
     120           
     121          echo 
     122          '<script type="text/javascript" src="'.$js.'"></script>'."\n"; 
    212123     } 
    213124 
  • plugins/javatar/class.tpl.javatar.php

    r479 r554  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
     16if (!defined('DC_RC_PATH')) { return; } 
    1617 
    1718class tplJavatar 
    1819{ 
    19      public static function CommentJID($attr) 
     20     public static function CommentAuthorJabberMD5($attr) 
    2021     { 
    2122          global $core,$_ctx; 
     
    2324          return '<?php echo '.sprintf($f,'$_ctx->comments->getJID()').'; ?>'; 
    2425     } 
    25  
    26      public static function CommentPreviewJabber($attr) 
    27      { 
    28           global $core,$_ctx; 
    29           $f = $core->tpl->getFilters($attr); 
    30           return '<?php echo '.sprintf($f,'$_ctx->comment_preview["jabber"]').'; ?>'; 
    31      } 
    32  
    33      public static function JavatarSize($attr) 
    34      { 
    35           global $core; 
    36           $f = $core->tpl->getFilters($attr); 
    37           return '<?php echo '.sprintf($f,'$core->blog->settings->javatar_img_size').'; ?>'; 
    38      } 
    39  
    40      public static function JavatarImgDefaut($attr) 
    41      { 
    42           global $core; 
    43           $default_img = $core->blog->settings->javatar_default_img; 
    44           $javatar_img_size = $core->blog->settings->javatar_img_size; 
    45           if (!empty($default_img)) { 
    46                $img = $default_img; 
    47           } 
    48           else { 
    49                $img = $core->blog->getQmarkURL().'pf=javatar/default/logo-'.$javatar_img_size.'.png'; 
    50           } 
    51           return html::escapeHTML($img); 
    52      } 
    53  
    54      public static function CommentAuthorJavatar($attr) 
    55      { 
    56           global $core; 
    57           $f = $core->tpl->getFilters($attr); 
    58           return 
    59           '<?php if($core->blog->settings->javatar_active) : ?> 
    60           <img src="http://presence.jabberfr.org/avatar.php?hash='.self::CommentJID($f).'&size='.self::JavatarSize($f).'&default='.self::JavatarImgDefaut($f).'" 
    61           alt="avatar jabber" class="javatar" /> 
    62           <?php endif; ?>'; 
    63      } 
    6426} 
    6527?> 
  • plugins/javatar/default/javatar-default.css

    r479 r554  
    11#comments img.javatar{ 
    2      float:left; 
     2     float:right; 
    33     padding:2px; 
    4      margin:0 5px; 
     4     margin:0; 
    55     background:#fff; 
    6      border:1px solid #ddd 
     6     border:1px solid #DDD; 
     7} 
     8 
     9#comments dd p{ 
     10     padding-bottom:15px; 
    711} 
    812 
  • plugins/javatar/index.php

    r481 r554  
    3131          // Javatars are not active by default 
    3232          $core->blog->settings->put('javatar_active',false,'boolean'); 
     33          $core->blog->settings->put('gravatar_default',false,'boolean'); 
    3334          $core->blog->settings->put('javatar_custom_css','','string'); 
    3435          $core->blog->settings->put('javatar_default_img','','string'); 
     
    4142} 
    4243 
    43  
    4444// Getting current parameters 
    4545$active = (boolean)$core->blog->settings->javatar_active; 
     46$gravatar = (boolean)$core->blog->settings->gravatar_default; 
    4647$custom_css = (string)$core->blog->settings->javatar_custom_css; 
    4748$default_img = (string)$core->blog->settings->javatar_default_img; 
     
    5859 
    5960          $active = (empty($_POST['active']))?false:true; 
     61          $gravatar = (empty($_POST['gravatar']))?false:true; 
    6062          $custom_css = (empty($_POST['custom_css']))?'':html::sanitizeURL($_POST['custom_css']); 
    6163          $default_img = (empty($_POST['default_img']))?'':html::sanitizeURL($_POST['default_img']); 
    6264          $core->blog->settings->put('javatar_active',$active,'boolean'); 
     65          $core->blog->settings->put('gravatar_default',$gravatar,'boolean'); 
    6366          $core->blog->settings->put('javatar_custom_css',$custom_css,'string'); 
    6467          $core->blog->settings->put('javatar_default_img',$default_img,'string'); 
     
    8588'<h2 style="padding:8px 0 8px 34px;background:url(index.php?pf=javatar/icon_32.png) no-repeat;">'. 
    8689html::escapeHTML($core->blog->name). 
    87 '  &gt; '.__('Javatars').'</h2>'; 
     90'  &rsaquo; '.__('Javatars').'</h2>'; 
    8891if (!empty($msg)) { 
    8992     echo '<p class="message">'.$msg.'</p>'; 
     
    9598echo  
    9699     '<p class="field">'. 
    97                form::checkbox('active', 1, $active). 
    98                '<label class=" classic" for="active">'.__('Enable Javatars').'</label></p></fieldset>'; 
     100          form::checkbox('active', 1, $active). 
     101          '<label class=" classic" for="active">'.__('Enable Javatars').'</label></p>'; 
     102echo  
     103     '<p class="field">'. 
     104          form::checkbox('gravatar', 1, $gravatar). 
     105          '<label class=" classic" for="gravatar">'.__('Enable Gravatars compatibility').'</label></p>'. 
     106          '<p class="form-note">'.__('If no Javatar, we try to show Gravatar.').'</p></fieldset>'; 
    99107 
    100108echo '<fieldset><legend>'.__('Options').'</legend>'; 
    101109echo  
    102      '<h3><label for="javatar_img_size">'.__('Javatar image size').'</label></h3>'. 
    103           '<p>'.__('This defines image size for Javatars. Choose a size:').'</p>'. 
    104           '<p>'.form::combo('javatar_img_size',$javatar_size_combo,html::escapeHTML($core->blog->settings->javatar_img_size)).'</p>'; 
     110     '<label for="javatar_img_size" class="required" title="'.__('Required field').'">'.__('Javatar image size').'</label>'. 
     111          '<p>'.form::combo('javatar_img_size',$javatar_size_combo,html::escapeHTML($core->blog->settings->javatar_img_size)).'</p>'. 
     112          '<p class="form-note">'.__('This defines image size for Javatars.').'</p>'; 
    105113           
    106114echo '<h3>'.__('Custom parameters').'</h3>'; 
    107115echo '<p>'.__('You can use a custom CSS by providing its location.').'<br /></p>'; 
    108116echo  
    109      '<p class="field"><label class=" classic">'. 
     117     '<p><label>'. 
    110118          __('Custom CSS:').'</label>'. 
    111119               form::field('custom_css',40,128,$custom_css). 
    112120          '</p>'; 
    113 echo '<p><em>'. 
     121echo '<p class="form-note">'. 
    114122          __('A location beginning with a / is treated as absolute, else it is treated as relative to the blog\'s current theme URL'). 
    115           '</em></p>'; 
     123          '</p>'; 
    116124echo '<p>'.__('You can use a custom default Javatar image by providing its location.').'<br /></p>'; 
    117125echo  
    118      '<p class="field"><label class=" classic">'. 
     126     '<p><label>'. 
    119127          __('Custom default image:').'</label>'. 
    120128               form::field('default_img',40,128,$default_img). 
    121129          '</p>'; 
    122 echo '<p><em>'. 
     130echo '<p class="form-note">'. 
    123131          __('The API of Presence Jabber works only with full path for the default picture.'). 
    124           '</em></p>'; 
     132          '</p>'; 
    125133 
    126134echo '</fieldset>'; 
  • plugins/javatar/locales/_pot/main.pot

    r479 r554  
    99"Project-Id-Version: PACKAGE VERSION\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2008-07-27 21:40+0200\n" 
     11"POT-Creation-Date: 2008-11-10 10:45+0100\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: _admin.php:19 index.php:80 index.php:88 
     19#: _admin.php:19 index.php:82 index.php:90 
    2020msgid "Javatars" 
    2121msgstr "" 
    2222 
    23 #: class.public.javatar.php:146 
    24 msgid "You must provide a valid email address." 
     23#: class.public.javatar.php:46 
     24msgid "Jabber" 
     25msgstr "" 
     26 
     27#: class.public.javatar.php:47 
     28msgid "optionnal" 
    2529msgstr "" 
    2630 
     
    4145msgstr "" 
    4246 
    43 #: index.php:70 
     47#: index.php:72 
    4448msgid "Configuration successfully updated." 
    4549msgstr "" 
    4650 
    47 #: index.php:95 
     51#: index.php:97 
    4852msgid "Plugin activation" 
    4953msgstr "" 
    5054 
    51 #: index.php:99 
     55#: index.php:101 
    5256msgid "Enable Javatars" 
    5357msgstr "" 
    5458 
    55 #: index.php:101 
     59#: index.php:105 
     60msgid "Enable Gravatars compatibility" 
     61msgstr "" 
     62 
     63#: index.php:106 
     64msgid "If no Javatar, we try to show Gravatar." 
     65msgstr "" 
     66 
     67#: index.php:108 
    5668msgid "Options" 
    5769msgstr "" 
    5870 
    59 #: index.php:103 
     71#: index.php:110 
     72msgid "Required field" 
     73msgstr "" 
     74 
     75#: index.php:110 
    6076msgid "Javatar image size" 
    6177msgstr "" 
    6278 
    63 #: index.php:104 
    64 msgid "This defines image size for Javatars. Choose a size:" 
     79#: index.php:112 
     80msgid "This defines image size for Javatars." 
    6581msgstr "" 
    6682 
    67 #: index.php:107 
     83#: index.php:114 
    6884msgid "Custom parameters" 
    6985msgstr "" 
    7086 
    71 #: index.php:108 
     87#: index.php:115 
    7288msgid "You can use a custom CSS by providing its location." 
    7389msgstr "" 
    7490 
    75 #: index.php:111 
     91#: index.php:118 
    7692msgid "Custom CSS:" 
    7793msgstr "" 
    7894 
    79 #: index.php:115 
     95#: index.php:122 
    8096msgid "" 
    8197"A location beginning with a / is treated as absolute, else it is treated as " 
     
    8399msgstr "" 
    84100 
    85 #: index.php:117 
     101#: index.php:124 
    86102msgid "You can use a custom default Javatar image by providing its location." 
    87103msgstr "" 
    88104 
    89 #: index.php:120 
     105#: index.php:127 
    90106msgid "Custom default image:" 
    91107msgstr "" 
    92108 
    93 #: index.php:124 
     109#: index.php:131 
    94110msgid "" 
    95111"The API of Presence Jabber works only with full path for the default picture." 
    96112msgstr "" 
    97113 
    98 #: index.php:132 
     114#: index.php:139 
    99115msgid "Save configuration" 
    100116msgstr "" 
  • plugins/javatar/locales/en/help.html

    r479 r554  
    1 <p>Size of images are 32px, 64px, 80px or 96px</p> 
    2 <p>You have to <b>edit</b> the post.html and page.html of your current theme for saving the Jabber adress information</p> 
    3 <p>In those files add the following bloc in the <code>#comments dl dd</code></p> 
    4 <textarea> 
    5       <tpl:SysIf has_tag="CommentAuthorJavatar"> 
    6       {{tpl:CommentAuthorJavatar}} 
    7       </tpl:SysIf> 
    8 </textarea> 
    9 <p>And this bloc in the <code>#comment-form</code> where you want (why not under the email adress field)</p> 
    10 <textarea> 
    11 <tpl:SysIf has_tag="CommentAuthorJavatar"> 
    12         <p class="field"><label for="c_jabber">{{tpl:lang Jabber}} 
    13         ({{tpl:lang optional}})&nbsp;:</label> 
    14         <input name="c_jabber" id="c_jabber" type="text" size="30" maxlength="255" 
    15         value="{{tpl:CommentPreviewJabber encode_html="1"}}" /> 
    16         </p> 
    17 </tpl:SysIf>   
    18 </textarea> 
    19 <p>If you delete the plugin, you don't need to edit thoses template files another time.Thanks <code>tpl:SysIf has_tag</code>.</p> 
     1<p>Available size for avatars are:</p> 
     2<ul><li>32px<li> 
     3<li>64px<li> 
     4<li>80px<li> 
     5<li>96px<li></ul> 
     6<p>You don't have to edit template files of current theme.</p> 
     7<p><a href="http://presence.jabberfr.org/" title="Official website Presence Jabber" hreflang="fr">More informations about Presence Jabber service</a></p> 
  • plugins/javatar/locales/fr/help.html

    r479 r554  
    1 <p>La taille des images est de 32px, 64px, 80px ou 96px</p> 
    2 <p>Vous devez <b>éditer</b> les post.html et page.html du thème actif pour la mémorisation de l'adresse Jabber</p> 
    3 <p>Dans ces fichiers, ajouter le bloc suivant dans <code>#comments dl dd</code></p> 
    4 <textarea> 
    5       <tpl:SysIf has_tag="CommentAuthorJavatar"> 
    6       {{tpl:CommentAuthorJavatar}} 
    7       </tpl:SysIf> 
    8 </textarea> 
    9 <p>Et le bloc suivant dans <code>#comment-form</code> où vous voulez (pourquoi pas sous le paragraphe correspondant à l'adresse e-mail)</p> 
    10 <textarea> 
    11 <tpl:SysIf has_tag="CommentAuthorJavatar"> 
    12         <p class="field"><label for="c_jabber">{{tpl:lang Jabber}} 
    13         ({{tpl:lang optional}})&nbsp;:</label> 
    14         <input name="c_jabber" id="c_jabber" type="text" size="30" maxlength="255" 
    15         value="{{tpl:CommentPreviewJabber encode_html="1"}}" /> 
    16         </p> 
    17 </tpl:SysIf>   
    18 </textarea> 
    19 <p>Si vous supprimez ce plugin, il n'est pas nécessaire d'éditer une nouvelle fois les fichies template.Merci les <code>tpl:SysIf has_tag</code>.</p> 
     1<p>Les tailles disponibles pour les avatars sont:</p> 
     2<ul><li>32px<li> 
     3<li>64px<li> 
     4<li>80px<li> 
     5<li>96px<li></ul> 
     6<p>Il n'est pas nécessaire d'éditer les fichiers template du thème actif.</p> 
     7<p><a href="http://presence.jabberfr.org/" title="Site officiel de Presence Jabber" hreflang="fr">Plus d'informations sur le service Presence Jabber</a></p> 
  • plugins/javatar/locales/fr/main.po

    r479 r554  
    88"Project-Id-Version: PACKAGE VERSION\n" 
    99"Report-Msgid-Bugs-To: \n" 
    10 "POT-Creation-Date: 2008-07-20 21:41+0200\n" 
    11 "PO-Revision-Date: 2008-07-20 21:41+0200\n" 
     10"POT-Creation-Date: 2008-11-10 10:45+0100\n" 
     11"PO-Revision-Date: 2008-11-10 10:45+0100\n" 
    1212"Last-Translator: Greg <popech@gmail.com>\n" 
    1313"Language-Team: French\n" 
     
    1717"Plural-Forms: nplurals=2; plural=(n > 1);\n" 
    1818 
    19 #: _admin.php:19 index.php:79 index.php:87 
     19#: _admin.php:19 index.php:82 index.php:90 
    2020msgid "Javatars" 
    2121msgstr "Javatars" 
     22 
     23#: class.public.javatar.php:46 
     24msgid "Jabber" 
     25msgstr "Jabber" 
     26 
     27#: class.public.javatar.php:47 
     28msgid "optionnal" 
     29msgstr "facultatif" 
    2230 
    2331#: index.php:20 
     
    3745msgstr "Très grande" 
    3846 
    39 #: index.php:69 
     47#: index.php:72 
    4048msgid "Configuration successfully updated." 
    41 msgstr "Configuration mis à jour avec succès" 
     49msgstr "Configuration mis à jour avec succès." 
    4250 
    43 #: index.php:94 
     51#: index.php:97 
    4452msgid "Plugin activation" 
    4553msgstr "Activation de l'extension" 
    4654 
    47 #: index.php:98 
     55#: index.php:101 
    4856msgid "Enable Javatars" 
    4957msgstr "Activer les Javatars" 
    5058 
    51 #: index.php:100 
     59#: index.php:105 
     60msgid "Enable Gravatars compatibility" 
     61msgstr "Gravatars par défaut" 
     62 
     63#: index.php:106 
     64msgid "If no Javatar, we try to show Gravatar." 
     65msgstr "Si aucun Javatar, on essaie d'afficher le Gravatar." 
     66 
     67#: index.php:108 
    5268msgid "Options" 
    5369msgstr "Options" 
    5470 
    55 #: index.php:103 
     71#: index.php:110 
     72msgid "Required field" 
     73msgstr "Champ obligatoire" 
     74 
     75#: index.php:110 
    5676msgid "Javatar image size" 
    5777msgstr "Taille des Javatars" 
    5878 
    59 #: index.php:104 
    60 msgid "This defines image size for Javatars. Choose a size:" 
    61 msgstr "Ceci définit la taille des Javatars. Choisissez une taille:" 
     79#: index.php:112 
     80msgid "This defines image size for Javatars." 
     81msgstr "Ceci définit la taille de l'image du Javatar." 
    6282 
    63 #: index.php:107 
     83#: index.php:114 
    6484msgid "Custom parameters" 
    6585msgstr "Paramètres personnels" 
    6686 
    67 #: index.php:108 
     87#: index.php:115 
    6888msgid "You can use a custom CSS by providing its location." 
    6989msgstr "Vous pouvez utiliser une CSS personnalisée en fournissant son adresse." 
    7090 
    71 #: index.php:111 
     91#: index.php:118 
    7292msgid "Custom CSS:" 
    73 msgstr "CSS personnalisée" 
     93msgstr "CSS personnalisée:" 
    7494 
    75 #: index.php:115 
     95#: index.php:122 
    7696msgid "" 
    7797"A location beginning with a / is treated as absolute, else it is treated as " 
    7898"relative to the blog's current theme URL" 
    79 msgstr "Une adresse commençant par un / est considérée comme absolue, sinon elle traitée comme " 
    80 "relative à l'adresse du thème actuellement en usage sur le blog" 
     99msgstr "Une adresse commençant par un / est considérée comme absolue, sinon elle traitée comme relative à l'adresse du thème actuellement en usage sur le blog" 
    81100 
    82 #: index.php:117 
     101#: index.php:124 
    83102msgid "You can use a custom default Javatar image by providing its location." 
    84103msgstr "Vous pouvez utiliser une image Javatar par défaut en fournissant son adresse." 
    85104 
    86 #: index.php:120 
     105#: index.php:127 
    87106msgid "Custom default image:" 
    88107msgstr "Image par défaut personnalisée:" 
    89108 
    90 #: index.php:124 
     109#: index.php:131 
    91110msgid "" 
    92111"The API of Presence Jabber works only with full path for the default picture." 
    93 msgstr "" 
    94 "L'API de Presence Jabber ne fonctionne qu'avec un chemin complet pour l'image par défaut" 
     112msgstr "L'API de Presence Jabber ne fonctionne qu'avec un chemin complet pour l'image par défaut" 
    95113 
    96 #: index.php:132 
     114#: index.php:139 
    97115msgid "Save configuration" 
    98116msgstr "Enregistrer la configuration" 
  • plugins/javatar/locales/fr/resources.php

    r480 r554  
    1414 *  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    * 
    1515\***************************************************************/ 
    16 if (!isset($__resources['help']['javatar'])) { 
    17      $__resources['help']['javatar'] = dirname(__FILE__).'/help.html'; 
    18 } 
     16$__resources['help']['javatar'] = dirname(__FILE__).'/help.html'; 
    1917?> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map