diff --git a/app/webroot/theme/admin-third/Elements/admin/sites/form.php b/app/webroot/theme/admin-third/Elements/admin/sites/form.php index bc67c3d25f..890be064c5 100644 --- a/app/webroot/theme/admin-third/Elements/admin/sites/form.php +++ b/app/webroot/theme/admin-third/Elements/admin/sites/form.php @@ -180,17 +180,19 @@ class="helptext"> - BcForm->label('Site.use_subdomain', __d('baser', 'ドメイン(サブドメイン)利用')) ?> + BcForm->label('Site.use_subdomain', __d('baser', 'ドメイン設定')) ?> - BcForm->input('Site.use_subdomain', ['type' => 'radio', 'options' => [0 => __d('baser', '利用しない'), 1 => __d('baser', '利用する')], 'default' => 0]) ?> + BcForm->input('Site.use_subdomain', ['type' => 'radio', 'options' => [0 => __d('baser', '主となるドメインと同じドメイン'), 1 => __d('baser', '主となるドメインとは異なるドメイン')], 'default' => 0]) ?> BcForm->error('Site.use_subdomain') ?> - - - - BcForm->label('Site.domain_type', __d('baser', 'ドメインタイプ')) ?> - - BcForm->input('Site.domain_type', ['type' => 'radio', 'options' => [0 => __d('baser', '利用しない'), 1 => __d('baser', 'サブドメイン'), 2 => __d('baser', '別ドメイン')], 'default' => 0]) ?> +
+ BcForm->label('Site.domain_type', __d('baser', 'ドメインタイプ')) ?>  + BcForm->input('Site.domain_type', ['type' => 'radio', 'options' => [1 => __d('baser', 'サブドメイン'), 2 => __d('baser', '別ドメイン')], 'default' => 1]) ?> + BcForm->error('Site.domain_type') ?> +
+ +
+
diff --git a/app/webroot/theme/admin-third/js/admin/sites/edit.js b/app/webroot/theme/admin-third/js/admin/sites/edit.js index e1397d73c2..a50f95cba7 100644 --- a/app/webroot/theme/admin-third/js/admin/sites/edit.js +++ b/app/webroot/theme/admin-third/js/admin/sites/edit.js @@ -105,10 +105,9 @@ $(function () { chengeUseDomein(use_subdomain); }); function chengeUseDomein(use_subdomain) { - console.log(use_subdomain); if (use_subdomain == 0) { //ドメインを利用しない場合は、ドメインタイプは利用しない - $(".domain_type").hide(); + $(".domain_type").hide('slow'); $("#SiteDomainType0").prop("checked", true); } else { //ドメインを利用する場合は、ドメインタイプのラジオボタンを表示 diff --git a/lib/Baser/Config/bootstrap.php b/lib/Baser/Config/bootstrap.php index 327456bb0b..913fd1f244 100755 --- a/lib/Baser/Config/bootstrap.php +++ b/lib/Baser/Config/bootstrap.php @@ -109,13 +109,13 @@ /** * 静的ファイルの読み込みの場合はスキップ */ -$assetRegex = '/^' . preg_quote(BC_BASE_URL, '/') . '.*?(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png)$/'; -$assetRegexTheme = '/^' . preg_quote(BC_BASE_URL, '/') . 'theme\/[^\/]+?\/(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png)$/'; +$assetRegex = '/^' . preg_quote(BC_BASE_URL, '/') . '.*?(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png|map)$/'; +$assetRegexTheme = '/^' . preg_quote(BC_BASE_URL, '/') . 'theme\/[^\/]+?\/(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png|map)$/'; // テーマ編集は除外 -$nonAssets = '/^' . preg_quote(BC_BASE_URL . Configure::read('Routing.prefixes.0') . '/theme_files/edit/', '/') . '.*?(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png)$/'; +$nonAssets = '/^' . preg_quote(BC_BASE_URL . Configure::read('Routing.prefixes.0') . '/theme_files/edit/', '/') . '.*?(css|js|img)' . '\/.+\.(js|css|gif|jpg|jpeg|png|map)$/'; $uri = null; if (isset($_SERVER['REQUEST_URI'])) { - $uri = $_SERVER['REQUEST_URI']; + list($uri) = explode('?', $_SERVER['REQUEST_URI']); } if (preg_match($nonAssets, $uri) === 0) { if (preg_match($assetRegex, $uri) || preg_match($assetRegexTheme, $uri)) { diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widget_area.php b/lib/Baser/Config/theme/bc_sample/Elements/widget_area.php index cce855b19f..70b3979a4d 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widget_area.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widget_area.php @@ -27,6 +27,6 @@ ?> -
+
BcWidgetArea->show($no, ['subDir' => $subDir]) ?>
diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_author_archives.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_author_archives.php index 1149e5b956..462a04bdc7 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_author_archives.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_author_archives.php @@ -35,7 +35,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_calendar.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_calendar.php index ca6622ea78..1405dee653 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_calendar.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_calendar.php @@ -37,7 +37,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_category_archives.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_category_archives.php index 52ba47abab..a75987ef8b 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_category_archives.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_category_archives.php @@ -49,7 +49,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_monthly_archives.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_monthly_archives.php index 7d7c3a95cc..5747e3bd01 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_monthly_archives.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_monthly_archives.php @@ -41,7 +41,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_recent_entries.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_recent_entries.php index adf6298a61..752ea8964e 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_recent_entries.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_recent_entries.php @@ -34,7 +34,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_yearly_archives.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_yearly_archives.php index c7c743a12b..78c01f61ea 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_yearly_archives.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/blog_yearly_archives.php @@ -50,7 +50,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/local_navi.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/local_navi.php index 3a85e30431..88657b3be4 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/local_navi.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/local_navi.php @@ -37,7 +37,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/php_template.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/php_template.php index 6fe540ae98..872aadc265 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/php_template.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/php_template.php @@ -26,7 +26,7 @@ ?> -
+

diff --git a/lib/Baser/Config/theme/bc_sample/Elements/widgets/search.php b/lib/Baser/Config/theme/bc_sample/Elements/widgets/search.php index 5322d27844..01f92c7e30 100755 --- a/lib/Baser/Config/theme/bc_sample/Elements/widgets/search.php +++ b/lib/Baser/Config/theme/bc_sample/Elements/widgets/search.php @@ -38,7 +38,7 @@ ?> -