当前位置: 首页>>代码示例>>PHP>>正文


PHP ZurmoHtml::image方法代码示例

本文整理汇总了PHP中ZurmoHtml::image方法的典型用法代码示例。如果您正苦于以下问题:PHP ZurmoHtml::image方法的具体用法?PHP ZurmoHtml::image怎么用?PHP ZurmoHtml::image使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ZurmoHtml的用法示例。


在下文中一共展示了ZurmoHtml::image方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: renderContent

 protected function renderContent()
 {
     $imagePath = Yii::app()->themeManager->baseUrl . '/default/images/ajax-loader.gif';
     $progressBarImageContent = ZurmoHtml::image($imagePath, 'Progress Bar');
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($cs->getCoreScriptUrl() . '/jquery.min.js', CClientScript::POS_END);
     $zurmoUpgradeStepTwoUrl = Yii::app()->createUrl($this->moduleId . '/' . $this->controllerId . '/stepTwo/');
     $loginUrl = Yii::app()->createUrl('zurmo/default');
     $content = '<div class="MetadataView">';
     $content .= '<table><tr><td>';
     $content .= '<div id="upgrade-step-two" style="display:none;">';
     $content .= '<table><tr><td>';
     $content .= Zurmo::t('InstallModule', 'The next step is to reload the application and upgrade the schema.');
     $content .= '<br/><br/>';
     $content .= ZurmoHtml::link(Zurmo::t('InstallModule', 'Click Here to continue with next step'), $zurmoUpgradeStepTwoUrl);
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= '<div id="progress-table">';
     $content .= '<table><tr><td class="progress-bar">';
     $content .= Zurmo::t('InstallModule', 'Upgrade in progress. Please wait.');
     $content .= '<br/>';
     $content .= $progressBarImageContent;
     $content .= '<br/>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= Zurmo::t('InstallModule', 'Upgrade Output:');
     $content .= '<div id="logging-table">';
     $content .= '</div>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     return $content;
 }
开发者ID:sandeep1027,项目名称:zurmo_,代码行数:32,代码来源:UpgradeStepOneCompleteView.php

示例2: renderContent

 protected function renderContent()
 {
     $this->registerRunJobInBackgroundScript();
     $imagePath = Yii::app()->themeManager->baseUrl . '/default/images/ajax-loader.gif';
     $progressBarImageContent = ZurmoHtml::image($imagePath, 'Progress Bar');
     $content = '<div class="wrapper">';
     $content .= ZurmoHtml::tag('h1', array(), $this->getJobLabel());
     $content .= '<div class="left-column full-width">';
     $content .= '<div id="complete-table" style="display:none;">';
     $content .= ZurmoHtml::tag('h3', array(), Zurmo::t('JobsManagerModule', 'The job has completed running.'));
     $content .= '</div>';
     $content .= '<div id="progress-table" class="progress-bar">';
     $content .= Zurmo::t('JobsManagerModule', 'Job is running. Please wait.');
     $content .= '<br/>';
     $content .= $progressBarImageContent;
     $content .= '</div>';
     $content .= '<div id="logging-table">';
     $content .= ZurmoHtml::tag('h3', array(), Zurmo::t('JobsManagerModule', 'Job Output:'));
     $content .= ZurmoHtml::tag('ol', array(), '');
     $content .= '</div>';
     $content .= $this->renderButtonsContent();
     $content .= '</div>';
     $content .= '</div>';
     return $content;
 }
开发者ID:KulturedKitsch,项目名称:kulturedkitsch.info,代码行数:25,代码来源:RunJobView.php

