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


PHP EnmasseHelper::is_urlEncoded方法代码示例

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


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

示例1: array

    $document->setTitle($deal->name);
} else {
    $mainframe->setPageTitle($deal->name);
}
// load the deal image size
$dealImageSize = EnmasseHelper::getDealImageSize();
if (!empty($dealImageSize)) {
    $image_height = $dealImageSize->image_height;
    $image_width = $dealImageSize->image_width;
} else {
    $image_height = 252;
    $image_width = 400;
}
//contruct deal image url
$imageUrlArr = array();
if (EnmasseHelper::is_urlEncoded($deal->pic_dir)) {
    $imageUrlArr = unserialize(urldecode($deal->pic_dir));
} else {
    $imageUrlArr[0] = $deal->pic_dir;
}
//contruct data for social network sharing
$oMenu = JFactory::getApplication()->getMenu();
$oItem = $oMenu->getItems('link', 'index.php?option=com_enmasse&view=dealtoday', true);
$user = JFactory::getUser();
$userID = $user->get('id');
$shareName = $deal->name;
$shareUrl = JURI::base() . 'index.php?option=com_enmasse&controller=deal&task=view&id=' . $deal->id . '&slug_name=' . $deal->slug_name . '&Itemid=' . $oItem->id;
if ($userID != '0') {
    $shareUrl .= '&referralid=' . $userID;
}
$shareShortDesc = str_replace("\"", "'", $deal->short_desc);
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:deal_today.php

示例2: foreach

		<div  class="row"><span class="deal_title"><?php 
    echo JText::_('DEAL_LIST_NO_DEAL_MESSAGE');
    ?>
</span></div>
	<?php 
} else {
    ?>
	<!-- list -->
		<?php 
    foreach ($dealList as $oDeal) {
        ?>
			<?php 
        //echo count($dealList);
        //$i++;
        $link = 'index.php?option=com_enmasse&controller=deal&task=view&id=' . $oDeal->id . "&slug_name=" . $oDeal->slug_name . "&Itemid={$nItemId}";
        if (!EnmasseHelper::is_urlEncoded($oDeal->pic_dir)) {
            $imageUrl = $oDeal->pic_dir;
        } else {
            $imageUrlArr = unserialize(urldecode($oDeal->pic_dir));
            $imageUrl = str_replace("\\", "/", $imageUrlArr[0]);
        }
        $sDealName = $oDeal->name;
        if (strlen($sDealName) > 30) {
            $sDealName = substr($sDealName, 0, 30) . "...";
        }
        $sDealPosition = implode(", ", EnmasseHelper::getDealLocationNames($oDeal->id));
        ?>
				<div  class="row row_list item_deal" onclick="window.location.href='<?php 
        echo $link;
        ?>
'">
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:deal_upcoming.php

示例3: Copyright

<?php

/*------------------------------------------------------------------------
# En Masse - Social Buying Extension 2010
# ------------------------------------------------------------------------
# By Matamko.com
# Copyright (C) 2010 Matamko.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.matamko.com
# Technical Support:  Visit our forum at www.matamko.com
-------------------------------------------------------------------------*/
$varList = $this->varList;
$elementList = $this->elementList;
if (!EnmasseHelper::is_urlEncoded($this->bgImageUrl)) {
    $bgImageUrl = $this->bgImageUrl;
} else {
    $imageUrlArr = unserialize(urldecode($this->bgImageUrl));
    $bgImageUrl = str_replace("\\", "/", $imageUrlArr[0]);
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 
<style type="text/css">

div#couponImage 
{
	z-index:-100px;
	width: 100%;
	height: 100%;   
    position: relative;
    overflow: hidden;
}
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:default.php

示例4: JVersion

$theme = EnmasseHelper::getThemeFromSetting();
JFactory::getDocument()->addStyleSheet('components/com_enmasse/theme/' . $theme . '/css/screen.css');
// load language pack
$language = JFactory::getLanguage();
$base_dir = JPATH_SITE . DS . 'components' . DS . 'com_enmasse';
$version = new JVersion();
$joomla = $version->getShortVersion();
if (substr($joomla, 0, 3) >= '1.6') {
    $extension = 'com_enmasse16';
} else {
    $extension = 'com_enmasse';
}
if ($language->load($extension, $base_dir, $language->getTag(), true) == false) {
    $language->load($extension, $base_dir, 'en-GB', true);
}
if (!EnmasseHelper::is_urlEncoded($item->pic_dir)) {
    $imageUrl = $item->pic_dir;
} else {
    $imageUrlArr = unserialize(urldecode($item->pic_dir));
    $imageUrl = str_replace("\\", "/", $imageUrlArr[0]);
}
?>
<div id="SideDealModule<?php 
echo $css_suffix;
?>
" class="fl" align="center" style="<?php 
echo 'width:' . $width . 'px ; height:' . $height . 'px';
?>
">
	<div class="timeupdate"><?php 
echo JHTML::_('date', $item->end_at, JText::_('DATE_FORMAT_LC1'));
开发者ID:marsa1985,项目名称:kazabiz,代码行数:31,代码来源:mod_enmasse_deal_side.php


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