template['templatedir'] = substr(((($request_type == 'SSL') ? DIR_WS_HTTPS_CATALOG : DIR_WS_HTTP_CATALOG) . STS_TEMPLATE_DIR),0,-1); // $sts->template['templatepath'] = $sts->template['templatedir']; // Deprecated in v4.3, use $templatedir instead $sts->template['htmlparams'] = HTML_PARAMS; // Added in v4.0.7 $sts->template['date'] = strftime(DATE_FORMAT_LONG); $sts->template['sid'] = tep_session_name() . '=' . tep_session_id(); $sts->template['cataloglogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_logo.gif', STORE_NAME) . ''; // Modified in v4.3 $sts->template['urlcataloglogo'] = tep_href_link(FILENAME_DEFAULT); // Deprecated in v4.3, use $urlmyaccount instead. //$sts->template['urlmyaccountlogo'] = tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); $sts->template['cartlogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language. '/header_cart.gif', HEADER_TITLE_CART_CONTENTS) . ''; $sts->template['myaccountlogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_account.gif', HEADER_TITLE_MY_ACCOUNT) . ''; // Deprecated in v4.3, use $urlcartcontents instead. // $sts->template['urlcartlogo'] = tep_href_link(FILENAME_SHOPPING_CART); // Get logo from template folder, depending on language. Changed in v4.3 $sts->template['checkoutlogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language.'/header_checkout.gif', HEADER_TITLE_CHECKOUT) . ''; // Deprecated in v4.3, use $urlcheckout instead //$sts->template['urlcheckoutlogo'] = tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); $sts->template['breadcrumbs'] = $breadcrumb->trail(' » '); if (tep_session_is_registered('customer_id')) { $sts->template['myaccount'] = '' . HEADER_TITLE_MY_ACCOUNT . ''; $sts->template['urlmyaccount'] = tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); $sts->template['logoff'] = '' . HEADER_TITLE_LOGOFF . ''; $sts->template['urllogoff'] = tep_href_link(FILENAME_LOGOFF, '', 'SSL'); $sts->template['myaccountlogoff'] = $sts->template['myaccount'] . " | " . $sts->template['logoff']; // Next tags added in v4.3 $sts->template['loginofflogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_logoff.gif', HEADER_TITLE_LOGOFF) . ''; } else { $sts->template['myaccount'] = '' . HEADER_TITLE_MY_ACCOUNT . ''; $sts->template['urlmyaccount'] = tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); $sts->template['logoff'] = ''; $sts->template['urllogoff'] = ''; $sts->template['myaccountlogoff'] = $sts->template['myaccount']; // Next tags added in v4.3 $sts->template['loginofflogo'] = '' . tep_image(STS_TEMPLATE_DIR.'images/'.$language . '/header_login.gif', HEADER_TITLE_LOGIN) . ''; } $sts->template['cartcontents'] = '' . HEADER_TITLE_CART_CONTENTS . ''; $sts->template['urlcartcontents'] = tep_href_link(FILENAME_SHOPPING_CART, '', 'SSL'); // A real URL since v4.3, before was same as $cartcontents $sts->template['checkout'] = '' . HEADER_TITLE_CHECKOUT . ''; $sts->template['urlcheckout'] = tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); $sts->template['headertags']= "