• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tag_string函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tag_string函数的典型用法代码示例。如果您正苦于以下问题:PHP tag_string函数的具体用法?PHP tag_string怎么用?PHP tag_string使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了tag_string函数的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __

      </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');
    ?>
</h3>
        <div class="element-text"><?php 
    echo tag_string('item');
    ?>
</div>
    </div>
    <?php 
}
?>

    <!-- The following prints a citation for this item. -->
    <div id="item-citation" class="element">
        <h3><?php 
echo __('Citation');
?>
</h3>
        <div class="element-text"><?php 
echo metadata('item', 'citation', array('no_escape' => true));
开发者ID:AdrienneSerra,项目名称:Digitalsc,代码行数:31,代码来源:show_orig.php


示例2: foreach

      </div>
    </div>
  </article>
</div>

<div class="waterfall-gallery">
  <?php 
foreach ($attachments as $attachment) {
    ?>
    <?php 
    $item = $attachment->getItem();
    $itemLink = record_url($item);
    $itemImageTag = item_image('square_thumbnail', array(), 0, $item);
    $itemTitle = metadata($item, array('Dublin Core', 'Title'));
    $itemDescription = metadata($item, array('Dublin Core', 'Description'), array('snippet' => 250));
    $itemTags = tag_string($item, 'items/browse', '');
    ?>
    <div class="waterfall-exhibit-item" onclick="window.location='<?php 
    echo $itemLink;
    ?>
'">
      <?php 
    echo $itemImageTag;
    ?>
      <h1><?php 
    echo $itemTitle;
    ?>
</h1>
      <p><?php 
    echo $itemDescription;
    ?>
开发者ID:Orpheusp,项目名称:waterfall-gallery-layout-omeka-plugin,代码行数:31,代码来源:layout.php


示例3:

            ?>
        <?php 
        }
        ?>
        <?php 
        if ($exhibitDescription = metadata('exhibit', 'description', array('no_escape' => true))) {
            ?>
        <div class="description"><?php 
            echo $exhibitDescription;
            ?>
</div>
        <?php 
        }
        ?>
        <?php 
        if ($exhibitTags = tag_string('exhibit', 'exhibits')) {
            ?>
        <p class="tags"><?php 
            echo $exhibitTags;
            ?>
</p>
        <?php 
        }
        ?>
    </div>
<?php 
    }
    ?>
 <?php 
    echo pagination_links();
    ?>
开发者ID:elotroalex,项目名称:mhdh,代码行数:31,代码来源:browse.php


示例4: __

        ?>
</p>
                </div>
<?php 
    }
    ?>

            <?php 
    if (metadata($item, 'has tags')) {
        ?>
                <div class="tags"><p><strong><?php 
        echo __('Topics');
        ?>
: </strong>
                <?php 
        echo tag_string('items');
        ?>
</p>
                </div>
            <?php 
    }
    ?>

            <?php 
    echo fire_plugin_hook('public_items_browse_each', array('view' => $this, 'item' => $item));
    ?>

            </div><!-- end class="item-meta" -->
        </div><!-- end class="item hentry" -->
    <?php 
}
开发者ID:sgbalogh,项目名称:peddler_clone4,代码行数:31,代码来源:browse.php


示例5:

</h2>

        <?php 
    if ($description = metadata('exhibit', 'description', array('snippet' => 250, 'no_escape' => true))) {
        ?>
            <div class="description">
                <?php 
        echo $description;
        ?>
            </div>
        <?php 
    }
    ?>

        <?php 
    if ($tags = tag_string('exhibits', 'exhibits', ' ')) {
        ?>
            <div class="tags">
                <?php 
        echo __('Tags:');
        ?>
                <?php 
        echo $tags;
        ?>
</p>
            </div>
        <?php 
    }
    ?>
    </div>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:30,代码来源:browse.php


示例6: pagination_links

