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


PHP BFCHelper::GetPrivacy方法代码示例

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


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

示例1: accommodationdetails_saledetails

function accommodationdetails_saledetails($resource_name)
{
    $parts = explode('-', $resource_name);
    $resource_id = $parts[0];
    $model = new BookingForConnectorModelOnSellUnit();
    $resource = $model->getItem($resource_id);
    $merchant = $resource->Merchant;
    $language = $GLOBALS['bfi_lang'];
    $privacy = BFCHelper::GetPrivacy($language);
    $images = array();
    if ($resource->ImageUrl != null && $resource->ImageUrl != '') {
        $images[] = $resource->ImageUrl;
    }
    foreach (explode(',', $resource->ImageData) as $image) {
        if (!empty($images[0]) && basename($image) != basename($images[0]) && $images[0]) {
            $images[] = $image;
        }
    }
    if (!isset($_REQUEST['layout'])) {
        ob_start();
        include 'templates/onsell-gallery.php';
        $gallery = ob_get_contents();
        ob_end_clean();
        $order_type = 'b.short';
        ob_start();
        include 'templates/sellonrequestform.php';
        $sellonrequestform = ob_get_contents();
        ob_end_clean();
        ob_start();
        include 'templates/sellonsearchform.php';
        $sellonsearchform = ob_get_contents();
        ob_end_clean();
        include 'templates/onsellunit.php';
    } else {
        if ($_REQUEST['layout'] == 'rapidview') {
            //echo '<PRE>';print_r($resource);
            $merchant = $resource->Merchant;
            //echo '<PRE>';print_r($merchant);die();
            $resourceLat = $resource->XPos;
            $resourceLon = $resource->YPos;
            $isMapVisible = $resource->IsMapVisible;
            $isMapMarkerVisible = $resource->IsMapMarkerVisible;
            $showResourceMap = $resourceLat != null && $resourceLon != null && $isMapVisible;
            $htmlmarkerpoint = "";
            if ($isMapMarkerVisible) {
                $htmlmarkerpoint = "&markers=color:blue%7C" . $resourceLat . "," . $resourceLon;
            }
            $images = array();
            if ($resource->ImageUrl != null && $resource->ImageUrl != '') {
                $images[] = $resource->ImageUrl;
            }
            foreach (explode(',', $resource->ImageData) as $image) {
                if (!empty($images[0]) && basename($image) != basename($images[0]) && $images[0]) {
                    $images[] = $image;
                }
            }
            ob_start();
            include 'templates/resourceonsale-rapidview.php';
            $resource_html = ob_get_contents();
            ob_end_clean();
            wp_send_json(array('mainhtml' => $resource_html, 'htmlmarkerpoint' => $htmlmarkerpoint, 'resourceLon' => $resourceLon, 'title' => $resource->Name));
        }
    }
}
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:64,代码来源:bfi.php

示例2: strtolower

$uriMerchantthanks = $uriMerchant . '&layout=thanks';
$uriMerchant .= '&layout=contacts';
$route = JRoute::_($uriMerchant);
$routeThanks = JRoute::_($uriMerchantthanks);
$cNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
//$cLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$cultureCode = strtolower(substr($this->language, 0, 2));
$nationCode = strlen($this->language) == 5 ? strtolower(substr($this->language, 3, 2)) : $cultureCode;
$keys = array_keys($cNationList);
$nations = array_values(array_filter($keys, function ($item) use($nationCode) {
    return strtolower($item) == $nationCode;
}));
$nation = !empty(count($nations)) ? strtoupper($nations[0]) : strtoupper($cultureCode);
$culture = "";
$formRoute = "index.php?option=com_bookingforconnector&task=sendOffer";
$privacy = BFCHelper::GetPrivacy($this->language);
?>
<div class="com_bookingforconnector_merchantdetails com_bookingforconnector_merchantdetails-t<?php 
echo $this->item->MerchantTypeId;
?>
">
	<?php 
if ($this->items != null) {
    $offer = $this->items;
    ?>
 
	<h2 class="com_bookingforconnector_resource-name"><?php 
    echo $offer->Name;
    ?>
 </h2>
	<div class="clear"></div>
开发者ID:Bookingfor,项目名称:joomla-extension-v-2,代码行数:31,代码来源:package.php

示例3: get_site_url

<?php

$base_url = get_site_url();
$language = $GLOBALS['bfi_lang'];
if (defined('ICL_LANGUAGE_CODE') && class_exists('SitePress')) {
    $language = ICL_LANGUAGE_CODE;
    global $sitepress;
    if ($sitepress->get_current_language() != $sitepress->get_default_language()) {
        $base_url .= "/" . ICL_LANGUAGE_CODE;
    }
}
$formlabel = get_option('form_key', '');
$formRoute = $base_url . '/sendOffer';
$routeThanks = $base_url . '/thanks/merchant-details/merchantdetails/' . $merchant->MerchantId . '-' . seoUrl($merchant->Name);
$privacy = BFCHelper::GetPrivacy($language);
?>
<div class="com_bookingforconnector_merchantdetails com_bookingforconnector_merchantdetails-t<?php 
echo $merchant->MerchantTypeId;
?>
">
	<?php 
//include('merchant-head.php');
?>
	<?php 
if ($offer != null) {
    ?>
	<div class="com_bookingforconnector_merchantdetails-offers">
		<?php 
    $offer->OfferId = $offer->PackageId;
    $offer->Price = $offer->Value;
    $offerName = BFCHelper::getLanguage($offer->Name, $language);
开发者ID:Bookingfor,项目名称:wordpress-plugin,代码行数:31,代码来源:offer-details.php


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