本文整理匯總了PHP中Widget::search方法的典型用法代碼示例。如果您正苦於以下問題:PHP Widget::search方法的具體用法?PHP Widget::search怎麽用?PHP Widget::search使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Widget
的用法示例。
在下文中一共展示了Widget::search方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1:
<a href="#toggle" class="blog-sidebar-toggle">
<i class="fa fa-bars"></i>
</a>
<aside class="blog-sidebar">
<div class="widget-wrapper">
<div class="widget-content">
<?php
echo Widget::search($speak->search . '…', '<i class="fa fa-search"></i>');
?>
</div>
</div>
<?php
if ($manager) {
?>
<div class="widget-wrapper">
<h4 class="widget-title">
<?php
echo $speak->widget->manager_menus;
?>
</h4>
<div class="widget-content">
<?php
echo Widget::manager();
?>
</div>
</div>
<?php
}
?>
<div class="widget-wrapper">
<h4 class="widget-title">
示例2: array
<a href="#toggle" class="blog-sidebar-toggle">
<i class="fa fa-bars"></i>
</a>
<aside class="blog-sidebar widgets">
<?php
Shield::chunk('block.widget', array('title' => false, 'content' => Widget::search($speak->search . '…', '<i class="fa fa-search"></i>')));
?>
<?php
if ($manager && Widget::exist('manager')) {
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
?>
<?php
}
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->tags, 'content' => Widget::tag()));
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->related_posts, 'content' => Widget::relatedPost()));
?>
<?php
Shield::chunk('block.widget', array('title' => $speak->widget->archives, 'content' => Widget::archive()));
?>
</aside>
示例3: array
<aside class="blog-sidebar widgets">
<?php
if ($manager && Widget::exist('manager')) {
Shield::chunk('block.widget', array('title' => $speak->widget->manager_menus, 'content' => Widget::manager()));
}
$ws = array(array('title' => $speak->widget->search_form, 'content' => Widget::search()), array('title' => $speak->widget->tags, 'content' => Widget::tag()), array('title' => $speak->widget->archives, 'content' => Widget::archive()));
foreach ($ws as $w) {
Shield::chunk('block.widget', $w);
}
?>
</aside>