|
|
@@ -1,6 +1,6 @@
|
|
|
{% extends '../layout/admin.html' %}
|
|
|
|
|
|
-{% block html_title %}{{ t('Customize') }} {% endblock %}
|
|
|
+{% block html_title %}{{ customTitle(t('Customize')) }} {% endblock %}
|
|
|
|
|
|
{% block style_css_block %}
|
|
|
<link rel="stylesheet" href="{{ webpack_asset('style').css }}">
|
|
|
@@ -315,6 +315,37 @@ export $initHighlight;</code></pre>
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
|
|
|
+ <form action="/_api/admin/customize/title" method="post" class="form-horizontal" id="customtitleSettingForm" role="form">
|
|
|
+ <fieldset>
|
|
|
+ <legend>カスタム Title</legend>
|
|
|
+
|
|
|
+ <p class="well">
|
|
|
+ <code><title></code>タグのコンテンツをカスタマイズできます。<br>
|
|
|
+ <code>{{sitename}}</code>がサイト名、<code>{{page}}</code>がページ名またはページパスに置換されます
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <p class="help-block">
|
|
|
+ Default Value: <code>{{page}} - {{sitename}}</code>
|
|
|
+ <br>
|
|
|
+ Default Output: <pre><code class="xml"><title>/Sandbox - {{ appTitle }}</title></code></pre>
|
|
|
+ </p>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="col-xs-12">
|
|
|
+ <input class="form-control" name="settingForm[customize:title]" value="{{ settingForm['customize:title'] }}"></input>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="form-group">
|
|
|
+ <div class="col-xs-offset-5 col-xs-6">
|
|
|
+ <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
+ <button type="submit" class="btn btn-primary">更新</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </fieldset>
|
|
|
+ </form>
|
|
|
+
|
|
|
<form action="/_api/admin/customize/header" method="post" class="form-horizontal" id="cutomheaderSettingForm" role="form">
|
|
|
<fieldset>
|
|
|
<legend>カスタムヘッダーHTML</legend>
|
|
|
@@ -352,48 +383,6 @@ export $initHighlight;</code></pre>
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
|
|
|
- <form action="/_api/admin/customize/title" method="post" class="form-horizontal" id="customtitleSettingForm" role="form">
|
|
|
- <fieldset>
|
|
|
- <legend>カスタムヘッダーTitle</legend>
|
|
|
-
|
|
|
- <p class="well">
|
|
|
- ヘッダーの<title>タグのコンテンツをカスタムできる。サイト名を入れたい位置に、{{sitename}}
|
|
|
- パスを入れたい位置に{{path}}を置くことでそれぞれの値に自動置換されます。それ以外の部分は自由に記述して下さい。<br>
|
|
|
- </p>
|
|
|
-
|
|
|
- <p class="help-block">
|
|
|
- Examples:
|
|
|
- <pre><code>{{sitename}} hoge - {{path}}</code></pre>
|
|
|
- </p>
|
|
|
-
|
|
|
- <p class="help-block">
|
|
|
- Output:
|
|
|
- <pre><code><title>GROWI hoge - /xxx/yyy/zzz/Sandbox</title></code></pre>
|
|
|
- </p>
|
|
|
-
|
|
|
- <div class="form-group">
|
|
|
- <div class="col-xs-12">
|
|
|
- <div id="custom-title-editor"></div>
|
|
|
- <input type="hidden" id="inputCustomTitle" name="settingForm[customize:title]" value="{{ settingForm['customize:title'] }}">
|
|
|
- </div>
|
|
|
- <div class="col-xs-12">
|
|
|
- <p class="help-block text-right">
|
|
|
- <i class="fa fa-fw fa-keyboard-o" aria-hidden="true"></i>
|
|
|
- Ctrl+Space でコード補完
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="form-group">
|
|
|
- <div class="col-xs-offset-5 col-xs-6">
|
|
|
- <input type="hidden" name="_csrf" value="{{ csrf() }}">
|
|
|
- <button type="submit" class="btn btn-primary">更新</button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- </fieldset>
|
|
|
- </form>
|
|
|
-
|
|
|
<form action="/_api/admin/customize/css" method="post" class="form-horizontal" id="cutomcssSettingForm" role="form">
|
|
|
<fieldset>
|
|
|
<legend>{{ t('customize_page.Custom CSS') }}</legend>
|