-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathview.ctp
More file actions
64 lines (48 loc) · 1.58 KB
/
view.ctp
File metadata and controls
64 lines (48 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php echo $this->element('shared_header'); ?>
<?php echo $this->Html->css('/blogs/css/blogs.css'); ?>
<?php echo $this->Html->link(
__d('blogs', 'Move list'),
array('controller' => 'blog_entries', 'action' => 'index', $frameId)
); ?>
<div class="blogs_entry_status">
<?php echo $this->element(
'NetCommons.status_label',
array('status' => $blogEntry['BlogEntry']['status'])
); ?>
</div>
<article>
<h1><?php echo h($blogEntry['BlogEntry']['title']); ?></h1>
<?php echo $this->element('entry_meta_info'); ?>
<div>
<?php if ($contentCreatable): ?>
<span class="nc-tooltip" tooltip="<?php echo __d('net_commons', 'Edit'); ?>">
<a href="<?php echo $this->Html->url(
array('controller' => 'blog_entries_edit', 'action' => 'edit', $frameId, 'origin_id' => $blogEntry['BlogEntry']['origin_id'])
) ?>" class="btn btn-primary">
<span class="glyphicon glyphicon-edit"> </span>
</a>
</span>
<?php endif ?>
</div>
<div>
<?php echo $blogEntry['BlogEntry']['body1']; ?>
</div>
<div>
<?php echo $blogEntry['BlogEntry']['body2']; ?>
</div>
<?php echo $this->element('entry_footer'); ?>
<!-- Tags -->
<div>
<?php echo __d('blogs', 'tag'); ?>
<?php foreach ($blogEntry['Tag'] as $blogTag): ?>
<?php echo $this->Html->link(
$blogTag['name'],
array('controller' => 'blog_entries', 'action' => 'tag', $frameId, 'id' => $blogTag['id'])
); ?>
<?php endforeach; ?>
</div>
<div>
<!-- ε( v ゚ω゚) < Coreで開発されたらコメント機能を組み込む-->
<?php //echo $this->element('Comments.index'); ?>
</div>
</article>