Пример #1
0
<h2>Footers</h2>
<h3>Slim w/ only required keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'slim', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency']);
?>

<h3>Slim w/ all the keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'slim', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency', 'links' => ['/1' => 'Primary link', '/2' => 'Primary link', '/3' => 'Primary link', '/4' => 'Primary link', '/5' => 'Should not be displayed'], 'number' => '(800) CALL-GOVT', 'email' => '*****@*****.**']);
?>

<h3>Medium w/ only required keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'medium', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency']);
?>

<h3>Medium w/ all keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'medium', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency', 'links' => ['/1' => 'Primary link', '/2' => 'Primary link', '/3' => 'Primary link', '/4' => 'Primary link', '/5' => 'Primary link', '/6' => 'Should not be displayed'], 'number' => '(800) CALL-GOVT', 'email' => '*****@*****.**', 'social' => ['facebook' => '/facebook', 'twitter' => '/twitter', 'youtube' => '/youtube', 'rss' => '/rss']]);
?>

<h3>Big w/ only required keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'big', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency']);
?>

<h3>Big w/ all keys</h3>
<?php 
echo SAMUIKit\Other::footer(['type' => 'big', 'logo' => ['path' => '/img/logo-img.png', 'alt' => 'Alternative description of logo'], 'name' => 'Name of Agency', 'number' => '(800) CALL-GOVT', 'email' => '*****@*****.**', 'social' => ['facebook' => '/facebook', 'twitter' => '/twitter', 'youtube' => '/youtube', 'rss' => '/rss'], 'signUpTarget' => '/sign-up-target', 'sections' => [['title' => 'Topic', 'links' => ['/1' => 'Secondary link', '/2' => 'Secondary link', '/3' => 'Secondary link', '/4' => 'Secondary link']], ['title' => 'Topic', 'links' => ['/1' => 'Secondary link', '/2' => 'Secondary link', '/3' => 'Secondary link', '/4' => 'Secondary link']], ['title' => 'Topic', 'links' => ['/1' => 'Secondary link', '/2' => 'Secondary link', '/3' => 'Secondary link', '/4' => 'Secondary link']], ['title' => 'Topic', 'links' => ['/1' => 'Secondary link', '/2' => 'Secondary link', '/3' => 'Secondary link', '/4' => 'Secondary link']], ['title' => 'Not displayed', 'links' => ['/1' => 'Secondary link', '/2' => 'Secondary link', '/3' => 'Secondary link', '/4' => 'Secondary link']]]]);
include_once './partials/htmlClose.php';
Пример #2
0
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">
<h1>Viewing a Single Resource</h1>
<?php 
echo SAMUIKit\Other::resource(['content' => ['<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>']]);
echo SAMUIKit\Other::resource(['content' => ['<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>'], 'metadata' => [['template' => 'Other|label', 'config' => ['title' => 'New', 'surround' => '<p>|</p>']], '<p><strong>Metadata 1:</strong> This is a piece of metadata.</p>'], 'actions' => [['type' => 'archive', 'target' => '#'], ['type' => 'edit', 'target' => '#'], ['type' => 'delete', 'target' => '#']]]);
?>
</div>

<p><strong>State select</strong></p>
<div class="usa-width-one-whole">
<?php 
echo SAMUIKit\FormControls::stateSelect();
?>
</div>
<?php 
include_once './partials/htmlClose.php';