示例3: renderContent

 protected function renderContent()
 {
     $imagePath = Yii::app()->themeManager->baseUrl . '/default/images/ajax-loader.gif';
     $progressBarImageContent = ZurmoHtml::image($imagePath, 'Progress Bar');
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($cs->getCoreScriptUrl() . '/jquery.min.js', CClientScript::POS_END);
     $loginUrl = Yii::app()->createUrl('zurmo/default');
     $content = '<div class="MetadataView">';
     $content .= '<table><tr><td>';
     $content .= '<div id="upgrade-step-two" style="display:none;">';
     $content .= '<table><tr><td>';
     $content .= Zurmo::t('InstallModule', 'Upgrade process is completed. Please edit perInstance.php file, and disable maintenance mode.');
     $content .= '<br/><br/>';
     $content .= ZurmoHtml::link(Zurmo::t('InstallModule', 'Click here to access index page, after you disable maintenance mode.'), $loginUrl);
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= '<div id="progress-table">';
     $content .= '<table><tr><td class="progress-bar">';
     $content .= Zurmo::t('InstallModule', 'Upgrade in progress. Please wait.');
     $content .= '<br/>';
     $content .= $progressBarImageContent;
     $content .= '<br/>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= Zurmo::t('InstallModule', 'Upgrade Output:');
     $content .= '<div id="logging-table">';
     $content .= '</div>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:31,代码来源:UpgradeStepTwoCompleteView.php

示例4: renderContent

 protected function renderContent()
 {
     $imagePath = Yii::app()->themeManager->baseUrl . '/default/images/ajax-loader.gif';
     $progressBarImageContent = ZurmoHtml::image($imagePath, 'Progress Bar');
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($cs->getCoreScriptUrl() . '/jquery.min.js', CClientScript::POS_END);
     $loginUrl = Yii::app()->createUrl('zurmo/default');
     $content = '<div class="MetadataView">';
     $content .= '<table><tr><td>';
     $content .= '<div id="complete-table" style="display:none;">';
     $content .= '<table><tr><td>';
     $content .= Zurmo::t('InstallModule', 'Congratulations! The demo data has been successfully loaded.');
     $content .= '<br/>';
     $content .= '<br/>';
     $content .= Zurmo::t('InstallModule', 'Click below to go to the login page. The username is <b>super</b>');
     $content .= '<br/><br/>';
     $content .= ZurmoHtml::link(Zurmo::t('ZurmoModule', 'Sign in'), $loginUrl);
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= '<div id="progress-table">';
     $content .= '<table><tr><td class="progress-bar">';
     $content .= Zurmo::t('InstallModule', 'Loading demo data. Please wait.');
     $content .= '<br/>';
     $content .= $progressBarImageContent;
     $content .= '<br/>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= Zurmo::t('InstallModule', 'Installation Output:');
     $content .= '<div id="logging-table">';
     $content .= '</div>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:34,代码来源:InstallDemoDataView.php

示例5: renderControlContentNonEditable

 protected function renderControlContentNonEditable()
 {
     $src = $this->resolveExpanderImageUrl();
     $alt = static::resolveLabel();
     $options = $this->resolveFrontendPropertiesNonEditable();
     $content = ZurmoHtml::image($src, $alt, $options);
     return $content;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:8,代码来源:BuilderExpanderElement.php

示例6: resolveAvatarContent

 protected function resolveAvatarContent()
 {
     $content = Yii::app()->dataEnhancer->getPersonAvatar($this->model);
     if ($content == null) {
         $htmlOptions = array('class' => 'gravatar', 'width' => '100', 'height' => '100');
         $url = Yii::app()->theme->baseUrl . '/images/offline_user.png';
         $content = ZurmoHtml::image($url, strval($this->model), $htmlOptions);
     }
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:10,代码来源:PersonCardViewLayout.php

示例7: renderContent

 protected function renderContent()
 {
     $imagePath = Yii::app()->themeManager->baseUrl . '/default/images/ajax-loader.gif';
     $progressBarImageContent = ZurmoHtml::image($imagePath, 'Progress Bar');
     $cs = Yii::app()->getClientScript();
     $cs->registerScriptFile($cs->getCoreScriptUrl() . '/jquery.min.js', CClientScript::POS_END);
     $demoDataUrl = Yii::app()->createUrl($this->moduleId . '/' . $this->controllerId . '/installDemoData/');
     $loginUrl = Yii::app()->createUrl('zurmo/default');
     $content = '<div class="MetadataView">';
     $content .= '<table><tr><td>';
     $content .= '<div id="demo-data-table" style="display:none;">';
     $content .= '<table><tr><td>';
     $content .= Zurmo::t('InstallModule', 'The next step is to install the demo data.');
     $content .= '<br/><br/>';
     $content .= ZurmoHtml::link(ZurmoHtml::wrapLabel(Zurmo::t('InstallModule', 'Click Here to install the demo data')), $demoDataUrl, array('class' => 'z-button'));
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= '<div id="complete-table" style="display:none;">';
     $content .= '<table><tr><td>';
     $content .= Zurmo::t('InstallModule', 'Congratulations! The installation of Zurmo is complete.');
     $content .= '<br/>';
     $content .= '<br/>';
     $content .= Zurmo::t('InstallModule', 'Click below to go to the login page. The username is <b>super</b>');
     $content .= '<br/><br/>';
     $content .= ZurmoHtml::link(ZurmoHtml::wrapLabel(Zurmo::t('InstallModule', 'Sign in')), $loginUrl, array('class' => 'z-button'));
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= '<div id="progress-table">';
     $content .= '<table><tr><td class="progress-bar">';
     $content .= Zurmo::t('InstallModule', 'Installation in progress. Please wait.');
     $content .= '<br/>';
     $content .= $progressBarImageContent;
     $content .= '<br/>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     $content .= Zurmo::t('InstallModule', 'Installation Output:');
     $content .= '<div id="logging-table">';
     $content .= '</div>';
     $content .= '</td></tr></table>';
     $content .= '</div>';
     return $content;
 }
开发者ID:youprofit,项目名称:Zurmo,代码行数:42,代码来源:InstallCompleteView.php

示例8: resolveContentForEmailOpenTracking

 protected static function resolveContentForEmailOpenTracking(&$content, $isHtmlContent = false)
 {
     if (!$isHtmlContent) {
         return false;
     }
     $hash = StringUtil::resolveHashForQueryStringArray(static::$baseQueryStringArray);
     $trackingUrl = static::resolveAbsoluteTrackingUrlByHash($hash);
     $applicationName = ZurmoConfigurationUtil::getByModuleName('ZurmoModule', 'applicationName');
     if (!isset($applicationName)) {
         $applicationName = 'Tracker';
     }
     $imageTag = ZurmoHtml::image($trackingUrl, $applicationName, array('width' => 1, 'height' => 1));
     $imageTag = ZurmoHtml::tag('br') . $imageTag;
     if ($bodyTagPosition = strpos($content, '</body>')) {
         $content = substr_replace($content, $imageTag . '</body>', $bodyTagPosition, strlen('</body>'));
     } else {
         $content .= $imageTag;
     }
     return true;
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:20,代码来源:ContentTrackingUtil.php

示例9: resolvePaddingTdContent

 /**
  * Resolve padding td content
  * @return string
  */
 protected function resolvePaddingTdContent()
 {
     $src = $this->resolveDummyDividerImageUrl();
     $alt = static::resolveLabel();
     if (isset($this->properties['backend']) && isset($this->properties['backend']['divider-padding'])) {
         $height = $this->properties['backend']['divider-padding'];
     } else {
         $height = 0;
     }
     $imageOptions = array('height' => $height);
     $content = ZurmoHtml::image($src, $alt, $imageOptions);
     $content = ZurmoHtml::tag('tr', array(), ZurmoHtml::tag('td', array(), $content));
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:18,代码来源:BuilderDividerElement.php

示例10: getAvatarImage

 public function getAvatarImage($size = 250, $addScheme = false)
 {
     $avatarUrl = $this->getAvatarImageUrl($size, $addScheme);
     return ZurmoHtml::image($avatarUrl, $this->getFullName(), array('class' => 'gravatar', 'width' => $size, 'height' => $size));
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:5,代码来源:User.php

示例11: renderForm

 protected function renderForm()
 {
     $this->renderScripts();
     list($form, $formStart) = $this->controller->renderBeginWidget('ZurmoActiveForm', array('id' => 'image-edit-form', 'enableAjaxValidation' => true, 'clientOptions' => array('validateOnSubmit' => true, 'validateOnChange' => false, 'beforeValidate' => 'js:$(this).beforeValidateAction', 'afterValidate' => 'js:$(this).afterValidateAjaxAction', 'afterValidateAjax' => $this->renderConfigSaveAjax())));
     $src = ImageFileModelUtil::getUrlForGetImageFromImageFileName($this->model->getImageCacheFileName());
     $content = $formStart;
     $content .= ZurmoHtml::openTag('div', array('class' => 'form-inputs right-column'));
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'cropX');
     $content .= $form->numberField($this->formModel, 'cropX');
     $content .= $form->error($this->formModel, 'cropX');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'cropY');
     $content .= $form->numberField($this->formModel, 'cropY');
     $content .= $form->error($this->formModel, 'cropY');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'cropWidth');
     $content .= $form->numberField($this->formModel, 'cropWidth');
     $content .= $form->error($this->formModel, 'cropWidth');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'cropHeight');
     $content .= $form->numberField($this->formModel, 'cropHeight');
     $content .= $form->error($this->formModel, 'cropHeight');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'imageWidth');
     $content .= $form->numberField($this->formModel, 'imageWidth');
     $content .= $form->error($this->formModel, 'imageWidth');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'imageHeight');
     $content .= $form->numberField($this->formModel, 'imageHeight');
     $content .= $form->error($this->formModel, 'imageHeight');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::openTag('div', array('class' => 'image-resize-field clearfix'));
     $content .= $form->labelEx($this->formModel, 'lockImageProportion');
     $content .= $form->checkBox($this->formModel, 'lockImageProportion');
     $content .= $form->error($this->formModel, 'lockImageProportion');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::tag('div', array('class' => 'left-column'), ZurmoHtml::image($src, '', array('class' => 'crop-and-resize')));
     $linkOptions = array('onclick' => "\$(this).addClass('attachLoadingTarget').closest('form').submit()", 'class' => 'z-button');
     $content .= ZurmoHtml::openTag('div', array('class' => 'view-toolbar-container clearfix'));
     $content .= ZurmoHtml::openTag('div', array('class' => 'form-toolbar'));
     $content .= ZurmoHtml::link(ZurmoHtml::tag('span', array('class' => 'z-label'), Zurmo::t('Core', 'Save')), "#", $linkOptions);
     $content .= ZurmoHtml::closeTag('div');
     $content .= ZurmoHtml::closeTag('div');
     $content .= $this->controller->renderEndWidget();
     return $content;
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:53,代码来源:ImageEditView.php

示例12: renderGetNewCollectionItemNotification

 protected static function renderGetNewCollectionItemNotification()
 {
     $collectionAndItemKey = Yii::app()->gameHelper->resolveNewCollectionItems();
     if (null != $collectionAndItemKey) {
         $claimCollectionItemUrl = Yii::app()->createUrl('gamification/default/claimCollectionItem', array('key' => $collectionAndItemKey[1], 'typeKey' => $collectionAndItemKey[2]));
         $gameCollectionRules = GameCollectionRulesFactory::createByType($collectionAndItemKey[0]->type);
         $collectionItemTypesAndLabels = $gameCollectionRules::getItemTypesAndLabels();
         $claimRewardLink = ZurmoHtml::ajaxLink(Zurmo::t('GamificationModule', 'Get this item'), $claimCollectionItemUrl, array(), array('id' => static::CLAIM_ITEM_LINK_ID, 'class' => 'mini-button'));
         $closeLink = ZurmoHtml::link(Zurmo::t('Core', 'Close'), '#', array('id' => 'close-game-notification-link'));
         $collectionItemImagePath = $gameCollectionRules::makeMediumCOllectionItemImagePath($collectionAndItemKey[1]);
         $outerContent = ZurmoHtml::tag('h5', array(), Zurmo::t('Core', 'Congratulations!'));
         $content = ZurmoHtml::tag('span', array('class' => 'collection-item-image'), ZurmoHtml::image($collectionItemImagePath));
         $content .= Zurmo::t('GamificationModule', 'You discovered the {name}', array('{name}' => $collectionItemTypesAndLabels[$collectionAndItemKey[1]]));
         $content .= '<br/>';
         $content .= Zurmo::t('GamificationModule', '{claimLink} or {closeLink}', array('{claimLink}' => $claimRewardLink, '{closeLink}' => $closeLink));
         $content = $outerContent . ZurmoHtml::tag('p', array(), $content);
         $content = ZurmoHtml::tag('div', array('id' => 'game-notification'), $content);
         $content .= static::renderAudioContent();
         return $content;
     }
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:21,代码来源:HeaderLinksView.php

示例13: renderImage

 protected function renderImage($isThumb = false)
 {
     $altText = '';
     $htmlOptions = array();
     if (!$isThumb) {
         $altText = $this->getAltText();
         $htmlOptions = $this->getHtmlOptions();
     }
     if ($this->image != null) {
         $url = ImageFileModelUtil::getUrlForGetImageFromImageFileName($this->image->getImageCacheFileName(), $isThumb);
     } else {
         $url = PlaceholderImageUtil::resolvePlaceholderImageUrl();
     }
     return ZurmoHtml::image($url, $altText, $htmlOptions);
 }
开发者ID:RamaKavanan,项目名称:InitialVersion,代码行数:15,代码来源:ImageElement.php

示例14: renderContent

 /**
  * @inheritdoc
  */
 protected function renderContent()
 {
     return ZurmoHtml::image(ImageFileModelUtil::getUrlForGetImageFromImageFileName($this->imageFileName));
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:7,代码来源:ImagePreviewView.php

示例15: getImageSummary

 public static function getImageSummary(ImageFileModel $imageFileModel, $layout = null)
 {
     $data = array();
     if ($layout == null) {
         $layout = static::getDefaultLayout();
     }
     $imagePath = ImageFileModel::getImageCachePathByFileName($imageFileModel->getImageCacheFileName(), false);
     if (!file_exists($imagePath)) {
         $imageFileModel->createImageCache();
     }
     static::resolveWidthAndHeightAttributesIfTheyAreMissing($imageFileModel);
     $url = static::getUrlForGetImageFromImageFileName($imageFileModel->getImageCacheFileName(), true);
     $urlForPreview = Yii::app()->createAbsoluteUrl('zurmo/imageModel/modalPreview', array('fileName' => $imageFileModel->getImageCacheFileName()));
     $data['{image}'] = ZurmoHtml::image($url, '', array('data-url' => $urlForPreview));
     $data['{name}'] = $imageFileModel->name;
     $data['{size}'] = FileModelDisplayUtil::convertSizeToHumanReadableAndGet((int) $imageFileModel->size);
     $data['{dimensions}'] = $imageFileModel->width . ' × ' . $imageFileModel->height;
     $data['{creator}'] = $imageFileModel->createdByUser;
     $data['{createdTime}'] = DateTimeUtil::convertDbFormattedDateTimeToLocaleFormattedDisplay($imageFileModel->createdDateTime);
     $data['{selectLink}'] = static::getSelectLink();
     $data['{editLink}'] = static::getEditLink();
     return strtr($layout, $data);
 }
开发者ID:maruthisivaprasad,项目名称:zurmo,代码行数:23,代码来源:ImageFileModelUtil.php


注:本文中的ZurmoHtml::image方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。