Пример #1
0
<?php

$caption = make_citation($item, true, false);
$citation = make_citation($item);
$title = metadata($item, array('Dublin Core', 'Title'));
$description = metadata($item, array('Dublin Core', 'Description'), array('snippet' => 150));
if (get_theme_option('Single Line Item')) {
    $class = "single-line item record";
} else {
    $class = "item record";
}
?>
<div class="<?php 
echo $class;
?>
">
    <h4><?php 
echo link_to_item($caption, array(), 'show', $item);
?>
</h4>
    <div class="item-meta">
        <?php 
if (metadata($item, 'has thumbnail')) {
    ?>
            <div class="item-img">
                <?php 
    echo link_to_item(item_image('square_thumbnail', array(), 0, $item), array(), 'show', $item);
    ?>
            </div>
        <?php 
}
Пример #2
0
    echo tag_string('item');
    ?>
</div>
    </div>
    <?php 
}
?>

    <!-- The following prints a global citation for this item.on the web site -->
    <div id="item-citation" class="element">
        <h3><?php 
echo __('Reference');
?>
</h3>
        <div class="element-text"><?php 
echo make_citation($item);
?>
</div>
    </div>

    <!-- The following prints a citation for this item.on the web site -->
    <div id="item-citation" class="element">
        <h3><?php 
echo __('Cite As');
?>
</h3>
        <div class="element-text"><?php 
echo metadata('item', 'citation', array('no_escape' => true));
?>
</div>
    </div>