Changeset 2647:bd67628faadf
- Timestamp:
- 02/05/14 15:53:27 (12 years ago)
- Branch:
- default
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
locales/en/plugins.po
r2516 r2647 1965 1965 msgid "Drag widgets here to remove." 1966 1966 msgstr "" 1967 1968 msgid "From theme:" 1969 msgstr "" 1970 1971 msgid "From parent:" 1972 msgstr "" 1973 1974 msgid "From template set:" 1975 msgstr "" -
locales/fr/plugins.po
r2546 r2647 1983 1983 msgstr "Glisser les widgets ici pour les retirer du volet." 1984 1984 1985 msgid "From theme:" 1986 msgstr "Du thème :" 1987 1988 msgid "From parent:" 1989 msgstr "Du thème parent :" 1990 1991 msgid "From template set:" 1992 msgstr "Du jeu de template :" 1993 1985 1994 #~ msgid "RSS or Atom feed subscription links" 1986 1995 #~ msgstr "Liens d'abonnement aux flux RSS ou Atom" -
plugins/themeEditor/class.themeEditor.php
r2607 r2647 47 47 } 48 48 49 public function filesList($type,$item='%1$s' )49 public function filesList($type,$item='%1$s',$split=true) 50 50 { 51 51 $files = $this->getFilesFromType($type); … … 56 56 57 57 $list = ''; 58 foreach ($files as $k => $v) 59 { 60 if (strpos($v,$this->user_theme) === 0) { 61 $li = sprintf('<li class="default-file">%s</li>',$item); 62 } elseif ($this->parent_theme && strpos($v,$this->parent_theme) === 0) { 63 $li = sprintf('<li class="parent-file">%s</li>',$item); 64 } else { 65 $li = sprintf('<li>%s</li>',$item); 66 } 67 $list .= sprintf($li,$k,html::escapeHTML($k)); 58 if ($split) { 59 // First part for current theme 60 $list_theme = ''; 61 foreach ($files as $k => $v) 62 { 63 if (strpos($v,$this->user_theme) === 0) { 64 $li = sprintf('<li class="default-file">%s</li>',$item); 65 $list_theme .= sprintf($li,$k,html::escapeHTML($k)); 66 } 67 } 68 // Second part for parent theme if any 69 $list_parent = ''; 70 foreach ($files as $k => $v) 71 { 72 if ((strpos($v,$this->user_theme) !== 0) && ($this->parent_theme && strpos($v,$this->parent_theme) === 0)) { 73 $li = sprintf('<li class="parent-file">%s</li>',$item); 74 $list_parent .= sprintf($li,$k,html::escapeHTML($k)); 75 } 76 } 77 // Third part for template set 78 $list_tpl = ''; 79 foreach ($files as $k => $v) 80 { 81 if ((strpos($v,$this->user_theme) !== 0) && ($this->parent_theme && strpos($v,$this->parent_theme) !== 0)) { 82 $li = sprintf('<li>%s</li>',$item); 83 $list_tpl .= sprintf($li,$k,html::escapeHTML($k)); 84 } 85 } 86 $list .= ($list_theme != '' ? sprintf('<li class="group-file">'.__('From theme:').'<ul>%s</ul></li>',$list_theme) : ''); 87 $list .= ($list_parent != '' ? sprintf('<li class="group-file">'.__('From parent:').'<ul>%s</ul></li>',$list_parent) : ''); 88 $list .= ($list_tpl != '' ? sprintf('<li class="group-file">'.__('From template set:').'<ul>%s</ul></li>',$list_tpl) : ''); 89 } else { 90 foreach ($files as $k => $v) 91 { 92 if (strpos($v,$this->user_theme) === 0) { 93 $li = sprintf('<li class="default-file">%s</li>',$item); 94 } elseif ($this->parent_theme && strpos($v,$this->parent_theme) === 0) { 95 $li = sprintf('<li class="parent-file">%s</li>',$item); 96 } else { 97 $li = sprintf('<li>%s</li>',$item); 98 } 99 $list .= sprintf($li,$k,html::escapeHTML($k)); 100 } 68 101 } 69 102 -
plugins/themeEditor/locales/en/help/help.html
r2534 r2647 17 17 </ul> 18 18 19 <p>Each section of files may have three sub-sections :</p> 20 <ul> 21 <li>Files belonging to the current theme</li> 22 <li>Files belonging to the parent theme</li> 23 <li>Files belonging to the template set</li> 24 </ul> 25 19 26 <p>The bullet in front of each file can have three different colors:</p> 20 27 <ul> 21 <li><strong>Black</strong> means it is in the <code>default</code> theme.</li> 22 <li><strong>Yellow </strong> means it belongs to the current theme.</li> 28 <li><strong>Yellow </strong> means it belongs to the current theme.</li> 23 29 <li><strong>Red </strong> means it belongs to a parent theme.</li> 30 <li><strong>Black</strong> means it is in the template set.</li> 24 31 </ul> 32 33 <p>The files belonging to the current theme are also in bold.</p> 25 34 26 35 <h4>File mofidication</h4> … … 29 38 <p>Be careful: Modifications are applied immediately after saving.</p> 30 39 31 <p>If you modify a file that comes from the <code>default</code>theme, the file will be copied into your current theme.</p>40 <p>If you modify a file that comes from the template set or the parent theme, the file will be copied into your current theme.</p> 32 41 33 42 <h4>Syntax highlighting</h4> -
plugins/themeEditor/locales/fr/help/help.html
r2433 r2647 13 13 <li>fichiers du thème : les templates,</li> 14 14 <li>fichiers CSS : les feuilles de style,</li> 15 <li>fichiers JavaScript .</li>15 <li>fichiers JavaScript,</li> 16 16 <li>fichiers de traduction.</li> 17 </ul> 18 19 <p>Chaque groupe de fichiers peut contenir trois sous-groupes :</p> 20 <ul> 21 <li>fichiers du thème actif,</li> 22 <li>fichiers du thème parent,</li> 23 <li>fichiers du jeu de "template".</li> 17 24 </ul> 18 25 19 26 <p>A la gauche de chaque fichier, chaque puce se voit attribuée une couleur :</p> 20 27 <ul> 21 <li><b> noire</b> indique qu'il se trouve dans le thème "default".</li>22 <li><b> jaune</b> indique qu'il fait partie du thème actif.</li>23 <li><b> rouge</b> indique qu'il fait partie d'un thème parent.</li>28 <li><b>jaune</b> indique qu'il fait partie du thème actif.</li> 29 <li><b>rouge</b> indique qu'il fait partie du thème parent.</li> 30 <li><b>noire</b> indique qu'il se trouve dans le jeu de "template".</li> 24 31 </ul> 32 33 <p>Les fichiers du thème actif sont également repérés en gras.</p> 25 34 26 35 <h4>Modification des fichiers</h4> … … 31 40 <p>Les modifications sont immédiatement appliquées lors de la sauvegarde, soyez vigilants.</p> 32 41 33 <p>A noter que si vous modifiez un fichier se trouvant dans le thème "default", celui-ci sera copié dans votre thème en cours d'utilisation.</p>42 <p>A noter que si vous modifiez un fichier se trouvant dans le jeu de "template" ou dans le thème parent, celui-ci sera copié dans votre thème en cours d'utilisation.</p> 34 43 35 44 <h4>Coloration syntaxique</h4> -
plugins/themeEditor/style.css
r2566 r2647 21 21 #file-chooser li.default-file { 22 22 color: #f90; 23 font-weight: bold; 23 24 } 24 25 #file-chooser li.parent-file { 25 26 color:#c00; 26 27 } 28 #file-chooser li.group-file { 29 list-style: none; 30 margin-bottom: 1em; 31 } 32 #file-chooser li.group-file ul { 33 margin-top: .5em; 34 } 27 35 textarea { 28 36 font: 1em Monaco,"Courier New",Courier,monospace;
Note: See TracChangeset
for help on using the changeset viewer.