当前位置: 首页>>代码示例>>PHP>>正文


PHP browse_sort_links函数代码示例

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


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

示例1: __

        ?>
                <th class="batch-edit-heading"><?php 
        echo __('Select');
        ?>
</th>
                <?php 
    }
    $browseHeadings[__('Item')] = null;
    $browseHeadings[__('Contributor')] = 'contributor';
    if ($allowToManage) {
        $browseHeadings[__('Publication Status')] = null;
    } else {
        $browseHeadings[__('Publication Status')] = null;
    }
    $browseHeadings[__('Date Added')] = 'added';
    echo browse_sort_links($browseHeadings, array('link_tag' => 'th scope="col"', 'list_tag' => ''));
    ?>
            </tr>
        </thead>
        <tbody id="types-table-body">
            <?php 
    $key = 0;
    foreach (loop('contribution_contributed_items') as $contributedItem) {
        $item = $contributedItem->Item;
        $contributor = $contributedItem->Contributor;
        if ($contributor->id) {
            $contributorUrl = url('contribution/contributors/show/id/' . $contributor->id);
        }
        if ($item->public) {
            $status = 'approved';
            if ($allowToManage) {
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:31,代码来源:browse.php

示例2: pagination_links

 ?>
 </div>
 <?php 
 echo pagination_links();
 ?>
 <?php 
 if (has_loop_records('collections')) {
     ?>
     <table id="collections" cellspacing="0" cellpadding="0">
         <thead>
             <tr>
             <?php 
     $sortLinks = array(__('Title') => 'Dublin Core,Title', __('Contributors') => null, __('Date Added') => 'added', __('Total Number of Items') => null);
     ?>
             <?php 
     echo browse_sort_links($sortLinks, array('link_tag' => 'th scope="col"', 'list_tag' => ''));
     ?>
             </tr>
         </thead>
         <tbody>
             <?php 
     $key = 0;
     ?>
             <?php 
     foreach (loop('Collection') as $collection) {
         ?>
             <tr class="collection<?php 
         if (++$key % 2 == 1) {
             echo ' odd';
         } else {
             echo ' even';
开发者ID:kent-state-university-libraries,项目名称:MultiCollections,代码行数:31,代码来源:browse.php

示例3: browse_sort_links

</h1>
    
    <div class="browse-collections">
        <?php 
if ($total_results > 0) {
    ?>
            <div class="browse-collections-header hidden-xs">
                <div class="row">
                    <div class="col-sm-3 col-sm-offset-2">
                        <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                    </div>
                    <div class="col-sm-3">
                        <?php 
    echo browse_sort_links(array('Creator' => 'Dublin Core,Contributor'), array(''));
    ?>
                    </div>
                    <div class="col-sm-4">
                        Description
                    </div>
                </div>
            </div>
        
            <?php 
    foreach (loop('collections') as $collection) {
        ?>
                <div class="collection">
                    <div class="row">
                        <div class="col-sm-2">
                            <?php 
开发者ID:jeau,项目名称:omeka-starter-theme,代码行数:31,代码来源:browse.php

示例4: __

    <?php 
if ($total_results > 0) {
    ?>

    <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Resource Type')] = 'Zotero,Item Type';
    $sortLinks[__('Creator')] = 'Dublin Core,Creator';
    $sortLinks[__('Date Added')] = 'added';
    ?>
    <div id="sort-links">
        <span class="sort-label"><?php 
    echo __('Sort by: ');
    ?>
</span><?php 
    echo browse_sort_links($sortLinks);
    ?>
    </div>

    <?php 
}
?>

    <?php 
foreach (loop('items') as $item) {
    ?>
        <div class="item hentry">
            <div class="item-meta">

            <h2><?php 
    echo link_to_item(metadata($item, array('Dublin Core', 'Title'), array('class' => 'permalink')));
开发者ID:sgbalogh,项目名称:peddler_clone4,代码行数:31,代码来源:browse.php

示例5: browse_sort_links

    <?php 
if (count($collections) == 0) {
    ?>

        <p>There are no collections. Create one!</p>

    <?php 
} else {
    ?>

            <table>
                <thead>
                    <tr>
                        <?php 
    browse_sort_links(array('Name' => 'name', 'Number of Files' => 'number_of_files', 'Last Updated' => 'updated', 'Actions' => null));
    ?>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($collections as $collection) {
        ?>
                        <tr>
                            <td><a href="<?php 
        echo url('bag-it/collections/' . $collection->id);
        ?>
"><?php 
        echo $collection->name;
        ?>
</a></td>
开发者ID:AdrienneSerra,项目名称:Digitalsc,代码行数:30,代码来源:browse.php

示例6: html_escape

    ?>
 <a href="<?php 
    echo html_escape(url('catalog-search/index/add'));
    ?>
"><?php 
    echo __('Add a search.');
    ?>
</a></p>
<?php 
} else {
    ?>
<table class="full">
    <thead>
        <tr>
<?php 
    echo browse_sort_links(array(__('Catalog Name') => 'catalog_name', __('Display') => 'display'), array('link_tag' => 'th scope="col"', 'list_tag' => ''));
    ?>
        </tr>
    </thead>
    <tbody>
    <?php 
    foreach (loop('catalog_search_searches') as $catalogSearch) {
        ?>
        <tr>
            <td>
                <span class="title">
                    <a href="<?php 
        echo html_escape(record_url('catalog_search_search'));
        ?>
">
                        <?php 
开发者ID:amandafrench,项目名称:plugin-CatalogSearch,代码行数:31,代码来源:browse.php

示例7: __

?>
</small>
</h1>

<?php 
if ($total_results > 0) {
    ?>
    <div id="sort">
        <span class="sort-label"><?php 
    echo __('Sort by:');
    ?>
</span>
        <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Date Added')] = 'added';
    echo browse_sort_links($sortLinks, array('list_attr' => array('class' => 'list-inline')));
    ?>
    </div>

    <?php 
    echo pagination_links();
}
?>

<?php 
foreach (loop('collections') as $collection) {
    ?>
    <div class="record collection">
        <?php 
    if ($image = record_image('collection', 'thumbnail')) {
        ?>
开发者ID:BGSU-LITS,项目名称:omeka-theme-bgsu,代码行数:31,代码来源:browse.php

示例8: browse_sort_links

<table class="full">
    <thead>
        <tr>
            <?php 
echo browse_sort_links(array(__('Title') => 'title', __('Slug') => 'slug', __('Last Modified') => 'updated'), array('link_tag' => 'th scope="col"', 'list_tag' => ''));
?>
        </tr>
    </thead>
    <tbody>
    <?php 
foreach (loop('simple_pages_pages') as $simplePage) {
    ?>
        <tr>
            <td>
                <span class="title">
                    <a href="<?php 
    echo html_escape(record_url('simple_pages_page'));
    ?>
">
                        <?php 
    echo metadata('simple_pages_page', 'title');
    ?>
                    </a>
                    <?php 
    if (!metadata('simple_pages_page', 'is_published')) {
        ?>
                        (<?php 
        echo __('Private');
        ?>
)
                    <?php 
开发者ID:lchen01,项目名称:STEdwards,代码行数:31,代码来源:browse-list.php

示例9: browse_sort_links

} else {
    ?>

    <p>Check the files that you want to add to the "<?php 
    echo $collection->name;
    ?>
" collection. On each page, be sure to click the "Update Bag" button before switching to a different page or going back to the list of collections.</p>

        <form method="post" accept-charset="utf-8" id="bagit-addfiles-form">
            <fieldset>

            <table>
                <thead>
                    <tr>
                        <?php 
    browse_sort_links(array('Name' => 'name', 'Parent' => 'parent_item', 'Type' => 'type', 'Size' => 'size', 'Add/Remove?' => null));
    ?>
                    </tr>
                </thead>
                <tbody>
                    <?php 
    foreach ($files as $file) {
        ?>
                        <tr <?php 
        if ($collection->checkForFileMembership($file->id)) {
            echo 'class="bagit-file-already-added"';
        }
        ?>
>
                            <td><a href="<?php 
        echo public_url('/archive/files/' . $file->archive_filename);
开发者ID:AdrienneSerra,项目名称:Digitalsc,代码行数:31,代码来源:addfiles.php

示例10: browse_sort_links

<hr>
		<h2>Browse first 10 items</h2>

        <?php 
if (metadata('collection', 'total_items') > 0) {
    ?>
        <div class="browse-items">
            <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Creator')] = 'Dublin Core,Collection';
    ?>
            <div class="browse-items-header hidden-xs">
                <div class="row">
                    <div class="col-sm-3 col-sm-offset-2 col-md-2 col-md-offset-2">
                        <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                    </div>
                    <div class="col-sm-3 col-md-2">
                        <?php 
    // echo browse_sort_links(array('Collection'=>'Dublin Core,Collection'), array(''));
    ?>
                    </div>
                    <div class="hidden-sm col-md-2">
                        Place
                    </div>
                    <div class="col-sm-4 col-md-4">
                        Date
                    </div>
                </div>
            </div>
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:show.php

示例11: url

    <a class="add small green button"
      href="<?php 
    echo url('fedora-connector/servers/add');
    ?>
">
      <?php 
    echo __('Register a Server');
    ?>
    </a>

    <table>

      <thead>
        <tr>
          <?php 
    echo browse_sort_links(array('Name' => 'name', 'URL' => 'url', 'Status' => null, 'Version' => null, 'Actions' => null), array('link_tag' => 'th scope="col"'));
    ?>
        </tr>
      </thead>

      <tbody>

        <?php 
    foreach ($servers as $server) {
        ?>
          <tr>

            <!-- Title. -->
            <td>
              <a href="<?php 
        echo url('fedora-connector/servers/edit/' . $server->id);
开发者ID:KelvinSmithLibrary,项目名称:playhouse,代码行数:31,代码来源:browse.php

示例12: browse_sort_links

    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                        </div>
                        <div class="col-sm-3 col-md-2">
                            <?php 
    echo browse_sort_links(array('Collection' => 'Collection Name'), array(''));
    ?>
                        </div>
                        <div class="hidden-sm col-md-2">
                            <?php 
    echo browse_sort_links(array('Place' => 'Dublin Core,Coverage'), array(''));
    ?>
                        </div>
                        <div class="col-sm-4 col-md-4">
                            <?php 
    echo browse_sort_links(array('Date' => 'Dublin Core,Date'), array(''));
    ?>
                        </div>
                    </div>
                </div>

                <?php 
    foreach (loop('items') as $item) {
        ?>
                <div class="item">
                    <div class="row">
                        <div class="col-sm-2 col-md-2">
                            <?php 
        $image = $item->Files;
        ?>
                            <?php 
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:browse.php

示例13: url

  <a class="add small green button"
    href="<?php 
    echo url('neatline/add');
    ?>
">
    <?php 
    echo __('Create an Exhibit');
    ?>
  </a>

  <table class="neatline">

    <thead>
      <tr>
        <?php 
    echo browse_sort_links(array(__('Exhibit') => 'title', __('Created') => 'added', __('# Items') => null, __('Public') => null), array('link_tag' => 'th scope="col"'));
    ?>
      </tr>
    </thead>

  <!-- Top pagination. -->
  <div class="pagination"><?php 
    echo pagination_links();
    ?>
</div>

    <tbody>

      <?php 
    foreach (loop('NeatlineExhibit') as $e) {
        ?>
开发者ID:saden1,项目名称:Neatline,代码行数:31,代码来源:browse.php

示例14: browse_sort_links

if ($total_results > 0) {
    ?>
            <?php 
    $sortLinks[__('Title')] = 'Dublin Core,Title';
    $sortLinks[__('Collection')] = 'Collection Name';
    ?>
                <div class="browse-items-header hidden-xs">
                    <div class="row">
                        <div class="col-sm-3 col-sm-offset-2 col-md-2 col-md-offset-2">
                            <?php 
    echo browse_sort_links(array('Title' => 'Dublin Core,Title'), array(''));
    ?>
                        </div>
                        <div class="col-sm-3 col-md-2">
                            <?php 
    echo browse_sort_links(array('Collection' => 'Collection Name'), array(''));
    ?>
                        </div>
                        <div class="hidden-sm col-md-2">
                            Place
                        </div>
                        <div class="col-sm-4 col-md-4">
                            Date
                        </div>
                    </div>
                </div>

                <?php 
    foreach (loop('items') as $item) {
        ?>
                <div class="item">
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:browse+master.php


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