| 1 | <?php
|
|---|
| 2 | /* -----------------------------------------------------------------------------------------
|
|---|
| 3 | $Id$
|
|---|
| 4 |
|
|---|
| 5 | modified eCommerce Shopsoftware
|
|---|
| 6 | http://www.modified-shop.org
|
|---|
| 7 |
|
|---|
| 8 | Copyright (c) 2009 - 2013 [www.modified-shop.org]
|
|---|
| 9 | -----------------------------------------------------------------------------------------
|
|---|
| 10 | Released under the GNU General Public License
|
|---|
| 11 | ---------------------------------------------------------------------------------------*/
|
|---|
| 12 |
|
|---|
| 13 | include ('includes/application_top.php');
|
|---|
| 14 |
|
|---|
| 15 | if (!defined('MODULE_WISHLIST_SYSTEM_STATUS') || MODULE_WISHLIST_SYSTEM_STATUS == 'false') {
|
|---|
| 16 | xtc_redirect(xtc_href_link(FILENAME_DEFAULT));
|
|---|
| 17 | }
|
|---|
| 18 |
|
|---|
| 19 | // include needed functions
|
|---|
| 20 | require_once(DIR_FS_INC.'get_wishlist_content.inc.php');
|
|---|
| 21 |
|
|---|
| 22 | // create smarty
|
|---|
| 23 | $smarty = new Smarty;
|
|---|
| 24 |
|
|---|
| 25 | // include boxes
|
|---|
| 26 | require (DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/source/boxes.php');
|
|---|
| 27 |
|
|---|
| 28 | $breadcrumb->add(NAVBAR_TITLE_WISHLIST, xtc_href_link(FILENAME_WISHLIST));
|
|---|
| 29 |
|
|---|
| 30 | require (DIR_WS_INCLUDES.'header.php');
|
|---|
| 31 |
|
|---|
| 32 | $module_data = array ();
|
|---|
| 33 | if ($_SESSION['wishlist']->count_contents() > 0) {
|
|---|
| 34 | $wishlist_content_array = get_wishlist_content();
|
|---|
| 35 | $smarty->assign('PRODUCT_LIST_BOX', $wishlist_content_array['ATTRIBUTES']);
|
|---|
| 36 | $smarty->assign('module_content', $wishlist_content_array['DATA']);
|
|---|
| 37 | } else {
|
|---|
| 38 | $smarty->assign('BUTTON_CONTINUE', '<a href="'.xtc_href_link(FILENAME_DEFAULT, '', 'NONSSL').'">'.xtc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE).'</a>');
|
|---|
| 39 | }
|
|---|
| 40 |
|
|---|
| 41 | $smarty->assign('LINK_DISPLAY_LIST', xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('show')).'show=list', 'NONSSL'));
|
|---|
| 42 | $smarty->assign('LINK_DISPLAY_BOX', xtc_href_link(basename($PHP_SELF), xtc_get_all_get_params(array('show')).'show=box', 'NONSSL'));
|
|---|
| 43 |
|
|---|
| 44 | $smarty->assign('language', $_SESSION['language']);
|
|---|
| 45 |
|
|---|
| 46 | $smarty->caching = 0;
|
|---|
| 47 | $main_content = $smarty->fetch(CURRENT_TEMPLATE.'/module/wishlist.html');
|
|---|
| 48 |
|
|---|
| 49 | $smarty->assign('language', $_SESSION['language']);
|
|---|
| 50 | $smarty->assign('main_content', $main_content);
|
|---|
| 51 | $smarty->caching = 0;
|
|---|
| 52 | if (!defined('RM'))
|
|---|
| 53 | $smarty->load_filter('output', 'note');
|
|---|
| 54 | $smarty->display(CURRENT_TEMPLATE.'/index.html');
|
|---|
| 55 | include ('includes/application_bottom.php');
|
|---|
| 56 | ?>
|
|---|