Dotclear


Ignore:
Files:
2 added
13 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r2801 r2896  
    6767     find ./$(DIST)/ -type d -name '.git' | xargs -r rm -rf 
    6868     find ./$(DIST)/ -type f -name '.*ignore' | xargs -r rm -rf 
     69     find ./$(DIST)/ -type f -name '.flow' | xargs -r rm -rf 
    6970 
    7071     ## Create digest 
  • admin/preferences.php

    r2853 r2899  
    352352); 
    353353 
    354 if (!empty($_GET['upd'])) { 
    355      dcPage::success(__('Personal information has been successfully updated.')); 
    356 } 
    357 if (!empty($_GET['updated'])) { 
    358      dcPage::success(__('Personal options has been successfully updated.')); 
    359 } 
    360 if (!empty($_GET['db-updated'])) { 
    361      dcPage::success(__('Dashboard options has been successfully updated.')); 
    362 } 
    363 if (!empty($_GET['append'])) { 
    364      dcPage::success(__('Favorites have been successfully added.')); 
    365 } 
    366 if (!empty($_GET['neworder'])) { 
    367      dcPage::success(__('Favorites have been successfully updated.')); 
    368 } 
    369 if (!empty($_GET['removed'])) { 
    370      dcPage::success(__('Favorites have been successfully removed.')); 
    371 } 
    372 if (!empty($_GET['replaced'])) { 
    373      dcPage::success(__('Default favorites have been successfully updated.')); 
    374 } 
    375  
    376354# User profile 
    377355echo '<div class="multi-part" id="user-profile" title="'.__('My profile').'">'; 
  • inc/core/class.dc.modules.php

    r2708 r2918  
    114114          uasort($this->modules,array($this,'sortModules')); 
    115115 
    116           # Load translation, _prepend and ns_file 
    117116          foreach ($this->modules as $id => $m) 
    118117          { 
     118               # Load translation and _prepend 
    119119               if (file_exists($m['root'].'/_prepend.php')) 
    120120               { 
     
    133133                    $this->core->adminurl->register('admin.plugin.'.$id,'plugin.php',array('p'=>$id)); 
    134134               } 
     135          } 
     136          foreach ($this->modules as $id => $m) 
     137          { 
     138               # Load ns_file 
    135139               $this->loadNsFile($id,$ns); 
    136140          } 
  • inc/prepend.php

    r2884 r2903  
    140140# Constants 
    141141define('DC_ROOT',path::real(dirname(__FILE__).'/..')); 
    142 define('DC_VERSION','2.7.3'); 
     142define('DC_VERSION','2.8-dev'); 
    143143define('DC_DIGESTS',dirname(__FILE__).'/digests'); 
    144144define('DC_L10N_ROOT',dirname(__FILE__).'/../locales'); 
  • locales/fr/plugins.po

    r2922 r2930  
    18841884msgstr "Aucun item de menu pour l'instant." 
    18851885 
     1886msgid "Item description" 
     1887msgstr "Description des items de menu" 
     1888 
     1889msgid "Displayed in link" 
     1890msgstr "Affichée dans le lien" 
     1891 
     1892msgid "Used as link title" 
     1893msgstr "Utilisée comme titre du lien" 
     1894 
     1895msgid "Displayed in link and used as title" 
     1896msgstr "Affichée dans le lien et utilisée comme titre" 
     1897 
     1898msgid "Not displayed nor used" 
     1899msgstr "Ignorée" 
     1900 
    18861901msgid "Add tags" 
    18871902msgstr "Ajouter des mots-clés" 
  • plugins/simpleMenu/_public.php

    r2912 r2928  
    3131          $description = isset($attr['description']) ? trim($attr['description']) : ''; 
    3232 
    33           if (!preg_match('#^(title|span)$#',$description)) { 
     33          if (!preg_match('#^(title|span|both|none)$#',$description)) { 
    3434               $description = ''; 
    3535          } 
     
    4747          global $core, $_ctx; 
    4848 
     49          $descr_type = array(0 => 'span',1 => 'title',2 => 'both',3 => 'none'); 
     50 
    4951          if (!(boolean) $core->blog->settings->system->simpleMenu_active) 
    5052               return; 
     
    5860          } 
    5961 
    60           $menu = tplSimpleMenu::displayMenu('','','title'); 
     62          $description = 'title'; 
     63          if (isset($descr_type[$w->description])) { 
     64               $description = $descr_type[$w->description]; 
     65          } 
     66          $menu = tplSimpleMenu::displayMenu('','',$description); 
    6167          if ($menu == '') { 
    6268               return; 
     
    107113                    $title = $span = ''; 
    108114                    if ($m['descr']) { 
    109                          if ($description == 'title') { 
     115                         if ($description == 'title' || $description == 'both') { 
    110116                              $title = ' title="'.html::escapeHTML(__($m['descr'])).'"'; 
    111                          } else { 
     117                         } 
     118                         if ($description == 'span' || $description == 'both') { 
    112119                              $span = ' <span>'.html::escapeHTML(__($m['descr'])).'</span>'; 
    113120                         } 
  • plugins/simpleMenu/_widgets.php

    r2778 r2928  
    2020          $w->create('simplemenu',__('Simple menu'),array('tplSimpleMenu','simpleMenuWidget'),null,'List of simple menu items'); 
    2121          $w->simplemenu->setting('title',__('Title (optional)').' :',__('Menu')); 
     22          $w->simplemenu->setting('description',__('Item description'),0,'combo', 
     23               array( 
     24                    __('Displayed in link') => 0,                     // span 
     25                    __('Used as link title') => 1,                         // title 
     26                    __('Displayed in link and used as title') => 2,   // both 
     27                    __('Not displayed nor used') => 3                 // none 
     28                    ) 
     29               ); 
    2230          $w->simplemenu->setting('homeonly',__('Display on:'),0,'combo', 
    2331               array( 
     
    2634                    __('Except on home page') => 2 
    2735                    ) 
    28           ); 
     36               ); 
    2937          $w->simplemenu->setting('content_only',__('Content only'),0,'check'); 
    3038          $w->simplemenu->setting('class',__('CSS class:'),''); 
  • plugins/tags/_admin.php

    r2849 r2924  
    1010# 
    1111# -- END LICENSE BLOCK ----------------------------------------- 
     12 
    1213if (!defined('DC_CONTEXT_ADMIN')) { return; } 
    1314 
     
    3637$core->addBehavior('adminBeforeUserUpdate',array('tagsBehaviors','setTagListFormat')); 
    3738 
    38 $core->addBehavior('coreInitWikiPost',array('tagsBehaviors','coreInitWikiPost')); 
    39  
    4039$core->addBehavior('adminDashboardFavorites',array('tagsBehaviors','dashboardFavorites')); 
    4140 
    4241$core->addBehavior('adminPageHelpBlock', array('tagsBehaviors', 'adminPageHelpBlock')); 
    4342 
     43$core->addBehavior('adminPostEditor', array('tagsBehaviors','adminPostEditor')); 
    4444$core->addBehavior('ckeditorExtraPlugins', array('tagsBehaviors', 'ckeditorExtraPlugins')); 
    45  
    46 # BEHAVIORS 
    47 class tagsBehaviors 
    48 { 
    49     public static function ckeditorExtraPlugins(ArrayObject $extraPlugins, $context) 
    50     { 
    51         global $core; 
    52  
    53         if ($context!='post') { 
    54             return; 
    55         } 
    56         $extraPlugins[] = array( 
    57             'name' => 'dctags', 
    58             'button' => 'dcTags', 
    59             'url' => DC_ADMIN_URL.'index.php?pf=tags/js/ckeditor-tags-plugin.js' 
    60         ); 
    61     } 
    62  
    63      public static function adminPageHelpBlock($blocks) 
    64      { 
    65           $found = false; 
    66           foreach($blocks as $block) { 
    67                if ($block == 'core_post') { 
    68                     $found = true; 
    69                     break; 
    70                } 
    71           } 
    72           if (!$found) { 
    73                return null; 
    74           } 
    75           $blocks[] = 'tag_post'; 
    76      } 
    77  
    78      public static function dashboardFavorites($core,$favs) 
    79      { 
    80           $favs->register('tags', array( 
    81                'title' => __('Tags'), 
    82                'url' => $core->adminurl->get('admin.plugin.tags',array('m' => 'tags')), 
    83                'small-icon' => dcPage::getPF('tags/icon.png'), 
    84                'large-icon' => dcPage::getPF('tags/icon-big.png'), 
    85                'permissions' => 'usage,contentadmin' 
    86           )); 
    87      } 
    88  
    89      public static function coreInitWikiPost($wiki2xhtml) 
    90      { 
    91           $wiki2xhtml->registerFunction('url:tag',array('tagsBehaviors','wiki2xhtmlTag')); 
    92      } 
    93  
    94      public static function wiki2xhtmlTag($url,$content) 
    95      { 
    96           $url = substr($url,4); 
    97           if (strpos($content,'tag:') === 0) { 
    98                $content = substr($content,4); 
    99           } 
    100  
    101  
    102           $tag_url = html::stripHostURL($GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag')); 
    103           $res['url'] = $tag_url.'/'.rawurlencode(dcMeta::sanitizeMetaID($url)); 
    104           $res['content'] = $content; 
    105  
    106           return $res; 
    107      } 
    108  
    109      public static function tagsField($main,$sidebar,$post) 
    110      { 
    111           $meta =& $GLOBALS['core']->meta; 
    112  
    113           if (!empty($_POST['post_tags'])) { 
    114                $value = $_POST['post_tags']; 
    115           } else { 
    116                $value = ($post) ? $meta->getMetaStr($post->post_meta,'tag') : ''; 
    117           } 
    118           $sidebar['metas-box']['items']['post_tags']= 
    119           '<h5><label class="s-tags" for="post_tags">'.__('Tags').'</label></h5>'. 
    120           '<div class="p s-tags" id="tags-edit">'.form::textarea('post_tags',20,3,$value,'maximal').'</div>'; 
    121      } 
    122  
    123      public static function setTags($cur,$post_id) 
    124      { 
    125           $post_id = (integer) $post_id; 
    126  
    127           if (isset($_POST['post_tags'])) { 
    128                $tags = $_POST['post_tags']; 
    129                $meta =& $GLOBALS['core']->meta; 
    130                $meta->delPostMeta($post_id,'tag'); 
    131  
    132                foreach ($meta->splitMetaValues($tags) as $tag) { 
    133                     $meta->setPostMeta($post_id,'tag',$tag); 
    134                } 
    135           } 
    136      } 
    137  
    138  
    139      public static function adminPostsActionsPage($core,$ap) 
    140      { 
    141           $ap->addAction( 
    142                array(__('Tags') => array(__('Add tags') => 'tags')), 
    143                array('tagsBehaviors','adminAddTags') 
    144           ); 
    145  
    146           if ($core->auth->check('delete,contentadmin',$core->blog->id)) { 
    147                $ap->addAction( 
    148                     array(__('Tags') => array(__('Remove tags') => 'tags_remove')), 
    149                     array('tagsBehaviors','adminRemoveTags') 
    150                ); 
    151           } 
    152      } 
    153  
    154      public static function adminAddTags($core, dcPostsActionsPage $ap, $post) 
    155      { 
    156           if (!empty($post['new_tags'])) 
    157           { 
    158                $meta =& $core->meta; 
    159                $tags = $meta->splitMetaValues($post['new_tags']); 
    160                $posts = $ap->getRS(); 
    161                while ($posts->fetch()) 
    162                { 
    163                     # Get tags for post 
    164                     $post_meta = $meta->getMetadata(array( 
    165                          'meta_type' => 'tag', 
    166                          'post_id' => $posts->post_id)); 
    167                     $pm = array(); 
    168                     while ($post_meta->fetch()) { 
    169                          $pm[] = $post_meta->meta_id; 
    170                     } 
    171                     foreach ($tags as $t) { 
    172                          if (!in_array($t,$pm)) { 
    173                               $meta->setPostMeta($posts->post_id,'tag',$t); 
    174                          } 
    175                     } 
    176                } 
    177                dcPage::addSuccessNotice(sprintf( 
    178                     __( 
    179                          'Tag has been successfully added to selected entries', 
    180                          'Tags have been successfully added to selected entries', 
    181                          count($tags)) 
    182                     ) 
    183                ); 
    184                $ap->redirect(true); 
    185           } 
    186           else 
    187           { 
    188                $tag_url = $core->blog->url.$core->url->getURLFor('tag'); 
    189  
    190                $opts = $core->auth->getOptions(); 
    191                $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 
    192  
    193  
    194                $ap->beginPage( 
    195                     dcPage::breadcrumb( 
    196                          array( 
    197                               html::escapeHTML($core->blog->name) => '', 
    198                               __('Entries') => $ap->getRedirection(true), 
    199                               __('Add tags to this selection') => '' 
    200                     )), 
    201                     dcPage::jsLoad('js/jquery/jquery.autocomplete.js'). 
    202                     dcPage::jsMetaEditor(). 
    203                     '<script type="text/javascript">'."\n". 
    204                     "//<![CDATA[\n". 
    205                     "var editor_tags_options = {\n". 
    206                          "meta_url : 'plugin.php?p=tags&m=tag_posts&amp;tag=',\n". 
    207                          "list_type : '".html::escapeJS($type)."',\n". 
    208                          "text_confirm_remove : '".html::escapeJS(__('Are you sure you want to remove this tag?'))."',\n". 
    209                          "text_add_meta : '".html::escapeJS(__('Add a tag to this entry'))."',\n". 
    210                          "text_choose : '".html::escapeJS(__('Choose from list'))."',\n". 
    211                          "text_all : '".html::escapeJS(__('all'))."',\n". 
    212                          "text_separation : '".html::escapeJS(__('Enter tags separated by coma'))."',\n". 
    213                     "};\n". 
    214                     "\n//]]>\n". 
    215                     "</script>\n". 
    216                     '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 
    217                     '<script type="text/javascript" src="index.php?pf=tags/js/posts_actions.js"></script>'. 
    218                     '<script type="text/javascript">'."\n". 
    219                     "//<![CDATA[\n". 
    220                     "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 
    221                     "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 
    222                     "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 
    223                     "\n//]]>\n". 
    224                     "</script>\n". 
    225                     '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />' 
    226                ); 
    227                echo 
    228                     '<form action="'.$ap->getURI().'" method="post">'. 
    229                     $ap->getCheckboxes(). 
    230                     '<div><label for="new_tags" class="area">'.__('Tags to add:').'</label> '. 
    231                     form::textarea('new_tags',60,3). 
    232                     '</div>'. 
    233                     $core->formNonce().$ap->getHiddenFields(). 
    234                     form::hidden(array('action'),'tags'). 
    235                     '<p><input type="submit" value="'.__('Save').'" '. 
    236                     'name="save_tags" /></p>'. 
    237                     '</form>'; 
    238                $ap->endPage(); 
    239           } 
    240      } 
    241      public static function adminRemoveTags($core, dcPostsActionsPage $ap, $post) 
    242      { 
    243           if (!empty($post['meta_id']) && 
    244                $core->auth->check('delete,contentadmin',$core->blog->id)) 
    245           { 
    246                $meta =& $core->meta; 
    247                $posts = $ap->getRS(); 
    248                while ($posts->fetch()) 
    249                { 
    250                     foreach ($_POST['meta_id'] as $v) 
    251                     { 
    252                          $meta->delPostMeta($posts->post_id,'tag',$v); 
    253                     } 
    254                } 
    255                dcPage::addSuccessNotice(sprintf( 
    256                     __( 
    257                          'Tag has been successfully removed from selected entries', 
    258                          'Tags have been successfully removed from selected entries', 
    259                          count($_POST['meta_id'])) 
    260                     ) 
    261                ); 
    262                $ap->redirect(true); 
    263           } 
    264           else 
    265           { 
    266                $meta =& $core->meta; 
    267                $tags = array(); 
    268  
    269                foreach ($ap->getIDS() as $id) { 
    270                     $post_tags = $meta->getMetadata(array( 
    271                          'meta_type' => 'tag', 
    272                          'post_id' => (integer) $id))->toStatic()->rows(); 
    273                     foreach ($post_tags as $v) { 
    274                          if (isset($tags[$v['meta_id']])) { 
    275                               $tags[$v['meta_id']]++; 
    276                          } else { 
    277                               $tags[$v['meta_id']] = 1; 
    278                          } 
    279                     } 
    280                } 
    281                if (empty($tags)) { 
    282                     throw new Exception(__('No tags for selected entries')); 
    283                } 
    284                $ap->beginPage( 
    285                     dcPage::breadcrumb( 
    286                               array( 
    287                                    html::escapeHTML($core->blog->name) => '', 
    288                                    __('Entries') => 'posts.php', 
    289                                    __('Remove selected tags from this selection') => '' 
    290                ))); 
    291                $posts_count = count($_POST['entries']); 
    292  
    293                echo 
    294                '<form action="'.$ap->getURI().'" method="post">'. 
    295                $ap->getCheckboxes(). 
    296                '<div><p>'.__('Following tags have been found in selected entries:').'</p>'; 
    297  
    298                foreach ($tags as $k => $n) { 
    299                     $label = '<label class="classic">%s %s</label>'; 
    300                     if ($posts_count == $n) { 
    301                          $label = sprintf($label,'%s','<strong>%s</strong>'); 
    302                     } 
    303                     echo '<p>'.sprintf($label, 
    304                               form::checkbox(array('meta_id[]'),html::escapeHTML($k)), 
    305                               html::escapeHTML($k)). 
    306                          '</p>'; 
    307                } 
    308  
    309                echo 
    310                '<p><input type="submit" value="'.__('ok').'" />'. 
    311  
    312                $core->formNonce().$ap->getHiddenFields(). 
    313                form::hidden(array('action'),'tags_remove'). 
    314                '</p></div></form>'; 
    315                $ap->endPage(); 
    316           } 
    317  
    318      } 
    319  
    320      public static function postHeaders() 
    321      { 
    322           $tag_url = $GLOBALS['core']->blog->url.$GLOBALS['core']->url->getURLFor('tag'); 
    323  
    324           $opts = $GLOBALS['core']->auth->getOptions(); 
    325           $type = isset($opts['tag_list_format']) ? $opts['tag_list_format'] : 'more'; 
    326  
    327           return 
    328           '<script type="text/javascript">'."\n". 
    329           "//<![CDATA[\n". 
    330           "var editor_tags_options = {\n". 
    331                "meta_url : 'plugin.php?p=tags&m=tag_posts&amp;tag=',\n". 
    332                "list_type : '".html::escapeJS($type)."',\n". 
    333                "text_confirm_remove : '".html::escapeJS(__('Are you sure you want to remove this tag?'))."',\n". 
    334                "text_add_meta : '".html::escapeJS(__('Add a tag to this entry'))."',\n". 
    335                "text_choose : '".html::escapeJS(__('Choose from list'))."',\n". 
    336                "text_all : '".html::escapeJS(__('all'))."',\n". 
    337                "text_separation : '".html::escapeJS(__('Enter tags separated by coma'))."',\n". 
    338           "};\n". 
    339           "\n//]]>\n". 
    340           "</script>\n". 
    341           '<script type="text/javascript" src="index.php?pf=tags/js/jquery.autocomplete.js"></script>'. 
    342           '<script type="text/javascript" src="index.php?pf=tags/js/post.js"></script>'. 
    343           '<script type="text/javascript">'."\n". 
    344           "//<![CDATA[\n". 
    345           "jsToolBar.prototype.elements.tag.title = '".html::escapeJS(__('Tag'))."';\n". 
    346           "jsToolBar.prototype.elements.tag.url = '".html::escapeJS($tag_url)."';\n". 
    347           "dotclear.msg.tags_autocomplete = '".html::escapeJS(__('used in %e - frequency %p%'))."';\n". 
    348           "dotclear.msg.entry = '".html::escapeJS(__('entry'))."';\n". 
    349           "dotclear.msg.entries = '".html::escapeJS(__('entries'))."';\n". 
    350           "\n//]]>\n". 
    351           "</script>\n". 
    352           '<link rel="stylesheet" type="text/css" href="index.php?pf=tags/style.css" />'; 
    353      } 
    354  
    355      public static function adminUserForm($args) 
    356      { 
    357           if ($args instanceof dcCore) { 
    358                $opts = $args->auth->getOptions(); 
    359           } 
    360           elseif ($args instanceof record) { 
    361                $opts = $args->options(); 
    362           } 
    363           else { 
    364                $opts = array(); 
    365           } 
    366  
    367           $combo = array(); 
    368           $combo[__('Short')] = 'more'; 
    369           $combo[__('Extended')] = 'all'; 
    370  
    371           $value = array_key_exists('tag_list_format',$opts) ? $opts['tag_list_format'] : 'more'; 
    372  
    373           echo 
    374           '<p><label for="user_tag_list_format" class="classic">'.__('Tags list format:').'</label> '. 
    375           form::combo('user_tag_list_format',$combo,$value). 
    376           '</p>'; 
    377      } 
    378  
    379      public static function setTagListFormat($cur,$user_id = null) 
    380      { 
    381           if (!is_null($user_id)) { 
    382                $cur->user_options['tag_list_format'] = $_POST['user_tag_list_format']; 
    383           } 
    384      } 
    385 } 
  • plugins/tags/_define.php

    r2662 r2924  
    1616     /* Description*/         "Tags for posts", 
    1717     /* Author */             "Olivier Meunier", 
    18      /* Version */            '1.3', 
     18     /* Version */            '1.4', 
    1919     array( 
    2020          'permissions' =>    'usage,contentadmin', 
    21           'priority' =>       998, 
     21          'priority' =>       1001,     // Must be higher than dcLegacyEditor/dcCKEditor priority (ie 1000) 
    2222          'type'         =>        'plugin' 
    2323     ) 
  • plugins/tags/_prepend.php

    r2095 r2924  
    1010# 
    1111# -- END LICENSE BLOCK ----------------------------------------- 
     12 
    1213if (!defined('DC_RC_PATH')) { return; } 
    1314 
     
    1516$core->url->register('tags', 'tags', '^tags$', array('urlTags', 'tags')); 
    1617$core->url->register('tag_feed', 'feed/tag', '^feed/tag/(.+)$', array('urlTags', 'tagFeed')); 
     18 
     19$__autoload['tagsBehaviors'] = dirname(__FILE__).'/inc/tags.behaviors.php'; 
     20 
     21$core->addBehavior('coreInitWikiPost',array('tagsBehaviors','coreInitWikiPost')); 
  • plugins/tags/js/post.js

    r2546 r2924  
    6666 
    6767}); 
    68  
    69 // Toolbar button for tags 
    70 jsToolBar.prototype.elements.tagSpace = { 
    71      type: 'space', 
    72      format:{ 
    73           wysiwyg:true, 
    74           wiki:true, 
    75           xhtml:true 
    76      } 
    77 }; 
    78  
    79 jsToolBar.prototype.elements.tag = {type: 'button', title: 'Keyword', fn:{} }; 
    80 jsToolBar.prototype.elements.tag.context = 'post'; 
    81 jsToolBar.prototype.elements.tag.icon = 'index.php?pf=tags/img/tag-add.png'; 
    82 jsToolBar.prototype.elements.tag.fn.wiki = function() { 
    83      this.encloseSelection('','',function(str) { 
    84           if (str == '') { window.alert(dotclear.msg.no_selection); return ''; } 
    85           if (str.indexOf(',') != -1) { 
    86                return str; 
    87           } else { 
    88                window.dc_tag_editor.addMeta(str); 
    89                return '['+str+'|tag:'+str+']'; 
    90           } 
    91      }); 
    92 }; 
    93 jsToolBar.prototype.elements.tag.fn.xhtml = function() { 
    94      var url = this.elements.tag.url; 
    95      this.encloseSelection('','',function(str) { 
    96           if (str == '') { window.alert(dotclear.msg.no_selection); return ''; } 
    97           if (str.indexOf(',') != -1) { 
    98                return str; 
    99           } else { 
    100                window.dc_tag_editor.addMeta(str); 
    101                return '<a href="'+this.stripBaseURL(url+'/'+str)+'">'+str+'</a>'; 
    102           } 
    103      }); 
    104 }; 
    105 jsToolBar.prototype.elements.tag.fn.wysiwyg = function() { 
    106      var t = this.getSelectedText(); 
    107  
    108      if (t == '') { window.alert(dotclear.msg.no_selection); return; } 
    109      if (t.indexOf(',') != -1) { return; } 
    110  
    111      var n = this.getSelectedNode(); 
    112      var a = document.createElement('a'); 
    113      a.href = this.stripBaseURL(this.elements.tag.url+'/'+t); 
    114      a.appendChild(n); 
    115      this.insertNode(a); 
    116      window.dc_tag_editor.addMeta(t); 
    117 }; 
  • plugins/themeEditor/_define.php

    r2663 r2890  
    1616     /* Description*/         "Theme Editor", 
    1717     /* Author */             "Olivier Meunier", 
    18      /* Version */            '1.1', 
     18     /* Version */            '1.2', 
    1919     array( 
    2020          'type'         =>        'plugin' 
  • plugins/themeEditor/class.themeEditor.php

    r2862 r2890  
    2020     protected $tplset_theme; 
    2121 
     22     protected $parent_name; 
    2223     protected $tplset_name; 
    2324 
     
    3839               if ($parent_theme) { 
    3940                    $this->parent_theme = path::real($this->core->blog->themes_path.'/'.$parent_theme); 
     41                    $this->parent_name = $parent_theme; 
    4042               } 
    4143               $tplset = $this->core->themes->moduleInfo($this->core->blog->settings->system->theme,'tplset'); 
     
    7880               } 
    7981               $list .= ($list_theme != '' ? sprintf('<li class="group-file">'.__('From theme:').'<ul>%s</ul></li>',$list_theme) : ''); 
    80                $list .= ($list_parent != '' ? sprintf('<li class="group-file">'.__('From parent:').'<ul>%s</ul></li>',$list_parent) : ''); 
    81                $list .= ($list_tpl != '' ? sprintf('<li class="group-file">'.__('From template set:').'<ul>%s</ul></li>',$list_tpl) : ''); 
     82               $list .= ($list_parent != '' ? sprintf('<li class="group-file">'.__('From parent:').' %s<ul>%s</ul></li>', 
     83                    $this->parent_name,$list_parent) : ''); 
     84               $list .= ($list_tpl != '' ? sprintf('<li class="group-file">'.__('From template set:').' %s<ul>%s</ul></li>', 
     85                    $this->tplset_name,$list_tpl) : ''); 
    8286          } else { 
    8387               foreach ($files as $k => $v) 
Note: See TracChangeset for help on using the changeset viewer.

Sites map