Skip to content

Commit

Permalink
Revert "メインサイトの管理画面からサブサイト記事にアクセスするとURLが正しく生成されない問題を修正 fix baserproje…
Browse files Browse the repository at this point in the history
…ct#3889"

This reverts commit 30f8171.
  • Loading branch information
kawaseryoma committed Oct 8, 2024
1 parent 30f8171 commit ab73871
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
/**
* [ADMIN] ブログ記事 一覧 行
*/
$url = $this->request->params['Content']['url'] . 'archives/' . $this->BcForm->value('BlogPost.no');
$fullUrl = $this->BcBaser->getContentsUrl($url, true, $this->request->params['Site']['use_subdomain']);
?>


Expand Down Expand Up @@ -74,7 +72,7 @@ class="eye_catch"><?php echo $this->BcUpload->uploadImage('BlogPost.eye_catch',
<?php $this->BcBaser->link('', ['action' => 'ajax_unpublish', $data['BlogContent']['id'], $data['BlogPost']['id']], ['title' => __d('baser', '非公開'), 'class' => 'btn-unpublish bca-btn-icon', 'data-bca-btn-type' => 'unpublish', 'data-bca-btn-size' => 'lg']) ?>
<?php $this->BcBaser->link('', ['action' => 'ajax_publish', $data['BlogContent']['id'], $data['BlogPost']['id']], ['title' => __d('baser', '公開'), 'class' => 'btn-publish bca-btn-icon', 'data-bca-btn-type' => 'publish', 'data-bca-btn-size' => 'lg']) ?>
<?php if ($this->Blog->allowPublish($data)): //公開状態であれば 公開ページヘのリンク ?>
<?php $this->BcBaser->link('', $fullUrl . $data['BlogPost']['no'], ['title' => __d('baser', '確認'), 'target' => '_blank', 'class' => 'bca-btn-icon', 'data-bca-btn-type' => 'preview', 'data-bca-btn-size' => 'lg']); ?>
<?php $this->BcBaser->link('', $this->request->params['Content']['url'] . '/archives/' . $data['BlogPost']['no'], ['title' => __d('baser', '確認'), 'target' => '_blank', 'class' => 'bca-btn-icon', 'data-bca-btn-type' => 'preview', 'data-bca-btn-size' => 'lg']); ?>
<?php else: // 非公開であればボタンを押せなくする ?>
<a title="確認" class="btn bca-btn-icon" data-bca-btn-type="preview" data-bca-btn-size="lg"
data-bca-btn-status="gray"></a>
Expand Down

0 comments on commit ab73871

Please sign in to comment.