
Originally Posted by
cevans73
Now how would I translate what I have in that tab, into the code that you provided?
Using my example:
--TAB STRIP SECTION--
Find:
Code:
if ($bReviews_Tab != false) {
$tabstrip .= "\n" . '<li><a href="javascript:void(0)" onclick="expandcontent(\'sc'.$g.'\', this)"><span>'.$reviews_tab_name.'</span></a></li>' . "\n";
$g++;
}
After, add:
Code:
// ===> Add Imprint Colors to tabs (tabstrip)
$tabstrip .= "\n" . '<li><a href="javascript:void(0)" onclick="expandcontent(\'sc'.$g.'\', this)"><span>Imprint Colors</span></a></li>' . "\n";
$g++;
That will add the actual tab to the strip. Next we will associate it with its "content box". The preload isn't required persay. It is meant to load an existing page or database query ahead of time. In this case, you just have static content, so we can just hardcode that here:
--TAB CONTENT SECTION--
Find:
Code:
// ===> Check if Reviews should be on tabs (content)
if ($bReviews_Tab != false) {
$tabcontent .= "\n" . '<!--bof Reviews_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ($reviews_tab_name, $a, $bShowHeaders);
$tabcontent .= $fmtRVW;
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Reviews_Tab sc'.$a.'-->' . "\n\n";
$a++;
}
After, add:
Code:
// ===> Add Imprint Colors to tabs (content)
$tabcontent .= "\n" . '<!--bof Imprint_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ("Imprint Colors", $a, $bShowHeaders);
$tabcontent .= ('<img src="http://www.bizmug.com/zencart/images/pantone/pantone_product_page_image.gif" width="644" height="121">
</br>
<strong><a target="_blank" href="http://www.bizmug.com/pantone_color_chart_new.pdf"><span class="style4">Click Here</span></a><span class="style3"> to view the Pantone Color Chart and to select the best imprint color for your product!</span></strong>
</br>
Note: When selecting your pantone number, reference using the top line information right below the color swatch. We do not need the rgb information on the second line. For example: pantone 106, or pantone 300. For Black or White, just reference 'Black' or 'White', no numbers are needed.');
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Imprint_Tab sc'.$a.'-->' . "\n\n";
$a++;
Try that and let me know if it works.
Bookmarks