File and image selection Named in editor
Gives a face to the file and image selection in the editor
This commit is contained in:
parent
4890e9f13c
commit
91bc3e8f5a
@ -46,6 +46,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Kód',
|
||||
'codetitle' => 'Kód',
|
||||
'help' => 'BBCode Pomoc',
|
||||
'file' => 'Soubor: ',
|
||||
'image' => 'Obrázek: ',
|
||||
'selection' => '-- Výběr --',
|
||||
// currently not used
|
||||
'status' => 'Status bar',
|
||||
'statusbar' => 'Normalní mód. Stiskni <Esc> pro přepnutí módu.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Code Beispiel',
|
||||
'help' => 'BBCode Hilfe',
|
||||
'file' => 'Datei: ',
|
||||
'image' => 'Bild: ',
|
||||
'selection' => '-- Auswahl --',
|
||||
// currently not used
|
||||
'status' => 'Status bar',
|
||||
'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Κώδικας',
|
||||
'help' => 'Βοήθεια σχετικά με το BBCode',
|
||||
'file' => 'Φάκελος: ',
|
||||
'image' => 'Εικόνα: ',
|
||||
'selection' => '-- Επιλογή --',
|
||||
// currently not used
|
||||
'status' => 'Μπάρα κατάστασης',
|
||||
'statusbar' => 'Κανονική λειτουργία. Πατήστε <Esc> για εναλλαγή σε λειτουργία επεξεργασίας.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Code',
|
||||
'help' => 'BBCode Help',
|
||||
'file' => 'File: ',
|
||||
'image' => 'Image: ',
|
||||
'selection' => '-- Selection --',
|
||||
// currently not used
|
||||
'status' => 'Status bar',
|
||||
'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Código',
|
||||
'help' => 'Ayuda de BBCode',
|
||||
'file' => 'Fichero: ',
|
||||
'image' => 'Imagen: ',
|
||||
'selection' => '-- Selección --',
|
||||
// currently not used
|
||||
'status' => 'Barra de estado',
|
||||
'statusbar' => 'Modo normal. presiona <Esc> para cambiar el modo de edición.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Code',
|
||||
'help' => 'Aide BBCode',
|
||||
'file' => 'Fichier: ',
|
||||
'image' => 'Image: ',
|
||||
'selection' => '-- Sélection --',
|
||||
// currently not used
|
||||
'status' => 'barre de statut',
|
||||
'statusbar' => 'Mode Normal. Pressez <Esc> pour passer en mode édition .'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Codice',
|
||||
'codetitle' => 'Codice',
|
||||
'help' => 'Guida di BBCode',
|
||||
'file' => 'File: ',
|
||||
'image' => 'Immagine: ',
|
||||
'selection' => '-- Selezione --',
|
||||
// currently not used
|
||||
'status' => 'Barra di stato',
|
||||
'statusbar' => 'Modalità normale. Premi <Esc> per passare da una modalità all\'altra.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'プログラムコードとして領域指定',
|
||||
'help' => 'BBCode Help',
|
||||
'file' => 'ファイル: ',
|
||||
'image' => '画像: ',
|
||||
'selection' => '-- セレクション --',
|
||||
// currently not used
|
||||
'status' => 'ステータスバー',
|
||||
'statusbar' => 'ノーマルモードです。<Esc>キーで編集モードに切り替えられます。'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Code',
|
||||
'codetitle' => 'Code',
|
||||
'help' => 'BBCode Help',
|
||||
'file' => 'File: ',
|
||||
'image' => 'Beeld: ',
|
||||
'selection' => '-- Selectie --',
|
||||
// currently not used
|
||||
'status' => 'Statusbalk',
|
||||
'statusbar' => 'Normale modus. Druk <Esc> om van bewerkingsmodus te wisselen.'
|
||||
|
@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
|
||||
'code' => 'Código',
|
||||
'codetitle' => 'Código',
|
||||
'help' => 'Ajuda do BBCode',
|
||||
'file' => 'Arquivo: ',
|
||||
'image' => 'Imagem: ',
|
||||
'selection' => '-- Seleção --',
|
||||
// currently not used
|
||||
'status' => 'Barra de status',
|
||||
'statusbar' => 'Modo normal. Pressione <Esc> para mudar o modo de edição'
|
||||
|
@ -786,19 +786,21 @@ function BBCode($text) {
|
||||
*/
|
||||
function plugin_bbcode_init_toolbar() {
|
||||
global $_FP_SMARTY;
|
||||
$lang = lang_load('plugin:bbcode');
|
||||
$selection = $lang ['admin']['plugin']['bbcode']['editor']['selection'];
|
||||
// get all available images
|
||||
$indexer = new fs_filelister(IMAGES_DIR);
|
||||
$imageslist = $indexer->getList();
|
||||
// sort by name
|
||||
sort($imageslist);
|
||||
array_unshift($imageslist, '--');
|
||||
array_unshift($imageslist, $selection);
|
||||
$_FP_SMARTY->assign('images_list', $imageslist);
|
||||
// get all available attachements
|
||||
$indexer = new fs_filelister(ATTACHS_DIR);
|
||||
$attachslist = $indexer->getList();
|
||||
// sort by name
|
||||
sort($attachslist);
|
||||
array_unshift($attachslist, '--');
|
||||
array_unshift($attachslist, $selection);
|
||||
$_FP_SMARTY->assign('attachs_list', $attachslist);
|
||||
|
||||
echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar');
|
||||
|
@ -28,8 +28,8 @@
|
||||
|
||||
</p>
|
||||
<p>
|
||||
{html_options name=attachselect values=$attachs_list output=$attachs_list onchange="insAttach(this.form.attachselect.value)"}
|
||||
{html_options name=imageselect values=$images_list output=$images_list onchange="insImage(this.form.imageselect.value)"}
|
||||
{$lang.admin.plugin.bbcode.editor.file}{html_options name=attachselect values=$attachs_list output=$attachs_list onchange="insAttach(this.form.attachselect.value)"}
|
||||
{$lang.admin.plugin.bbcode.editor.image}{html_options name=imageselect values=$images_list output=$images_list onchange="insImage(this.form.imageselect.value)"}
|
||||
</p>
|
||||
</fieldset>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user