本文整理汇总了PHP中ZurmoHtml::icon方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoHtml::icon方法的具体用法?PHP ZurmoHtml::icon怎么用?PHP ZurmoHtml::icon使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ZurmoHtml
的用法示例。
在下文中一共展示了ZurmoHtml::icon方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: run
public function run()
{
// Begin Not Coding Standard
$javaScript = "\n \$(document).ready(function()\n {\n \$('#{$this->inputId}').iris({\n change: {$this->change},\n palettes: {$this->palettes},\n });\n }\n );\n ";
// End Not Coding Standard
Yii::app()->getClientScript()->registerScript(__CLASS__ . '#' . $this->id, $javaScript, CClientScript::POS_END);
$this->resolveHtmlOptions();
$inputField = ZurmoHtml::textField($this->inputName, $this->inputValue, $this->htmlOptions);
$icon = ZurmoHtml::icon('icon-color-picker');
echo ZurmoHtml::tag('div', array('class' => 'has-color-picker'), $inputField . $icon);
}
示例2: getIconByProperty
protected static function getIconByProperty($property)
{
$propertiesSuffixMappedArray = BaseBuilderElement::getPropertiesSuffixMappedArray();
if (isset($propertiesSuffixMappedArray[$property])) {
$icon = $propertiesSuffixMappedArray[$property];
switch ($icon) {
case '%':
$iconClass = 'icon-percentage';
break;
case 'px':
$iconClass = 'icon-pixel';
break;
}
return ZurmoHtml::icon($iconClass);
}
}
示例3: resolveThumbnail
protected function resolveThumbnail()
{
$unserializedData = CJSON::decode($this->model->serializedData);
$icon = ArrayUtil::getArrayValue($unserializedData, 'icon');
if (!empty($icon)) {
return ZurmoHtml::icon($icon);
} else {
return ZurmoHtml::icon('icon-user-template');
}
}
示例4: renderCloseSelectTemplatesButton
protected function renderCloseSelectTemplatesButton()
{
$linkText = ZurmoHtml::icon('icon-x');
$linkText .= Zurmo::t('Core', 'cancel');
return ZurmoHtml::link($linkText, '#', array('class' => 'simple-link ' . static::CLOSE_LINK_CLASS_NAME));
}
示例5: resolveThumbnail
protected function resolveThumbnail()
{
if ($this->model->isFeatured) {
if ($thumbnail = Yii::app()->custom->resolveThumbnailForFeaturedEmailTemplate($this->model)) {
return $thumbnail;
}
}
return ZurmoHtml::icon($this->icon);
}