+# V 0.2.8 MediaWiki Unicode Navigation
+
+## Changed
+- MediaWiki:
+ - Korrekturen in specialMacrosToHtml(): Indexprüfung für $matches
+ - Neu: Unicode-Muster
+- PageController:
+ - Korrektur: Berechnen Vorschau nur wenn Button
+- show-col2.blade, ... + translation-col2.blade: Anzeige von "Zurück"- und "Weiter"-Icons.
+
# V 0.2.7 Pages
## Added
$rc = "<i><b data-toggle=\"tooltip\" data-placement=\"top\" title=\"$info\">$text</b></i>";
break;
case 'mark':
- $rc = '<span class="lkn-text-' . substr($matches[3], 1) . '">' . $matches[2] . '</span>';
+ $mode = count($matches) > 3 ? substr($matches[3], 1) : 'info';
+ $rc = "<span class=\"lkn-text-$mode\">$matches[2]</span>";
break;
case 'add':
$rc = '<ins class="lkn-ins">' . (count($matches) >= 4 ? ($matches[2] . $matches[3]) : $matches[2]) . '</ins>';
}
return $rc;
}, $body);
+ $body = preg_replace('/U\+(x[\dA-F]+;)/', '&#\1', $body);
return $body;
}
}
$optionsPagetype = SProperty::optionsByScope('pagetype', $page->pagetype_scope, '');
$optionsMarkup = SProperty::optionsByScope('markup', $page->markup_scope, '');
$optionsLanguage = SProperty::optionsByScope('localization', $page->language_scope, '');
- $preview = $this->asHtml($page);
- $fields = $request->btnSubmit !== 'btnPreview' ? null : ['preview' => $preview];
+ $fields = $request->btnSubmit !== 'btnPreview' ? null : ['preview' => $this->asHtml($page)];
$context = new ContextLaraKnife($request, $fields, $page);
$rc = view('page.edit', [
'context' => $context,
}
if ($text2 != null) {
$params['text2'] = $text2;
- $view = 'page.text-col2';
+ $view = 'page.translation-col2';
}
}
if ($page->previous_id != null){
"dist": {
"type": "path",
"url": "../laraknife",
- "reference": "646e4764a06caa8ed60766fd98c8ce6882479d9c"
+ "reference": "8a0789ea4dc11c715341bfeb32f23113068a3384"
},
"require-dev": {
"phpunit/phpunit": "11.0.x-dev"
@section('content')
<form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
@csrf
- <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}" prev="{{ $context->valueof('prev') }}"
+ up="{{ $context->valueof('up') }}" next="{{ $context->valueof('next') }}" audio="{{ $context->valueof('audio') }}">
<div class="lkn-text">
<div class="row">
<div class="col-md-6">
</div>
</div>
</x-laraknife.panels.text-area>
- @if ($context->valueof('audio') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('audio') }}" />
- </div>
- @endif
</form>
@endsection
@section('content')
<form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
@csrf
- <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}" prev="{{ $context->valueof('prev') }}"
+ up="{{ $context->valueof('up') }}" next="{{ $context->valueof('next') }}" audio="{{ $context->valueof('audio') }}">
<div class="lkn-text">
<div class="row">
<div class="col-md-4">
</div>
</div>
</x-laraknife.panels.text-area>
- @if ($context->valueof('audio') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('audio') }}" />
- </div>
- @endif
</form>
@endsection
@section('content')
<form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
@csrf
- <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}" prev="{{ $context->valueof('prev') }}"
+ up="{{ $context->valueof('up') }}" next="{{ $context->valueof('next') }}" audio="{{ $context->valueof('audio') }}">
<div class="lkn-text">
<div class="row">
<div class="col-md-3">
</div>
</div>
</x-laraknife.panels.text-area>
- @if ($context->valueof('link') != null)
- <div class="row">
- <x-laraknife.forms.audio width1="5" width2="2" fileLink="{{ $context->valueof('link') }}" />
- </div>
- @endif
</form>
@endsection
+++ /dev/null
-@extends('layouts.frontend')
-
-@section('content')
- <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
- @csrf
- <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}">
- <div class="row">
- <div class="col-md-6">
- <div class="lkn-text">
- {!! $context->valueOf('text1') !!}
- </div>
- </div>
- <div class="col-md-6">
- <div class="lkn-text">
- {!! $context->valueOf('text2') !!}
- </div>
- </div>
- </div>
- </x-laraknife.panels.text-area>
- @if ($context->valueof('audio') != null)
- <x-laraknife.forms.audio-norow fileLink="{{ $context->valueof('audio') }}" />
- @endif
- </form>
-@endsection
--- /dev/null
+@extends('layouts.frontend')
+
+@section('content')
+ <form id="page-show" action="/page-show/{{ $context->model->id }}" method="POST">
+ @csrf
+ <x-laraknife.panels.text-area title="{{ $context->valueof('title') }}" prev="{{ $context->valueof('prev') }}"
+ up="{{ $context->valueof('up') }}" next="{{ $context->valueof('next') }}" audio="{{ $context->valueof('audio') }}">
+ <div class="row">
+ <div class="col-md-6">
+ <div class="lkn-text">
+ {!! $context->valueOf('text1') !!}
+ </div>
+ </div>
+ <div class="col-md-6">
+ <div class="lkn-text">
+ {!! $context->valueOf('text2') !!}
+ </div>
+ </div>
+ </div>
+ </x-laraknife.panels.text-area>
+ </form>
+@endsection