*********************************************************************************************************************
Change log and Version History
*********************************************************************************************************************
				Version 5.3.9 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated $card['extra'] to array in templates for for Phoenix 1.0.9.5 compatibility
         
*********************************************************************************************************************
				Version 5.3.8 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated module template width classes for Phoenix 1.0.9.4 compatibility

*********************************************************************************************************************
				Version 5.3.7 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - updated legacy oscTemplate functions to Template functions for Phoenix 1.0.9.1 compatibility

*********************************************************************************************************************
				Version 5.3.6 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - fixed undefined array key in cm_sp_continue_recently_viewed.php

*********************************************************************************************************************
				Version 5.3.5 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - fixed undefined content_width in tpl_cm_sp_continue_recently_viewed.php

*********************************************************************************************************************
				Version 5.3.4 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - updated tep_cfg_ and other deprecated functions

*********************************************************************************************************************
				Version 5.3.3 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Fixed glitches in shopping cart modules. Thanks to @zeeshop for the report

*********************************************************************************************************************
				Version 5.3.2 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Fixed glitches in includes\modules\content\shopping_cart\cm_sc_continue_recently_viewed.php. Thanks to @zeeshop for the report

*********************************************************************************************************************
				Version 5.3.1 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Error fix in includes\modules\content\shopping_cart\cm_sc_continue_recently_viewed.php. Thnks to @zeeshop for the report

*********************************************************************************************************************
				Version 5.3.0 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated for Phoenix Cart 1.0.8.4+
         - Tested with Phoenix Cart 1.0.8.9
         - Updated all modules to use actual product queries and card template
         - Simplified code
         - Updated all modules to actual core coding standards

*********************************************************************************************************************
				Version 5.2.0 Phoenix Cart
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated all modules to use product class
         - Simplified hook code
         - Updated all modules to actual core coding standards
         - fixed glitch and simplified coding in continue shopping button on shopping cart page
         - updated copyright and support references to Phoenix Cart

*********************************************************************************************************************
				Version 5.1.5 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Fixed undefined variable error in header module

*********************************************************************************************************************
				Version 5.1.4 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Fixed error in box module

*********************************************************************************************************************
				Version 5.1.3 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Added missing final_price to queries. Thanks to @rupruprup for the report

*********************************************************************************************************************

				Version 5.1.2 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - fixed error in cm_pi_recently_viewed.php. Thanks to @rupruprup for the report

*********************************************************************************************************************
				Version 5.1.1 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - fix in german language file cm_i_recently_viewed.php. Thanks to @rupruprup for the report
         - fixed error in cm_pi_recently_viewed.php. Thanks to @rupruprup for the report

*********************************************************************************************************************
				Version 5.1.0 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - updated for Phoenix 1.0.7.2+
         - updated all modules to abstract executable modules
         - update recently_viewed.php to templateable page
         - updated hook and moved to templates/
*********************************************************************************************************************

				Version 5.0.2 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - removed deprecated "Product Image" configuration setting
         - updated database query in recently_viewed.php
*********************************************************************************************************************

				Version 5.0.1 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - modified "See More" button to show only if more recently products have been visited than number of recently products shown in module.Thanks to @Demitry for the suggestion
         - readded missing truncate text function in cm_sc_continue_recently_viewed.php shopping cart module
         - removed obsolete truncate text functions in box module
*********************************************************************************************************************

				Version 5.0.0 Phoenix
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - updated to Phoenix 1.0.2.x
         - replaced ht-module with sidewide hook
         - updated coding to match Phoenix 1.0.2.0 product listings and config entries
         - simplified modules and removed config entries to show always product name, image and price
         - simplified description length limit
*********************************************************************************************************************

				Version 4.6.2 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Fixed PHP 7.2 warning error in cm_sc_continue_recently_viewed.php shopping cart module. Thanks to @lucsangel for the report
*********************************************************************************************************************
				Version 4.6.1 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated PHP 7.2 deprecated each() function in recently_viewed.php
*********************************************************************************************************************
				Version 4.6 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
         - Updated for 2.3.4.1. CE Frozen
         - Updated template naming and auto inclusion in all content modules
         - Added  "is-product" class and  "data-is-special"
         - Added "data-has-attributes", "data-in-stock" and "data-product-id" to "buy" buttons in all modules.
*********************************************************************************************************************
				Version 4.5 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Header Module added (thanks to @discxpress)
*********************************************************************************************************************
				Version 4.4 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Hardcoded paths in all files
*********************************************************************************************************************
				Version 4.3 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Changed $HTTP_GET_VARS to $_GET in [catalog]/recently_viewed.php
*********************************************************************************************************************
				Version 4.2 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Hardcoded all filenames and database table names
