本文整理汇总了PHP中JUDirectoryHelper::getDefaultListingImage方法的典型用法代码示例。如果您正苦于以下问题:PHP JUDirectoryHelper::getDefaultListingImage方法的具体用法?PHP JUDirectoryHelper::getDefaultListingImage怎么用?PHP JUDirectoryHelper::getDefaultListingImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JUDirectoryHelper
的用法示例。
在下文中一共展示了JUDirectoryHelper::getDefaultListingImage方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: canView
public function canView($options = array())
{
$params = JUDirectoryHelper::getParams(null, $this->listing_id);
$default_image = JUDirectoryHelper::getDefaultListingImage();
if ($this->value == "" && $default_image) {
$this->value = "default/" . $params->get('listing_default_image', 'default-listing.png');
}
return parent::canView($options);
}
示例2: getListingImage
public static function getListingImage($image, $getDefault = true)
{
if ($image) {
$listingImageUrl = JUDirectoryFrontHelper::getDirectory("listing_image_directory", "media/com_judirectory/images/listing/", true);
return JUri::root(true) . "/" . $listingImageUrl . $image;
} elseif ($getDefault) {
return JUDirectoryHelper::getDefaultListingImage();
}
return '';
}
示例3: defined
* ------------------------------------------------------------------------
* JUDirectory for Joomla 2.5, 3.x
* ------------------------------------------------------------------------
*
* @copyright Copyright (C) 2010-2015 JoomUltra Co., Ltd. All Rights Reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @author JoomUltra Co., Ltd
* @website http://www.joomultra.com
* @----------------------------------------------------------------------@
*/
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
?>
<script type="text/javascript">
var default_image = "<?php
echo JUDirectoryHelper::getDefaultListingImage();
?>
";
var listing_image_url = "<?php
echo JUri::root(true) . "/" . JUDirectoryFrontHelper::getDirectory("listing_image_directory", "media/com_judirectory/images/listing/", true);
?>
";
function jSelectListing_related() {
var $ul = jQuery(".related-listing-list").find(".related-listings");
var $listing = $ul.find("li#listing-" + arguments[0]);
if (!$listing.length && arguments[0] != <?php
echo (int) $this->item->id;
?>
) {
var $li = '<li id="listing-' + arguments[0] + '">';
$li += '<div class="listing-inner">';