File and image selection Named in editor

Gives a face to the file and image selection in the editor
This commit is contained in:
Fraenkiman 2023-01-28 15:48:16 +01:00
parent 4890e9f13c
commit 91bc3e8f5a
12 changed files with 36 additions and 4 deletions

View File

@ -46,6 +46,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Kód', 'code' => 'Kód',
'codetitle' => 'Kód', 'codetitle' => 'Kód',
'help' => 'BBCode Pomoc', 'help' => 'BBCode Pomoc',
'file' => 'Soubor: ',
'image' => 'Obrázek: ',
'selection' => '-- Výběr --',
// currently not used // currently not used
'status' => 'Status bar', 'status' => 'Status bar',
'statusbar' => 'Normalní mód. Stiskni <Esc> pro přepnutí módu.' 'statusbar' => 'Normalní mód. Stiskni <Esc> pro přepnutí módu.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Code Beispiel', 'codetitle' => 'Code Beispiel',
'help' => 'BBCode Hilfe', 'help' => 'BBCode Hilfe',
'file' => 'Datei: ',
'image' => 'Bild: ',
'selection' => '-- Auswahl --',
// currently not used // currently not used
'status' => 'Status bar', 'status' => 'Status bar',
'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.' 'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Κώδικας', 'codetitle' => 'Κώδικας',
'help' => 'Βοήθεια σχετικά με το BBCode', 'help' => 'Βοήθεια σχετικά με το BBCode',
'file' => 'Φάκελος: ',
'image' => 'Εικόνα: ',
'selection' => '-- Επιλογή --',
// currently not used // currently not used
'status' => 'Μπάρα κατάστασης', 'status' => 'Μπάρα κατάστασης',
'statusbar' => 'Κανονική λειτουργία. Πατήστε <Esc> για εναλλαγή σε λειτουργία επεξεργασίας.' 'statusbar' => 'Κανονική λειτουργία. Πατήστε <Esc> για εναλλαγή σε λειτουργία επεξεργασίας.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Code', 'codetitle' => 'Code',
'help' => 'BBCode Help', 'help' => 'BBCode Help',
'file' => 'File: ',
'image' => 'Image: ',
'selection' => '-- Selection --',
// currently not used // currently not used
'status' => 'Status bar', 'status' => 'Status bar',
'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.' 'statusbar' => 'Normal mode. Press <Esc> to switch editing mode.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Código', 'codetitle' => 'Código',
'help' => 'Ayuda de BBCode', 'help' => 'Ayuda de BBCode',
'file' => 'Fichero: ',
'image' => 'Imagen: ',
'selection' => '-- Selección --',
// currently not used // currently not used
'status' => 'Barra de estado', 'status' => 'Barra de estado',
'statusbar' => 'Modo normal. presiona <Esc> para cambiar el modo de edición.' 'statusbar' => 'Modo normal. presiona <Esc> para cambiar el modo de edición.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Code', 'codetitle' => 'Code',
'help' => 'Aide BBCode', 'help' => 'Aide BBCode',
'file' => 'Fichier: ',
'image' => 'Image: ',
'selection' => '-- Sélection --',
// currently not used // currently not used
'status' => 'barre de statut', 'status' => 'barre de statut',
'statusbar' => 'Mode Normal. Pressez <Esc> pour passer en mode édition .' 'statusbar' => 'Mode Normal. Pressez <Esc> pour passer en mode édition .'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Codice', 'code' => 'Codice',
'codetitle' => 'Codice', 'codetitle' => 'Codice',
'help' => 'Guida di BBCode', 'help' => 'Guida di BBCode',
'file' => 'File: ',
'image' => 'Immagine: ',
'selection' => '-- Selezione --',
// currently not used // currently not used
'status' => 'Barra di stato', 'status' => 'Barra di stato',
'statusbar' => 'Modalità normale. Premi <Esc> per passare da una modalità all\'altra.' 'statusbar' => 'Modalità normale. Premi <Esc> per passare da una modalità all\'altra.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'プログラムコードとして領域指定', 'codetitle' => 'プログラムコードとして領域指定',
'help' => 'BBCode Help', 'help' => 'BBCode Help',
'file' => 'ファイル: ',
'image' => '画像: ',
'selection' => '-- セレクション --',
// currently not used // currently not used
'status' => 'ステータスバー', 'status' => 'ステータスバー',
'statusbar' => 'ノーマルモードです。<Esc>キーで編集モードに切り替えられます。' 'statusbar' => 'ノーマルモードです。<Esc>キーで編集モードに切り替えられます。'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Code', 'code' => 'Code',
'codetitle' => 'Code', 'codetitle' => 'Code',
'help' => 'BBCode Help', 'help' => 'BBCode Help',
'file' => 'File: ',
'image' => 'Beeld: ',
'selection' => '-- Selectie --',
// currently not used // currently not used
'status' => 'Statusbalk', 'status' => 'Statusbalk',
'statusbar' => 'Normale modus. Druk <Esc> om van bewerkingsmodus te wisselen.' 'statusbar' => 'Normale modus. Druk <Esc> om van bewerkingsmodus te wisselen.'

