~quam-plures-gatekeepers/quam-plures/trunk

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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?php
/**
 * item block template (sub-template)
 *
 * @author {@link http://wonderwinds.com/ Ed Bennett}
 * @author {@link http://www.thedarksighed.com/ Andrew Hreschak}
 * @copyright (c) 2009 by {@link http://quamplures.net/ the Quam Plures project}
 * @license http://www.gnu.org/licenses/gpl.txt GNU General Public License v3
 * @package templates
 * @subpackage vastitude
 */
if(!defined('QP_MAIN_INIT')) die('fail');

global $Item;

// set some default params...
$params = array_merge( array(
	'content_mode' => 'auto',
	'item_class' => 'bPost',
	'image_size' => 'fit-520',
	'image_link_to' => '',
), $params );

$Item->locale_temp_switch(); // temporarily switch to item's locale
?>

<div id="<?php $Item->anchor_id(); ?>" class="<?php $Item->div_classes( $params ); ?>" lang="<?php $Item->lang(); ?>">

<div class="post_date">
<?php
// display issue date/time of item
$Item->issue_date( array(
	'date_format' => 'F jS, Y',
) );
?>
</div>

<div class="head">
<?php
// display and link item title
$Item->title( array(
	'before' => '<h2>',
	'after' => '</h2>',
) );
?>

<div class="bSmallHead">

<div class="bSmallHeadMisc">
<?php
// display author/creator of item
$Item->author( array(
	'before' => $Template->T_('Written by:').' <strong>',
	'after' => '</strong>',
) );

echo '<br /> ';

// display issue date/time of item
$Item->issue_date( array(
	'before' => $Template->T_('Published on').' ',
	'date_format' => 'F jS, Y',
) );

// display issue date/time of item
$Item->issue_time( array(
	'before' => '@ ',
) );

// display word count
$Item->wordcount( array(
	'before' => ', '.$Template->T_('using').' ',
	'after' => ' '.$Template->T_('words'),
) );

// display item's view count
$Item->views( array(
	'before' => ', ',
) );
?>
</div>

<div class="bSmallHeadCats">
<?php
// display and link categories by name
$Item->categories( array(
	'before' => $Template->T_('Posted in').' ',
) );
?>
</div>

</div>

</div>

<?php
// --- --- --- --- --- --- --- --- --- --- ---
// --- POST CONTENT INCLUDED HERE ---
template_include( '_item_content.inc.php', $params );
?>

<div class="bSmallPrint">
<?php
// display the item's tags
$Item->tags( array(
	'before' => '<div class="posttags">'.$Template->T_('Tags').': ',
) );

// display the item's permalink
$Item->permanent_link( array(
	'class' => 'permalink_right'
) );

// display link to (and count of) comments only
$Item->feedback_link( array(
	'type' => 'comments',
) );

// display link to (and count of) trackbacks only
$Item->feedback_link( array(
	'type' => 'trackbacks',
	'link_before' => ' &bull; ',
) );

// display link to edit this item
$Item->edit_link( array(
	'before' => ' &nbsp; ',
	'after' => '',
) );
?>
</div>

<?php
// --- --- --- --- --- --- --- --- --- --- ---
// --- ITEM FEEDBACK INCLUDED HERE ---
template_include( '_item_feedback.inc.php', array(
	'before_section_title' => '<h4>',
	'after_section_title' => '</h4>',
) );

locale_restore_previous(); // restores previous locale
?>
</div>