本文整理汇总了PHP中UI::hidden方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::hidden方法的具体用法?PHP UI::hidden怎么用?PHP UI::hidden使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::hidden方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: link_to_route
<div class="panel-heading">
<span class="panel-title" data-icon="hdd-o">@lang('widgets::core.title.template')</span>
</div>
<div class="note note-info no-margin-b">
<div class="row">
<div class="col-sm-12">
<strong>@lang('widgets::core.settings.template_parameters'): </strong>
@foreach ($commentKeys as $param)
{!! UI::label($param) !!}
@endforeach
</div>
</div>
</div>
<?php
$defaultTemplateButton = $widget->getDefaultFrontendTemplate() ? link_to_route('backend.widget.template', UI::hidden(trans('widgets::core.button.defaultTemplate'), ['sm', 'xs']), [$widget->id], ['data-icon' => 'desktop', 'class' => 'btn popup fancybox.iframe btn-default btn-labeled', 'id' => 'defaultTemplateButton']) : null;
?>
{!! view('widgets::snippet.snippet_select', [
'template' => $widget->template,
'default' => $defaultTemplateButton
]) !!}
<div class="panel-body">
<div class="form-group form-inline">
<label class="control-label col-xs-2">@lang('widgets::core.settings.header')</label>
<div class="col-xs-10">
{!! Form::text('settings[header]', $widget->getHeader(), ['class' => 'form-control', 'size' => 40]) !!}
</div>
</div>
</div>
示例2: array
<div id="main-navbar-collapse" class="collapse navbar-collapse main-navbar-collapse">
<div>
<div class="right clearfix">
<ul class="nav navbar-nav pull-right right-navbar-nav">
<?php
Observer::notify('view_navbar_menu');
?>
<li>
<?php
echo HTML::anchor(Route::get('backend')->uri(array('controller' => 'system', 'action' => 'settings')), UI::icon('cogs fa-lg'));
?>
</li>
<li>
<?php
echo HTML::anchor(URL::base(TRUE), UI::hidden(__('View Site')), array('target' => 'blank', 'data-icon' => 'globe fa-lg text-info'));
?>
</li>
<?php
if (Auth::is_logged_in()) {
?>
<li class="dropdown user-menu">
<a href="#" class="dropdown-toggle user-menu" data-toggle="dropdown">
<?php
echo Auth::get_record()->gravatar(25);
?>
<span><?php
echo Auth::get_username();
?>
</span>
</a>
示例3: array
<div id="page-tree" class="panel">
<div class="panel-heading">
<?php
if (Acl::check('page.add')) {
?>
<?php
echo UI::button(UI::hidden(__('Add page')), array('class' => 'btn-default', 'href' => Route::get('backend')->uri(array('controller' => 'page', 'action' => 'add')), 'icon' => UI::icon('plus'), 'data-hotkeys' => 'ctrl+a'));
?>
<?php
}
?>
<?php
if (Acl::check('page.sort')) {
?>
<?php
echo UI::button(__('Reorder'), array('id' => 'pageMapReorderButton', 'class' => 'btn-primary btn-sm', 'icon' => UI::icon('sort'), 'data-hotkeys' => 'ctrl+s'));
?>
<?php
}
?>
<div class="panel-heading-controls hidden-xs hidden-sm">
<?php
echo View::factory('page/blocks/search');
?>
</div>
</div>
<table id="page-tree-header" class="table table-primary">
<thead>
示例4: foreach
?>
: </strong>
<?php
foreach ($params as $param) {
?>
<?php
echo UI::label($param);
?>
<?php
}
?>
</div>
</div>
</div>
<?php
echo View::factory('helper/snippet_select', array('template' => $widget->template, 'default' => $widget->default_template() ? UI::button(UI::hidden(__('Default template'), array('sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'widgets', 'action' => 'template', 'id' => $widget->id)), 'icon' => UI::icon('desktop'), 'id' => 'defaultTemplateButton', 'class' => 'popup fancybox.iframe btn-default')) : NULL));
?>
<?php
}
?>
<?php
if ($widget->use_caching() and ACL::check('widgets.cache')) {
?>
<div class="panel-heading">
<span class="panel-title" data-icon="hdd-o"><?php
echo __('Caching');
?>
</span>
示例5: array
<div class="panel-heading">
<?php
if (ACL::check('layout.add')) {
?>
<?php
echo UI::button(UI::hidden(__('Add layout')), array('icon' => UI::icon('plus'), 'href' => Route::get('backend')->uri(array('controller' => 'layout', 'action' => 'add')), 'data-hotkeys' => 'ctrl+a', 'class' => 'btn-primary'));
?>
<?php
}
?>
<?php
if (ACL::check('layout.rebuild')) {
?>
<?php
echo UI::button(UI::hidden(__('Rebuild blocks')), array('icon' => UI::icon('refresh'), 'class' => 'btn-inverse btn-xs', 'data-api-url' => 'layout.rebuild', 'data-method' => Request::POST));
?>
<?php
}
?>
</div>
<?php
} else {
?>
<div class="alert alert-danger alert-dark no-margin-b">
<?php
echo __('Folder :folder is not writable', array(':folder' => LAYOUTS_SYSPATH));
?>
</div>
<?php
}
示例6: array
?>
<div class="btn-group">
<?php
if (ACL::check('snippet.edit')) {
?>
<?php
echo UI::button(UI::hidden(__('Edit snippet'), array('md', 'sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'snippet', 'action' => 'edit', 'id' => $template)), 'icon' => UI::icon('edit'), 'class' => 'popup fancybox.iframe btn-primary' . $hidden, 'id' => 'EditTemplateButton'));
?>
<?php
}
?>
<?php
if (ACL::check('snippet.add')) {
?>
<?php
echo UI::button(UI::hidden(__('Add snippet'), array('md', 'sm', 'xs')), array('href' => Route::get('backend')->uri(array('controller' => 'snippet', 'action' => 'add')), 'icon' => UI::icon('plus'), 'class' => 'popup fancybox.iframe btn-success', 'id' => 'AddTemplateButton'));
?>
<?php
}
?>
<?php
echo $default;
?>
</div>
</div>
</div>
</div>
</div>
示例7: __
}
?>
<?php
if ($datasource->has_access('document.remove')) {
?>
<button type="button" data-action="remove" class="btn btn-warning action disabled" data-icon="trash-o" title="<?php
echo __('Remove');
?>
"></button>
<?php
}
?>
</div>
<div class="btn-group">
<?php
if ($datasource->has_access('document.create')) {
?>
<?php
echo UI::button(UI::hidden(__('Create document')), array('href' => Route::get('datasources')->uri(array('controller' => 'document', 'directory' => $datasource->type(), 'action' => 'create')) . URL::query(array('ds_id' => $datasource->id())), 'icon' => UI::icon('plus'), 'data-hotkeys' => 'ctrl+a', 'class' => 'btn-primary'));
?>
<?php
}
?>
</div>
<?php
Observer::notify('datasource.headline.actions', $datasource);
?>
</div>
示例8: array
<?php
echo UI::button(__('Save'), array('class' => 'btn-success btn-save btn-lg', 'icon' => UI::icon('retweet'), 'name' => 'continue', 'data-hotkeys' => 'ctrl+s'));
?>
<?php
echo UI::button(__('Save and Close'), array('class' => 'btn-save-close btn-default hidden-xs', 'icon' => UI::icon('check'), 'name' => 'commit', 'data-hotkeys' => 'ctrl+shift+s'));
?>
<?php
echo HTML::anchor($uri, UI::hidden(__('Cancel')), array('data-icon' => 'ban', 'class' => 'btn btn-close btn-sm btn-outline'));