globals('core.eol'); $x['disp_baseurl'] = $this->globals('core_display.base_url'); $x['disp_year'] = $this->xhtml_encode($this->globals('core_datetime.year')); $x['disp_date'] = $this->xhtml_encode($this->globals('core_datetime.full')); $x['site_name'] = $this->globals('core_settings.core.site_name'); // +-- // | HREFs: These are account independent: // +-- $x['link_contact'] = $this->link('core','contact',array()); $x['link_home'] = $this->link('cms','display',array('ref' => 'splash')); $x['link_cart'] = $this->link('ecom','viewcart',array()); $x['link_checkout'] = $this->link('ecom','checkoutfn',array()); // +-- // | HREFs: This one is account dependent: // +-- if ($this->globals('core_user.id')) { $x['link_account'] = $this->link('core','accountover',array()); } else { $x['link_account'] = $this->link('core','login',array()); } // End of if statement. // +-- // | Vendor link. // +-- $x['link_vendor'] = ''; $x['link_vendor'] .= 'Kryptronic Powered'; // +-- // | Meta tag and title variables. // +-- $x['metatitle'] = $this->globals('core_display.metatitle'); $x['metakeywords'] = $this->globals('core_display.metakeywords'); $x['metadesc'] = $this->globals('core_display.metadesc'); $x['disp_title'] = $this->xhtml_encode($this->globals('core.namespace.name')); $x['disp_title'] = preg_replace('/ \- Process$/','',$x['disp_title']); // +-- // | Strip XHTML tags from the meta information. // +-- $x['metatitle'] = $this->xhtml_encode(strip_tags($x['metatitle'])); $x['metakeywords'] = $this->xhtml_encode(strip_tags($x['metakeywords'])); $x['metadesc'] = $this->xhtml_encode(strip_tags($x['metadesc'])); if ($this->globals('core.ref_disp')) { $x['disp_title'] = $this->xhtml_encode($this->globals('core.ref_disp')); } // End of if statement. // +-- // | Legacy app_id variable. // +-- $x['app_id'] = $this->globals('core.app'); // +-- // | Get an instance of our main ecommerce class just in case // | we're using the CMS and want to load the cart from an include. // +-- $ecom_object =& $this->quick_object('ECOM','ecom'); // +-- // | Return our variable array. // +-- return $x; } // End of function. // +------------------------------------------------------------------+ // | Function: xnamespace | // +------------------------------------------------------------------+ function xnamespace ($app = '', $namespace = '', $params = '') { // +-- // | This function loads a requested namespace. // +-- if ($app == 'core') {$app = $this->globals('core.app');} if (empty($app)) {return false;} $this->include_namespace($app,$namespace,$params,0); // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: link | // +------------------------------------------------------------------+ function link ($app = '', $namespace = '', $params = '') { // +-- // | This function returns a link to a namespace. // +-- if ($app == 'core') {$app = $this->globals('core.app');} if (empty($app)) {return false;} // +-- // | Make sure the link is valid, otherwise, return false. // +-- $valid = $this->link_isvalid($app,$namespace); if (empty($valid)) {return false;} // +-- // | Return the link if it's valid. // +-- return $this->link_namespace($app,$namespace,$params); } // End of function. // +------------------------------------------------------------------+ // | Function: debug | // +------------------------------------------------------------------+ function debug () { // +-- // | This function prints closure and debug info. It handle including // | the debug and closure divs. // +-- if ($this->debug == 2) {$this->include_file('core','debug.php');} $this->include_file('core','closure.php'); // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: titletag | // +------------------------------------------------------------------+ function titletag ($title = '') { // +-- // | This function prints the title tag. // +-- $eol = $this->globals('core.eol'); $suppress_title = $this->globals('core_display.suppress_title'); $ns = $this->globals('core.namespace'); $ref = $this->globals('core.ref'); if ((empty($suppress_title)) && (!(empty($title)))) { print '
' . $eol; print '

' . $title . '

' . $eol; print '
' . $eol . $eol; } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: content | // +------------------------------------------------------------------+ function content () { // +-- // | This function prints the content placeholder. // +-- $pageref = $this->globals('cms.content_info.id'); if ($pageref != 'splash') { print ''; return 1; } // End of if statement. $path = $this->paths_convert(dirname(__FILE__)); $path .= '/includes/splash.php'; if (@file_exists($path)) { $this->include_skinfile('includes/splash.php'); } else { print ''; } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: printaddphone | // +------------------------------------------------------------------+ function printaddphone () { // +-- // | This function prints the owner's address and // | phone/fax numbers. // +-- $eol = $this->globals('core.eol'); $phone = $this->xhtml_encode($this->globals('core_settings.core.siteownerphone')); $fax = $this->xhtml_encode($this->globals('core_settings.core.siteownerfax')); $address = array('addone' => $this->globals('core_settings.core.siteowneradd'), 'addtwo' => '', 'city' => $this->globals('core_settings.core.siteownercity'), 'stateprov' => $this->globals('core_settings.core.siteownerstateprov'), 'country' => $this->globals('core_settings.core.siteownercountry'), 'postalcode' => $this->globals('core_settings.core.siteownerzip')); $address = $this->include_namespace('core','getaddress',array('address' => $address, 'format' => 'TEXTNOBR')); if ((!($this->IsError($address))) && (!(empty($address)))) { $address = $this->xhtml_encode($address); print '

' . $address . '

' . $eol . $eol; print '

Telephone: ' . $phone . '    '; print 'Fax: ' . $fax . '

' . $eol . $eol; } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: robotstag | // +------------------------------------------------------------------+ function robotstag () { // +-- // | This function prints the robots tag. Follow/Index tags are // | printed only when pages were not requested with SID in the URL. // +-- $eol = $this->globals('core.eol'); $cgi_sid = $this->globals('core_cgi.sid'); if (!(empty($cgi_sid))) { print '' . $eol; } else { print '' . $eol; } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: include_skinfile | // +------------------------------------------------------------------+ function include_skinfile ($file = '') { // +-- // | This function includes a skin file in this directory. As the skin // | file is being included here as part of this class, it will extend // | and inherit from the CORE_Display and CORE_SkinFunc classes. // +-- if (empty($file)) {return false;} $path = $this->paths_convert(dirname(__FILE__)); $path .= '/' . $file; if (!(@file_exists($path))) {return false;} return @include($path); } // End of function. // +------------------------------------------------------------------+ // | Function: lightbox | // +------------------------------------------------------------------+ function lightbox () { // +-- // | This function is here for legacy purposes. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: bodytag | // +------------------------------------------------------------------+ function bodytag () { // +-- // | This function is here for legacy purposes. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | Function: splashrightmenu | // +------------------------------------------------------------------+ function splashrightmenu () { // +-- // | This function prints the right menu on non home/splash page displays. // +-- $pageref = $this->globals('cms.content_info.id'); if ($pageref != 'splash') { $this->include_skinfile('includes/menuright.php'); } // End of if statement. // +-- // | Return true. // +-- return 1; } // End of function. // +------------------------------------------------------------------+ // | End of Class | // +------------------------------------------------------------------+ } // End of class. // +------------------------------------------------------------------+ // | End Of File | // +------------------------------------------------------------------+ ?>