Esempio n. 1
0
    $tag_imagelbl = JText::_('COM_REDSHOP_MY_TAGS');
    $tag_image = '<img src="' . REDSHOP_ADMIN_IMAGES_ABSPATH . 'textlibrary16.png" align="absmiddle">';
    $tag_link = JText::_('COM_REDSHOP_NO_TAGS_AVAILABLE');
    $myTags = $model->countMyTags();
    if ($myTags > 0) {
        $tag_link = '<a href="' . $mytags_link . '" style="text-decoration: none;">' . JText::_("COM_REDSHOP_SHOW_TAG") . '</a>';
    }
}
$template_desc = str_replace('{tag_image}', $tag_image, $template_desc);
$template_desc = str_replace('{tag_title}', $tag_imagelbl, $template_desc);
$template_desc = str_replace('{edit_tag_link}', $tag_link, $template_desc);
if (strstr($template_desc, "{quotation_loop_start}") && strstr($template_desc, "{quotation_loop_end}")) {
    $quotation_image = '<img src="' . REDSHOP_ADMIN_IMAGES_ABSPATH . 'quotation_16.jpg" align="absmiddle">';
    $template_desc = str_replace('{quotation_image}', $quotation_image, $template_desc);
    $template_desc = str_replace('{quotation_title}', JText::_('COM_REDSHOP_QUOTATION_INFORMATION'), $template_desc);
    $quotationlist = $quotationHelper->getQuotationUserList();
    // More Order information
    if (count($quotationlist) > 0) {
        $quotationmoreurl = JRoute::_('index.php?option=com_redshop&view=quotation&Itemid=' . $Itemid);
        $template_desc = str_replace('{more_quotations}', "<a href='" . $quotationmoreurl . "'>" . JText::_('COM_REDSHOP_MORE') . "</a>", $template_desc);
    }
    $template_d1 = explode("{quotation_loop_start}", $template_desc);
    $template_d2 = explode("{quotation_loop_end}", $template_d1[1]);
    $quotation_desc = $template_d2[0];
    $quotation_data = '';
    if (count($quotationlist)) {
        for ($j = 0; $j < count($quotationlist); $j++) {
            if ($j >= 5) {
                break;
            }
            $quotation_data .= $quotation_desc;