Esempio n. 1
0
			</form>
            <div id="ajax-result-container" class="hidden" style="position: fixed;z-index: 9999;">
                <div class="list-group col-md-6 col-xs-12" id="ajax-result-items"></div>
                <div id="ajax-carcase-item" class="hidden">
                    <a href="#" class="list-group-item" id="ajax-search-link">
                        <div class="h4 list-group-item-heading" id="ajax-search-title"></div>
                        <p class="list-group-item-text" id="ajax-search-snippet"></p>
                    </a>
                </div>
            </div>
		</div>
	</div>

	<!-- Main menu -->
    <?php 
echo Navbar::display(['nav' => ['class' => 'navbar-default'], 'property' => ['id' => 'headmenu', 'class' => 'navbar-nav'], 'brand' => ['link' => '/', 'text' => __('Home')], 'collapseId' => 'collapse-mainmenu', 'activeOrder' => 'action', 'items' => [['link' => ['content/list', 'news'], 'text' => __('News'), 'position' => 'left'], ['link' => ['content/read', 'page', 'about-page'], 'text' => __('About'), 'position' => 'left'], ['link' => ['feedback/create'], 'text' => __('Feedback'), 'position' => 'left'], ['link' => ['profile/index/all'], 'text' => __('Users'), 'position' => 'right']]]);
?>

    <div class="row">
		<div class="col-md-9 content-container">
            <?php 
if ($this->breadcrumbs !== null && Obj::isArray($this->breadcrumbs)) {
    ?>
            <ol class="breadcrumb">
                <?php 
    foreach ($this->breadcrumbs as $bUrl => $bText) {
        ?>
                    <?php 
        if (Obj::isLikeInt($bUrl)) {
            // only text
            ?>
Esempio n. 2
0
<!-- Example internalization. File with translation: /Apps/View/Front/default/i18n/ru.php -->
<?php 
echo __('Example of usage internalization in template. Test var: %var%', ['var' => 'some value']);
?>

<hr />

<!-- Example of usage listing builder -->
<?php 
echo Listing::display(['type' => 'ul', 'property' => ['id' => 'primary'], 'items' => [['type' => 'text', 'text' => 'Text li item', 'property' => ['class' => 'text-text'], 'html' => false], ['type' => 'link', 'link' => ['main/index'], 'text' => 'Link li item', 'property' => ['class' => 'text-text'], 'html' => false, 'activeClass' => 'active'], ['type' => 'link', 'link' => ['main/read', 'somePath1', 'somePath2', ['a' => 'wtf', 'd' => 'test']], 'text' => 'Link li item with params', 'html' => false, 'linkProperty' => ['id' => 'link1', 'class' => 'btn btn-info']]]]);
?>

<hr />

<!-- Example of usage navigation builder -->
<?php 
echo Nav::display(['property' => ['class' => 'nav-tabs'], 'tabAnchor' => 'n', 'items' => [['type' => 'link', 'text' => 'Link to main', 'link' => ['main/index', 'test']], ['type' => 'tab', 'text' => 'Tab 1', 'content' => 'This is tab 1 content with allowed <s>html</s> data!', 'htmlContent' => true], ['type' => 'tab', 'text' => 'Tab 2', 'content' => 'This is tab 2 content'], ['type' => 'tab', 'text' => 'Tab 3', 'content' => 'This is a tab 3 content']]]);
?>

<hr />

<!-- Example of usage navbar builder -->
<?php 
echo Navbar::display(['nav' => ['class' => 'navbar-default'], 'property' => ['id' => 'headmenu', 'class' => 'navbar-nav'], 'brand' => ['link' => 'main/to', 'text' => 'FFCMS'], 'collapseId' => 'collapse-object', 'items' => [['link' => ['main/index'], 'text' => 'Link 1', 'property' => ['class' => 'test1'], 'position' => 'left'], ['link' => 'main/other', 'text' => 'Link 2', 'position' => 'left'], ['link' => 'main/read', 'text' => 'Link 7', 'position' => 'right'], 'plaintext']]);
?>

<hr />

<!-- Example of usage Table builder -->
<?php 
echo Table::display(['table' => ['class' => 'table table-bordered'], 'thead' => ['titles' => [['text' => 'id'], ['text' => 'name'], ['text' => 'family']], 'property' => ['id' => 'thead_main']], 'tbody' => ['property' => ['id' => 'tbodym'], 'items' => [[['text' => '0'], ['text' => 'Ivan'], ['text' => 'Ivanov']], [0 => ['text' => '1', 'property' => ['class' => 'test-td']], 1 => ['text' => 'Ivan'], 2 => ['text' => 'Petrov'], 'property' => ['class' => 'g-class']], [['text' => '2'], ['text' => '<b>Petr^</b>', 'html' => true], ['text' => 'Groznyi']]]]]);