| 1 |
<?php |
<?php |
| 2 |
// $Id: teasers.theme,v 1.11 2007/10/24 01:39:39 agentken Exp $ |
// $Id: teasers.theme,v 1.12 2007/12/22 02:07:18 agentken Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 6 |
* Formats content items with complete teasers. Optional. |
* Formats content items with complete teasers. Optional. |
| 7 |
|
* |
| 8 |
|
* @ingroup mysite_plugins |
| 9 |
*/ |
*/ |
| 10 |
|
|
| 11 |
/** |
/** |
| 12 |
* Implements theme_mysite_hook_item() |
* Implements theme_mysite_hook_item() |
|
* |
|
|
* @ingroup themes |
|
| 13 |
*/ |
*/ |
| 14 |
function theme_mysite_teasers_item($item) { |
function theme_mysite_teasers_item($item) { |
| 15 |
$output = ''; |
$output = ''; |
| 34 |
// this is a droplet, so output the content |
// this is a droplet, so output the content |
| 35 |
else { |
else { |
| 36 |
$output = theme('mysite_droplet', $element['content']); |
$output = theme('mysite_droplet', $element['content']); |
| 37 |
} |
} |
| 38 |
// spacing for the next item |
// spacing for the next item |
| 39 |
$output .= '<div class="end-item"></div>'; |
$output .= '<div class="end-item"></div>'; |
| 40 |
} |
} |
| 41 |
return $output; |
return $output; |
| 42 |
} |
} |
| 43 |
|
|
| 44 |
/** |
/** |
| 45 |
* Implements mysite_theme_hook() |
* Implements mysite_theme_hook() |
|
* |
|
|
* @ingroup themes |
|
| 46 |
*/ |
*/ |
| 47 |
function mysite_theme_teasers() { |
function mysite_theme_teasers() { |
| 48 |
$name = t('Headlines and summaries'); |
$name = t('Headlines and summaries'); |