Dotclear


Ignore:
Files:
1 added
1 deleted
27 edited

Legend:

Unmodified
Added
Removed
  • .hgsubstate

    r1208 r1258  
    1 ff969f43ffc6d1a03258e32e8abb1812cddbd450 inc/libs/clearbricks 
     14a0351ee5d566a83ff06ca8bc9fffeb99885f545 inc/libs/clearbricks 
  • .hgtags

    r871 r1219  
    12126fce226121140735a51a8f447c80f1dacd2974ea 2.4.4 
    1313514d5121a12586b7ff320924d44028b677a01020 2.4.4 
     14baf879af43beea9764d920c2facd7226e90c5cf3 2.5.1 
  • CHANGELOG

    r1114 r1216  
     1Dotclear 2.5.1 - 2013-07-20 
     2=========================================================== 
     3* Security fix: Replacement of swfupload.swf by a jQuery plugin 
     4* Security enhancement: Strenghened lists display 
     5* Thumbnails quality improved 
     6* Minor enhancements 
     7* Various bug fixes 
     8* Various cosmetic adjustments 
     9 
    110Dotclear 2.5.0 - 2013-03-12 
    211=========================================================== 
  • admin/index.php

    r1179 r1247  
    5959if (!$core->auth->user_prefs->dashboard->prefExists('quickentry')) { 
    6060     if (!$core->auth->user_prefs->dashboard->prefExists('quickentry',true)) { 
    61           $core->auth->user_prefs->dashboard->put('quickentry',true,'boolean','',null,true); 
    62      } 
    63      $core->auth->user_prefs->dashboard->put('quickentry',true,'boolean'); 
     61          $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean','',null,true); 
     62     } 
     63     $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean'); 
    6464} 
    6565 
  • admin/install/index.php

    r1179 r1247  
    190190          $core->auth->user_prefs->dashboard->put('doclinks',true,'boolean','',null,true); 
    191191          $core->auth->user_prefs->dashboard->put('dcnews',true,'boolean','',null,true); 
    192           $core->auth->user_prefs->dashboard->put('quickentry',true,'boolean','',null,true); 
     192          $core->auth->user_prefs->dashboard->put('quickentry',false,'boolean','',null,true); 
    193193 
    194194          # Add accessibility options 
  • admin/js/_media.js

    r1191 r1234  
    4040     }); 
    4141 
    42      var $container = $('#fileupload').parent().parent(); 
     42     var $container = $('#add-file-f').parent().parent(); 
    4343     var $msg,label; 
    4444 
     
    7575 
    7676          $container.toggleClass('enhanced_uploader'); 
    77      }).appendTo($('#fileupload')); 
     77     }).appendTo($('#add-file-f')); 
    7878 
    7979     // Replace remove links by a POST on hidden form 
  • admin/js/_post.js

    r1140 r1256  
    7979          // Get document format and prepare toolbars 
    8080          var formatField = $('#post_format').get(0); 
     81          var last_post_format = $(formatField).val(); 
    8182          $(formatField).change(function() { 
    82                excerptTb.switchMode(this.value); 
    83                contentTb.switchMode(this.value); 
     83               // Confirm post format change 
     84               if(window.confirm(dotclear.msg.confirm_change_post_format_noconvert)){ 
     85                    excerptTb.switchMode(this.value); 
     86                    contentTb.switchMode(this.value); 
     87                    last_post_format = $(this).val(); 
     88               }else{ 
     89                    // Restore last format if change cancelled 
     90                    $(this).val(last_post_format); 
     91               } 
    8492          }); 
    8593           
  • admin/js/jquery/jquery.pageTabs.js

    r1140 r1223  
    3939                    li = document.createElement('li'); 
    4040                    a = document.createElement('a'); 
    41                     a.appendChild(document.createTextNode(this.title)); 
     41                    $(a).html(this.title); 
    4242                    this.title = ''; 
    4343                    a.href = '#'; 
    4444                    a.fn = This.showDiv; 
    4545                    a.index = this.id || i; 
     46                    li.id = "part-tabs-"+a.index; 
    4647                    a.obj = This; 
    4748                    jQuery(a).click(function() { this.fn.call(this.obj,this.index); return false; }); 
  • admin/media.php

    r1192 r1234  
    335335 
    336336     echo 
     337     '<form id="fileupload" action="'.html::escapeURL($page_url).'" method="POST" enctype="multipart/form-data">'. 
    337338     '<fieldset id="add-file-f"><legend>'.__('Add files').'</legend>'. 
    338339     '<p>'.__('Please take care to publish media that you own and that are not protected by copyright.').'</p>'. 
    339      ' <form id="fileupload" action="'.html::escapeURL($page_url).'" method="POST" enctype="multipart/form-data">'. 
    340      '<div>'.form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
    341      $core->formNonce().'</div>'. 
     340     form::hidden(array('MAX_FILE_SIZE'),DC_MAX_UPLOAD_SIZE). 
     341     $core->formNonce(). 
    342342     '<div class="fileupload-ctrl"><div class="files"></div></div>'; 
    343343 
     
    369369 
    370370     echo 
    371      '<div>'.form::hidden(array('d'),$d).'</div>'. 
     371     form::hidden(array('d'),$d). 
    372372     '</fieldset>'. 
    373373     '</form>'. 
     
    428428     $class = 'media-item media-col-'.($i%2); 
    429429      
     430     $alt = (!$f->d ? sprintf(__('Media details of %s'),$fname) :  
     431          sprintf(__('Go to %s folder'),($fname == '..' ? __('parent') : $fname))); 
    430432     $res = 
    431433     '<div class="'.$class.'"><a class="media-icon media-link" href="'.$link.'">'. 
    432      '<img src="'.$f->media_icon.'" alt="" /></a>'. 
     434     '<img src="'.$f->media_icon.'" alt="'.$alt.'" /></a>'. 
    433435     '<ul>'. 
    434436     '<li><a class="media-link" href="'.$link.'">'.$fname.'</a></li>'; 
  • admin/plugins.php

    r1182 r1238  
    387387echo '</div>'; 
    388388 
     389if ($core->plugins->moduleExists('daInstaller')) { 
     390     echo '<p><a href="plugin.php?p=daInstaller" class="multi-part">'.__('DotAddict.org Installer').'</a></p>'; 
     391} 
     392 
     393 
    389394# --BEHAVIOR-- pluginsToolsTabs 
    390395$core->callBehavior('pluginsToolsTabs',$core); 
  • admin/post.php

    r1179 r1215  
    420420          '/'.$post->post_url); 
    421421          echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a> '; 
    422      } 
     422     } else { 
     423          echo 
     424          '<a id="post-cancel" href="index.php" class="button" accesskey="c">'.__('Cancel').' (c)</a>'; 
     425     } 
     426 
    423427     echo 
    424428     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). 
  • admin/style/jsUpload/style.css

    r1203 r1209  
    3232     color: #000; 
    3333     background: #F5F5F5; 
     34     background: -webkit-gradient(linear, left top, left bottom, from(#DFDFDF), to(#F5F5F5)); 
    3435     background: -moz-linear-gradient(center top , #F5F5F5, #DFDFDF) repeat scroll 0 0 transparent; 
    3536     border: 1px solid #CCCCCC; 
     
    4546.enhanced_uploader .disabled, .enhanced_uploader .disabled:hover { 
    4647     color: #666; 
    47      background: #dfdfdf; 
     48     background: #DFDFDF; 
     49     border: 1px solid #CCCCCC; 
    4850} 
    4951 
  • admin/update.php

    r1179 r1231  
    2727 
    2828$updater = new dcUpdate(DC_UPDATE_URL,'dotclear',DC_UPDATE_VERSION,DC_TPL_CACHE.'/versions'); 
    29 $new_v = $updater->check(DC_VERSION); 
     29$new_v = $updater->check(DC_VERSION, !empty($_GET['nocache'])); 
    3030$zip_file = $new_v ? DC_BACKUP_PATH.'/'.basename($updater->getFileURL()) : ''; 
    3131$version_info = $new_v ? $updater->getInfoURL() : ''; 
     
    173173if (!$core->error->flag()) { 
    174174     echo '<h2>'.__('Dotclear update').'</h2>'; 
     175      
     176     if (!empty($_GET['nocache'])) { 
     177          dcPage::message(__('Manual checking of update done successfully.')); 
     178     } 
    175179} 
    176180 
     
    180184     if (empty($new_v)) 
    181185     { 
    182           echo '<p><strong>'.__('No newer Dotclear version available.').'</strong></p>'; 
     186          echo '<p><strong>'.__('No newer Dotclear version available.').'</strong></p>'. 
     187          '<form action="'.$p_url.'" method="get">'. 
     188          '<p><input type="hidden" name="nocache" value="1" />'. 
     189          '<input type="submit" value="'.__('Force checking update Dotclear').'" /></p>'. 
     190          '</form>'; 
    183191     } 
    184192     else 
  • admin/users.php

    r1179 r1237  
    106106      
    107107     echo  
    108      '<h2 class="post-title">'.__('Users').'</h2>'. 
     108     '<h2 class="page-title">'.__('Users').'</h2>'. 
    109109     '<p class="top-add"><strong><a class="button add" href="user.php">'.__('Create a new user').'</a></strong></p>'; 
    110110      
  • inc/admin/lib.dc.page.php

    r1188 r1256  
    476476          self::jsVar('dotclear.msg.confirm_change_post_format', 
    477477               __('You have unsaved changes. Switch post format will loose these changes. Proceed anyway?')). 
     478          self::jsVar('dotclear.msg.confirm_change_post_format_noconvert', 
     479               __("Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?")). 
    478480          self::jsVar('dotclear.msg.load_enhanced_uploader', 
    479481               __('Loading enhanced uploader, please wait.')). 
  • inc/core/class.dc.blog.php

    r1179 r1262  
    203203     @param    ids       <b>mixed</b>        Comment(s) ID(s) 
    204204     @param    del       <b>boolean</b>      If comment is delete, set this to true 
    205      */ 
    206      public function triggerComments($ids,$del=false) 
     205     @param    affected_posts      <b>mixed</b>        Posts(s) ID(s) 
     206     */ 
     207     public function triggerComments($ids, $del=false, $affected_posts=null) 
    207208     { 
    208209          $co_ids = dcUtils::cleanIds($ids); 
     210          $a_ids = dcUtils::cleanIds($affected_posts); 
     211          $a_tbs = array(); 
    209212           
    210213          # a) Retrieve posts affected by comments edition 
    211           $strReq =  
    212                'SELECT post_id, comment_trackback '. 
    213                'FROM '.$this->prefix.'comment '. 
    214                'WHERE comment_id'.$this->con->in($co_ids). 
    215                'GROUP BY post_id,comment_trackback'; 
    216            
    217           $rs = $this->con->select($strReq); 
    218            
    219           $a_ids = $a_tbs = array(); 
    220           while ($rs->fetch()) { 
    221                $a_ids[] = (integer) $rs->post_id; 
    222                $a_tbs[] = (integer) $rs->comment_trackback; 
     214          if (empty($a_ids)) { 
     215               $strReq =  
     216                    'SELECT post_id, comment_trackback '. 
     217                    'FROM '.$this->prefix.'comment '. 
     218                    'WHERE comment_id'.$this->con->in($co_ids). 
     219                    'GROUP BY post_id,comment_trackback'; 
     220                
     221               $rs = $this->con->select($strReq); 
     222                
     223               while ($rs->fetch()) { 
     224                    $a_ids[] = (integer) $rs->post_id; 
     225                    $a_tbs[] = (integer) $rs->comment_trackback; 
     226               } 
    223227          } 
    224228           
     
    255259          { 
    256260               $nb_comment = $nb_trackback = 0; 
     261               //$cur->nb_comment = $nb_comment; 
    257262               foreach($b_ids as $b_key => $b_id) 
    258263               { 
     
    505510          $this->core->callBehavior('coreBeforeCategoryCreate',$this,$cur); 
    506511           
    507           $this->categories()->addNode($cur,$parent); 
     512          $id = $this->categories()->addNode($cur,$parent); 
     513          # Update category's cursor 
     514          $rs = $this->getCategory($id); 
     515          if (!$rs->isEmpty()) { 
     516               $cur->cat_lft = $rs->cat_lft; 
     517               $cur->cat_rgt = $rs->cat_rgt; 
     518          } 
    508519           
    509520          # --BEHAVIOR-- coreAfterCategoryCreate 
     
    21812192          $co_ids = dcUtils::cleanIds($ids); 
    21822193           
    2183           if (empty($ids)) { 
     2194          if (empty($co_ids)) { 
    21842195               throw new Exception(__('No such comment ID')); 
     2196          } 
     2197           
     2198          # Retrieve posts affected by comments edition 
     2199          $affected_posts = array(); 
     2200          $strReq = 
     2201               'SELECT distinct(post_id) '. 
     2202               'FROM '.$this->prefix.'comment '. 
     2203               'WHERE comment_id'.$this->con->in($co_ids); 
     2204           
     2205          $rs = $this->con->select($strReq); 
     2206           
     2207          while ($rs->fetch()) { 
     2208               $affected_posts[] = (integer) $rs->post_id; 
    21852209          } 
    21862210           
     
    22122236           
    22132237          $this->con->execute($strReq); 
    2214           $this->triggerComments($co_ids,true); 
     2238          $this->triggerComments($co_ids, true, $affected_posts); 
    22152239          $this->triggerBlog(); 
    22162240     } 
     
    22672291           
    22682292          if ($cur->comment_site !== null && $cur->comment_site != '') { 
    2269                if (!preg_match('|^http(s?)://|',$cur->comment_site)) { 
     2293               if (!preg_match('|^http(s?)://|i',$cur->comment_site, $matches)) { 
    22702294                    $cur->comment_site = 'http://'.$cur->comment_site; 
     2295               }else{ 
     2296                    $cur->comment_site = strtolower($matches[0]).substr($cur->comment_site, strlen($matches[0])); 
    22712297               } 
    22722298          } 
  • inc/core/class.dc.update.php

    r1179 r1231  
    3232      
    3333     protected $cache_ttl = '-6 hours'; 
     34     protected $nocache_ttl = '-2 mins'; 
    3435     protected $forced_files = array(); 
    3536      
     
    5556      *  
    5657      * @param version        string    Current version to compare 
     58      * @param nocache        boolean   Force checking 
    5759      * @return string                  Latest version if available 
    5860      */ 
    59      public function check($version) 
    60      { 
    61           $this->getVersionInfo(); 
     61     public function check($version, $nocache=false) 
     62     { 
     63          $this->getVersionInfo($nocache); 
    6264          $v = $this->getVersion(); 
    6365          if ($v && version_compare($version,$v,'<')) { 
     
    6870     } 
    6971      
    70      public function getVersionInfo() 
    71      { 
     72     public function getVersionInfo($nocache=false) 
     73     { 
     74          # Check minimum time without cache (prevents from server flood) 
     75          if ($nocache && is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->nocache_ttl)) { 
     76               $nocache = false; 
     77          } 
     78           
    7279          # Check cached file 
    73           if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl)) 
     80          if (is_readable($this->cache_file) && filemtime($this->cache_file) > strtotime($this->cache_ttl) && !$nocache) 
    7481          { 
    7582               $c = @file_get_contents($this->cache_file); 
  • inc/load_plugin_file.php

    r1179 r1241  
    8686} 
    8787 
    88 http::$cache_max_age = 7200; 
     88http::$cache_max_age = (!defined('DC_CACHE_MAX_AGE') ? 604800 : DC_CACHE_MAX_AGE); 
    8989http::cache(array_merge(array($PF),get_included_files())); 
    9090 
  • inc/prepend.php

    r1179 r1233  
    123123# Constants 
    124124define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    125 define('DC_VERSION','2.5.1-dev'); 
     125define('DC_VERSION','2.5.2-dev'); 
    126126define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    127127define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • inc/public/class.dc.template.php

    r1179 r1249  
    6767          $this->addValue('BlogLanguage',array($this,'BlogLanguage')); 
    6868          $this->addValue('BlogThemeURL',array($this,'BlogThemeURL')); 
     69          $this->addValue('BlogParentThemeURL',array($this,'BlogParentThemeURL')); 
    6970          $this->addValue('BlogUpdateDate',array($this,'BlogUpdateDate')); 
    7071          $this->addValue('BlogID',array($this,'BlogID')); 
     
    839840      
    840841     /*dtd 
    841      <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Themei URL --> 
     842     <!ELEMENT tpl:BlogThemeURL - O -- Blog's current Theme URL --> 
    842843     */ 
    843844     public function BlogThemeURL($attr) 
     
    845846          $f = $this->getFilters($attr); 
    846847          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".$core->blog->settings->system->theme').'; ?>'; 
     848     } 
     849      
     850     /*dtd 
     851     <!ELEMENT tpl:BlogParentThemeURL - O -- Blog's current Theme's parent URL --> 
     852     */ 
     853     public function BlogParentThemeURL($attr) 
     854     { 
     855          $f = $this->getFilters($attr); 
     856          $parent = '$core->themes->moduleInfo($core->blog->settings->system->theme,\'parent\')'; 
     857          return '<?php echo '.sprintf($f,'$core->blog->settings->system->themes_url."/".('."$parent".' ? '."$parent".' : $core->blog->settings->system->theme)').'; ?>'; 
    847858     } 
    848859     
  • locales/en/main.po

    r1039 r1256  
    21542154msgstr "" 
    21552155 
     2156msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 
     2157msgstr "" 
     2158 
    21562159msgid "Loading enhanced uploader, please wait." 
    21572160msgstr "" 
  • locales/fr/main.po

    r1193 r1256  
    10381038#, fuzzy, php-format 
    10391039msgid "Path <strong>%s</strong> is not writable." 
    1040 msgstr "Le répertoire de cache %s n'est pas accessible en écriture." 
     1040msgstr "Le répertoire <strong>%s</strong> n'est pas accessible en écriture." 
    10411041 
    10421042#, fuzzy 
     
    11231123#, php-format 
    11241124msgid "You can change your user language in your <a href=\"%1$s\">preferences</a> or change your blog's main language in your <a href=\"%2$s\">blog settings</a>." 
    1125 msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\">paramètres de blog</a>." 
     1125msgstr "Vous pouvez changer votre langue d'utilisateur dans vos <a href=\"%1$s\">préférences</a> ou changer la langue principale de votre blog dans vos <a href=\"%2$s\">paramètres du blog</a>." 
    11261126 
    11271127msgid "Installed languages" 
     
    11921192msgid "Media manager" 
    11931193msgstr "Gestionnaire de médias" 
     1194 
     1195msgid "Go to %s folder" 
     1196msgstr "Aller au dossier %s" 
     1197 
     1198msgid "Media details of %s" 
     1199msgstr "Détails du média %s" 
    11941200 
    11951201msgid "confirm removal" 
     
    19911997msgstr "Les fichiers suivants de votre installation de Dotclear ne peuvent pas être écrits. Veuillez corriger la situation ou <a href=\"http://fr.dotclear.org/download\">mettre à jour manuellement</a>." 
    19921998 
     1999msgid "Manual checking of update done successfully." 
     2000msgstr "Vérification manuelle de mise à jour effectuée avec succès." 
     2001 
    19932002msgid "No newer Dotclear version available." 
    19942003msgstr "Aucune nouvelle version de Dotclear n'est disponible." 
    19952004 
     2005msgid "Force checking update Dotclear" 
     2006msgstr "Forcer la vérification de mise à jour de Dotclear" 
     2007 
    19962008#, php-format 
    19972009msgid "Dotclear %s is available." 
     
    21302142#, fuzzy 
    21312143msgid "Go to the content" 
    2132 msgstr "Voir ce billet sur le site" 
     2144msgstr "Aller au contenu" 
    21332145 
    21342146#, fuzzy 
    21352147msgid "Go to the menu" 
    2136 msgstr "Aller sur le site" 
     2148msgstr "Aller au menu" 
    21372149 
    21382150msgid "Go to site" 
     
    22522264msgstr "Vous avez des modifications non sauvegardées. Changer de format vous fera perdre ces modifications. Continuer ?" 
    22532265 
     2266msgid "Warning: post format change will not convert existing content. You will need to apply new format by yourself. Proceed anyway?" 
     2267msgstr "Attention : le changement de syntaxe ne transformera pas les balises des contenus déjà saisis. Pensez à les réadapter après cette opération. Confirmez-vous ce changement de syntaxe ?" 
     2268 
    22542269msgid "Loading enhanced uploader, please wait." 
    22552270msgstr "Chargement de l'interface avancée." 
     
    25002515#, fuzzy 
    25012516msgid "You are not allowed to reset categories order" 
    2502 msgstr "Vous n'êtes pas autorisé à supprimer des catégories" 
     2517msgstr "Vous n'êtes pas autorisé à réinitialiser l'ordre des catégories" 
    25032518 
    25042519msgid "Category URL must be unique." 
  • locales/fr/plugins.po

    r1200 r1226  
    11311131 
    11321132msgid "Vacuum tables" 
    1133 msgstr "Vidage des tables" 
     1133msgstr "Optimiser les tables" 
    11341134 
    11351135msgid "Counters" 
     
    11371137 
    11381138msgid "Reset comments and ping counters" 
    1139 msgstr "Remet à zéro les compteurs de commentaires et de signalements" 
     1139msgstr "Recalculer les compteurs de commentaires et de signalements" 
    11401140 
    11411141msgid "Search engine index" 
     
    11461146 
    11471147msgid "Index all posts" 
    1148 msgstr "Indexation de tous les billets" 
     1148msgstr "Indexer tous les billets" 
    11491149 
    11501150msgid "Index all comments" 
    1151 msgstr "Indexation de tous les commentaires" 
     1151msgstr "Indexer tous les commentaires" 
    11521152 
    11531153msgid "Vacuum logs" 
     
    11551155 
    11561156msgid "Delete all logs" 
    1157 msgstr "Suppression de tous les journaux" 
     1157msgstr "Supprimer tous les journaux" 
    11581158 
    11591159msgid "Empty templates cache directory" 
     
    11611161 
    11621162msgid "Empty directory" 
    1163 msgstr "Vidage du répertoire" 
     1163msgstr "Vider le répertoire" 
    11641164 
    11651165msgid "Pages" 
  • plugins/daInstaller/index.php

    r1046 r1237  
    256256'<body>'. 
    257257infoMessages(). 
    258 '<h2>'.__('DotAddict.org Installer').'</h2>'. 
     258'<h2 class="page-title">'.__('DotAddict.org Installer').'</h2>'. 
    259259'<p>'.__('Install and update your extensions live from DotAddict.org').'</p>'; 
    260260 
  • plugins/pages/page.php

    r1179 r1239  
    302302  dcPage::jsToolBar(). 
    303303  dcPage::jsModal(). 
     304  dcPage::jsMetaEditor(). 
    304305  dcPage::jsLoad('js/_post.js'). 
    305306  dcPage::jsConfirmClose('entry-form','comment-form'). 
     
    432433          '/'.$post->post_url); 
    433434          echo '<a id="post-preview" href="'.$preview_url.'" class="button" accesskey="p">'.__('Preview').' (p)'.'</a>'; 
    434      } 
    435       
     435     } else { 
     436          echo 
     437          '<a id="post-cancel" href="index.php" class="button" accesskey="c">'.__('Cancel').' (c)</a>'; 
     438     } 
     439 
    436440     echo 
    437441     ($can_delete ? '<input type="submit" class="delete" value="'.__('Delete').'" name="delete" />' : ''). 
  • plugins/tags/_admin.php

    r1179 r1239  
    2323$core->addBehavior('adminAfterPostUpdate',array('tagsBehaviors','setTags')); 
    2424 
     25$core->addBehavior('adminPageHeaders',array('tagsBehaviors','pageHeaders')); 
     26 
    2527$core->addBehavior('adminPostHeaders',array('tagsBehaviors','postHeaders')); 
    2628$core->addBehavior('adminPostsActionsHeaders',array('tagsBehaviors','postsActionsHeaders')); 
     
    99101               } 
    100102          } 
     103     } 
     104 
     105     public static function pageHeaders() 
     106     { 
     107          $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 
     108           
     109          $opts = $GLOBALS['core']->auth->getOptions(); 
     110          $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 
     111           
     112          return  
     113          '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 
     114          '<script type="text/javascript" src="index.php?pf=tags/js/page.js"></script>'. 
     115          '<script type="text/javascript">'."\n". 
     116          "//<![CDATA[\n". 
     117          "metaEditor.prototype.meta_url = 'plugin.php?p=tags&m=tag_posts&amp;tag=';\n". 
     118          "metaEditor.prototype.meta_type = '".html::escapeJS($type)."';\n". 
     119          "metaEditor.prototype.text_confirm_remove = '".html::escapeJS(__('Are you sure you want to remove this %s?'))."';\n". 
     120          "metaEditor.prototype.text_add_meta = '".html::escapeJS(__('Add a %s to this entry'))."';\n". 
     121          "metaEditor.prototype.text_choose = '".html::escapeJS(__('Choose from list'))."';\n". 
     122          "metaEditor.prototype.text_all = '".html::escapeJS(__('all'))."';\n". 
     123          "metaEditor.prototype.text_separation = '';\n". 
     124          "jsToolBar.prototype.elements.tag.title = '".html::escapeJS(__('Tag'))."';\n". 
     125          "jsToolBar.prototype.elements.tag.url = '".html::escapeJS($tag_url)."';\n". 
     126          "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 
     127          "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 
     128          "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 
     129          "\n//]]>\n". 
     130          "</script>\n". 
     131          '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 
    101132     } 
    102133      
  • plugins/widgets/_widgets_functions.php

    r1179 r1253  
    2929          ($w->title ? '<h2><label for="q">'.html::escapeHTML($w->title).'</label></h2>' : ''). 
    3030          '<form action="'.$core->blog->url.'" method="get">'. 
    31           '<fieldset>'. 
    3231          '<p><input type="text" size="10" maxlength="255" id="q" name="q" value="'.$value.'" /> '. 
    3332          '<input type="submit" class="submit" value="ok" /></p>'. 
    34           '</fieldset>'. 
    3533          '</form>'. 
    3634          ($w->content_only ? '' : '</div>'); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map