-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathviews-view-fields--page.tpl.php
executable file
·82 lines (81 loc) · 3.2 KB
/
views-view-fields--page.tpl.php
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
74
75
76
77
78
79
80
81
<?php
// $Id: views-view-fields.tpl.php,v 1.6 2008/09/24 22:48:21 merlinofchaos Exp $
/**
* @file views-view-fields.tpl.php
* Default simple view template to all the fields as a row.
*
* - $view: The view in use.
* - $fields: an array of $field objects. Each one contains:
* - $field->content: The output of the field.
* - $field->raw: The raw data for the field, if it exists. This is NOT output safe.
* - $field->class: The safe class id to use.
* - $field->handler: The Views field handler object controlling this field. Do not use
* var_export to dump this object, as it can't handle the recursion.
* - $field->inline: Whether or not the field should be inline.
* - $field->inline_html: either div or span based on the above flag.
* - $field->separator: an optional separator that may appear before a field.
* - $row: The raw result object from the query, with all data it fetched.
*
* @ingroup views_templates
*/
?>
<div class='row-container'>
<?php if($fields['field_main_image_fid']->content): ?>
<div class='row-thumb' >
<?php print $fields['field_main_image_fid']->content; ?>
</div>
<?php endif ?>
<p class='row-info'>
<?php if($fields['field_penulis_nid']->content): ?>
<span class='row-author'><?php print $fields['field_penulis_nid']->content; ?></span>
<?php if($fields['field_penulis_nid']->content && $fields['created']->content): ?>
•
<?php endif ?>
<?php endif ?>
<?php if($fields['created']->content): ?>
<span class='row-date'><?php print $fields['created']->content; ?></span>
<?php endif ?>
<?php if($fields['created']->content && ($fields['tid']->content || $fields['type']->content)): ?>
•
<?php endif ?>
<?php if($fields['type']->content): ?>
<span class='row-term'>
<?php print $fields['type']->content; ?>
</span>
<?php endif ?>
<?php if($fields['type']->content && $fields['tid']->content): ?>
•
<?php endif ?>
<?php if($fields['tid']->content): ?>
<span class='row-term'>
<?php print $fields['tid']->content; ?>
</span>
<?php endif ?>
<?php if($fields['comment_count']->content): ?>
<span class='row-comment-count'><?php print $fields['comment_count']->content; ?></span>
<?php endif ?>
</p>
<?php if($fields['title']->content): ?>
<h2 class='row-title'>
<?php print $fields['title']->content; ?>
</h2>
<?php endif ?>
<?php if($fields['teaser']->content || $fields['body']->content): ?>
<div class='row-teaser'>
<?php if($fields['teaser']->content): ?>
<?php print $fields['teaser']->content; ?>
<?php endif ?>
<?php if($fields['body']->content): ?>
<?php print $fields['body']->content; ?>
<?php endif ?>
<?php if($fields['field_name_value']->content): ?>
— <span class='sdp-pengirim'><?php print $fields['field_name_value']->content; ?></span>
<?php endif ?>
<?php if($fields['view_node']->content): ?>
<div class='read-more'>
<?php print $fields['view_node']->content; ?>
</div>
<?php endif ?>
</div>
<?php endif ?>
</div>