本文整理匯總了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'));