本文整理汇总了PHP中Zend_View_Interface::imageTag方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_View_Interface::imageTag方法的具体用法?PHP Zend_View_Interface::imageTag怎么用?PHP Zend_View_Interface::imageTag使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_View_Interface
的用法示例。
在下文中一共展示了Zend_View_Interface::imageTag方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lockIcon
/**
* Output a lock icon which also serves as a link to unlock a page (if the user has permission
* to do this)
*
* @param Array menu item array for this lock
* @param DbUserModel user that is currently logged in
* @return string
*/
public function lockIcon($menu, DbUserModel $user)
{
if ($menu['locked']) {
$user = new DbUserModel(array('dbUserID' => $menu['locked'], 'depth' => 'dbUser'));
$title = "Currently locked by '{$this->h($user->dbUserFullName)}'.";
if ($user->hasAccess('edit', $menu['page']) || $user->hasAccess('approve', $menu['page'])) {
$title .= ' Click to unlock.';
$html = $this->view->linkTo('#', $this->view->imageTag('icons/ffffff/lock_small.png', array('id' => $this->view->url(array('action' => 'unlock', 'id' => $menu['page']->pageID)), 'class' => 'inline lock tooltip', 'tooltip' => $title)));
} else {
$html = $this->view->imageTag('icons/ffffff/lock_small.png', array('class' => 'inline', 'title' => $title));
}
} else {
$html = '';
}
return $html;
}
示例2: optionButton
/**
* Outputs an option button for the "more options" panel
*
* @param string name of the javascript event handler
* @param string image filename
* @param string description (when hovered over)
* @param string (optional) class to apply to the button
* @return string
*/
public function optionButton($handler, $image, $description, $class = 'inline')
{
$image = 'icons/ffffff/' . $image;
return $this->view->linkTo("#{$handler}", $this->view->imageTag($image, array('class' => $class, 'title' => $description)));
}