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


PHP all_element_texts函数代码示例

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


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

示例1: buildDescription

 protected function buildDescription($item)
 {
     $description = all_element_texts($item);
     //Output HTML that would display all the files in whatever way is possible
     $description .= file_markup($item->Files);
     return $description;
 }
开发者ID:lchen01,项目名称:STEdwards,代码行数:7,代码来源:ItemRss2.php

示例2: testWithNoItemOnView

 /**
  * Tests that all_element_texts behaves the same when an item is
  * set on the view and when it is directly passed.
  */
 public function testWithNoItemOnView()
 {
     $item = new Item();
     $item->item_type_id = 1;
     $metadataOutput = all_element_texts($item, array('return_type' => 'array'));
     set_current_record('item', $item, true);
     // Compare runs with and without item set on view, they should be
     // the same.
     $this->assertEquals($metadataOutput, all_element_texts('item', array('return_type' => 'array')));
 }
开发者ID:emhoracek,项目名称:Omeka,代码行数:14,代码来源:AllElementTextsTest.php

示例3: all_element_texts

                <?php 
        echo $title;
        ?>
            </li>
        <?php 
    }
    ?>
    </ul>
    <?php 
}
?>

    <!-- Items metadata -->
    <div id="item-metadata">
        <?php 
echo all_element_texts('item');
?>
    </div>

    <h3><?php 
echo __('Files');
?>
</h3>
    <div id="item-images">
         <?php 
echo files_for_item();
?>
    </div>

   <?php 
