Пример #1
0
?>
</div>	 

<div class="usa-width-one-sixth" style="text-align: center;">
<?php 
echo SAMUIKit\Other::action(['type' => 'edit', 'target' => '#']);
?>
</div>	 
<div class="usa-width-one-sixth" style="text-align: center;">
<?php 
echo SAMUIKit\Other::action(['type' => 'archive', 'target' => '#']);
?>
</div>	 
<div class="usa-width-one-sixth" style="text-align: center;">
<?php 
echo SAMUIKit\Other::action(['type' => 'unarchive', 'target' => '#']);
?>
</div>
</div>

<p><strong>Search Result</strong></p>
<div class="usa-grid-full">
<?php 
echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>'], 'metadata' => ['<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>']]);
echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>', '<p>This search result allows actions to be performed.</p>'], 'metadata' => ['<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>', '<p><strong>Metadata 2:</strong> This is another piece of metadata.</p>'], 'actions' => [['type' => 'archive', 'target' => '#'], ['type' => 'edit', 'target' => '#'], ['type' => 'delete', 'target' => '#']]]);
echo SAMUIKit\Search::result(['content' => ['<p><strong><a href="#">This is a sample title</a></strong></p>', '<p>The search result view inherits from this view. The only difference is that the search result view has a wrapping container for the addition of a border at the bottom. Therefore, the information architecture of both elements is the same.</p>']]);
?>
</div>

<p><strong>Resource</strong></p>
<div class="usa-width-one-whole">