本文整理汇总了PHP中UI::badge方法的典型用法代码示例。如果您正苦于以下问题:PHP UI::badge方法的具体用法?PHP UI::badge怎么用?PHP UI::badge使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UI
的用法示例。
在下文中一共展示了UI::badge方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __
?>
<span class="input-group-addon"><?php
echo EXT;
?>
</span>
</div>
</div>
</div>
</div>
<div class="panel-heading">
<span class="panel-title"><?php
echo __('Content');
?>
</span>
<?php
echo UI::badge($layout->get_relative_path());
?>
<?php
if ($layout->is_writable() or !$layout->is_exists()) {
?>
<div class="panel-heading-controls">
<?php
echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m'));
?>
</div>
<?php
}
?>
</div>
<?php
示例2: __
?>
<span class="input-group-addon"><?php
echo EXT;
?>
</span>
</div>
</div>
</div>
</div>
<div class="panel-heading">
<span class="panel-title"><?php
echo __('Content');
?>
</span>
<?php
echo UI::badge($snippet->get_relative_path());
?>
<?php
if ($snippet->is_writable() or !$snippet->is_exists()) {
?>
<div class="panel-heading-controls">
<?php
echo UI::button(__('File manager'), array('class' => 'btn-filemanager btn-flat btn-info btn-sm', 'data-el' => 'textarea_content', 'icon' => UI::icon('folder-open'), 'data-hotkeys' => 'ctrl+m'));
?>
</div>
<?php
}
?>
</div>
<?php
echo Form::textarea('content', $snippet->content, array('id' => 'textarea_content', 'tabindex' => 2, 'data-height' => 600, 'data-readonly' => (!$snippet->is_exists() or $snippet->is_exists() and $snippet->is_writable()) ? 'off' : 'on'));