本文整理汇总了PHP中shopFunctionsF::getBaseUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP shopFunctionsF::getBaseUrl方法的具体用法?PHP shopFunctionsF::getBaseUrl怎么用?PHP shopFunctionsF::getBaseUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类shopFunctionsF
的用法示例。
在下文中一共展示了shopFunctionsF::getBaseUrl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
?>
<td align="right" width="11%"><strong><?php
echo JText::_('COM_VIRTUEMART_ORDER_PRINT_SUBTOTAL_DISCOUNT_AMOUNT');
?>
</strong></td>
<td align="right" width="11%"><strong><?php
echo JText::_('COM_VIRTUEMART_ORDER_PRINT_TOTAL');
?>
</strong></td>
</tr>
<?php
foreach ($this->orderDetails['items'] as $item) {
$qtt = $item->product_quantity;
$product_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id . '&virtuemart_product_id=' . $item->virtuemart_product_id);
$baseUrl = shopFunctionsF::getBaseUrl();
// product link must be an absolute URL.
$product_link = $baseUrl . $product_link;
//$product_link =JURI::root().'index.php?option=com_virtuemart&view=productdetails&virtuemart_category_id=' . $item->virtuemart_category_id .'&virtuemart_product_id=' . $item->virtuemart_product_id;
?>
<tr valign="top">
<td align="left">
<?php
echo $item->order_item_sku;
?>
</td>
<td align="left" colspan="2" >
<a href="<?php
echo $product_link;
?>
"><?php
示例2: nl2br
<tr>
<td >
<?php
if (!empty($this->mailbody)) {
echo nl2br($this->mailbody);
} else {
echo JText::sprintf('COM_VIRTUEMART_CART_NOTIFY_MAIL_HTML', $this->productName, $this->link);
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?php
// $uri = JURI::getInstance();
// $prefix = $uri->toString(array('scheme', 'host', 'port'));
$link = JRoute::_('index.php?option=com_virtuemart', true, -1);
echo '<br/><br/>';
/* GENERAL FOOTER FOR ALL MAILS */
$link = shopFunctionsF::getBaseUrl() . JRoute::_('index.php?option=com_virtuemart', false, -1);
echo JText::_('COM_VIRTUEMART_MAIL_FOOTER') . '<a href="' . $link . '">' . $this->vendor->vendor_name . '</a>';
echo '<br/>';
echo $this->vendor->vendor_name . '<br />' . $this->vendor->vendor_phone . ' ' . $this->vendor->vendor_store_name . '<br /> ' . $this->vendor->vendor_store_desc . '<br />' . $this->vendor->vendor_legal_info;
?>
</td></tr>
</table>
</div>
</body>
</html>
示例3:
<?php
echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_PASSWORD');
?>
<br />
<strong><?php
echo $this->orderDetails['details']['BT']->order_pass;
?>
</strong>
</td>
<td width="40%">
<p>
<a class="default" title="<?php
echo $this->vendor->vendor_store_name;
?>
" href="<?php
echo shopFunctionsF::getBaseUrl() . JRoute::_('index.php?option=com_virtuemart&view=orders&layout=details&order_number=' . $this->orderDetails['details']['BT']->order_number . '&order_pass=' . $this->orderDetails['details']['BT']->order_pass);
?>
">
<?php
echo JText::_('COM_VIRTUEMART_MAIL_SHOPPER_YOUR_ORDER_LINK');
?>
</a>
</p>
</td>
</tr>
<tr>
<td colspan="3"><p>
<?php
echo JText::sprintf('COM_VIRTUEMART_MAIL_SHOPPER_TOTAL_ORDER', $this->currency->priceDisplay($this->orderDetails['details']['BT']->order_total));
?>
</p></td>