本文整理汇总了PHP中BFCHelper::getImageUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::getImageUrl方法的具体用法?PHP BFCHelper::getImageUrl怎么用?PHP BFCHelper::getImageUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BFCHelper
的用法示例。
在下文中一共展示了BFCHelper::getImageUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
});
//-->
</script>
<?php
} elseif (count($images) == 1) {
?>
<div class="com_bookingforconnector_resource-image">
<img src="<?php
echo BFCHelper::getImageUrl('resources', $images[0], 'resource_mono_full');
?>
" />
</div>
<?php
}
?>
示例2: AND
$uri = 'index.php?option=com_bookingforconnector&view=resource';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri) . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
//$itemId = ($db->getErrorNum())? 0 : intval($db->loadResult());
$itemId = intval($db->loadResult());
//------------------- pagina per i l redirect di tutte le risorse
//$route = JRoute::_('index.php?option=com_bookingforconnector&view=resource&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
if ($itemId != 0) {
$route = JRoute::_($uri . '&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName) . '&Itemid=' . $itemId);
} else {
$route = JRoute::_($uri . '&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
}
$img = JURI::root() . "components/com_bookingforconnector/assets/images/defaults/default-s6.jpeg";
$imgError = JURI::root() . "components/com_bookingforconnector/assets/images/defaults/default-s6.jpeg";
if ($resource->ImageUrl != '') {
$img = BFCHelper::getImageUrlResized('resources', $resource->ImageUrl, 'medium');
$imgError = BFCHelper::getImageUrl('resources', $resource->ImageUrl, 'medium');
}
$imageData = $resource->ImageData;
$images = array();
$merchantLogoPath = BFCHelper::getImageUrlResized('merchant', $merchant->LogoUrl, 'logomedium');
if ($resource->ImageData != null) {
foreach (explode(',', $imageData) as $image) {
$images[] = BFCHelper::getImageUrlResized('resources', $image, 'medium');
}
} else {
$images[] = $img;
}
?>
<div class="<?php
echo COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL;
?>
示例3: foreach
var form = option.form;
form.submit();
}
//-->
</script>
</fieldset>
</form>
<div class="com_bookingforconnector-merchantlist">
<?php
foreach ($condominiums as $condominium) {
$counter = 0;
$resourceName = BFCHelper::getLanguage($condominium->Name, $this->language);
//$route = JRoute::_('index.php?option=com_bookingforconnector&view=condominium&ResourceId=' . $condominium->CondominiumId . ':' . BFCHelper::getSlug($resourceName));
$imgdefault = JURI::root() . "images/default.jpg";
$imagesPath = BFCHelper::getImageUrlResized('condominium', "[img]", 'condominium_list_default');
$imagesPathError = BFCHelper::getImageUrl('condominium', "[img]", 'condominium_list_default');
if ($itemId != 0) {
$route = JRoute::_($uri . '&resourceId=' . $condominium->CondominiumId . ':' . BFCHelper::getSlug($resourceName) . '&Itemid=' . $itemId);
} else {
$route = JRoute::_($uri . '&resourceId=' . $condominium->CondominiumId . ':' . BFCHelper::getSlug($resourceName) . '');
}
?>
<div class="com_bookingforconnector_search-merchant">
<div class="com_bookingforconnector-merchantlist-merchant com_bookingforconnector-merchantlist-merchant-t">
<div class="com_bookingforconnector-merchantlist-merchant-features">
<div class="pull-left">
<a class="com_bookingforconnector-merchantlist-merchant-imgAnchor" href="<?php
echo $route;
?>
" id="imgAnchor<?php
echo $condominium->CondominiumId;
示例4: elseif
autoScaleSlider: true,
arrowsNav:true
});
});
//-->
</script>
<?php
} elseif ($merchant != null && $merchant->LogoUrl != '') {
?>
<img src="<?php
echo BFCHelper::getImageUrlResized('merchant', $merchant->LogoUrl, 'resource_mono_full');
?>
" onerror="this.onerror=null;this.src='<?php
echo BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'resource_mono_full');
?>
'" />
<?php
} else {
?>
<img class="" src="<?php
echo JURI::base(false);
?>
/media/com_bookingfor/images/default.png" />
<?php
}
?>
示例5: foreach
// suppressing any errors
}
?>
<?php
if (count($images) > 0) {
?>
<div class="royalSlider rsUni" id="resourcePlanimetrygallery">
<?php
foreach ($images as $image) {
?>
<a class="rsImg" href="<?php
echo BFCHelper::getImageUrl('onsellunits', $image);
?>
"><img class="rsTmb" src="<?php
echo BFCHelper::getImageUrl('onsellunits', $image, 'onsellunit_gallery_thumb');
?>
"></a>
<?php
}
?>
</div>
<script type="text/javascript">
<!--
jQuery(document).ready(function() {
jQuery('#resourcePlanimetrygallery').royalSlider({
fullscreen: {
enabled: true,
nativeFS: true
},
示例6: drupal_get_path
<?php
global $base_url;
$maxItemsView = 3;
$language = "en-gb";
$onlystay = $_SESSION['search.params']['onlystay'] ?: true;
$img = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/default.png";
$imgError = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/default.png";
$merchantLogo = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/default.png";
$offersDefault = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/offertDefault.jpg";
$resourceImageUrl = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/default.png";
$merchantImageUrl = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/DefaultLogoList.jpg";
$resourceLogoPath = BFCHelper::getImageUrlResized('resources', "[img]", 'resource_list_default');
$resourceLogoPathError = BFCHelper::getImageUrl('resources', "[img]", 'resource_list_default');
$merchantLogoPath = BFCHelper::getImageUrlResized('merchant', "[img]", 'resource_list_merchant_logo');
$merchantLogoPathError = BFCHelper::getImageUrl('merchant', "[img]", 'resource_list_merchant_logo');
$offersDefault = $base_url . "/" . drupal_get_path('module', 'bfi') . "/images/offertDefault.jpg";
$filters = null;
$filtersstars = null;
if (!empty($_SESSION['search.params']['filters'])) {
$filters = $_SESSION['search.params']['filters'];
if (!empty($filters['stars'])) {
$filtersstars = $filters['stars'];
}
}
$routeRating = '';
$routeInfoRequest = '';
?>
<div class="com_bookingforconnector-resourcelist">
<?php
foreach ($items as $result) {
示例7:
";
//var imgPath = "<?php
echo $merchantLogoPath;
?>
";
//var imgPathError = "<?php
echo $merchantLogoPathError;
?>
";
var strAddress = "[indirizzo] - [cap] - [comune] ([provincia])";
var imgPathMG = "<?php
echo BFCHelper::getImageUrlResized('merchantgroup', '[img]', 'merchant_merchantgroup');
?>
";
var imgPathMGError = "<?php
echo BFCHelper::getImageUrl('merchantgroup', '[img]', 'merchant_merchantgroup');
?>
";
var cultureCodeMG = '<?php
echo $language;
?>
';
var defaultcultureCodeMG = '<?php
echo BFCHelper::$defaultFallbackCode;
?>
';
var defaultcultureCode = '<?php
echo BFCHelper::$defaultFallbackCode;
?>
';
示例8: defined
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$document = JFactory::getDocument();
$language = $document->getLanguage();
$cols = $params->get('itemspage', 4);
$carouselid = uniqid();
$document->addScriptDeclaration("\njQuery(document).ready(function() {\n\tjQuery('#{$carouselid} .item').each(function(){\n\t var next = jQuery(this).next();\n\t if (!next.length) {\n\t\tnext = jQuery(this).siblings(':first');\n\t }\n\t next.children(':first-child').clone().appendTo(jQuery(this));\n\t \n\t for (var i = 0;i < ({$cols} - 2); i++) {\n\t\tnext=next.next();\n\t\tif (!next.length) {\n\t\t\tnext = jQuery(this).siblings(':first');\n\t\t}\n\t\tnext.children(':first-child').clone().appendTo(jQuery(this));\n\t }\n\t});\n});\n");
$db = JFactory::getDBO();
$lang = JFactory::getLanguage()->getTag();
$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$currModID = uniqid('merchantdetails');
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
$merchantImageUrl = Juri::root() . "components/com_bookingforconnector/assets/images/defaults/default-s6.jpeg";
$merchantImagePath = BFCHelper::getImageUrlResized('merchant', "[img]", 'small');
$merchantImagePathError = BFCHelper::getImageUrl('merchant', "[img]", 'small');
if ($itemIdMerchant != 0) {
$formAction = JRoute::_('index.php?Itemid=' . $itemIdMerchant);
} else {
$formAction = JRoute::_($uriMerchant);
}
$tags = $params->get('tags');
$maxitems = $params->get('maxitems', 10);
$merchants = BFCHelper::getMerchantsExt($tags, 0, $maxitems);
if (count($merchants) > 0) {
?>
<div id="<?php
echo $carouselid;
?>
示例9: foreach
<?php
if (count($images) > 0) {
?>
<div class="royalSlider rsUni" id="resourcePlanimetrygallery">
<?php
foreach ($images as $image) {
?>
<a class="rsImg" href="<?php
echo BFCHelper::getImageUrlResized('merchant', $image, '');
?>
"><img class="rsTmb" src="<?php
echo BFCHelper::getImageUrlResized('merchant', $image, 'resource_gallery_thumb');
?>
" onerror="this.onerror=null;this.src='<?php
echo BFCHelper::getImageUrl('merchant', $image, 'resource_gallery_thumb');
?>
'" /></a>
<?php
}
?>
</div>
<script type="text/javascript">
<!--
jQuery(document).ready(function() {
jQuery('#resourcePlanimetrygallery').royalSlider({
fullscreen: {
enabled: true,
nativeFS: true
},
示例10: array
//$resourceName = BFCHelper::getLanguage($resource->Name, $this->language);
$resourceName = BFCHelper::getLanguage($resource->Name, $this->language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
$resourceDescription = BFCHelper::getLanguage($resource->Description, $this->language, null, array('ln2br' => 'ln2br', 'striptags' => 'striptags'));
$route = JRoute::_('index.php?option=com_bookingforconnector&view=onsellunit&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
$typeName = BFCHelper::getLanguage($resource->CategoryName, $this->language);
$zone = $resource->LocationZone;
$location = $resource->LocationName;
$contractType = $resource->ContractType ? JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEWS_ONSELLUNIT_CONTRACTTYPE1') : JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEWS_ONSELLUNIT_CONTRACTTYPE');
$img = JURI::root() . "images/default.png";
$imgError = JURI::root() . "images/default.png";
if ($resource->ImageUrl != '') {
$img = BFCHelper::getImageUrlResized('onsellunits', $resource->ImageUrl, 'onsellunit_map_default');
$imgError = BFCHelper::getImageUrl('onsellunits', $resource->ImageUrl, 'onsellunit_map_default');
} elseif ($merchant->LogoUrl != '') {
$img = BFCHelper::getImageUrlResized('merchant', $merchant->LogoUrl, 'onsellunit_map_default');
$imgError = BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'onsellunit_map_default');
}
//-------------------pagina per i l redirect di tutte le risorse in vendita
$db = JFactory::getDBO();
$uri = 'index.php?option=com_bookingforconnector&view=onsellunit';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri) . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemId = $db->getErrorNum() ? 0 : intval($db->loadResult());
//-------------------pagina per i l redirect di tutte le risorsein vendita
//-------------------pagina per il redirect di tutti i merchant
$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
//-------------------pagina per il redirect di tutti i merchant
//$route = JRoute::_('index.php?option=com_bookingforconnector&view=onsellunit&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
if ($itemId != 0) {
$uri .= '&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName) . '&Itemid=' . $itemId;
示例11: elseif
slideshow: true
});
});
//-->
</script>
<?php
} elseif (count($images) == 1) {
?>
<div class="com_bookingforconnector_resource-image">
<img src="<?php
echo BFCHelper::getImageUrl('resources', $images[0], 'resource_mono_full');
?>
" />
</div>
<?php
} elseif ($resource->Merchant != null && $resource->Merchant->LogoUrl != '') {
?>
<img src="<?php
echo BFCHelper::getImageUrl('merchant', $resource->Merchant->LogoUrl, 'resource_list_default_logo');
?>
" />
<?php
} else {
?>
<img class="com_bookingforconnector_resource-img" src="/media/com_bookingfor/images/default.png" />
<?php
}
?>
示例12:
var imgPath = "<?php
echo $merchantImagePath;
?>
";
var imgPathError = "<?php
echo $merchantImagePathError;
?>
";
var strAddress = "[indirizzo] - [cap] - [comune] ([provincia])";
var imgPathMG = "<?php
echo BFCHelper::getImageUrlResized('tag', '[img]', 'tag24');
?>
";
var imgPathMGError = "<?php
echo BFCHelper::getImageUrl('tag', '[img]', 'tag24');
?>
";
var cultureCodeMG = '<?php
echo $language;
?>
';
var defaultcultureCodeMG = '<?php
echo BFCHelper::$defaultFallbackCode;
?>
';
var strRatingNoResult = "<?php
echo JTEXT::_('COM_BOOKINGFORCONNECTOR_DEFAULT_RATING_NO_RESULT');
?>
";
示例13: implode
if (!empty($resource->AddressData)) {
$arrData[] = $resource->AddressData;
}
//}
//if(!empty($zone)){
// $arrData[] = ($zone);
//}
//if(!empty($location)){
// $arrData[] = ($location);
//}
$addressData = implode(" - ", $arrData);
$resourceImageUrl = JURI::base() . "media/com_bookingfor/images/default.png";
if ($resource->ImageUrl != '') {
$resourceImageUrl = BFCHelper::getImageUrl('condominiums', $resource->ImageUrl, 'condominium_map_default');
} elseif ($merchant->LogoUrl != '') {
$resourceImageUrl = BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'condominium_map_default');
}
//-------------------pagina per i l redirect di tutte le risorse in vendita
$db = JFactory::getDBO();
$uri = 'index.php?option=com_bookingforconnector&view=condominium';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uri) . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemId = $db->getErrorNum() ? 0 : intval($db->loadResult());
//-------------------pagina per i l redirect di tutte le risorsein vendita
//-------------------pagina per il redirect di tutti i merchant
$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
//-------------------pagina per il redirect di tutti i merchant
//$route = JRoute::_('index.php?option=com_bookingforconnector&view=condominium&resourceId=' . $resource->ResourceId . ':' . BFCHelper::getSlug($resourceName));
if ($itemId != 0) {
$uri .= '&resourceId=' . $resource->CondominiumId . ':' . BFCHelper::getSlug($resourceName) . '&Itemid=' . $itemId;
示例14:
// echo "</pre>";
?>
<div class="com_bookingforconnector-merchantlist-merchant com_bookingforconnector-merchantlist-merchant-t<?php
echo $merchant->MerchantTypeId;
?>
">
<div class="com_bookingforconnector-merchantlist-merchant-features">
<div class="pull-left">
<?php
if ($merchant->LogoUrl != '') {
?>
<a class="com_bookingforconnector-merchantlist-merchant-imgAnchor" href="<?php
echo $route;
?>
"><img class="com_bookingforconnector-merchantlist-logo" src="<?php
echo BFCHelper::getImageUrl('merchant', $merchant->LogoUrl, 'merchant_list_default');
?>
" /></a>
<?php
} else {
?>
<a class="com_bookingforconnector-merchantlist-merchant-imgAnchor" href="<?php
echo $route;
?>
"><img class="com_bookingforconnector-merchantlist-logo" src="<?php
echo JURI::base();
?>
images/default.png" /></a>
<?php
}
?>
示例15: foreach
<?php
}
?>
</ul>
</div>
<div id="carouselResource" class="flexslider">
<ul class="slides">
<?php
foreach ($images as $image) {
?>
<li>
<img src="<?php
echo BFCHelper::getImageUrlResized('resources', $image, 'resource_gallery_thumb_rapidview');
?>
" onerror="this.onerror=null;this.src='<?php
echo BFCHelper::getImageUrl('resources', $image, 'resource_gallery_thumb_rapidview');
?>
'" />
</li>
<?php
}
?>
</ul>
</div>
</div>
<?php
} else {
?>
<div id="gallery" >
<div id="sliderResource" class="flexslider">
<ul class="slides">