本文整理汇总了PHP中link_to_collection_for_item函数的典型用法代码示例。如果您正苦于以下问题:PHP link_to_collection_for_item函数的具体用法?PHP link_to_collection_for_item怎么用?PHP link_to_collection_for_item使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了link_to_collection_for_item函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: head
<?php
echo head(array('title' => metadata('item', array('Dublin Core', 'Title')), 'bodyclass' => 'items show'));
$collection = get_collection_for_item();
?>
<div id="primary">
<!-- <ul class="breadcrumb">
<li><?php
echo link_to_home_page();
?>
<span class="divider">/</span></li>
<li><?php
echo link_to_collection_for_item($collection->name, array('id' => 'item-collection-link'));
?>
<span class="divider">/</span></li>
<li class="active"><?php
echo metadata('item', array('Dublin Core', 'Title'));
?>
</li>
</ul>
-->
<h1><?php
echo metadata('item', array('Item Type Metadata', 'Título'));
?>
</h1>
<!-- The following returns all of the files associated with an item. -->
<!-- <div id="itemfiles" class="element">-->
<div>
<!-- <div class="element-text">-->
<div>
示例2: files_for_item
<div id="item-images">
<?php
echo files_for_item();
?>
</div>
<?php
if (metadata('item', 'Collection Name')) {
?>
<div id="collection" class="element">
<h3><?php
echo __('Collection');
?>
</h3>
<div class="element-text"><p><?php
echo link_to_collection_for_item();
?>
</p></div>
</div>
<?php
}
?>
<!-- The following prints a list of all tags associated with the item -->
<?php
if (metadata('item', 'has tags')) {
?>
<div id="item-tags" class="element">
<h3><?php
echo __('Tags');
?>
示例3: set_current_record
});
<?php
}
// end canProtect()
?>
});
</script>
<?php
$page_id = $this->doc->getId();
set_current_record('item', get_record_by_id('item', $page_id));
$collection = get_collection_for_item();
$collection_link = link_to_collection_for_item();
if (strpos($this->file['original_filename'], "/full/full/0/default.jpg")) {
$iiif_id = str_replace("/full/full/0/default.jpg", "", $this->file['original_filename']);
} else {
$iiif_id = str_replace("/full/90,/0/default.jpg", "", $this->file['original_filename']);
}
?>
<?php
$base_Dir = basename(getcwd());
?>
<?php
if (!is_admin_theme()) {
?>