if (metadata('item', 'Collection Name')) {
开发者ID:AdrienneSerra,项目名称:Digitalsc,代码行数:31,代码来源:show_orig.php

示例4: file_markup

<div class="container single-item">
    <div class="content-block">
        <h1><?php 
echo $fileTitle;
?>
</h1>
        <div class="row">
            <div class="col-sm-5">
                <?php 
echo file_markup($file, array('imageSize' => 'original'));
?>
            </div>
            <div class="col-sm-7">
                <?php 
echo all_element_texts('file');
?>
                <div id="original-filename" class="element">
                    <h6><?php 
echo __('Original Filename');
?>
</h6>
                    <p class="element-text"><?php 
echo metadata('file', 'Original Filename');
?>
</p>
                </div>
                <div id="file-size" class="element">
                    <h6><?php 
echo __('File Size');
?>
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:30,代码来源:show.php

示例5: strip_formatting

<?php

$collectionTitle = strip_formatting(metadata('collection', array('Dublin Core', 'Title')));
?>

<?php 
echo head(array('title' => $collectionTitle, 'bodyclass' => 'collections show'));
?>

<h1><?php 
echo $collectionTitle;
?>
</h1>

<?php 
echo all_element_texts('collection');
?>

<div id="collection-items">
    <!--<h2><?php 
echo link_to_items_browse(__('Items in the %', $collectionTitle), array('collection' => metadata('collection', 'id')));
?>
</h2>-->
    <?php 
if (metadata('collection', 'total_items') > 0) {
    ?>
        <?php 
    foreach (loop('items') as $item) {
        ?>
        <?php 
        $itemTitle = strip_formatting(metadata('item', array('Dublin Core', 'Title')));
开发者ID:HCDigitalScholarship,项目名称:peacetestimonies,代码行数:31,代码来源:show.php

示例6: files_for_item

<div id="primary">
    <?php 
if (get_theme_option('Item FileGallery') == 0 && metadata('item', 'has files')) {
    ?>
    <div id="itemfiles" class="element">
        <?php 
    echo files_for_item(array('imageSize' => 'fullsize'));
    ?>
    </div>
    <?php 
}
?>

    <?php 
echo all_element_texts($item);
?>

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

</div><!-- end primary -->

<div id="secondary">

    <!-- The following returns all of the files associated with an item. -->
    <?php 
if (get_theme_option('Item FileGallery') == 1 && metadata($item, 'has files')) {
    ?>
    <div id="itemfiles" class="element">
开发者ID:ricofreak,项目名称:omekaArchiveProject,代码行数:30,代码来源:show.php

示例7: all_element_texts






  <!-- Metadata column -->
  <div id="item-metadata">

    <?php 
echo all_element_texts('item', array('show_element_sets' => array('Dublin Core'), 'show_element_set_headings' => false));
?>


    <!-- Item Type Metadata -->
    <?php 
echo $item_type_metadata = all_element_texts('item', array('show_element_sets' => array('Item Type Metadata'), 'show_element_set_headings' => false));
?>




  </div> <!-- Metadata column -->

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


  <ul class="item-pagination navigation">
      <li id="previous-item" class="previous"><?php 
echo link_to_previous_item_show();
开发者ID:srerickson,项目名称:harlem-theme,代码行数:26,代码来源:show.php

示例8: __

    ?>
">
        <?php 
    echo __('View correction');
    ?>
</a>
        </li>
    </ul>
    <p>
    <?php 
    echo metadata($correction, 'comment');
    ?>
    </p>
    
    <?php 
    echo all_element_texts($correction);
    ?>
    </td>
    </tr>
    
    <?php 
}
?>
    
    </tbody>
    
    </table>
</div>

<?php 
echo foot();
开发者ID:sgbalogh,项目名称:peddler_clone5,代码行数:31,代码来源:browse.php

示例9: __construct


//.........这里部分代码省略.........
     if ($feedRights = get_option('copyright')) {
         $feedRightsElement = $doc->createElement('rights');
         $feedRightsElement->appendChild($doc->createCDATASection($feedRights));
         $feedElement->appendChild($feedRightsElement);
     }
     // feed/updated
     $feedUpdated = $doc->createElement('updated', date(DATE_ATOM, time()));
     $feedElement->appendChild($feedUpdated);
     // feed/generator
     $feedGenerator = $doc->createElement('generator', 'Omeka');
     $feedElement->appendChild($feedGenerator);
     // Get the feed self/next/prev links.
     $feedLinks = $this->_getFeedLinks($items);
     // feed/link[rel=self]
     $feedLinkSelfElement = $doc->createElement('link');
     $feedLinkSelfElement->setAttribute('rel', 'self');
     $feedLinkSelfElement->setAttribute('href', $feedLinks['self']);
     $feedElement->appendChild($feedLinkSelfElement);
     // feed/link[rel=first]
     $feedLinkFirstElement = $doc->createElement('link');
     $feedLinkFirstElement->setAttribute('rel', 'first');
     $feedLinkFirstElement->setAttribute('type', 'application/atom+xml');
     $feedLinkFirstElement->setAttribute('href', $feedLinks['first']);
     $feedElement->appendChild($feedLinkFirstElement);
     // feed/link[rel=prev]
     if (isset($feedLinks['previous'])) {
         $feedLinkPrevElement = $doc->createElement('link');
         $feedLinkPrevElement->setAttribute('rel', 'previous');
         $feedLinkPrevElement->setAttribute('type', 'application/atom+xml');
         $feedLinkPrevElement->setAttribute('href', $feedLinks['previous']);
         $feedElement->appendChild($feedLinkPrevElement);
     }
     // feed/link[rel=next]
     if (isset($feedLinks['next'])) {
         $feedLinkNextElement = $doc->createElement('link');
         $feedLinkNextElement->setAttribute('rel', 'next');
         $feedLinkNextElement->setAttribute('type', 'application/atom+xml');
         $feedLinkNextElement->setAttribute('href', $feedLinks['next']);
         $feedElement->appendChild($feedLinkNextElement);
     }
     // feed/link[rel=last]
     $feedLinkLastElement = $doc->createElement('link');
     $feedLinkLastElement->setAttribute('rel', 'last');
     $feedLinkLastElement->setAttribute('type', 'application/atom+xml');
     $feedLinkLastElement->setAttribute('href', $feedLinks['last']);
     $feedElement->appendChild($feedLinkLastElement);
     // feed/entry
     foreach ($items as $item) {
         $feedEntryElement = $doc->createElement('entry');
         // feed/entry/id
         $feedEntryIdElement = $doc->createElement('id');
         $feedEntryIdElement->appendChild($doc->createTextNode(record_url($item, null, true)));
         $feedEntryElement->appendChild($feedEntryIdElement);
         // feed/entry/title
         if (!($feedEntryTitle = metadata($item, array('Dublin Core', 'Title')))) {
             $feedEntryTitle = 'Untitled';
         }
         $feedEntryTitleElement = $doc->createElement('title');
         $feedEntryTitleElement->appendChild($doc->createCDATASection($feedEntryTitle));
         $feedEntryElement->appendChild($feedEntryTitleElement);
         // feed/entry/summary
         if ($feedEntrySummary = metadata($item, array('Dublin Core', 'Description'))) {
             $feedEntrySummaryElement = $doc->createElement('summary');
             $feedEntrySummaryElement->appendChild($doc->createCDATASection($feedEntrySummary));
             $feedEntryElement->appendChild($feedEntrySummaryElement);
         }
         // feed/entry/updated
         $feedEntryUpdated = $doc->createElement('updated', date(DATE_ATOM, strtotime(metadata($item, 'Modified'))));
         $feedEntryElement->appendChild($feedEntryUpdated);
         // feed/entry/link[rel=alternate]
         $feedEntryLinkAlternateElement = $doc->createElement('link');
         $feedEntryLinkAlternateElement->setAttribute('rel', 'alternate');
         $feedEntryLinkAlternateElement->setAttribute('type', 'text/html');
         $feedEntryLinkAlternateElement->setAttribute('href', record_url($item, null, true));
         $feedEntryElement->appendChild($feedEntryLinkAlternateElement);
         // feed/entry/link[rel=enclosure]
         foreach ($item->Files as $file) {
             $feedEntryLinkEnclosureElement = $doc->createElement('link');
             $feedEntryLinkEnclosureElement->setAttribute('rel', 'enclosure');
             $feedEntryLinkEnclosureElement->setAttribute('href', $file->getWebPath('original'));
             $feedEntryLinkEnclosureElement->setAttribute('type', $file->mime_type);
             $feedEntryLinkEnclosureElement->setAttribute('length', $file->size);
             $feedEntryElement->appendChild($feedEntryLinkEnclosureElement);
         }
         // feed/entry/category
         foreach ($item->Tags as $tag) {
             $feedEntryCategoryElement = $doc->createElement('category');
             $feedEntryCategoryElement->setAttribute('term', $tag->name);
             $feedEntryElement->appendChild($feedEntryCategoryElement);
         }
         // feed/entry/content
         $feedEntryContentElement = $doc->createElement('content');
         $feedEntryContentElement->setAttribute('type', 'html');
         $feedEntryContentElement->appendChild($doc->createCDATASection(all_element_texts($item)));
         $feedEntryElement->appendChild($feedEntryContentElement);
         $feedElement->appendChild($feedEntryElement);
     }
     $doc->appendChild($feedElement);
     $this->_feed = $doc;
 }
开发者ID:lchen01,项目名称:STEdwards,代码行数:101,代码来源:ItemAtom.php

示例10: preg_replace

                $file_markup = preg_replace($preg, $replace, $file_markup);
            }
            echo $file_markup;
            ?>
                <?php 
        }
        ?>
            </div>
        </div>
    <?php 
    }
}
?>

