Dotclear

Changeset 2387


Ignore:
Timestamp:
06/22/10 17:48:36 (3 years ago)
Author:
JcDenis
Message:

noodles 0.6

  • Switched to DC 2.2
  • Fixed javascript encode URI
  • Fixed image paths and urls
Location:
plugins/noodles
Files:
1 added
14 edited

Legend:

Unmodified
Added
Removed
  • plugins/noodles/_admin.php

    r1399 r2387  
    1818     'plugin.php?p=noodles','index.php?pf=noodles/icon.png', 
    1919     preg_match('/plugin.php\?p=noodles(&.*)?$/',$_SERVER['REQUEST_URI']), 
    20      $core->auth->check('admin',$core->blog->id)); 
     20     $core->auth->check('admin',$core->blog->id) 
     21); 
    2122?> 
  • plugins/noodles/_define.php

    r1485 r2387  
    1717     /* Description*/         "Add users gravatars everywhere", 
    1818     /* Author */             "JC Denis", 
    19      /* Version */            '0.5', 
     19     /* Version */            '0.6', 
    2020     /* Permissions */        'admin' 
    2121     //* Priority */          10000000 
    2222); 
    23      /* date */          #20090923 
     23     /* date */          #20100622 
    2424?> 
  • plugins/noodles/_prepend.php

    r1485 r2387  
    1616 
    1717$__autoload['noodlesImg'] = dirname(__FILE__).'/inc/lib.noodles.img.php'; 
     18$__autoload['noodlesLibImagePath'] = dirname(__FILE__).'/inc/lib.image.path.php'; 
     19 
     20$core->blog->settings->addNamespace('noodles'); 
    1821 
    1922$core->url->register('noodlesmodule','noodles','^noodles/(.+)$', 
     
    2225     array('urlNoodles','service')); 
    2326 
    24 if (!is_callable(array('libImagePath','getArray'))) 
    25      require dirname(__FILE__).'/inc/lib.image.path.php'; 
    2627?> 
  • plugins/noodles/_public.php

    r1485 r2387  
    1313if (!defined('DC_RC_PATH')){return;} 
    1414 
    15 if (!$core->blog->settings->noodles_active) return; 
     15if (!$core->blog->settings->noodles->noodles_active) return; 
    1616 
    1717include dirname(__FILE__).'/inc/_default_noodles.php'; 
     
    2424 
    2525global $__noodles; 
    26 $__noodles = noodles::decode($core->blog->settings->noodles_object); 
     26$__noodles = noodles::decode($core->blog->settings->noodles->noodles_object); 
    2727 
    2828if ($__noodles->isEmpty()) 
     
    5151 
    5252               $targets[] =  
    53                '$(\''.html::escapeJS($noodle->target).'\').noodles({'. 
     53               '  $(\''.html::escapeJS($noodle->target).'\').noodles({'. 
    5454                    'imgId:\''.html::escapeJS($noodle->id()).'\','. 
    5555                    'imgPlace:\''.html::escapeJS($noodle->place).'\''. 
     
    6060 
    6161          echo  
     62          "\n<!-- CSS for noodles --> \n". 
    6263          '<style type="text/css">'.html::escapeHTML($css).'</style>'. 
     64          "\n<!-- JS for noodles --> \n". 
    6365          "<script type=\"text/javascript\" src=\"". 
    6466               $core->blog->url.$core->url->getBase('noodlesmodule')."/js/jquery.noodles.js\"></script> \n". 
     
    8082     { 
    8183          global $core; 
    82  
     84           
    8385          header('Content-Type: text/xml; charset=UTF-8'); 
    84  
     86           
    8587          $rsp = new xmlTag('rsp'); 
    8688 
    8789          $i = !empty($_POST['noodleId']) ? $_POST['noodleId'] : null; 
    8890          $c = !empty($_POST['noodleContent']) ? $_POST['noodleContent'] : null; 
    89  
    90           if (!$core->blog->settings->noodles_active) { 
     91           
     92          if (!$core->blog->settings->noodles->noodles_active) 
     93          { 
    9194               $rsp->status = 'failed'; 
    9295               $rsp->message(__('noodles is disabled on this blog')); 
     
    9497               return false; 
    9598          } 
    96  
    97           if ($i === null || $c === null) { 
     99           
     100          if ($i === null || $c === null) 
     101          { 
    98102               $rsp->status = 'failed'; 
    99103               $rsp->message(__('noodles failed because of missing informations')); 
     
    101105               return false; 
    102106          } 
    103  
    104           try { 
    105                $__noodles =  
    106                     noodles::decode($core->blog->settings->noodles_object); 
    107  
     107           
     108          try 
     109          { 
     110               $__noodles = noodles::decode($core->blog->settings->noodles->noodles_object); 
     111                
    108112               if ($__noodles->isEmpty()) 
     113               { 
    109114                    $__noodles = $GLOBALS['__default_noodles']; 
    110  
    111           } catch(Excetpion $e) { 
     115               } 
     116          } 
     117          catch(Excetpion $e) 
     118          { 
    112119               $rsp->status = 'failed'; 
    113120               $rsp->message(__('Failed to load default noodles')); 
     
    115122               return false; 
    116123          } 
    117  
    118           if (!$__noodles->exists($i)) { 
     124           
     125          if (!$__noodles->exists($i)) 
     126          { 
    119127               $rsp->status = 'failed'; 
    120128               $rsp->message(__('Failed to load noodle')); 
     
    122130               return false; 
    123131          } 
    124  
     132           
    125133          $m = $__noodles->{$i}->jsCallback($__noodles->{$i},$c); 
    126  
     134           
    127135          $s = $__noodles->{$i}->size; 
    128136          $r = $__noodles->{$i}->rating; 
    129           $d = $core->blog->settings->noodles_image ?  
    130                urlencode(libImagePath::getUrl($core,'noodles')) : ''; 
    131  
     137          $d = $core->blog->settings->noodles->noodles_image ?  
     138               urlencode(noodlesLibImagePath::getUrl($core,'noodles')) : ''; 
     139           
    132140          if (!$m) $m = 'nobody@nowhere.tld'; 
    133141          if (!$s) $s = 32; 
    134142          if (!$r) $r = 'g'; 
    135  
     143           
    136144          $im = new xmlTag('noodle'); 
    137145          $im->size = $s; 
    138146          $im->src = 'http://www.gravatar.com/avatar/'.md5($m).'?s='.$s.'&amp;r='.$r.'&amp;d='.$d; 
    139147          $rsp->insertNode($im); 
    140  
     148           
    141149          $rsp->status = 'ok'; 
    142150          echo $rsp->toXML(1); 
     
    148156          global $core; 
    149157 
    150           if (!$core->blog->settings->noodles_active) { 
    151                self::p404(); 
    152                return; 
    153           } 
    154  
    155           if (!preg_match('#^(.*?)$#',$args,$m)) { 
     158          if (!$core->blog->settings->noodles->noodles_active) 
     159          { 
     160               self::p404(); 
     161               return; 
     162          } 
     163 
     164          if (!preg_match('#^(.*?)$#',$args,$m)) 
     165          { 
    156166               self::p404(); 
    157167               return; 
     
    159169 
    160170          $f = $m[1]; 
    161           if (strstr($f,"..") !== false) { 
    162                self::p404(); 
    163                return; 
    164           } 
    165  
     171           
     172          if (!($f = self::searchTplFiles($f))) 
     173          { 
     174               self::p404(); 
     175               return; 
     176          } 
     177           
    166178          $allowed_types = array('png','jpg','jpeg','gif','css','js','swf'); 
    167           if (!in_array(files::getExtension($f),$allowed_types)) { 
    168                self::p404(); 
    169                return; 
    170           } 
    171  
    172           self::serveDocument($args); 
    173           return; 
     179          if (!in_array(files::getExtension($f),$allowed_types)) 
     180          { 
     181               self::p404(); 
     182               return; 
     183          } 
     184          $type = files::getMimeType($f); 
     185           
     186          header('Content-Type: '.$type.'; charset=UTF-8'); 
     187          header('Content-Length: '.filesize($f)); 
     188           
     189          if ($type != "text/css" || $core->blog->settings->system->url_scan == 'path_info') 
     190          { 
     191               readfile($f); 
     192          } 
     193          else 
     194          { 
     195               echo preg_replace('#url\((?!(http:)|/)#','url('.$core->blog->url.$core->url->getBase('noodlesmodule').'/',file_get_contents($f)); 
     196          } 
     197          exit; 
     198     } 
     199      
     200     # Search noodles files like JS, CSS in default-templates subdirectories 
     201     private static function searchTplFiles($file) 
     202     { 
     203          if (strstr($file,"..") !== false) 
     204          { 
     205               return false; 
     206          } 
     207          $paths = $GLOBALS['core']->tpl->getPath(); 
     208           
     209          foreach($paths as $path) 
     210          { 
     211               if (preg_match('/tpl(\/|)$/',$path)) 
     212               { 
     213                    $path = path::real($path.'/..'); 
     214               } 
     215               if (file_exists($path.'/'.$file)) 
     216               { 
     217                    return $path.'/'.$file; 
     218               } 
     219          } 
     220          return false; 
    174221     } 
    175222} 
  • plugins/noodles/_uninstall.php

    r1485 r2387  
    3232     /* action */ 'delete_all', 
    3333     /* ns */ 'noodles', 
    34      /* description */ __('delete all noodles settings') 
     34     /* description */ sprintf(__('delete all %s settings'),'noodles') 
    3535); 
    3636 
     
    3939     /* action */ 'delete', 
    4040     /* ns */ 'noodles', 
    41      /* description */ __('delete noodles plugin files') 
     41     /* description */ sprintf(__('delete %s plugin files'),'noodles') 
    4242); 
    4343 
  • plugins/noodles/default-templates/js/jquery.noodles.js

    r1485 r2387  
    2424 
    2525          var cur_line = $(target); 
    26           var content = $(target).get(); 
     26          var content = encodeURIComponent($(target).get()); 
    2727 
    28           $.post(service_url,{f:service_func,noodleContent:content,noodleId:imgId}, 
     28          $.post(service_url,{noodleContent:content,noodleId:imgId}, 
    2929               function(data){ 
    3030                    data=$(data); 
    31                     if(data.find('rsp').attr('status')=='ok' && $(data).find('noodle').attr('src')){ 
    32  
     31                    if(data.find('rsp').attr('status')=='ok' && $(data).find('noodle').attr('src')) 
     32                    { 
    3333                         var size = $(data).find('noodle').attr('size')+'px'; 
    3434                         var res = $('<img src="'+$(data).find('noodle').attr('src')+'" alt="" />'); 
     
    4444                              $(cur_line).after($(res)); 
    4545                    } 
    46 /*                  else { 
    47                          alert($(data).find('message').text()); 
    48                     } 
    49 //*/           } 
     46               } 
    5047          ); 
    5148          return target; 
  • plugins/noodles/inc/_default_noodles.php

    r1740 r2387  
    5555# Plugin auhtorMode 
    5656if ($core->plugins->moduleExists('authorMode') 
    57  && $core->blog->settings->authormode_active) { 
     57 && $core->blog->settings->authormode->authormode_active) { 
    5858 
    5959     $__default_noodles->add('authorswidget',__('Authors widget'),array('authormodeNoodles','authors')); 
     
    7676# Plugin rateIt 
    7777if ($core->plugins->moduleExists('rateIt') 
    78  && $core->blog->settings->rateit_active) { 
     78 && $core->blog->settings->rateit->rateit_active) { 
    7979 
    8080     $__default_noodles->add('rateitpostsrank',__('Top rated entries'),array('genericNoodles','postURL')); 
  • plugins/noodles/inc/_noodles_functions.php

    r1399 r2387  
    1818     { 
    1919          global $core; 
    20  
     20           
    2121          $types = $core->getPostTypes(); 
    2222          $reg = '@^'.str_replace('%s','(.*?)', 
    2323               preg_quote($core->blog->url.$types['post']['public_url'])).'$@'; 
    24  
     24           
    2525          $ok = preg_match($reg,$content,$m); 
    26  
     26           
    2727          if (!$ok || !$m[1]) return ''; 
    28  
     28           
    2929          $rs = $core->blog->getPosts( 
    30                array('no_content'=>1,'post_url'=>urldecode($m[1]),'limit'=>1)); 
    31  
     30               array('no_content'=>1,'post_url'=>urldecode($m[1]),'limit'=>1) 
     31          ); 
     32           
    3233          if ($rs->isEmpty()) return ''; 
    33  
     34           
    3435          return $rs->user_email; 
    3536     } 
     
    4243     { 
    4344          if (!$noodle->active) return; 
    44  
     45           
    4546          $bhv = $noodle->place == 'prepend' || $noodle->place == 'before' ? 
    4647               'publicEntryBeforeContent' : 'publicEntryAfterContent'; 
    47  
     48           
    4849          $core->addBehavior($bhv,array('othersNoodles','publicEntryContent')); 
    4950     } 
    50  
     51      
    5152     public static function publicEntryContent() 
    5253     { 
    5354          global $core,$_ctx,$__noodles; 
    54  
     55           
    5556          $m = $_ctx->posts->getAuthorEmail(false); 
    5657          $c = $__noodles->posts->css; 
    5758          $s = $__noodles->posts->size; 
    5859          $r = $__noodles->posts->rating; 
    59           $d = $core->blog->settings->noodles_image ?  
    60                urlencode(libImagePath::getUrl($core,'noodles')) : ''; 
    61  
     60          $d = $core->blog->settings->noodles->noodles_image ?  
     61               urlencode(noodlesLibImagePath::getUrl($core,'noodles')) : ''; 
     62           
    6263          echo  
    6364          '<img class="noodles-posts" style="width:'.$s.'px;height:'.$s.'px;'.$c.'"'. 
     
    6970     { 
    7071          if (!$noodle->active) return; 
    71  
     72           
    7273          $bhv = $noodle->place == 'prepend' || $noodle->place == 'before' ? 
    7374               'publicCommentBeforeContent' : 'publicCommentAfterContent'; 
    74  
     75           
    7576          $core->addBehavior($bhv,array('othersNoodles','publicCommentContent')); 
    7677     } 
    77  
     78      
    7879     public static function publicCommentContent() 
    7980     { 
    8081          global $core,$_ctx,$__noodles; 
    81  
     82      
    8283          $m = $_ctx->comments->getEmail(false); 
    8384          $c = $__noodles->comments->css; 
    8485          $s = $__noodles->comments->size; 
    8586          $r = $__noodles->comments->rating; 
    86           $d = $core->blog->settings->noodles_image ?  
    87                urlencode(libImagePath::getUrl($core,'noodles')) : ''; 
    88  
     87          $d = $core->blog->settings->noodles->noodles_image ?  
     88               urlencode(noodlesLibImagePath::getUrl($core,'noodles')) : ''; 
     89           
    8990          echo  
    9091          '<img class="noodles-comments" style="width:'.$s.'px;height:'.$s.'px;'.$c.'"'. 
     
    100101     { 
    101102          global $core; 
    102  
     103           
    103104          $ok = preg_match('@\#c([0-9]+)$@',urldecode($content),$m); 
    104  
     105           
    105106          if (!$ok || !$m[1]) return ''; 
    106  
     107           
    107108          $rs = $core->blog->getComments( 
    108                array('no_content'=>1,'comment_id'=>$m[1],'limit'=>1)); 
    109  
     109               array('no_content'=>1,'comment_id'=>$m[1],'limit'=>1) 
     110          ); 
     111           
    110112          if (!$rs->isEmpty()) return $rs->comment_email; 
    111  
     113           
    112114          return ''; 
    113115     } 
     
    121123          global $core; 
    122124          $ok = preg_match('@\/([^\/]*?)$@',$content,$m); 
    123  
     125           
    124126          if (!$ok || !$m[1]) return ''; 
    125  
     127           
    126128          $rs = $core->getUser($m[1]); 
    127  
     129           
    128130          if ($rs->isEmpty()) return ''; 
    129  
     131           
    130132          return $rs->user_email; 
    131133     } 
    132  
     134      
    133135     public static function author($core,$noodle) 
    134136     { 
    135           if ($noodle->active)  
     137          if ($noodle->active) 
     138          { 
    136139               $core->addBehavior('publicHeadContent', 
    137140                    array('authormodeNoodles','publicHeadContent')); 
     141          } 
    138142     } 
    139  
     143      
    140144     public static function publicHeadContent() 
    141145     { 
    142146          global $core,$_ctx,$__noodles; 
    143  
     147           
    144148          if ($_ctx->current_tpl != 'author.html') return; 
    145  
     149           
    146150          $id = $_ctx->users->user_id; 
    147151          $u = $core->getUser($id); 
     
    150154          $s = $__noodles->author->size; 
    151155          $r = $__noodles->author->rating; 
    152           $d = $core->blog->settings->noodles_image ?  
    153                urlencode(libImagePath::getUrl($core,'noodles')) : ''; 
    154  
     156          $d = $core->blog->settings->noodles->noodles_image ?  
     157               urlencode(noodlesLibImagePath::getUrl($core,'noodles')) : ''; 
     158           
    155159          echo  
    156160          '<script type="text/javascript">'."\n". 
  • plugins/noodles/inc/class.noodles.php

    r1399 r2387  
    1616{ 
    1717     private $noodles = array(); 
    18  
     18      
    1919     public static function decode($s) 
    2020     { 
     
    2323          return new self; 
    2424     } 
    25  
     25      
    2626     public function encode() 
    2727     { 
    2828          return base64_encode(serialize($this)); 
    2929     } 
    30  
     30      
    3131     public function add($id,$name,$js_callback,$php_callback=null) 
    3232     { 
    3333          $this->noodles[$id] = new noodle($id,$name,$js_callback,$php_callback); 
    3434     } 
    35  
     35      
    3636     public function __get($id) 
    3737     { 
    3838          return isset($this->noodles[$id]) ? $this->noodles[$id] : null; 
    3939     } 
    40  
     40      
    4141     public function __set($id,$noodle) 
    4242     { 
    4343          return $this->noodles[$id] = $noodle; 
    4444     } 
    45  
     45      
    4646     public function exists($id) 
    4747     { 
    4848          return isset($this->noodles[$id]); 
    4949     } 
    50  
     50      
    5151     public function isEmpty() 
    5252     { 
    5353          return !count($this->noodles); 
    5454     } 
    55  
     55      
    5656     public function noodles() 
    5757     { 
     
    7373          'place' => 'prepend' 
    7474     ); 
    75  
     75      
    7676     public function __construct($id,$name,$js_callback,$php_callback=null) 
    7777     { 
     
    8181          $this->php_callback = $php_callback; 
    8282     } 
    83  
     83      
    8484     public function id() 
    8585     { 
    8686          return $this->id; 
    8787     } 
    88  
     88      
    8989     public function name() 
    9090     { 
    9191          return $this->name; 
    9292     } 
    93  
     93      
    9494     public function jsCallback($g,$content='') 
    9595     { 
     
    9797          return call_user_func($this->js_callback,$g,$content); 
    9898     } 
    99  
     99      
    100100     public function hasJsCallback() 
    101101     { 
    102102          return !empty($this->js_callback); 
    103103     } 
    104  
     104      
    105105     public function phpCallback($core) 
    106106     { 
     
    108108          return call_user_func($this->php_callback,$core,$this); 
    109109     } 
    110  
     110      
    111111     public function hasPhpCallback() 
    112112     { 
    113113          return !empty($this->php_callback); 
    114114     } 
    115  
     115      
    116116     public function set($type,$value) 
    117117     { 
    118           switch ($type) { 
    119           case 'active': 
     118          switch ($type) 
     119          { 
     120               case 'active': 
    120121               $this->settings['active'] = abs((integer) $value); 
    121122               break; 
    122           case 'rating': 
     123                
     124               case 'rating': 
    123125               $this->settings['rating'] = in_array($value,array('g','pg','r','x')) ? 
    124126                    $value : 'g'; 
    125127               break; 
    126           case 'size': 
     128                
     129               case 'size': 
    127130               $this->settings['size'] =  
    128131                    in_array($value,array(16,24,32,48,56,64,92,128,256)) ? 
    129132                    $value : 16; 
    130133               break; 
    131           case 'css': 
     134                
     135               case 'css': 
    132136               $this->settings['css'] = (string) $value; 
    133137               break; 
    134           case 'target': 
     138                
     139               case 'target': 
    135140               $this->settings['target'] = (string) $value; 
    136141               break; 
    137           case 'place': 
     142                
     143               case 'place': 
    138144               $this->settings['place'] =  
    139145                    in_array($value,array('append','prepend','before','after')) ?  
     
    142148          } 
    143149     } 
    144  
     150      
    145151     public function __set($type,$value) 
    146152     { 
    147153          $this->set($type,$value); 
    148154     } 
    149  
     155      
    150156     public function get($type) 
    151157     { 
    152158          return isset($this->settings[$type]) ? $this->settings[$type] : null; 
    153159     } 
    154  
     160      
    155161     public function __get($type) 
    156162     { 
  • plugins/noodles/inc/lib.image.path.php

    r1399 r2387  
    1212# -- END LICENSE BLOCK ------------------------------------ 
    1313 
    14 class libImagePath 
     14class noodlesLibImagePath 
    1515{ 
    16      public static $version = '1.0'; 
     16     public static $version = '1.1'; 
    1717 
    1818     public static function getArray($core,$m='') 
     
    2929          return array( 
    3030               'theme' => array( 
    31                     'dir' => $core->blog->themes_path.'/'.$core->blog->settings->theme.'/img/'.$m.'-default-image.png', 
    32                     'url' => $core->blog->settings->themes_url.$core->blog->settings->theme.'/img/'.$m.'-default-image.png' 
     31                    'dir' => $core->blog->themes_path.'/'.$core->blog->settings->system->theme.'/img/'.$m.'-default-image.png', 
     32                    'url' => $core->blog->settings->system->themes_url.$core->blog->settings->system->theme.'/img/'.$m.'-default-image.png' 
    3333               ), 
    3434               'public' => array( 
    3535                    'dir' => $core->blog->public_path.'/'.$m.'-default-image.png', 
    36                     'url' => $core->blog->host.path::clean($core->blog->settings->public_url).'/'.$m.'-default-image.png' 
     36                    'url' => $core->blog->host.path::clean($core->blog->settings->system->public_url).'/'.$m.'-default-image.png' 
    3737               ), 
    3838               'module' => array( 
  • plugins/noodles/index.php

    r1740 r2387  
    1515dcPage::check('admin'); 
    1616 
     17$s = $core->blog->settings->noodles; 
    1718$msg = isset($_POST['done']) ? __('Configuration successfully updated') : ''; 
    18 $tab = isset($_REQUEST['t']) ? $_REQUEST['t'] : 'blocs'; 
     19$tab = isset($_REQUEST['tab']) ? $_REQUEST['tab'] : 'blocs'; 
    1920$img_green = '<img alt="%s" src="images/check-on.png" />'; 
    2021$img_red = '<img alt="%s" src="images/check-off.png" />'; 
     
    2223include dirname(__FILE__).'/inc/_default_noodles.php'; 
    2324 
    24 $__noodles = noodles::decode($core->blog->settings->noodles_object); 
    25  
    26 if ($__noodles->isEmpty()) { 
     25$__noodles = noodles::decode($s->noodles_object); 
     26 
     27if ($__noodles->isEmpty()) 
     28{ 
    2729     $__noodles = $__default_noodles; 
    28  
    29 } else { 
     30} 
     31else 
     32{ 
    3033     $default_noodles_array = $__default_noodles->noodles(); 
    31      foreach($default_noodles_array AS $id => $noodle) { 
     34     foreach($default_noodles_array AS $id => $noodle) 
     35     { 
    3236          if ($__noodles->exists($id)) continue; 
    3337          $__noodles->{$id} = $noodle; 
     
    3539} 
    3640 
    37 if (!$core->blog->settings->noodles_active) 
     41if (!$s->noodles_active) 
     42{ 
    3843     $tab = 'settings'; 
     44} 
    3945 
    4046$default_avatars_images = files::scandir(dirname(__FILE__).'/default-templates/img/'); 
    41 $avatar_paths = libImagePath::getArray($core,'noodles'); 
     47$avatar_paths = noodlesLibImagePath::getArray($core,'noodles'); 
    4248 
    4349$combo_active = array( 
     
    6975); 
    7076 
    71 if (!empty($_POST['save']) && isset($_POST['t']) && $_POST['t'] == 'settings') { 
    72      try { 
    73           $core->blog->settings->setNamespace('noodles'); 
    74           $core->blog->settings->put('noodles_active',$_POST['noodles_active'], 
    75                'boolean','noodles plugin enabled',true,false); 
    76  
    77           # Destination image according to libImagePath() 
    78           $dest_file = DC_ROOT.'/'.$core->blog->settings->public_path.'/noodles-default-image.png'; 
     77if (!empty($_POST['save']) && $tab == 'settings') 
     78{ 
     79     try 
     80     { 
     81          $s->put('noodles_active',$_POST['noodles_active'],'boolean'); 
     82 
     83          # Destination image according to noodlesLibImagePath() 
     84          $dest_file = DC_ROOT.'/'.$s->public_path.'/noodles-default-image.png'; 
    7985 
    8086          # user upload image 
    81           if ($_POST['noodles_image'] == 'user') { 
    82  
     87          if ($_POST['noodles_image'] == 'user') 
     88          { 
    8389               if (2 == $_FILES['noodlesuserfile']['error']) 
     90               { 
    8491                    throw new Exception(__('Maximum file size exceeded')); 
    85  
     92               } 
    8693               if ($_FILES['noodlesuserfile']['type'] != 'image/x-png') 
     94               { 
    8795                    throw new Exception(__('Image must be in png format')); 
    88  
     96               } 
    8997               if (0 != $_FILES['noodlesuserfile']['error']) 
     98               { 
    9099                    throw new Exception(__('Something went wrong while download file')); 
    91  
     100               } 
    92101               if ($_FILES['noodlesuserfile']['type'] != 'image/x-png') 
     102               { 
    93103                    throw new Exception(__('Image must be in png format')); 
    94  
    95                if (move_uploaded_file($_FILES['noodlesuserfile']['tmp_name'],$dest_file)) { 
    96                     $core->blog->settings->put('noodles_image',1, 
    97                          'boolean','noodles uses default gravatar.com image',true,false); 
    98                } 
    99  
     104               } 
     105               if (move_uploaded_file($_FILES['noodlesuserfile']['tmp_name'],$dest_file)) 
     106               { 
     107                    $s->put('noodles_image',1,'boolean'); 
     108               } 
     109          } 
    100110          # Default gravatar.com avatar 
    101           } elseif ($_POST['noodles_image'] == 'gravatar.com') { 
    102                $core->blog->settings->put('noodles_image',0, 
    103                     'boolean','noodles uses default gravatar.com image',true,false); 
    104  
     111          elseif ($_POST['noodles_image'] == 'gravatar.com') 
     112          { 
     113               $s->put('noodles_image',0,'boolean'); 
     114          } 
    105115          # existsing noodles image on blog 
    106           } elseif ($_POST['noodles_image'] == 'existsing') { 
    107                $core->blog->settings->put('noodles_image',1, 
    108                     'boolean','noodles uses default gravatar.com image',true,false); 
    109  
     116          elseif ($_POST['noodles_image'] == 'existsing') 
     117          { 
     118               $s->put('noodles_image',1,'boolean'); 
     119          } 
    110120          # noodles image 
    111           } elseif (preg_match('/^gravatar-[0-9]+.png$/',$_POST['noodles_image'])) { 
    112  
     121          elseif (preg_match('/^gravatar-[0-9]+.png$/',$_POST['noodles_image'])) 
     122          { 
    113123               $source = dirname(__FILE__).'/default-templates/img/'.$_POST['noodles_image']; 
    114  
     124                
    115125               if (!file_exists($source)) 
     126               { 
    116127                    throw new Exception(__('Something went wrong while search file')); 
    117                 
    118                if (file_put_contents($dest_file,file_get_contents($source))) { 
    119                     $core->blog->settings->put('noodles_image',1, 
    120                          'boolean','noodles uses default gravatar.com image',true,false); 
    121                } 
    122           } 
    123  
     128               } 
     129               if (file_put_contents($dest_file,file_get_contents($source))) 
     130               { 
     131                    $s->put('noodles_image',1,'boolean'); 
     132               } 
     133          } 
     134           
    124135          $core->blog->triggerBlog(); 
    125           http::redirect('plugin.php?p=noodles&t=settings&done=1'); 
    126      } 
    127      catch (Exception $e) { 
     136          http::redirect('plugin.php?p=noodles&tab=settings&done=1'); 
     137     } 
     138     catch (Exception $e) 
     139     { 
    128140          $core->error->add($e->getMessage()); 
    129141     } 
    130142} 
    131143 
    132 if (!empty($_POST['save']) && isset($_POST['t']) && $_POST['t'] == 'blocs'  
    133      && !empty($_POST['noodle'])) { 
    134      try { 
    135           $core->blog->settings->setNamespace('noodles'); 
     144if (!empty($_POST['save']) && $tab == 'blocs' && !empty($_POST['noodle'])) 
     145{ 
     146     try 
     147     { 
     148          foreach($_POST['noodle'] as $id => $s) 
     149          { 
     150               foreach($s as $k => $v) 
     151               { 
     152                    $__noodles->{$id}->set($k,$v); 
     153               } 
     154          } 
     155          $s->put('noodles_object',$__noodles->encode(),'string'); 
    136156           
    137           foreach($_POST['noodle'] as $id => $s) { 
    138                foreach($s as $k => $v) { 
    139                     $__noodles->{$id}->set($k,$v); 
    140                } 
    141           } 
    142           $core->blog->settings->put('noodles_object',$__noodles->encode(), 
    143                'string','noodles object',true,false); 
    144  
    145157          $core->blog->triggerBlog(); 
    146           http::redirect('plugin.php?p=noodles&t=blocs&done=1'); 
    147      } 
    148      catch (Exception $e) { 
     158          http::redirect('plugin.php?p=noodles&tab=blocs&done=1'); 
     159     } 
     160     catch (Exception $e) 
     161     { 
    149162          $core->error->add($e->getMessage()); 
    150163     } 
    151164} 
    152165 
    153 if (!empty($_POST['reset']) && isset($_POST['t']) && $_POST['t'] == 'blocs') { 
    154      try { 
    155           $core->blog->settings->setNamespace('noodles'); 
    156           $core->blog->settings->put('noodles_object','', 
    157                'string','noodles object',true,false); 
     166if (!empty($_POST['reset']) && $tab == 'blocs') 
     167{ 
     168     try 
     169     { 
     170          $s->put('noodles_object','','string'); 
    158171          $core->blog->triggerBlog(); 
    159           http::redirect('plugin.php?p=noodles&t=blocs&done=1'); 
    160      } 
    161      catch (Exception $e) { 
     172          http::redirect('plugin.php?p=noodles&tab=blocs&done=1'); 
     173     } 
     174     catch (Exception $e) 
     175     { 
    162176          $core->error->add($e->getMessage()); 
    163177     } 
     
    175189 (!empty($msg) ? '<p class="message">'.$msg.'</p>' : ''); 
    176190 
    177 if ($core->blog->settings->noodles_active) { 
    178  
    179191# Blocs 
    180 echo  
    181 '<div class="multi-part" id="blocs" title="'.__('Controls').'">'. 
    182 '<form method="post" action="plugin.php">'. 
    183 '<table><tr>'. 
    184 '<th>'.__('Name').'</th>'. 
    185 '<th>'.__('Enable').'</th>'. 
    186 '<th>'.__('Size').'</th>'. 
    187 '<th>'.__('Rating').'</th>'. 
    188 '<th>'.__('php').'</th>'. 
    189 '<th>'.__('js').'</th>'. 
    190 '<th>'.__('Target').'</th>'. 
    191 '<th>'.__('Place').'</th>'. 
    192 '<th>'.__('Adjust avatar CSS').'</th></tr>'; 
    193  
    194 foreach($__noodles->noodles() as $noodle) { 
    195      echo 
    196      '<tr class="line">'. 
    197      '<td class="nowrap">'.$noodle->name().'</td>'. 
    198      '<td>'.form::combo(array('noodle['.$noodle->id().'][active]'),$combo_active,$noodle->active).'</td>'. 
    199      '<td>'.form::combo(array('noodle['.$noodle->id().'][size]'),$combo_size,$noodle->size).'</td>'. 
    200      '<td>'.form::combo(array('noodle['.$noodle->id().'][rating]'),$combo_rating,$noodle->rating).'</td>'. 
    201      '<td>'.($noodle->hasPhpCallback() ? $img_green : $img_red).'</td>'. 
    202      '<td>'.$img_green.'</td>'. 
    203      '<td>'.form::field(array('noodle['.$noodle->id().'][target]'),20,255,$noodle->target).'</td>'. 
    204      '<td>'.form::combo(array('noodle['.$noodle->id().'][place]'),$combo_place,$noodle->place).'</td>'. 
    205      '<td class="maximal">'. 
    206      form::textArea(array('noodle['.$noodle->id().'][css]'),50,2,$noodle->css). 
    207      ' .noodles-'.$noodle->id().'{}</td>'. 
    208      '</tr>'; 
    209 } 
    210 echo  
    211 '</table>'. 
    212 '<p>'. 
    213 form::hidden(array('p'),'noodles'). 
    214 form::hidden(array('t'),'blocs'). 
    215 $core->formNonce(). 
    216 '<input type="submit" name="save" value="'.__('Save').'" /> '. 
    217 '<input type="submit" name="reset" value="'.__('Reset').'" /></p>'. 
    218 '</form>'. 
    219 '</div>'; 
    220  
    221 } //endif ($core->blog->settings->noodles_active) 
     192if ($s->noodles_active) 
     193{ 
     194     echo  
     195     '<div class="multi-part" id="blocs" title="'.__('Controls').'">'. 
     196     '<form method="post" action="plugin.php">'. 
     197     '<table><thead><tr>'. 
     198     '<th class="nowrap">'.__('Name').'</th>'. 
     199     '<th class="nowrap">'.__('Enable').'</th>'. 
     200     '<th class="nowrap">'.__('Size').'</th>'. 
     201     '<th class="nowrap">'.__('Rating').'</th>'. 
     202     '<th class="nowrap">'.__('PHP').'</th>'. 
     203     '<th class="nowrap">'.__('JS').'</th>'. 
     204     '<th class="nowrap">'.__('JS target').'</th>'. 
     205     '<th class="nowrap">'.__('JS place').'</th>'. 
     206     '<th class="nowrap">'.__('Adjust avatar CSS').'</th>'. 
     207     '</tr></thead>'; 
     208 
     209     foreach($__noodles->noodles() as $noodle) 
     210     { 
     211          echo 
     212          '<tr class="line">'. 
     213          '<td class="nowrap">'.$noodle->name().'</td>'. 
     214          '<td>'.form::combo(array('noodle['.$noodle->id().'][active]'),$combo_active,$noodle->active).'</td>'. 
     215          '<td>'.form::combo(array('noodle['.$noodle->id().'][size]'),$combo_size,$noodle->size).'</td>'. 
     216          '<td>'.form::combo(array('noodle['.$noodle->id().'][rating]'),$combo_rating,$noodle->rating).'</td>'. 
     217          '<td>'.($noodle->hasPhpCallback() ? $img_green : $img_red).'</td>'. 
     218          '<td>'.$img_green.'</td>'. 
     219          '<td>'.form::field(array('noodle['.$noodle->id().'][target]'),20,255,$noodle->target).'</td>'. 
     220          '<td>'.form::combo(array('noodle['.$noodle->id().'][place]'),$combo_place,$noodle->place).'</td>'. 
     221          '<td class="maximal">'. 
     222          form::textArea(array('noodle['.$noodle->id().'][css]'),50,2,$noodle->css). 
     223          ' .noodles-'.$noodle->id().'{}</td>'. 
     224          '</tr>'; 
     225     } 
     226     echo  
     227     '</table>'. 
     228     '<p>'. 
     229     form::hidden(array('p'),'noodles'). 
     230     form::hidden(array('tab'),'blocs'). 
     231     $core->formNonce(). 
     232     '<input type="submit" name="save" value="'.__('Save').'" /> '. 
     233     '<input type="submit" name="reset" value="'.__('Reset').'" /></p>'. 
     234     '</form>'. 
     235     '</div>'; 
     236} 
    222237 
    223238# Settings 
     
    225240'<div class="multi-part" id="settings" title="'.__('Settings').'">'. 
    226241'<form method="post" action="plugin.php" enctype="multipart/form-data">'. 
    227 '<div class="two-cols">'. 
    228 '<div class="col">'. 
    229 '<h2>'.__('Options').'</h2>'. 
    230 '<table>'. 
    231 '<tr><th colspan="2">'.__('Extension').'</th></tr>'. 
    232 '<tr><td>'.__('Enable plugin').'</td><td>'. 
    233 form::combo(array('noodles_active'),$combo_active, 
    234      $core->blog->settings->noodles_active).'</td></tr>'. 
    235 '<tr><th colspan="2">'.__('URL prefix').'</th></tr>'. 
    236 '<tr><td>'.__('Files').'</td><td>'. 
    237 '</table>'. 
    238 '</div>'. 
    239 '<div class="col">'. 
    240 '<h2>'.__('Default avatar').'</h2>'. 
     242'<fieldset id="settings-plugin"><legend>'.__('Options').'</legend>'. 
     243'<p class="field"><label>'. 
     244form::combo(array('noodles_active'),$combo_active,$s->noodles_active).' '. 
     245     __('Enable plugin').'</label></p>'. 
     246 
     247'</fieldset>'. 
     248'<fieldset id="setting-avatar"><legend>'.__('Default avatar').'</legend>'. 
    241249'<table><tr><th>&nbsp;</th><th>'.__('Avatar').'</th><th>'.__('size').'</th></tr>'. 
    242250'<tr class="line">'; 
    243251 
    244252// By default use gravatar.com image 
    245 $default = !$core->blog->settings->noodles_image; 
     253$default = '' == $s->noodles_image; 
    246254 
    247255echo  
    248 '<td>'.form::radio(array('noodles_image'),'gravatar.com',$default).'</td>'. 
    249 '<td>'.__('gravatar.com default image').'</td>'. 
     256'<td colspan="2"><label class="classic">'. 
     257form::radio(array('noodles_image'),'gravatar.com',$default). 
     258__('gravatar.com default image').'</label></td>'. 
    250259'<td></td>'. 
    251260'</tr>'; 
    252261 
    253 if (!$default) { 
     262if (!$default) 
     263{ 
    254264     $exists = false; 
    255  
     265      
    256266     // then use theme image 
    257      if (file_exists($avatar_paths['theme']['dir'])) { 
     267     if (file_exists($avatar_paths['theme']['dir'])) 
     268     { 
    258269          $exists = $avatar_paths['theme']; 
    259  
     270     } 
    260271     // then public image 
    261      } elseif (file_exists($avatar_paths['public']['dir'])) { 
     272     elseif (file_exists($avatar_paths['public']['dir'])) 
     273     { 
    262274          $exists = $avatar_paths['public']; 
    263  
     275     } 
    264276     // then module 
    265      } elseif (file_exists($avatar_paths['module']['dir'])) { 
     277     elseif (file_exists($avatar_paths['module']['dir'])) 
     278     { 
    266279          $exists = $avatar_paths['module']; 
    267  
    268      } 
    269      if ($exists) { 
     280     } 
     281     if ($exists) 
     282     { 
    270283          $s = getimagesize($exists['dir']); 
    271284          $s[2] = files::size(filesize($exists['dir'])); 
     285           
    272286          echo  
    273287          '<tr class="line">'. 
    274           '<td>'.form::radio(array('noodles_image'),'existing',1).'</td>'. 
     288          '<td><label class="classic">'.form::radio(array('noodles_image'),'existing',1). 
     289          basename($exists['dir']).'</label></td>'. 
    275290          '<td><img src="'.$exists['url'].'" alt="" /></td>'. 
    276291          '<td>'.$s[0].'x'.$s[1].'<br />'.$s[2].'</td>'. 
     
    281296// noodles avatars 
    282297sort($default_avatars_images); 
    283 foreach($default_avatars_images AS $f) { 
     298foreach($default_avatars_images AS $f) 
     299{ 
    284300     if (!preg_match('/gravatar-[0-9]+.png/',$f)) continue; 
    285301     $s = getimagesize(dirname(__FILE__).'/default-templates/img/'.$f); 
    286302     $s[2] = files::size(filesize(dirname(__FILE__).'/default-templates/img/'.$f)); 
     303      
    287304     echo  
    288305     '<tr class="line">'. 
    289      '<td>'.form::radio(array('noodles_image'),$f).'</td>'. 
     306     '<td><label class="classic">'.form::radio(array('noodles_image'),$f). 
     307     basename($f).'</label></td>'. 
    290308     '<td><img src="index.php?pf=noodles/default-templates/img/'.$f.'" alt="" /></td>'. 
    291309     '<td>'.$s[0].'x'.$s[1].'<br />'.$s[2].'</td>'. 
     
    302320'</table>'. 
    303321'<p class="form-note">* '.__('Image must be in "png" format and have a maximum file size of 30Ko').'</p>'. 
    304 '</div>'. 
    305 '</div>'. 
     322'</fieldset>'. 
    306323'<p>'. 
    307324form::hidden(array('p'),'noodles'). 
    308 form::hidden(array('t'),'settings'). 
     325form::hidden(array('tab'),'settings'). 
    309326$core->formNonce(). 
    310327'<input type="submit" name="save" value="'.__('Save').'" /></p>'. 
  • plugins/noodles/locales/fr/main.lang.php

    r1399 r2387  
    11<?php 
    2 // Language: français  
    3 // Module: noodles - 0.4 
    4 // Date: 2009-08-16 21:44:26  
    5 // Author: JC Denis, jcdenis@gdwd.com 
    6 // Translated with dcTranslater - 0.2.4  
     2// Language: Français  
     3// Module: noodles - 0.5.1 
     4// Date: 2010-06-22 14:45:25  
     5// Translated with dcTranslater - 1.4  
    76 
    87#inc/_default_noodles.php:32 
     
    1211$GLOBALS['__l10n']['Authors widget'] = 'Widgets des auteurs'; 
    1312 
    14 #index.php:48 
     13#index.php:54 
    1514$GLOBALS['__l10n']['Begin'] = 'Début'; 
    1615 
    17 #index.php:49 
     16#index.php:55 
    1817$GLOBALS['__l10n']['End'] = 'Fin'; 
    1918 
    20 #index.php:50 
     19#index.php:56 
    2120$GLOBALS['__l10n']['Before'] = 'Avant'; 
    2221 
    23 #index.php:51 
     22#index.php:57 
    2423$GLOBALS['__l10n']['After'] = 'Après'; 
    2524 
    26 #index.php:88 
     25#index.php:91 
    2726$GLOBALS['__l10n']['Maximum file size exceeded'] = 'Taille maximum de fichier dépassée'; 
    2827 
    29 #index.php:97 
     28#index.php:95 
     29#index.php:103 
    3030$GLOBALS['__l10n']['Image must be in png format'] = 'L\'image doit être au format png'; 
    3131 
    32 #index.php:94 
    33 $GLOBALS['__l10n']['Something went wrong while download file'] = 'Une erreur est survenue lors de téléchargement de l\'image'; 
     32#index.php:99 
     33$GLOBALS['__l10n']['Something went wrong while download file'] = 'Une erreur est survenue lors du téléchargement de l\'image'; 
    3434 
    35 #index.php:185 
    36 $GLOBALS['__l10n']['Controls'] = 'Controles'; 
     35#index.php:127 
     36$GLOBALS['__l10n']['Something went wrong while search file'] = 'Une erreur est survenue pendant la recherche de fichier'; 
    3737 
    38 #index.php:189 
     38#index.php:195 
     39$GLOBALS['__l10n']['Controls'] = 'Contrôles'; 
     40 
     41#index.php:198 
     42$GLOBALS['__l10n']['Name'] = 'Nom'; 
     43 
     44#index.php:199 
    3945$GLOBALS['__l10n']['Enable'] = 'Activer'; 
    4046 
    41 #index.php:190 
     47#index.php:200 
    4248$GLOBALS['__l10n']['Size'] = 'Taille'; 
    4349 
    44 #index.php:191 
     50#index.php:201 
    4551$GLOBALS['__l10n']['Rating'] = 'Évaluation'; 
    4652 
    47 #index.php:194 
    48 $GLOBALS['__l10n']['Target'] = 'Cible'; 
     53#index.php:204 
     54$GLOBALS['__l10n']['JS target'] = 'Cible JS'; 
    4955 
    50 #index.php:195 
    51 $GLOBALS['__l10n']['Place'] = 'Emplacement'; 
     56#index.php:205 
     57$GLOBALS['__l10n']['JS place'] = 'Emplacement JS'; 
    5258 
    53 #index.php:196 
    54 $GLOBALS['__l10n']['Adjust avatar CSS'] = 'Ajuster le CSS de l\'image'; 
     59#index.php:206 
     60$GLOBALS['__l10n']['Adjust avatar CSS'] = 'Ajuster la CSS de l\'image'; 
    5561 
    56 #index.php:221 
     62#index.php:233 
    5763$GLOBALS['__l10n']['Reset'] = 'RAZ'; 
    5864 
    59 #index.php:229 
     65#index.php:240 
    6066$GLOBALS['__l10n']['Settings'] = 'Paramètres'; 
    6167 
    62 #index.php:235 
    63 $GLOBALS['__l10n']['Extension'] = 'Extension'; 
    64  
    65 #index.php:236 
     68#index.php:245 
    6669$GLOBALS['__l10n']['Enable plugin'] = 'Activer l\'extension'; 
    6770 
    68 #index.php:239 
    69 $GLOBALS['__l10n']['URL prefix'] = 'Prefix des liens'; 
    70  
    71 #index.php:240 
    72 $GLOBALS['__l10n']['Files'] = 'Fichiers'; 
     71#index.php:248 
     72$GLOBALS['__l10n']['Default avatar'] = 'Avatar par défaut'; 
    7373 
    7474#index.php:249 
    75 $GLOBALS['__l10n']['Default avatar'] = 'Avatar par défaut'; 
    76  
    77 #index.php:250 
    7875$GLOBALS['__l10n']['size'] = 'taille'; 
    7976 
    8077#index.php:258 
    81 $GLOBALS['__l10n']['gravatar.com default image'] = 'Image par default de gravatar.com'; 
     78$GLOBALS['__l10n']['gravatar.com default image'] = 'Image par défaut de gravatar.com'; 
    8279 
    83 #index.php:312 
    84 $GLOBALS['__l10n']['Image must be in "png" format and has a maximum file size of 30Ko'] = 'L\'image doit être au format "png" et avoir une taille maximum de 30Ko'; 
     80#index.php:321 
     81$GLOBALS['__l10n']['Image must be in "png" format and have a maximum file size of 30Ko'] = 'L\'image doit être au format "png" et avoir une taille maximum de 30Ko'; 
    8582 
    8683?> 
  • plugins/noodles/locales/fr/main.po

    r1740 r2387  
    1 # Language: français 
    2 # Module: noodles - 0.4 
    3 # Date: 2009-08-16 21:44:26 
    4 # Author: JC Denis, jcdenis@gdwd.com 
    5 # Translated with dcTranslater - 0.2.4 
     1# Language: Français 
     2# Module: noodles - 0.5.1 
     3# Date: 2010-06-22 14:45:25 
     4# Translated with translater 1.4 
     5 
    66msgid "" 
    77msgstr "" 
    88"Content-Type: text/plain; charset=UTF-8\n" 
    9 "Project-Id-Version: \n" 
     9"Project-Id-Version: noodles 0.5.1\n" 
    1010"POT-Creation-Date: \n" 
    11 "PO-Revision-Date: \n" 
    12 "Last-Translator: Kozlika <kozlika@free.fr>\n" 
     11"PO-Revision-Date: 2010-06-22T14:45:25+00:00\n" 
     12"Last-Translator: JC Denis\n" 
    1313"Language-Team: \n" 
    1414"MIME-Version: 1.0\n" 
     
    2323msgstr "Widgets des auteurs" 
    2424 
    25 #: index.php:48 
     25#: index.php:54 
    2626msgid "Begin" 
    2727msgstr "Début" 
    2828 
    29 #: index.php:49 
     29#: index.php:55 
    3030msgid "End" 
    3131msgstr "Fin" 
    3232 
    33 #: index.php:50 
     33#: index.php:56 
    3434msgid "Before" 
    3535msgstr "Avant" 
    3636 
    37 #: index.php:51 
     37#: index.php:57 
    3838msgid "After" 
    3939msgstr "Après" 
    4040 
    41 #: index.php:88 
     41#: index.php:91 
    4242msgid "Maximum file size exceeded" 
    4343msgstr "Taille maximum de fichier dépassée" 
    4444 
    45 #: index.php:97 
     45#: index.php:95 
     46#: index.php:103 
    4647msgid "Image must be in png format" 
    4748msgstr "L'image doit être au format png" 
    4849 
    49 #: index.php:94 
     50#: index.php:99 
    5051msgid "Something went wrong while download file" 
    5152msgstr "Une erreur est survenue lors du téléchargement de l'image" 
    5253 
    53 #: index.php:185 
     54#: index.php:127 
     55msgid "Something went wrong while search file" 
     56msgstr "Une erreur est survenue pendant la recherche de fichier" 
     57 
     58#: index.php:195 
    5459msgid "Controls" 
    5560msgstr "Contrôles" 
    5661 
    57 #: index.php:189 
     62#: index.php:198 
     63msgid "Name" 
     64msgstr "Nom" 
     65 
     66#: index.php:199 
    5867msgid "Enable" 
    5968msgstr "Activer" 
    6069 
    61 #: index.php:190 
     70#: index.php:200 
    6271msgid "Size" 
    6372msgstr "Taille" 
    6473 
    65 #: index.php:191 
     74#: index.php:201 
    6675msgid "Rating" 
    6776msgstr "Évaluation" 
    6877 
    69 #: index.php:194 
    70 msgid "Target" 
    71 msgstr "Cible" 
     78#: index.php:204 
     79msgid "JS target" 
     80msgstr "Cible JS" 
    7281 
    73 #: index.php:195 
    74 msgid "Place" 
    75 msgstr "Emplacement" 
     82#: index.php:205 
     83msgid "JS place" 
     84msgstr "Emplacement JS" 
    7685 
    77 #: index.php:196 
     86#: index.php:206 
    7887msgid "Adjust avatar CSS" 
    7988msgstr "Ajuster la CSS de l'image" 
    8089 
    81 #: index.php:221 
     90#: index.php:233 
    8291msgid "Reset" 
    8392msgstr "RAZ" 
    8493 
    85 #: index.php:229 
     94#: index.php:240 
    8695msgid "Settings" 
    8796msgstr "Paramètres" 
    8897 
    89 #: index.php:235 
    90 msgid "Extension" 
    91 msgstr "Extension" 
    92  
    93 #: index.php:236 
     98#: index.php:245 
    9499msgid "Enable plugin" 
    95100msgstr "Activer l'extension" 
    96101 
    97 #: index.php:239 
    98 msgid "URL prefix" 
    99 msgstr "Préfixe des liens" 
    100  
    101 #: index.php:240 
    102 msgid "Files" 
    103 msgstr "Fichiers" 
    104  
    105 #: index.php:249 
     102#: index.php:248 
    106103msgid "Default avatar" 
    107104msgstr "Avatar par défaut" 
    108105 
    109 #: index.php:250 
     106#: index.php:249 
    110107msgid "size" 
    111108msgstr "taille" 
     
    115112msgstr "Image par défaut de gravatar.com" 
    116113 
    117 #: index.php:312 
    118 msgid "Image must be in "png" format and have a maximum file size of 30Ko" 
     114#: index.php:321 
     115msgid "Image must be in \"png\" format and have a maximum file size of 30Ko" 
    119116msgstr "L'image doit être au format \"png\" et avoir une taille maximum de 30Ko" 
    120117 
  • plugins/noodles/release.txt

    r1485 r2387  
     10.6 20100605 
     2 * Switched to DC 2.2 
     3 * Fixed javascript encode URI 
     4 * Fixed image paths and urls 
     5 
    160.5 20090923 
    27 * Fixed DC 2.1.6 URL handlers ending 
Note: See TracChangeset for help on using the changeset viewer.

Sites map