*********************************************************************************************************************
				Version 4.1 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Added micro data tags for products URL
				- Moved functions to the modules and removed separate function file
				- Added class method to get shopping cart item list in shopping cart modules
				- Fixed wrong instructions for shopping cart modularization.
				- Added class method to truncate product name and description
				- Fixed wrong text constant for continue shopping button in shopping cart module
*********************************************************************************************************************
				Version 4.0 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Added Continue shopping and recently viewed drop down menu shopping cart module. thanks to @Jack_mcs
				- Added recently viewed shopping cart module.
				- Added recently viewed index nested module for modularized index page introduced to 2.3.4 BS EDGE since 12th of May 2016.
				- Added random sort order.
				- Added Microdata tags in all modules
				- changed button icons to font awesome icons
				- sql queries rewritten and listings code simplified in all modules.
*********************************************************************************************************************
				Version 3.4 BS
				by @raiwa
				raiwa@phoenixcartaddons.com
				www.phoenixcartaddons.com

				Changes:
				- Strip_tags added for products description to avoid missing end/closing tags when partial description is shown. thanks to @puddlec
				- class constructor name changed to __construct in all modules for php7 compatibility.
				- session unregister code moved from logoff page to ht module, less core changes. Thanks to @Tsimi for the code example in his discount code add-on
				- added alternative ht_recently_viewed module for compatibility with Modular Product Page (Bootstrap) by @kymation: http://addons.oscommerce.com/info/9453. Thanks to @Denzel
				- Screenshots included
*********************************************************************************************************************
				Version 3.3r1 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Missing Product order configuration entry added to Recently Viewed box
*********************************************************************************************************************
				Version 3.3 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Products queries optimized, removed tep_get_products_name and tep_get_products_special_price functions. Thanks to @marcello for the suggestion and code
				- <h5> tags replaced by <p> tags for better compatibility with core modules.
				- Wrong VIEW_BUY_BUTTON constant in index module fixed. Thanks to @grandpaj for the report
				- Added selection on which levels to show the index module (top, nested, products). Thanks to @f.figue for the idea
				- Version info updated in box and content modules
*********************************************************************************************************************
				Version 3.2r5 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Addded instructions to show the recently viewed module on category and product level in index page. Thanks to @marcello
*********************************************************************************************************************
				Version 3.2r4 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Fix in header tags module to avoid duplicate entry if the actual product is in first place in the list. Happened when going from product page to reviews or back.
*********************************************************************************************************************
				Version 3.2r3 BS by @raiwa raiwa@phoenixcartaddons.com
				Thanks to @marcello for all reports and suggestions
				Changes:
				- Fixed typo in the product info module's configuration entrance "Enable Recently Viewed Module".
				- Several code clean ups in the product_info, index and header tag modules.
				- Instructions for Equal Height mode in the product_info module added.
				- Modified coding in header tags module so that page selection works and product_review page added by default.
				- Modified coding in header tags module to show correct order if a product is viewed again.
*********************************************************************************************************************
				Version 3.2r2 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Fixed obsolete configuration entry for remmoved "Buy" button in index module. Thanks to @Tsimi for the report
*********************************************************************************************************************
				Version 3.2r1 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Fixed missing function "tep_version_readonly" for module installation. Thanks to @chilinote
*********************************************************************************************************************
				Version 3.2 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Added height control to product boxes in index and product info modules. Thanks to @De Dokta
				- Added "SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT" and removed obsolete "'hspace="2" vspace="3"'" in all modules. Thanks to @De Dokta
				- Corrected typo in instructions "logoff.php" instead of "login.php". Thanks to @grandpaj
				- Added "View" and "Buy" buttons to the index module like new products and specials.
				- Added version Info to all modules
				- Code clean up
				- Added update instructions for Version 3.0 and 3.1
*********************************************************************************************************************
				Version 3.1 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Moved the script which registers the visited products from the product_info module to a separate header tags module.
				  The 3 recently viewed modules can be installed now independent in any combination.
				- Bug-fix in the sql queries for the case if product price is disabled. Thanks to Chris @ringo667
				- Error message added to all modules if header tag module is not active.
				- session unregister code added to logout.php
				- globals clean-up in all modules
				- improved installation and troubleshooting. Thanks to Chris @ringo667
*********************************************************************************************************************
				Version 3.0 BS by @raiwa raiwa@phoenixcartaddons.com
				Changes:
				- Updated for Bootstrap
				- All modules updated for Bootstrap box and content modules
				- recently viewed page updated to use core product_listing.php
				- hardcoded database table names and filenames
				- spanish and german language files added
				- Easy installation
*********************************************************************************************************************
				Based on:
				http://addons.oscommerce.com/info/5520
        1.0 Original version by b00
        2.0 Updates and additional features by Kymation
*********************************************************************************************************************