<?php 
echo all_element_texts('item', array('show_element_set_headings' => false));
?>

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

示例11: link_to_previous_item_show

            <ul class="pager">
                <li id="previous-item" class="previous"><?php 
echo link_to_previous_item_show('&larr; Previous');
?>
</li>
                <li id="next-item" class="next"><?php 
echo link_to_next_item_show('Next &rarr;');
?>
</li>
            </ul>
        </nav>
        <div class="row">
            <div class="col-sm-7">
                <h2>About this item</h2>
				<?php 
echo all_element_texts('item', array(false, false));
?>




            </div>

            <div class="col-sm-5">
                <?php 
echo get_specific_plugin_hook_output('SocialBookmarking', 'public_items_show', array('view' => $this, 'item' => $item));
?>
                <hr>
                	<br>
									<h6><span class="fa fa-book"></span> Collection</h6>
                		<p><?php 
开发者ID:pyscajor,项目名称:cornishmemory-omeka,代码行数:31,代码来源:show.php

示例12: csvAction

 function csvAction()
 {
     $this->_helper->viewRenderer->setNoRender();
     $items = explode(',', $this->getParam('id'));
     $correspondence['Contributor'] = 'Auteur';
     $correspondence['Coverage'] = 'Lieu';
     $correspondence['Creator'] = 'Producteur';
     $correspondence['Date'] = 'Date';
     $correspondence['Description'] = 'Contenu';
     $correspondence['Format'] = 'Importance matérielle';
     $correspondence['Identifier'] = 'Références';
     $correspondence['Language'] = 'Langues';
     $correspondence['Publisher'] = 'Lieu de conservation';
     $correspondence['Relation'] = 'Lien vers la notice complète';
     $correspondence['Rights'] = "Conditions d'accès";
     $correspondence['Source'] = 'Source';
     $correspondence['Subject'] = 'Sujet';
     $correspondence['Title'] = 'Titre';
     $correspondence['Type'] = 'Type';
     $correspondence['Abstract'] = 'Légende';
     $correspondence['Access Rights'] = 'Communicabilité';
     $correspondence['Further Informations'] = 'Autres informations';
     $correspondence['Relatedmaterial'] = 'Autres ressources';
     $pdf = new Omeka_Html();
     $record = get_record_by_id("Item", $items[0]);
     $sets = all_element_texts($record, array('show_empty_elements' => true, 'return_type' => 'array'));
     $csv = '';
     $j = 0;
     $headers = array();
     foreach ($items as $i) {
         $record = get_record_by_id("Item", $i);
         $sets = all_element_texts($record, array('show_empty_elements' => true, 'return_type' => 'array'));
         foreach ($sets as $key => $set) {
             foreach ($set as $key => $value) {
                 if (count($value) > 0) {
                     if (!in_array($key, $headers)) {
                         array_push($headers, $key);
                     }
                 }
             }
         }
     }
     /*
             foreach($sets as $key => $set) { 
                 foreach($set as $key => $value) { 
                     if (isset($correspondence[$key]))
                         $csv .= utf8_decode($correspondence[$key]) . ';';
                     else
                         $csv .= $key . ';';
                 }
             }
             $csv .= "\n";
     
             Titre > Titre
     Description > Contenu
     Date > Date
     Creator > Producteur
     Publisher > Lieu de conservation
     Identifier > Références
     Coverage > Lieu (indexation géographique)
     Tag > Mot clés
     Rights accessRights > Communicabilité
     Informations complémentaires > Autres informations
     */
     /*
             foreach($headers as $header) { 
                 
                 if (isset($correspondence[$header]))
                     $csv .= utf8_decode($correspondence[$header]) . ';';
                 else
                     $csv .= $header . ';';
             }
             $csv .= "\n";
     */
     $head = '';
     $counter = 0;
     foreach ($items as $i) {
         $record = get_record_by_id("Item", $i);
         $sets = all_element_texts($record, array('show_empty_elements' => true, 'return_type' => 'array'));
         // Debug
         //echo "\r\n---------\r\n\r\n";
         foreach ($sets as $set) {
             if ($counter == 0) {
                 /*
                 // $set['Test'] = "coucou";
                 $new['Title'] = $set['Title'];
                 $new['Description'] = $set['Description'];
                 $new['Date'] = $set['Date'];
                 $new['Creator'] = $set['Creator'];
                 $new['Publisher'] = $set['Publisher'];
                 $new['Identifier'] = $set['Identifier'];
                 $new['Coverage'] = $set['Coverage'];
                 $new['Rights'] = $set['Rights'];
                 $new['Access Rights'] = $set['Access Rights'];
                 $new['Further Informations'] = $set['Further Informations'];
                  $res = array_merge($new, $set);
                 // print_r($res);                
                 $set = $res;
                 */
             }
//.........这里部分代码省略.........
开发者ID:kyfr59,项目名称:cg35,代码行数:101,代码来源:ItemsController.php

示例13: all_element_texts

			<!-- Display the file's metadata -->
			<div class="file-metadata">
				<?php 
        /*verificando se possui os campos*/
        /*depois verificar quais campos serão exibidos*/
        if (isset($dublin_files['Dublin Core']['Title'])) {
            ?>
				<h4> <?php 
            echo $dublin_files['Dublin Core']['Title'][0];
            ?>
 </h4>
			<?php 
        }
        ?>
			</div>
		</div>

	<?php 
    }
    ?>
</div>
<?php 
}
$dublin_sep = all_element_texts('item', array('return_type' => 'array', 'show_element_sets' => array('Dublin Core')));
echo $dados_neatline_pos;
?>
<hr />

<!-- Link. -->
<?php 
echo link_to(get_current_record('item'), 'show', 'Ver os dados desse item na nossa biblioteca digital');
开发者ID:libraryman,项目名称:guarani,代码行数:31,代码来源:item.php


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