Esempio n. 1
0
<?php

if ($banner_logo = xos_banner_exists('dynamic', 'logo')) {
    $banner = array();
    $banner = xos_display_banner('static', $banner_logo);
    eval(' ?>' . $banner['banner_php_source'] . '<?php ');
    $smarty->assign('header_banner_logo', $banner['banner_string']);
}
//  return 'overwrite_all';
Esempio n. 2
0
// project    : XOS-Shop, open source e-commerce system
//              http://www.xos-shop.com
//
// filename   : banner_column_2.php
// author     : Hanspeter Zeller <*****@*****.**>
// copyright  : Copyright (c) 2007 Hanspeter Zeller
// license    : This file is part of XOS-Shop.
//
//              XOS-Shop is free software: you can redistribute it and/or modify
//              it under the terms of the GNU General Public License as published
//              by the Free Software Foundation, either version 3 of the License,
//              or (at your option) any later version.
//
//              XOS-Shop is distributed in the hope that it will be useful,
//              but WITHOUT ANY WARRANTY; without even the implied warranty of
//              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//              GNU General Public License for more details.
//
//              You should have received a copy of the GNU General Public License
//              along with XOS-Shop.  If not, see <http://www.gnu.org/licenses/>.
////////////////////////////////////////////////////////////////////////////////
if (!(@(include DIR_FS_SMARTY . 'catalog/templates/' . SELECTED_TPL . '/php/includes/boxes/banner_column_2.php') == 'overwrite_all')) {
    if ($banner_column_2 = xos_banner_exists('dynamic', 'column_2')) {
        $banner = array();
        $banner = xos_display_banner('static', $banner_column_2);
        eval(' ?>' . $banner['banner_php_source'] . '<?php ');
        $smarty->assign('box_banner_column_2_banner_column_2', $banner['banner_string']);
        $output_banner_column_2 = $smarty->fetch(SELECTED_TPL . '/includes/boxes/banner_column_2.tpl');
        $smarty->assign('box_banner_column_2', $output_banner_column_2);
    }
}
Esempio n. 3
0
<?php

if ($banner_footer_bottom = xos_banner_exists('dynamic', 'footer_bottom')) {
    $banner = array();
    $banner = xos_display_banner('static', $banner_footer_bottom);
    eval(' ?>' . $banner['banner_php_source'] . '<?php ');
    $smarty->assign('footer_banner_footer_bottom', $banner['banner_string']);
}
//  return 'overwrite_all';
Esempio n. 4
0
//              by the Free Software Foundation, either version 3 of the License,
//              or (at your option) any later version.
//
//              XOS-Shop is distributed in the hope that it will be useful,
//              but WITHOUT ANY WARRANTY; without even the implied warranty of
//              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//              GNU General Public License for more details.
//
//              You should have received a copy of the GNU General Public License
//              along with XOS-Shop.  If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------
// this file is based on:
//              osCommerce, Open Source E-Commerce Solutions
//              http://www.oscommerce.com
//              Copyright (c) 2003 osCommerce
//              filename: footer.php
//
//              Released under the GNU General Public License
////////////////////////////////////////////////////////////////////////////////
if (!(@(include DIR_FS_SMARTY . 'catalog/templates/' . SELECTED_TPL . '/php/includes/footer.php') == 'overwrite_all')) {
    require DIR_WS_INCLUDES . 'counter.php';
    if ($banner_footer = xos_banner_exists('dynamic', 'footer')) {
        $banner = array();
        $banner = xos_display_banner('static', $banner_footer);
        eval(' ?>' . $banner['banner_php_source'] . '<?php ');
        $smarty->assign('footer_banner_footer', $banner['banner_string']);
    }
    $smarty->assign(array('footer_counter_now' => $counter_now, 'footer_counter_startdate' => $counter_startdate_formatted));
    $output_footer = $smarty->fetch(SELECTED_TPL . '/includes/footer.tpl');
    $smarty->assign('footer', $output_footer);
}
Esempio n. 5
0
    // warn the admin if the site is offline
    if (SITE_OFFLINE == 'true' && $_SESSION['access_allowed'] == 'true') {
        $messageStack->add('header', WARNING_SITE_IS_OFFLINE, 'warning');
    }
    if (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true' && DOWNLOAD_ENABLED == 'true') {
        if (!is_dir(DIR_FS_DOWNLOAD)) {
            $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
        }
    }
    if ($messageStack->size('header') > 0) {
        $smarty->assign('header_message_stack_output', $messageStack->output('header'));
    }
    if (isset($_GET['error_message']) && xos_not_null($_GET['error_message'])) {
        $smarty->assign('header_error_message', htmlspecialchars(stripslashes(urldecode($_GET['error_message']))));
    }
    if (isset($_GET['info_message']) && xos_not_null($_GET['info_message'])) {
        $smarty->assign('header_info_message', htmlspecialchars(stripslashes(urldecode($_GET['info_message']))));
    }
    if (isset($_SESSION['customer_id'])) {
        $smarty->assign('header_link_filename_logoff', xos_href_link(FILENAME_LOGOFF, '', 'SSL'));
    }
    if ($banner_header = xos_banner_exists('dynamic', 'header')) {
        $banner = array();
        $banner = xos_display_banner('static', $banner_header);
        eval(' ?>' . $banner['banner_php_source'] . '<?php ');
        $smarty->assign('header_banner_header', $banner['banner_string']);
    }
    $smarty->assign(array('header_store_name' => STORE_NAME, 'header_link_filename_default' => xos_href_link(FILENAME_DEFAULT), 'header_link_filename_account' => xos_href_link(FILENAME_ACCOUNT, '', 'SSL'), 'header_link_filename_shopping_cart' => xos_href_link(FILENAME_SHOPPING_CART), 'header_link_filename_checkout_shipping' => xos_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'header_breadcrumb' => $site_trail->breadcrumb_trail(BREADCRUMB_TRAIL_SEPARATOR)));
    $output_header = $smarty->fetch(SELECTED_TPL . '/includes/header.tpl');
    $smarty->assign('header', $output_header);
}