forked from JohnAlbin/single_blog
-
Notifications
You must be signed in to change notification settings - Fork 5
/
single-blog-block-item.tpl.php
39 lines (34 loc) · 1.44 KB
/
single-blog-block-item.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
<?php
// $Id$
/**
* @file
* HTML for an item in the single blog's block listing.
*
* Available variables:
* - $classes: String of classes that can be used to style contextually through
* CSS. It can be manipulated through the variable $classes_array from
* preprocess functions. The default values can be one or more of the
* following:
* - single-blog-block-item: The current template type, i.e., "theming hook".
* - $date: Formatted creation date. Preprocess functions can reformat it by
* calling format_date() with the desired parameters on the $created variable.
* - $title: A renderable array that that provides a title and link to the node.
* - $name: Themed username of node author output from theme_username().
*
* - $classes_array: Array of html class attribute values. It is flattened
* into a string within the variable $classes.
*
* Other variables:
* The following variables are provided for contextual information.
* - $node: Partial node object. Contains data that may not be safe.
* - $created: Time the node was published formatted in Unix timestamp.
* - $user: The user object of the node author.
*
* @see template_preprocess_single_blog_block_item()
*/
?>
<div class="<?php print $classes; ?>">
<div class="date"><?php print $date; ?>:</div>
<h4<?php print $title_attributes; ?>><?php print render($title); ?></h4>
<div class="name"><?php print t('by !username', array('!username' => $name)); ?></div>
</div>