View File

@ -47,6 +47,9 @@ $lang ['admin'] ['plugin'] ['bbcode'] = array(
'code' => 'Código', 'code' => 'Código',
'codetitle' => 'Código', 'codetitle' => 'Código',
'help' => 'Ajuda do BBCode', 'help' => 'Ajuda do BBCode',
'file' => 'Arquivo: ',
'image' => 'Imagem: ',
'selection' => '-- Seleção --',
// currently not used // currently not used
'status' => 'Barra de status', 'status' => 'Barra de status',
'statusbar' => 'Modo normal. Pressione <Esc> para mudar o modo de edição' 'statusbar' => 'Modo normal. Pressione <Esc> para mudar o modo de edição'

View File

@ -786,19 +786,21 @@ function BBCode($text) {
*/ */
function plugin_bbcode_init_toolbar() { function plugin_bbcode_init_toolbar() {
global $_FP_SMARTY; global $_FP_SMARTY;
$lang = lang_load('plugin:bbcode');
$selection = $lang ['admin']['plugin']['bbcode']['editor']['selection'];
// get all available images // get all available images
$indexer = new fs_filelister(IMAGES_DIR); $indexer = new fs_filelister(IMAGES_DIR);
$imageslist = $indexer->getList(); $imageslist = $indexer->getList();
// sort by name // sort by name
sort($imageslist); sort($imageslist);
array_unshift($imageslist, '--'); array_unshift($imageslist, $selection);
$_FP_SMARTY->assign('images_list', $imageslist); $_FP_SMARTY->assign('images_list', $imageslist);
// get all available attachements // get all available attachements
$indexer = new fs_filelister(ATTACHS_DIR); $indexer = new fs_filelister(ATTACHS_DIR);
$attachslist = $indexer->getList(); $attachslist = $indexer->getList();
// sort by name // sort by name
sort($attachslist); sort($attachslist);
array_unshift($attachslist, '--'); array_unshift($attachslist, $selection);
$_FP_SMARTY->assign('attachs_list', $attachslist); $_FP_SMARTY->assign('attachs_list', $attachslist);
echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar'); echo $_FP_SMARTY->fetch('plugin:bbcode/toolbar');

View File

@ -28,8 +28,8 @@
         
</p> </p>
<p> <p>
{html_options name=attachselect values=$attachs_list output=$attachs_list onchange="insAttach(this.form.attachselect.value)"} {$lang.admin.plugin.bbcode.editor.file}{html_options name=attachselect values=$attachs_list output=$attachs_list onchange="insAttach(this.form.attachselect.value)"}&nbsp;
{html_options name=imageselect values=$images_list output=$images_list onchange="insImage(this.form.imageselect.value)"} {$lang.admin.plugin.bbcode.editor.image}{html_options name=imageselect values=$images_list output=$images_list onchange="insImage(this.form.imageselect.value)"}
</p> </p>
</fieldset> </fieldset>