if (count($exhibits) > 0) {
    ?>
  <?php 
    echo pagination_links();
    ?>

  <div class="search-results">
    <?php 
    foreach (loop('exhibit') as $exhibit) {
        ?>
      <?php 
        $exhibitLink = record_url(get_current_record('exhibit'));
        $exhibitTitle = metadata('exhibit', 'title', array('no_escape' => true));
        $exhibitImage = record_image($exhibit, 'square_thumbnail');
        $exhibitDescription = metadata('exhibit', 'description', array('no_escape' => true, 'snippet' => 150));
        $exhibitTags = tag_string('exhibit', 'exhibits', '');
        ?>

      <div class="exhibit-item" onclick="window.location='<?php 
        echo $exhibitLink;
        ?>
'">
        <?php 
        echo $exhibitImage;
        ?>
        <h1><?php 
        echo $exhibitTitle;
        ?>
</h1>
        <p><?php 
        echo $exhibitDescription;
开发者ID:patrova,项目名称:denison-expanding-archives-omeka-theme,代码行数:31,代码来源:browse.php


示例7: __

                        <p>
                            <strong><?php 
        echo __('Collection');
        ?>
:</strong>
                            <?php 
        echo link_to_collection_for_item();
        ?>
                        </p>
                        <p>
                            <strong><?php 
        echo __('Tags');
        ?>
:</strong>
                            <?php 
        if ($tags = tag_string('items')) {
            echo $tags;
        } else {
            echo __('No Tags');
        }
        ?>
                        </p>
                        <?php 
        fire_plugin_hook('admin_items_browse_detailed_each', array('item' => $item, 'view' => $this));
        ?>
                    </div>
                </td>
                <td><?php 
        echo strip_formatting(metadata('item', array('Dublin Core', 'Creator')));
        ?>
</td>
开发者ID:ricofreak,项目名称:omekaArchiveProject,代码行数:31,代码来源:browse.php


示例8: tag_string

    if (metadata('item', 'has tags')) {
        ?>
        <div id="item-tags" class="element">
            <?php 
        if (is_string($style['item']['show']['tags'])) {
            ?>
                <h3><?php 
            echo $style['item']['show']['tags'];
            ?>
</h3>
            <?php 
        }
        ?>
            <div class="element-text">
                <p class="tags"><?php 
        echo tag_string('items', 'items/browse', ' ');
        ?>
</p>
            </div>
        </div>
    <?php 
    }
}
?>

<?php 
if (!empty($style['item']['show']['citation'])) {
    ?>
    <div id="item-citation" class="element">
        <?php 
    if (is_string($style['item']['show']['citation'])) {
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:show.php


示例9: metadata

$title = metadata('item', array('Dublin Core', 'Title'));
$subject = metadata('item', array('Dublin Core', 'Subject'));
$description = metadata('item', array('Dublin Core', 'Description'));
$creators = metadata('item', array('Dublin Core', 'Creator'));
$source = metadata('item', array('Dublin Core', 'Source'));
$publisher = metadata('item', array('Dublin Core', 'Publisher'));
$date = metadata('item', array('Dublin Core', 'Date'));
$contributors = metadata('item', array('Dublin Core', 'Contributor'));
$rights = metadata('item', array('Dublin Core', 'Rights'));
$relation = metadata('item', array('Dublin Core', 'Relation'));
$format = metadata('item', array('Dublin Core', 'Format'));
$language = metadata('item', array('Dublin Core', 'Language'));
$type = metadata('item', array('Dublin Core', 'Type'));
$identifier = metadata('item', array('Dublin Core', 'Identifier'));
$coverage = metadata('item', array('Dublin Core', 'Coverage'));
$tags = tag_string('item', 'items/browse', '');
$citation = metadata('item', 'citation', array('no_escape' => true));
$collection = link_to_collection_for_item();
$outputFormat = output_format_list(false, '');
function showItemDescriptionTag($tagName, $tagVal)
{
    echo __('<div class="item-description-tag">');
    echo __('  <h1>' . $tagName . '</h1>');
    if ($tagName == 'TITLE') {
        echo __('  <b>' . $tagVal . '</b>');
    } else {
        echo __('  <p>' . $tagVal . '</p>');
    }
    echo __('</div>');
}
?>
开发者ID:patrova,项目名称:denison-expanding-archives-omeka-theme,代码行数:31,代码来源:show.php


示例10: pagination_links

?>
		</nav>
		
		<div class="pagination top"><?php 
echo pagination_links();
?>
</div>
		
		<?php 
$index = 1;
// set index to one so we can use zero as an argument below
$showImgNum = 3;
// show this many images on the browse results page; used for slider on mobile devices
foreach (loop('Items') as $item) {
    $description = metadata($item, array('Dublin Core', 'Description'), array('snippet' => 250));
    $tags = tag_string(get_current_record('item'), url('items/browse'));
    $thumblink = link_to_item(item_image('square_thumbnail'));
    $titlelink = link_to_item(metadata($item, array('Dublin Core', 'Title')), array('class' => 'permalink'));
    ?>
			<article class="item-result" id="item-result-<?php 
    echo $index;
    ?>
">
			
				<h3><?php 
    echo $titlelink;
    ?>
</h3>
				
				<?php 
    if (metadata($item, 'has thumbnail') && mh_reducepayload($index, $showImgNum)) {
开发者ID:ebellempire,项目名称:curatescape_gardens,代码行数:31,代码来源:browse.php


示例11: link_to

        }
        ?>
                <?php 
        if (is_allowed($exhibit, 'delete')) {
            ?>
                <li><?php 
            echo link_to($exhibit, 'delete-confirm', __('Delete'), array('class' => 'delete-confirm'));
            ?>
</li>
                <?php 
        }
        ?>
            </ul>
        </td>
        <td><?php 
        echo tag_string($exhibit, 'exhibits');
        ?>
</td>
        <?php 
        if ($exhibit->theme == null) {
            $themeName = __('Current Public Theme');
        } else {
            $theme = Theme::getTheme($exhibit->theme);
            $themeName = !empty($theme->title) ? $theme->title : $exhibit->theme;
        }
        ?>
        <td><?php 
        echo html_escape($themeName);
        ?>
</td>
        <td><?php 
开发者ID:fitnycdigitalinitiatives,项目名称:plugin-ExhibitBuilder,代码行数:31,代码来源:browse.php


示例12: text_to_paragraphs

                    <?php 
            echo text_to_paragraphs($description);
            ?>
                </div>
            <?php 
        }
        ?>
        <?php 
    }
    ?>

        <?php 
    if (!empty($style['item']['browse']['tags'])) {
        ?>
            <?php 
        if ($tags = tag_string('items', 'items/browse', ' ')) {
            ?>
                <div class="tags">
                    <?php 
            if (is_string($style['item']['browse']['tags'])) {
                ?>
                        <?php 
                echo $style['item']['browse']['tags'];
                ?>
                    <?php 
            }
            ?>
                    <?php 
            echo $tags;
            ?>
                </div>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:browse.php


示例13: __

        <?php 
if ($description) {
    ?>
            <p class="item-description">
                <?php 
    echo $description;
    ?>
            </p>
        <?php 
}
?>

        <?php 
if (metadata($item, 'has tags')) {
    ?>
    <p class="tags"><p><strong><?php 
    echo __('Tags');
    ?>
:</strong>
        <?php 
    echo tag_string($item);
    ?>
</p>
    </p>
    <?php 
}
?>
    </div>
</div>
开发者ID:charvolant,项目名称:bigstuff,代码行数:29,代码来源:single.php



注:本文中的tag_string函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tag_type_set函数代码示例发布时间:2022-05-23
下一篇:
PHP tag_start函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap