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


PHP producthelper::getExtraSectionTag方法代码示例

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


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

示例1: onRSProductSearch


//.........这里部分代码省略.........
             }
             $pro_s_desc = $Redconfiguration->maxchar($pro_s_desc, CATEGORY_PRODUCT_DESC_MAX_CHARS, CATEGORY_PRODUCT_DESC_END_SUFFIX);
             $link = JRoute::_('index.php?option=com_redshop&view=product&pid=' . $this->search[$i]->product_id . '&Itemid=' . $Itemid);
             if (strstr($template_desc, '{product_name}')) {
                 $pname = "<a href='" . $link . "'>" . $pname . "</a>";
                 $data_add = str_replace("{product_name}", $pname, $template_desc);
             }
             if (strstr($template_desc, '{product_name_nolink}')) {
                 $data_add = str_replace("{product_name_nolink}", $pname, $template_desc);
             }
             $readmore = "<a href='" . $link . "'>" . JText::_('COM_REDSHOP_READ_MORE') . "</a>";
             $data_add = str_replace("{read_more}", $readmore, $data_add);
             $data_add = str_replace("{read_more_link}", $link, $data_add);
             // RedSHOP Product Plugin
             JPluginHelper::importPlugin('redshop_product');
             $results = $dispatcher->trigger('onPrepareProduct', array(&$data_add, &$params, $this->search[$i]));
             // End
             if (strstr($data_add, "{product_delivery_time}")) {
                 $product_delivery_time = $producthelper->getProductMinDeliveryTime($this->search[$i]->product_id);
                 if ($product_delivery_time != "") {
                     $data_add = str_replace("{delivery_time_lbl}", JText::_('DELIVERY_TIME'), $data_add);
                     $data_add = str_replace("{product_delivery_time}", $product_delivery_time, $data_add);
                 } else {
                     $data_add = str_replace("{delivery_time_lbl}", "", $data_add);
                     $data_add = str_replace("{product_delivery_time}", "", $data_add);
                 }
             }
             // Product Review/Rating
             // Fetching reviews
             $final_avgreview_data = $producthelper->getProductRating($this->search[$i]->product_id);
             // Attribute ajax chage
             $data_add = str_replace("{product_rating_summary}", $final_avgreview_data, $data_add);
             $data_add = $producthelper->getJcommentEditor($this->search[$i], $data_add);
             $data_add = $producthelper->getExtraSectionTag($extraFieldName, $this->search[$i]->product_id, "1", $data_add, 1);
             $data_add = str_replace("{product_s_desc}", $pro_s_desc, $data_add);
             $data_add = str_replace("{product_desc}", $pro_desc, $data_add);
             $data_add = str_replace("{product_id_lbl}", JText::_('COM_REDSHOP_PRODUCT_ID_LBL'), $data_add);
             $data_add = str_replace("{product_id}", $this->search[$i]->product_id, $data_add);
             $data_add = str_replace("{product_number_lbl}", JText::_('COM_REDSHOP_PRODUCT_NUMBER_LBL'), $data_add);
             $data_add = str_replace("{product_number}", $product_number, $data_add);
             /**
              * related Product List in Lightbox
              * Tag Format = {related_product_lightbox:<related_product_name>[:width][:height]}
              */
             if (strstr($data_add, '{related_product_lightbox:')) {
                 $related_product = $producthelper->getRelatedProduct($this->search[$i]->product_id);
                 $rtlnone = explode("{related_product_lightbox:", $data_add);
                 $rtlntwo = explode("}", $rtlnone[1]);
                 $rtlnthree = explode(":", $rtlntwo[0]);
                 $rtln = $rtlnthree[0];
                 $rtlnfwidth = isset($rtlnthree[1]) ? $rtlnthree[1] : "900";
                 $rtlnwidthtag = isset($rtlnthree[1]) ? ":" . $rtlnthree[1] : "";
                 $rtlnfheight = isset($rtlnthree[2]) ? $rtlnthree[2] : "600";
                 $rtlnheighttag = isset($rtlnthree[2]) ? ":" . $rtlnthree[2] : "";
                 $rtlntag = "{related_product_lightbox:{$rtln}{$rtlnwidthtag}{$rtlnheighttag}}";
                 if (count($related_product) > 0) {
                     $linktortln = JUri::root() . "index.php?option=com_redshop&view=product&pid=" . $this->search[$i]->product_id . "&tmpl=component&template=" . $rtln . "&for=rtln";
                     $rtlna = '<a class="modal" href="' . $linktortln . '" rel="{handler:\'iframe\',size:{x:' . $rtlnfwidth . ',y:' . $rtlnfheight . '}}" >' . JText::_('COM_REDSHOP_RELATED_PRODUCT_LIST_IN_LIGHTBOX') . '</a>';
                 } else {
                     $rtlna = "";
                 }
                 $data_add = str_replace($rtlntag, $rtlna, $data_add);
             }
             $data_add = $producthelper->replaceVatinfo($data_add);
             /************************************
              *  Conditional tag
开发者ID:,项目名称:,代码行数:67,代码来源:

示例2: eval

                $thumbtype = "manufacturer/";
            }
            $thumbUrl = RedShopHelperImages::getImagePath($media_image[$m]->media_name, '', 'thumb', $thumbtype, $mw_thumb, $mh_thumb, USE_IMAGE_SIZE_SWAPPING);
            $thum_image = "<a title='" . $altText . "' class=\"modal\" href='" . REDSHOP_FRONT_IMAGES_ABSPATH . $maintype . $media_image[$m]->media_name . "'   rel=\"{handler: 'image', size: {}}\">\n\t\t\t\t<img alt='" . $altText . "' title='" . $altText . "' src='" . $thumbUrl . "'></a>";
        }
    }
    $template_desc = str_replace("{manufacturer_image}", $thum_image, $template_desc);
}
$manlink = JRoute::_('index.php?option=com_redshop&view=manufacturers&layout=detail&mid=' . $row->manufacturer_id . '&Itemid=' . $Itemid);
$manproducts = JRoute::_('index.php?option=com_redshop&view=manufacturers&layout=products&mid=' . $row->manufacturer_id . '&Itemid=' . $Itemid);
$template_desc = str_replace("{manufacturer_name}", $row->manufacturer_name, $template_desc);
// Replace Manufacturer URL
if (strstr($template_desc, "{manufacturer_url}")) {
    $manufacturer_url = "<a href='" . $row->manufacturer_url . "'>" . $row->manufacturer_url . "</a>";
    $template_desc = str_replace("{manufacturer_url}", $manufacturer_url, $template_desc);
}
// Extra field display
$extraFieldName = $extraField->getSectionFieldNameArray(10, 1, 1);
$template_desc = $producthelper->getExtraSectionTag($extraFieldName, $row->manufacturer_id, "10", $template_desc);
$template_desc = str_replace("{manufacturer_description}", $row->manufacturer_desc, $template_desc);
if (strstr($template_desc, "{manufacturer_extra_fields}")) {
    $manufacturer_extra_fields = $extra_field->list_all_field_display(10, $row->manufacturer_id);
    $template_desc = str_replace("{manufacturer_extra_fields}", $manufacturer_extra_fields, $template_desc);
}
$template_desc = str_replace("{manufacturer_link}", $manlink, $template_desc);
$template_desc = str_replace("{manufacturer_allproductslink}", $manproducts, $template_desc);
$template_desc = str_replace("{manufacturer_allproductslink_lbl}", JText::_('COM_REDSHOP_MANUFACTURER_ALLPRODUCTSLINK_LBL'), $template_desc);
$template_desc = $redTemplate->parseredSHOPplugin($template_desc);
echo "<div style='float:left;'>";
echo eval("?>" . $template_desc . "<?php ");
echo "</div>";
开发者ID:,项目名称:,代码行数:31,代码来源:

示例3: array

     $isChilds = true;
     $attributes = array();
 } else {
     $isChilds = false;
     // Get attributes
     $attributes_set = array();
     if ($manufacturer_products[$i]->attribute_set_id > 0) {
         $attributes_set = $producthelper->getProductAttribute(0, $manufacturer_products[$i]->attribute_set_id, 0, 1);
     }
     $attributes = $producthelper->getProductAttribute($product_id);
     $attributes = array_merge($attributes, $attributes_set);
 }
 /////////////////////////////////// Product attribute  Start /////////////////////////////////
 $totalatt = count($attributes);
 // Check product for not for sale
 $cart_mdata = $producthelper->getExtraSectionTag($extraFieldName, $product_id, "1", $cart_mdata, 1);
 $attribute_template = $producthelper->getAttributeTemplate($cart_mdata);
 $cart_mdata = $producthelper->replaceProductInStock($product_id, $cart_mdata, $attributes, $attribute_template);
 $cart_mdata = $producthelper->replaceAttributeData($product_id, 0, 0, $attributes, $cart_mdata, $attribute_template, $isChilds, 0, $totalatt);
 // Get cart tempalte
 $cart_mdata = $producthelper->replaceCartTemplate($product_id, 0, 0, 0, $cart_mdata, $isChilds);
 $cart_mdata = str_replace("{product_id_lbl}", JText::_('COM_REDSHOP_PRODUCT_ID_LBL'), $cart_mdata);
 $cart_mdata = str_replace("{product_id}", $manufacturer_products[$i]->product_id, $cart_mdata);
 $cart_mdata = str_replace("{product_number_lbl}", JText::_('COM_REDSHOP_PRODUCT_NUMBER_LBL'), $cart_mdata);
 $cart_mdata = str_replace("{product_number}", $manufacturer_products[$i]->product_number, $cart_mdata);
 $cart_mdata = str_replace("{product_s_desc}", $manufacturer_products[$i]->product_s_desc, $cart_mdata);
 $cart_mdata = str_replace("{category_name}", $manufacturer_products[$i]->category_name, $cart_mdata);
 if (strstr($cart_mdata, '{product_desc}')) {
     $p_desc = $Redconfiguration->maxchar($manufacturer_products[$i]->product_desc, CATEGORY_PRODUCT_DESC_MAX_CHARS, CATEGORY_PRODUCT_DESC_END_SUFFIX);
     $cart_mdata = str_replace("{product_desc}", $p_desc, $cart_mdata);
 }
开发者ID:,项目名称:,代码行数:31,代码来源:

示例4: count

     $data_add = str_replace("{category_description}", $cat_desc, $data_add);
 }
 if (strstr($data_add, '{category_short_desc}')) {
     $cat_s_desc = $config->maxchar($row->category_short_description, CATEGORY_SHORT_DESC_MAX_CHARS, CATEGORY_SHORT_DESC_END_SUFFIX);
     $data_add = str_replace("{category_short_desc}", $cat_s_desc, $data_add);
 }
 if (strstr($data_add, '{category_total_product}')) {
     $totalprd = $producthelper->getProductCategory($row->category_id);
     $data_add = str_replace("{category_total_product}", count($totalprd), $data_add);
     $data_add = str_replace("{category_total_product_lbl}", JText::_('COM_REDSHOP_TOTAL_PRODUCT'), $data_add);
 }
 /*
  * category template extra field
  * "2" argument is set for category
  */
 $data_add = $producthelper->getExtraSectionTag($extraFieldName, $row->category_id, "2", $data_add);
 if (strstr($data_add, "{product_loop_start}") && strstr($data_add, "{product_loop_end}")) {
     $template_d1 = explode("{product_loop_start}", $data_add);
     $template_d2 = explode("{product_loop_end}", $template_d1[1]);
     $template_product = $template_d2[0];
     $attribute_template = $producthelper->getAttributeTemplate($template_product);
     $extraFieldName = $extraField->getSectionFieldNameArray(1, 1, 1);
     $product_data = '';
     $prddata_add = "";
     $this->product = $model->getCategorylistProduct($row->category_id);
     for ($j = 0; $j < count($this->product); $j++) {
         $product = $this->product[$j];
         if (!is_object($product)) {
             break;
         }
         $count_no_user_field = 0;
开发者ID:,项目名称:,代码行数:31,代码来源:

示例5: explode

 }
 $cItemid = $objhelper->getCategoryItemid($this->catid);
 if ($cItemid != "") {
     $tmpItemid = $cItemid;
 } else {
     $tmpItemid = $this->itemid;
 }
 $link = JRoute::_('index.php?option=' . $this->option . '&view=category&cid=' . $this->catid . '&manufacturer_id=' . $this->manufacturer_id . '&layout=detail&Itemid=' . $tmpItemid);
 $cat_main_thumb = "";
 if ($this->maincat->category_full_image && file_exists(REDSHOP_FRONT_IMAGES_RELPATH . 'category/' . $this->maincat->category_full_image)) {
     $water_cat_img = $objhelper->watermark('category', $this->maincat->category_full_image, $cw_thumb, $ch_thumb, WATERMARK_CATEGORY_THUMB_IMAGE, '0');
     $cat_main_thumb = "<a href='" . $link . "' title='" . $main_cat_name . "'><img src='" . $water_cat_img . "' alt='" . $main_cat_name . "' title='" . $main_cat_name . "'></a>";
 }
 $template_desc = str_replace($ctag, $cat_main_thumb, $template_desc);
 $extraFieldName = $extraField->getSectionFieldNameArray(2, 1, 1);
 $template_desc = $producthelper->getExtraSectionTag($extraFieldName, $this->catid, "2", $template_desc, 0);
 if (strstr($template_desc, "{compare_product_div}")) {
     $compare_product_div = "";
     if (PRODUCT_COMPARISON_TYPE != "") {
         $comparediv = $producthelper->makeCompareProductDiv();
         $compareUrl = JRoute::_('index.php?option=com_redshop&view=product&layout=compare&Itemid=' . $this->itemid);
         $compare_product_div = "<form name='frmCompare' method='post' action='" . $compareUrl . "' >";
         $compare_product_div .= "<a href='javascript:compare();' >" . JText::_('COM_REDSHOP_COMPARE') . "</a>";
         $compare_product_div .= "<div id='divCompareProduct'>" . $comparediv . "</div>";
         $compare_product_div .= "</form>";
     }
     $template_desc = str_replace("{compare_product_div}", $compare_product_div, $template_desc);
 }
 if (strstr($template_desc, "{category_loop_start}") && strstr($template_desc, "{category_loop_end}")) {
     $template_d1 = explode("{category_loop_start}", $template_desc);
     $template_d2 = explode("{category_loop_end}", $template_d1[1]);
开发者ID:,项目名称:,代码行数:31,代码来源:

示例6: productalladdprice

             if ($ufield != "") {
                 $wishlist_data = str_replace("{if product_userfield}", $product_userfileds_form, $wishlist_data);
                 $wishlist_data = str_replace("{product_userfield end if}", "</form>", $wishlist_data);
             } else {
                 $wishlist_data = str_replace("{if product_userfield}", "", $wishlist_data);
                 $wishlist_data = str_replace("{product_userfield end if}", "", $wishlist_data);
             }
         }
         // Product User Field End
         $rmore = "<a href='" . $link . "' title='" . $row->product_name . "'>" . JText::_('COM_REDSHOP_READ_MORE') . "</a>";
         $wishlist_data = str_replace("{read_more}", $rmore, $wishlist_data);
         $wishlist_data = str_replace("{read_more_link}", $link, $wishlist_data);
         $remove = '<a href="' . $link_remove . '" title="" style="text-decoration:none;">' . JText::_("COM_REDSHOP_REMOVE_PRODUCT_FROM_WISHLIST") . '</a>';
         $wishlist_data = str_replace('{remove_product_link}', $remove, $wishlist_data);
         // Extra field display
         $wishlist_data = $producthelper->getExtraSectionTag($extraFieldName, $row->product_id, "1", $wishlist_data, 1);
         $wishlist_data = str_replace("{if product_on_sale}", "", $wishlist_data);
         $wishlist_data = str_replace("{product_on_sale end if}", "", $wishlist_data);
         if (isset($row->category_id) === false) {
             $row->category_id = 0;
         }
         $wishlist_data = $producthelper->replaceCartTemplate($row->product_id, $row->category_id, 0, 0, $wishlist_data, $isChilds, $userfieldArr, $totalatt, $totalAccessory, $count_no_user_field);
         $mainid .= $row->product_id . ",";
         $totattid .= $totalatt . ",";
         $totcount_no_user_field .= $count_no_user_field . ",";
         $temp_template .= $wishlist_data;
     }
     $my = "<form name='frm' method='POST' action=''>";
     $my .= "<input type='hidden' name='product_id' id='product_id' value='" . $mainid . "' >\n\n\t\t\t<input type='hidden' name='totacc_id' id='totacc_id' value='" . $totattid . "' >\n\t\t\t<input type='hidden' name='totcount_no_user_field' id='totcount_no_user_field' value='" . $totcount_no_user_field . "' >\n\t\t\t<input type='button' name='submit' onclick='return productalladdprice();' value='" . JText::_('COM_REDSHOP_ADD_TO_CART') . "'>\n\t\t\t</form>";
 } else {
     echo "<div>" . JText::_('COM_REDSHOP_NO_PRODUCTS_IN_WISHLIST') . "</div>";
开发者ID:,项目名称:,代码行数:31,代码来源:

示例7: display_products


//.........这里部分代码省略.........
                }
                $wishlist_data = str_replace('{product_price}', $mainproduct_price, $wishlist_data);
            }
            // Product User Field Start
            $count_no_user_field = 0;
            $returnArr = $producthelper->getProductUserfieldFromTemplate($wishlist_data);
            $template_userfield = $returnArr[0];
            $userfieldArr = $returnArr[1];
            if (strstr($wishlist_data, "{if product_userfield}") && strstr($wishlist_data, "{product_userfield end if}") && $template_userfield != "") {
                $ufield = "";
                $cart = $session->get('cart');
                if (isset($cart['idx'])) {
                    $idx = (int) $cart['idx'];
                }
                $idx = 0;
                $cart_id = '';
                for ($j = 0; $j < $idx; $j++) {
                    if ($cart[$j]['product_id'] == $row->product_id) {
                        $cart_id = $j;
                    }
                }
                for ($ui = 0; $ui < count($userfieldArr); $ui++) {
                    if (!$idx) {
                        $cart_id = "";
                    }
                    $mysesspro = "productuserfield_" . $ui;
                    for ($check_i = 1; $check_i <= $_SESSION["no_of_prod"]; $check_i++) {
                        if ($_SESSION['wish_' . $check_i]->product_id == $row->product_id) {
                            $product_userfileds_final = $_SESSION['wish_' . $check_i]->{$mysesspro};
                        }
                    }
                    if ($product_userfileds_final != '') {
                        $product_userfileds = $extraField->list_all_user_fields($userfieldArr[$ui], 12, '', '', 0, $row->product_id, $product_userfileds_final, 1);
                    } else {
                        $product_userfileds = $extraField->list_all_user_fields($userfieldArr[$ui], 12, '', $cart_id, 0, $row->product_id);
                    }
                    $ufield .= $product_userfileds[1];
                    //
                    if ($product_userfileds[1] != "") {
                        $count_no_user_field++;
                    }
                    if ($product_userfileds_final != '') {
                        $wishlist_data = str_replace('{' . $userfieldArr[$ui] . '_lbl}', $product_userfileds[0], $wishlist_data);
                        $wishlist_data = str_replace('{' . $userfieldArr[$ui] . '}', $product_userfileds[1], $wishlist_data);
                    } else {
                        $wishlist_data = str_replace('{' . $userfieldArr[$ui] . '_lbl}', $product_userfileds[0], $wishlist_data);
                        $wishlist_data = str_replace('{' . $userfieldArr[$ui] . '}', $product_userfileds[1], $wishlist_data);
                    }
                }
                $product_userfileds_form = "<form method='post' action='' id='user_fields_form' name='user_fields_form'>";
                if ($ufield != "") {
                    $wishlist_data = str_replace("{if product_userfield}", $product_userfileds_form, $wishlist_data);
                    $wishlist_data = str_replace("{product_userfield end if}", "</form>", $wishlist_data);
                } else {
                    $wishlist_data = str_replace("{if product_userfield}", "", $wishlist_data);
                    $wishlist_data = str_replace("{product_userfield end if}", "", $wishlist_data);
                }
            }
            // Product User Field End
            /////////////////////////////////// Product accessory Start /////////////////////////////////
            $accessory = $producthelper->getProductAccessory(0, $row->product_id);
            $totalAccessory = count($accessory);
            $wishlist_data = $producthelper->replaceAccessoryData($row->product_id, 0, $accessory, $wishlist_data, $isChilds);
            /////////////////////////////////// Product accessory End /////////////////////////////////
            $wishlist_data = str_replace('{product_name}', $pname, $wishlist_data);
            $wishlist_data = str_replace('{product_number}', $pnumber, $wishlist_data);
            $wishlist_data = str_replace('{product_s_desc}', $pdesc, $wishlist_data);
            $wishlist_data = $producthelper->getExtraSectionTag($extraFieldName, $row->product_id, "1", $wishlist_data, 1);
            $wishlist_data = $producthelper->replaceCartTemplate($row->product_id, $row->category_id, 0, 0, $wishlist_data, $isChilds, $userfieldArr, $totalatt, $totalAccessory, $count_no_user_field);
            $rmore = "<a href='" . $link . "' title='" . $row->product_name . "'>" . JText::_('COM_REDSHOP_READ_MORE') . "</a>";
            $wishlist_data = str_replace("{read_more}", $rmore, $wishlist_data);
            $wishlist_data = str_replace("{read_more_link}", $link, $wishlist_data);
            $wishlist_data = str_replace("{product_loop_start}", '', $wishlist_data);
            $wishlist_data = str_replace("{product_loop_end}", '', $wishlist_data);
            $wishlist_data = str_replace("{back_link}", '', $wishlist_data);
            $wishlist_data = str_replace("{back_link}", '', $wishlist_data);
            $wishlist_data = str_replace("{mail_link}", '', $wishlist_data);
            $wishlist_data = str_replace("{if product_on_sale}", '', $wishlist_data);
            $wishlist_data = str_replace("{product_on_sale end if}", '', $wishlist_data);
            $wishlist_data = str_replace("<table></table>", '', $wishlist_data);
            $wishlist_data = str_replace("{all_cart}", '', $wishlist_data);
            $wishlist_data = str_replace("{if product_on_sale}", "", $wishlist_data);
            $wishlist_data = str_replace("{product_on_sale end if}", "", $wishlist_data);
            $regdellink = JRoute::_("index.php?mydel=1&view=wishlist&wishlist_id=" . $row->product_id . "&task=mysessdelwishlist");
            $mainregdellink = "<div><a href=\"" . $regdellink . "\">" . JText::_('COM_REDSHOP_REMOVE_PRODUCT_FROM_WISHLIST') . "</a></div>";
            $wishlist_data = str_replace('{remove_product_link}', $mainregdellink, $wishlist_data);
            $mainid .= $row->product_id . ",";
            $totattid .= $totalatt . ",";
            $totcount_no_user_field .= $count_no_user_field . ",";
            $temp_template .= $wishlist_data;
        }
        $my = "<form name='frm' method='POST' action=''>";
        $my .= "<input type='hidden' name='product_id' id='product_id' value='" . $mainid . "' >\n\n\t\t\t<input type='hidden' name='totacc_id' id='totacc_id' value='" . $totattid . "' >\n\t\t\t<input type='hidden' name='totcount_no_user_field' id='totcount_no_user_field' value='" . $totcount_no_user_field . "' >\n\t\t\t<input type='button' name='submit' onclick='return productalladdprice();' value='" . JText::_('COM_REDSHOP_ADD_TO_CART') . "'>\n\t\t\t</form>";
        $data = $template_d1[0] . $temp_template . $template_d2[1];
        $data = str_replace('{back_link}', '', $data);
        $data = str_replace('{all_cart}', $my, $data);
        $data = $redTemplate->parseredSHOPplugin($data);
        echo eval("?>" . $data . "<?php ");
    }
}
开发者ID:,项目名称:,代码行数:101,代码来源:

示例8: elseif

if (strstr($template_desc, "{googleplus1}")) {
    JHTML::Script('plusone.js', 'https://apis.google.com/js/', false);
    $uri = JFactory::getURI();
    $google_like = '<g:plusone></g:plusone>';
    $template_desc = str_replace("{googleplus1}", $google_like, $template_desc);
}
if (strstr($template_desc, "{bookmark}")) {
    $bookmark = '<script type="text/javascript">addthis_pub = "AddThis";</script>';
    $bookmark .= '<a href="' . $Scheme . '://www.addthis.com/bookmark.php" onmouseover="return addthis_open(this, \'\', \'[URL]\', \'[TITLE]\')" onmouseout="addthis_close()" onclick="return addthis_sendto()">';
    $bookmark .= '<img src="' . $Scheme . '://s7.addthis.com/static/btn/lg-share-en.gif" alt="Share" border="0" height="16" width="125"></a>';
    $bookmark .= '<script type="text/javascript" src="' . $Scheme . '://s7.addthis.com/js/200/addthis_widget.js"></script>';
    $template_desc = str_replace("{bookmark}", $bookmark, $template_desc);
}
//  Extra field display
$extraFieldName = $extraField->getSectionFieldNameArray(1, 1, 1);
$template_desc = $producthelper->getExtraSectionTag($extraFieldName, $this->data->product_id, "1", $template_desc);
// Product thumb image
if (strstr($template_desc, "{product_thumb_image_3}")) {
    $pimg_tag = '{product_thumb_image_3}';
    $ph_thumb = PRODUCT_MAIN_IMAGE_HEIGHT_3;
    $pw_thumb = PRODUCT_MAIN_IMAGE_3;
} elseif (strstr($template_desc, "{product_thumb_image_2}")) {
    $pimg_tag = '{product_thumb_image_2}';
    $ph_thumb = PRODUCT_MAIN_IMAGE_HEIGHT_2;
    $pw_thumb = PRODUCT_MAIN_IMAGE_2;
} elseif (strstr($template_desc, "{product_thumb_image_1}")) {
    $pimg_tag = '{product_thumb_image_1}';
    $ph_thumb = PRODUCT_MAIN_IMAGE_HEIGHT;
    $pw_thumb = PRODUCT_MAIN_IMAGE;
} else {
    $pimg_tag = '{product_thumb_image}';
开发者ID:,项目名称:,代码行数:31,代码来源:


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