-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathview.ctp
More file actions
75 lines (62 loc) · 2.12 KB
/
view.ctp
File metadata and controls
75 lines (62 loc) · 2.12 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
63
64
65
66
67
68
69
70
71
72
73
<?php
echo $this->NetCommonsHtml->css([
'/blogs/css/blogs.css',
'/likes/css/style.css',
]);
echo $this->NetCommonsHtml->script([
'/likes/js/likes.js',
]);
?>
<header class="clearfix">
<div class="pull-left">
<?php echo $this->LinkButton->toList(); ?>
</div>
<div class="pull-right">
<?php echo $this->element('BlogEntries/edit_link', array('status' => $blogEntry['BlogEntry']['status'])); ?>
</div>
</header>
<article>
<div class="blogs_view_title clearfix">
<?php echo $this->NetCommonsHtml->blockTitle(
$blogEntry['BlogEntry']['title'],
$blogEntry['BlogEntry']['title_icon'],
array('status' => $this->Workflow->label($blogEntry['BlogEntry']['status']))
); ?>
</div>
<?php echo $this->element('entry_meta_info'); ?>
<div>
<?php echo $blogEntry['BlogEntry']['body1']; ?>
</div>
<div>
<?php echo $blogEntry['BlogEntry']['body2']; ?>
</div>
<?php echo $this->element('entry_footer'); ?>
<!-- Tags -->
<?php if (isset($blogEntry['Tag'])) : ?>
<div>
<?php echo __d('blogs', 'tag'); ?>
<?php foreach ($blogEntry['Tag'] as $blogTag): ?>
<?php echo $this->NetCommonsHtml->link(
$blogTag['name'],
array('controller' => 'blog_entries', 'action' => 'tag', 'frame_id' => Current::read('Frame.id'), 'id' => $blogTag['id'])
); ?>
<?php endforeach; ?>
</div>
<?php endif ?>
<div>
<?php /* コンテンツコメント */ ?>
<?php echo $this->ContentComment->index($blogEntry); ?>
<!--<div class="row">-->
<!-- <div class="col-xs-12">-->
<!-- --><?php //echo $this->element('ContentComments.index', array(
// 'pluginKey' => $this->request->params['plugin'],
// 'contentKey' => $blogEntry['BlogEntry']['key'],
// 'isCommentApproved' => $blogSetting['use_comment_approval'],
// 'useComment' => $blogSetting['use_comment'],
// 'contentCommentCnt' => $blogEntry['ContentCommentCnt']['cnt'],
// 'redirectUrl' => $this->NetCommonsHtml->url(array('plugin' => 'blogs', 'controller' => 'blog_entries', 'action' => 'view', 'frame_id' => Current::read('Frame.id'), 'key' => $blogEntry['BlogEntry']['key'])),
// )); ?>
<!-- </div>-->
<!--</div>-->
</div>
</article>