本文整理汇总了PHP中Citruscart::getURL方法的典型用法代码示例。如果您正苦于以下问题:PHP Citruscart::getURL方法的具体用法?PHP Citruscart::getURL怎么用?PHP Citruscart::getURL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Citruscart
的用法示例。
在下文中一共展示了Citruscart::getURL方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<a href="<?php
echo $item->link_view;
?>
">
<?php
echo $item->subscription_id;
?>
</a>
</td>
<td style="text-align: center; width: 50px;">
<a href="<?php
echo $item->link;
?>
">
<img src="<?php
echo Citruscart::getURL('images') . 'page_edit.png';
?>
" title="<?php
echo JText::_('COM_CITRUSCART_EDIT');
?>
"/>
</a>
</td>
<td style="text-align: center;">
<a href="<?php
echo $item->link_view;
?>
">
<?php
echo $item->product_name;
?>
示例2: jimport
</td>
</tr>
<tr>
<td width="100" align="right" class="key">
<?php
echo JText::_('COM_CITRUSCART_CURRENT_IMAGE');
?>
:
</td>
<td>
<?php
jimport('joomla.filesystem.file');
if (!empty($row->product_full_image) && JFile::exists(Citruscart::getPath('products_images') . '/' . $row->product_full_image)) {
?>
<img src="<?php
echo Citruscart::getURL('products_images') . $row->product_full_image;
?>
" style="display: block;" />
<?php
}
?>
</td>
</tr>
</table>
</fieldset>
<?php
$modules = JModuleHelper::getModules("citruscart_product_dashboard_main");
$document = JFactory::getDocument();
$renderer = $document->loadRenderer('module');
$attribs = array();
示例3: foreach
echo JText::_('COM_CITRUSCART_COMPARE');
?>
</td>
<?php
foreach ($items as $item) {
?>
<td align="center" valign="top" class="border-left">
<a title="<?php
echo JText::_('COM_CITRUSCART_REMOVE_PRODUCT_COMPARISON');
?>
" class="close-img" href="<?php
echo JRoute::_('index.php?index.php?option=com_citruscart&view=productcompare&task=remove&id=' . $item->productcompare_id);
?>
">
<img src="<?php
echo Citruscart::getURL('images');
?>
closebox.gif">
</a>
<?php
echo CitruscartHelperProduct::getImage($item->product_id, '', $item->product_name);
?>
</td>
<?php
}
?>
</tr>
<tr valign="top" class="row0">
<td></td>
<?php
foreach ($items as $item) {
示例4:
default:
$downloadable = $item->productdownload_max;
}
?>
<tr class="row<?php
echo $k;
?>
">
<td style="text-align: center;">
<span class="productfile_image">
<a href="<?php
echo JRoute::_('index.php?option=com_citruscart&view=products&task=downloadfile&format=raw&id=' . $item->productfile_id . "&product_id=" . $item->product_id);
?>
">
<img src="<?php
echo Citruscart::getURL('images') . "download.png";
?>
" alt="<?php
echo JText::_('COM_CITRUSCART_DOWNLOAD');
?>
" style="height: 24px; padding: 5px; vertical-align: middle;" />
</a>
</span>
</td>
<td style="text-align: left;">
<?php
if ($item->productdownload_max != 0) {
?>
<div class="productfile">
<span class="productfile_link" style="vertical-align: middle;" >
<a href="<?php
示例5:
$alt = JText::_('COM_CITRUSCART_POOR');
$title = JText::_('COM_CITRUSCART_POOR');
$name = JText::_('COM_CITRUSCART_POOR');
break;
case "1.5":
$src = Citruscart::getURL('ratings') . "one_half.png";
$alt = JText::_('COM_CITRUSCART_POOR');
$title = JText::_('COM_CITRUSCART_POOR');
$name = JText::_('COM_CITRUSCART_POOR');
break;
case "1":
$src = Citruscart::getURL('ratings') . "one.png";
$alt = JText::_('COM_CITRUSCART_UNSATISFACTORY');
$title = JText::_('COM_CITRUSCART_UNSATISFACTORY');
$name = JText::_('COM_CITRUSCART_UNSATISFACTORY');
break;
case "0.5":
$src = Citruscart::getURL('ratings') . "zero_half.png";
$alt = JText::_('COM_CITRUSCART_UNSATISFACTORY');
$title = JText::_('COM_CITRUSCART_UNSATISFACTORY');
$name = JText::_('COM_CITRUSCART_UNSATISFACTORY');
break;
default:
$src = Citruscart::getURL('ratings') . "zero.png";
$alt = JText::_('COM_CITRUSCART_UNRATED');
$title = JText::_('COM_CITRUSCART_UNRATED');
$name = JText::_('COM_CITRUSCART_UNRATED');
break;
}
echo "<img src='" . $src . "' alt='" . $alt . "' title='" . $title . "' name='" . $name . "' align='center' border='0' />";
}
示例6: display
//.........这里部分代码省略.........
</th>
<th class="title"><?php
echo JText::_('COM_CITRUSCART_QTY');
?>
</th>
</tr>
</thead>
<tfoot>
<tr>
<td colspan="15"><?php
echo $page->getListFooter();
?>
</td>
</tr>
</tfoot>
<tbody>
<?php
$k = 0;
for ($i = 0, $n = count($rows); $i < $n; $i++) {
$row =& $rows[$i];
$onclick = "\r\n\t\t\t\t\twindow.parent.jSelectProducts(\r\n\t\t\t\t\t'{$row->product_id}', '" . str_replace(array("'", "\""), array("\\'", ""), $row->product_name) . "', '" . JRequest::getVar('object') . "'\r\n\t\t\t\t\t);";
?>
<tr class="<?php
echo "row{$k}";
?>
">
<td><?php
echo $page->getRowOffset($i);
?>
</td>
<td style="text-align: center;"><?php
echo CitruscartGrid::checkedout($row, $i, 'product_id');
?>
</td>
<td style="text-align: center;"><a style="cursor: pointer;"
onclick="<?php
echo $onclick;
?>
"> <?php
echo $row->product_id;
?>
</a>
</td>
<td>
<?php
jimport('joomla.filesystem.file');
if (!empty($row->product_thumb_image) && JFile::exists(Citruscart::getPath('products_thumbs') . DS . $row->product_thumb_image)) {
?>
<img src="<?php
echo Citruscart::getURL('products_thumbs') . $row->product_thumb_image;
?>
" style="display: block;" />
<?php
}
?>
</td>
<td><a style="cursor: pointer;"
onclick="<?php
echo $onclick;
?>
"> <?php
echo htmlspecialchars($row->product_name, ENT_QUOTES, 'UTF-8');
?>
</a></td>
<td style="text-align: center;"><a style="cursor: pointer;"
onclick="<?php
echo $onclick;
?>
"> <?php
echo $row->product_price;
?>
</a></td>
<td style="text-align: center;"><input id="<?php
echo "qty{$i}";
?>
" name="<?php
echo "qty{$i}";
?>
" type="text" value="1" style="width: 30px;" /></td>
</tr>
<?php
$k = 1 - $k;
}
?>
</tbody>
</table>
<input type="hidden" name="boxchecked" value="0" /> <input type="hidden"
name="filter_order" value="<?php
echo $lists['order'];
?>
" /> <input
type="hidden" name="filter_order_Dir"
value="<?php
echo $lists['order_Dir'];
?>
" /></form>
<?php
}
示例7: Copyright
<?php
/*------------------------------------------------------------------------
# com_citruscart - citruscart
# ------------------------------------------------------------------------
# author Citruscart Team - Citruscart http://www.citruscart.com
# copyright Copyright (C) 2014 - 2019 Citruscart.com All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://citruscart.com
# Technical Support: Forum - http://citruscart.com/forum/index.html
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
// if DSC is not loaded all is lost anyway
/*if (!defined('_DSC')) { return; } */
$text = $params->get('text', 'Citruscart Dashboard');
$doc = JFactory::getDocument();
// Check the registry to see if our Citruscart class has been overridden
/*if ( !class_exists('Citruscart') )
JLoader::register( "Citruscart", JPATH_ADMINISTRATOR."/components/com_citruscart/defines.php" );
*/
$img = Citruscart::getURL() . "images/citruscart.png";
require JModuleHelper::getLayoutPath('mod_citruscart_quickicon', $params->get('layout', 'default'));
示例8:
<span class="sort_by_direction">
<?php
if (strtolower($state->filter_dir) == 'asc') {
$dir = 'desc';
$img_dir = 'arrow_down.png';
} else {
$dir = 'asc';
$img_dir = 'arrow_up.png';
}
?>
<a class="modal" rel="{handler: 'iframe', size: {x: 800, y: 500}}" href="<?php
echo JRoute::_("&limitstart=" . $state->limitstart . "&filter_sortby=" . $state->filter_sortby . "&filter_dir=" . $dir);
?>
">
<img src="<?php
echo Citruscart::getURL('images') . $img_dir;
?>
" alt="filter_direction"/>
</a>
</span>
</div>
<?php
echo $this->form['validate'];
?>
</form>
<?php
}
?>
</div>
<div class="span6 col-md-6">
示例9: Copyright
<?php
/*------------------------------------------------------------------------
# com_citruscart - citruscart
# ------------------------------------------------------------------------
# author Citruscart Team - Citruscart http://www.citruscart.com
# copyright Copyright (C) 2014 - 2019 Citruscart.com All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://citruscart.com
# Technical Support: Forum - http://citruscart.com/forum/index.html
-------------------------------------------------------------------------*/
/** ensure this file is being included by a parent file */
defined('_JEXEC') or die('Restricted access');
$doc->addStyleSheet(Citruscart::getURL() . "/css/admin.css");
?>
<div class="tcpanel">
<div style="float:<?php
echo $lang->isRTL() ? 'right' : 'left';
?>
;">
<div class="icon"><a href="index.php?option=com_citruscart">
<img src="<?php
echo $img;
?>
" style="width: 96px;" />
<span><?php
echo $text;
?>
</span> </a></div>
</div>
</div>