Skip to content

Commit c421baa

Browse files
committed
貼り付け用のカスタムエントリー一覧のテンプレートを追加
1 parent 71b1b4e commit c421baa

File tree

1 file changed

+40
-0
lines changed
  • plugins/bc-front/templates/plugin/BcCustomContent/CustomContent/default

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?php
2+
/**
3+
* baserCMS : Based Website Development Project <https://basercms.net>
4+
* Copyright (c) NPO baser foundation <https://baserfoundation.org/>
5+
*
6+
* @copyright Copyright (c) NPO baser foundation
7+
* @link https://basercms.net baserCMS Project
8+
* @since 5.0.0
9+
* @license https://basercms.net/license/index.html MIT License
10+
*/
11+
12+
/**
13+
* カスタムコンテンツエントリー一覧
14+
*
15+
* @var \BcCustomContent\View\CustomContentFrontAppView $this
16+
* @var \Cake\ORM\ResultSet $customEntries
17+
* @var \BcCustomContent\Model\Entity\CustomContent $customContent
18+
* @checked
19+
* @noTodo
20+
* @unitTest
21+
*/
22+
?>
23+
24+
25+
<section class="bs-cc-entries">
26+
<?php if($customEntries): ?>
27+
<?php foreach($customEntries as $entry): ?>
28+
<article class="bs-cc-entries__item clearfix">
29+
<span class="bs-cc-entries__item-title">
30+
<?php $this->BcBaser->customEntryTitle($entry) ?>
31+
</span>
32+
<span class="bs-cc-entries__item-date">
33+
公開日:<?php $this->BcBaser->customEntryPublished($entry) ?>
34+
</span>
35+
</article>
36+
<?php endforeach ?>
37+
<?php else: ?>
38+
<p><?php echo __d('baser_core', 'エントリーが存在しません。') ?></p>
39+
<?php endif ?>
40+
</section>

0 commit comments

Comments
 (0)