|
From: <os...@us...> - 2013-10-04 13:12:48
|
Revision: 4860
http://sourceforge.net/p/oscss/svn/4860
Author: oscim
Date: 2013-10-04 13:12:43 +0000 (Fri, 04 Oct 2013)
Log Message:
-----------
Add comment in code
Modified Paths:
--------------
trunk/catalog/templates/defaut/includes/boxes/best_sellers.php
trunk/catalog/templates/defaut/includes/boxes/categories.php
trunk/catalog/templates/defaut/includes/boxes/checkout_progressbar.php
trunk/catalog/templates/defaut/includes/boxes/cms_last_post.php
trunk/catalog/templates/defaut/includes/boxes/currencies.php
trunk/catalog/templates/defaut/includes/boxes/information.php
trunk/catalog/templates/defaut/includes/boxes/languages.php
trunk/catalog/templates/defaut/includes/boxes/login_box.php
trunk/catalog/templates/defaut/includes/boxes/menu.php
trunk/catalog/templates/defaut/includes/boxes/myaccount.php
trunk/catalog/templates/defaut/includes/boxes/order_history.php
trunk/catalog/templates/defaut/includes/boxes/recently_viewed.php
trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php
trunk/catalog/templates/defaut/includes/boxes/search.php
trunk/catalog/templates/defaut/includes/boxes/search_suggest.php
trunk/catalog/templates/defaut/includes/boxes/selections.php
trunk/catalog/templates/defaut/includes/boxes/shopping_cart.php
trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short.php
trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short_ajax.php
trunk/catalog/templates/defaut/includes/boxes/specials.php
trunk/catalog/templates/defaut/includes/boxes/tags.php
trunk/catalog/templates/defaut/includes/boxes/tell_a_friend.php
trunk/catalog/templates/defaut/includes/boxes/very_viewed.php
trunk/catalog/templates/defaut/includes/boxes/view_min_cart.php
trunk/catalog/templates/defaut/includes/boxes/whats_new.php
Modified: trunk/catalog/templates/defaut/includes/boxes/best_sellers.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/best_sellers.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/best_sellers.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
@@ -12,10 +12,18 @@
*\brief Affiche Une nouveaute dans les produits, N'en affiche qu'une seule, de maniere aleatoire
*/
- //! @remarks depend Data_product active
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
+
$DB=Database::getInstance();
$languages_id=$page->the_var('languages_id');
if (isset($current_category_id) && ($current_category_id > 0)) {
@@ -30,7 +38,13 @@
$s .= '<li><a href="'. tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) .'">'. $best_sellers['products_name'].'</a></li>'."\n";
}
$s .= '</ol>'."\n";
- $array= array('title'=>__('box heading bestsellers'),'content'=>tep_output_string_protected($s,false,true));
+ $tmp_array= array('title'=>__('box heading bestsellers'),'content'=>tep_output_string_protected($s,false,true));
}
- else $array= array('title'=>'','content'=>'');
+ else $tmp_array= array('title'=>'','content'=>'');
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
+ $array= $tmp_array;
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/categories.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/categories.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/categories.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -17,6 +17,9 @@
if( ! DataTypes::is_active('categorie'))
return false;
+/**
+ @remarks Process Specific Boxes
+*/
// require_once(DIR_WS_CLASSES . 'category_tree.php'); // autoload
$CategoryTree = new category_tree;
$osCSS_Cache=new osCSS_Cache;
@@ -45,5 +48,10 @@
}
else $s= $osCSS_Cache->getCache();
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>__('categories menu'),'content'=>tep_output_string_protected($s,false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/checkout_progressbar.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/checkout_progressbar.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/checkout_progressbar.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,16 +3,22 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file includes/boxes/checkout_progressbar.php
*\brief Display progressbar for checkout process
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $full, $current;
+
$full=array();
if($page->is_page_type('cart') ){
@@ -37,6 +43,10 @@
$full=array(0,1,2,3,4);
}
}
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>__(''),'content'=>tep_output_string_protected(tep_get_include_contents('box.checkout_progressbar'),false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/cms_last_post.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/cms_last_post.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/cms_last_post.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -15,6 +15,10 @@
if( ! DataTypes::is_active('content'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
$tab = tep_return_cms_liste_byDate(10,array(@$_GET['content']));
if(is_array($tab) &&count($tab >0 )){
$t='<ol>';
Modified: trunk/catalog/templates/defaut/includes/boxes/currencies.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/currencies.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/currencies.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,13 +3,18 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file includes/boxes/currencies.php
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $page,$PHP_SELF,$request_type,$hidden_get_variables,$currencies_array;
$currency=$page->the_var('currency');
@@ -25,6 +30,11 @@
while (list($key, $value) = each($_GET)) if ( ($key != 'currency') && ($key != tep_session_name()) ) $hidden_get_variables .= tep_draw_hidden_field($key, $value);
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
+
$array['title']=__('box heading currencies');
$array['content']=tep_output_string_protected(tep_get_include_contents('box.currencies'), false, true) ;
Modified: trunk/catalog/templates/defaut/includes/boxes/information.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/information.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/information.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -15,6 +15,10 @@
if( ! DataTypes::is_active('content'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
global $template,$page;
$s='';
$language=$page->the_var('language');
@@ -24,5 +28,10 @@
if(is_array($in))
foreach($in as $v){ $s.= ' <li><a href="'.$v['href'].'">'.$v['title'].'</a></li>'."\n"; }
$s .='</ul>';
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>BOX_HEADING_INFORMATION,'content'=>tep_output_string_protected($s,false,true));
?>
Modified: trunk/catalog/templates/defaut/includes/boxes/languages.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/languages.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/languages.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,14 +3,18 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file includes/boxes/languages.php
*/
+
+/**
+ @remarks Process Specific Boxes
+*/
global $page,$PHP_SELF,$request_type,$lng, $language;
if (!isset($lng) || (isset($lng) && !is_object($lng))) {
$lng = new language;
@@ -18,6 +22,10 @@
$languages_string = '';
reset($lng->catalog_languages);
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array['title']=__('box heading languages');
$array['content']=tep_output_string_protected(tep_get_include_contents('box.languages'), false, true) ;
Modified: trunk/catalog/templates/defaut/includes/boxes/login_box.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/login_box.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/login_box.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,14 +3,19 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file includes/boxes/login_box.php
*/
+
+/**
+ @remarks Process Specific Boxes
+*/
+
$s='';
if (tep_session_is_registered('customer_first_name') && tep_session_is_registered('customer_id')) {
$s.='<div class="back_login" ><p>'. __('Bienvenue ').'</p><br />'."\n";
@@ -38,5 +43,10 @@
$s.='</p>'."\n";
$s.='</form>'."\n";
}
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>'','content'=>tep_output_string_protected($s,false,true));
?>
Modified: trunk/catalog/templates/defaut/includes/boxes/menu.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/menu.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/menu.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,17 +3,26 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file includes/boxes/menu.php
*/
+
+/**
+ @remarks Process Specific Boxes
+*/
global $menu;
$menu=oscss_navlinks(0);
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array['title']=__('box heading languages');
$array['content']=tep_output_string_protected(tep_get_include_contents('box.menu'), false, true) ;
Modified: trunk/catalog/templates/defaut/includes/boxes/myaccount.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/myaccount.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/myaccount.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,16 +3,23 @@
*\licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.1
- *\date 15/04/2012, 22:44
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*/
+/**
+ @remarks Process Specific Boxes
+*/
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading my account'),'content'=>tep_output_string_protected(tep_get_include_contents('box.myaccount'),false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/order_history.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/order_history.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/order_history.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,14 +3,19 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\brief Display list order for user id
*
* Cette boite affiche les commande du client en cours
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
$DB=Database::getInstance();
if (tep_session_is_registered('customer_id')) {
// retreive the last x products purchased
Modified: trunk/catalog/templates/defaut/includes/boxes/recently_viewed.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/recently_viewed.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/recently_viewed.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 29/04/2013, 15:13
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*\group boxes
@@ -12,15 +12,27 @@
*\dir includes/boxes/
*\brief display list product recently viewed
*/
-global $page,$recent_products;
- //! @remarks depend Data_product active
+
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+
//! @remarks cf config
if( ! $page->_conf_value('OSCSS__B_RECENTLY_VIEWED'))
return false;
+
+
+/**
+ @remarks Process Specific Boxes
+*/
+
+global $page,$recent_products;
+
$count=0;
if(tep_session_is_registered('recently_viewed') )
@@ -46,6 +58,10 @@
}
$s .= '</ul>'."\n".'</div>'."\n";
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array(
'type'=>'product',
'title'=>__('box heading viewed products'),
Modified: trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/recently_viewed_content.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 29/04/2013, 15:13
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*\group boxes
@@ -12,15 +12,28 @@
*\dir includes/boxes/
*\brief display list product recently viewed
*/
-global $page,$recent_content;
- //! @remarks depend Data_product active
- if( ! DataTypes::is_active('content'))
+
+
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
+ if( ! DataTypes::is_active('product'))
return false;
//! @remarks cf config
if( ! $page->_conf_value('OSCSS__B_RECENTLY_VIEWED'))
return false;
+
+
+/**
+ @remarks Process Specific Boxes
+*/
+global $page,$recent_content;
+
+
+
$count=0;
@@ -45,6 +58,10 @@
}
$s .= '</ul>'."\n".'</div>'."\n";
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array(
'type'=>'content',
'title'=>__('box heading viewed content'),
Modified: trunk/catalog/templates/defaut/includes/boxes/search.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/search.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/search.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
@@ -14,8 +14,20 @@
*
* Formulaire de recherche
*/
+
+
+
+/**
+ @remarks Process Specific Boxes
+*/
$s = tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH, '', 'NONSSL', false), 'get')."\n";
$s .= '<p>'.tep_draw_input_field('keywords','keywords', __('box search input'),'onfocus="this.value=\'\'"') .'</p>'."\n";
$s .= '<p><input class="submitBt" type="submit" value="'.__('search valid').'" /></p>'."\n".'</form>'."\n";
+
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading search'),'content'=>tep_output_string_protected($s,false,true));
?>
Modified: trunk/catalog/templates/defaut/includes/boxes/search_suggest.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/search_suggest.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/search_suggest.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.0
- @date 27/01/11, 15:00
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*\file search_suggest.php
@@ -13,6 +13,11 @@
* Cette boite affiche un champs de recherche et affiche une liste de resutat via ajax
* Le javascript est contenu dans la boite , et chargé a travers le constructeur page_javascript
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $page;
$s='';
@@ -56,5 +61,10 @@
$page->javascript->add_script_src(array('file'=>'search_suggest','script'=>tep_output_string_protected($s,false,true)) );
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading search'),'content'=>tep_output_string_protected(tep_get_include_contents('box.search_suggest'),false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/selections.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/selections.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/selections.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -12,10 +12,16 @@
@brief The list fixed seleted page listing special/product new/small price/best sellers
*/
- //! @remarks depend Data_product active
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+/**
+ @remarks Process Specific Boxes
+*/
$s ='<ul>'."\n";
$s .=' <li><a href="'.tep_href_link(FILENAME_PRODUCTS_NEW).'">'.__('box selections products new').'</a></li>'."\n";
$s .='<li><a href="'.tep_href_link(FILENAME_SPECIALS).'">'.__('box selections specials').'</a></li>'."\n";
@@ -24,5 +30,10 @@
$s .='</ul>'."\n";
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading selections'),'content'=>tep_output_string_protected($s,false,true));
?>
Modified: trunk/catalog/templates/defaut/includes/boxes/shopping_cart.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/shopping_cart.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/shopping_cart.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -4,8 +4,8 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
@@ -13,6 +13,11 @@
*\dir includes/boxes/
*\brief cart custommers
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $detail_tot, $detail;
$currencies=$page->return_object('currencies');
@@ -57,5 +62,11 @@
$title='<a href="'.tep_href_link(FILENAME_SHOPPING_CART).'">'.__('box heading shopping cart').'</a>';
+
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>tep_output_string_protected($title,false,true),'content'=>tep_output_string_protected(tep_get_include_contents('box.cart'),false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -4,13 +4,19 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file shopping_cart_short.php
*/
+
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $total_nb_products_with_qty;
$currencies=$page->return_object('currencies');
$cart=$page->return_object('cart');
@@ -21,6 +27,12 @@
$total_nb_products_with_qty += $products[$i]['quantity'];
}
$title='<a href="'.tep_href_link(FILENAME_SHOPPING_CART).'">'.__('box heading shopping cart').'</a>';
+
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array(
'type'=>'shoppingcart',
'title'=>tep_output_string_protected($title,false,true),
Modified: trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short_ajax.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short_ajax.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/shopping_cart_short_ajax.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,13 +3,18 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\file shopping_cart_short_ajax.php
*\brief the box shopping_cart
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $total_nb_products_with_qty;
$currencies=$page->return_object('currencies');
$cart=$page->return_object('cart');
@@ -21,5 +26,11 @@
}
$title='<a href="'.tep_href_link(FILENAME_SHOPPING_CART).'">'.__('box heading shopping cart').'</a>';
+
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>tep_output_string_protected($title,false,true),'content'=>tep_get_include_contents('box.cart.short'));
?>
Modified: trunk/catalog/templates/defaut/includes/boxes/specials.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/specials.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/specials.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,24 +3,36 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@dir includes/boxes/
*/
- //! @remarks depend Data_product active
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
global $random_product;
$languages_id=$page->the_var('languages_id');
$sql = "select p.products_id, pd.products_name, p.products_price, p.products_tax_class_id, p.products_image, s.specials_new_products_price from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_SPECIALS . " s , " . TABLE_CATEGORIES . " c, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = s.products_id and p.products_id = pd.products_id and p.products_id = p2c.products_id and categories_status = 1 and pd.language_id = '" . (int)$languages_id . "' and s.status = '1' order by s.specials_date_added desc limit " . $page->_conf_value('MAX_RANDOM_SELECT_SPECIALS');
if ($random_product = tep_random_select($sql)) {
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading specials'),'content'=>tep_output_string_protected(tep_get_include_contents('box.specials'),false,true));
}
else
Modified: trunk/catalog/templates/defaut/includes/boxes/tags.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/tags.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/tags.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,16 +3,27 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 07/09/11, 09:03
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
+
if(isset($_GET['products_id']) || isset($_GET['content']) || isset($_GET['cPath'])):
// include cloud generator
include_once(DIR_WS_FUNCTIONS.'generate.php');
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>__('text tags'),'content'=>tep_output_string_protected(tep_get_include_contents('box.tags'),false,true));
endif;
Modified: trunk/catalog/templates/defaut/includes/boxes/tell_a_friend.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/tell_a_friend.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/tell_a_friend.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -4,14 +4,26 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
*\file
*\dir includes/boxes/
*/
+
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
+ if( ! DataTypes::is_active('product'))
+ return false;
+
+
+/**
+ @remarks Process Specific Boxes
+*/
if(isset($_GET['products_id'])) {
$s =tep_draw_form('tell_a_friend', tep_href_link(FILENAME_TELL_A_FRIEND, '', 'NONSSL', false), 'get')."\n";
$s.='<div>'."\n";
Modified: trunk/catalog/templates/defaut/includes/boxes/very_viewed.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/very_viewed.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/very_viewed.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -13,10 +13,17 @@
* Produits les plues vues, en valeurs absolue
*/
- //! @remarks depend Data_product active
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
$DB=Database::getInstance();
$languages_id=$page->the_var('languages_id');
@@ -31,6 +38,11 @@
$s .= '<li><a href="'.tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']).'">'.$best_sellers['products_name'].'</a></li>'."\n";
}
$s .= '</ol>'."\n";
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading very view'),'content'=>tep_output_string_protected($s,false,true));
}
else
Modified: trunk/catalog/templates/defaut/includes/boxes/view_min_cart.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/view_min_cart.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/view_min_cart.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -4,8 +4,8 @@
*\licence GPL 2005-2010 The osCSS developers - osCSS Open Source E-commerce
*\portion code Copyright (c) 2002 osCommerce
*\package osCSS-2 <www http://www.oscss.org>
- *\version 2.1.0
- *\date 28/11/10, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
*\author oscim <mail aur...@os...> <www http://www.oscim.fr>
*\encode UTF-8
*\group boxes
@@ -14,6 +14,11 @@
*
* Affichage minimum des informations du panier
*/
+
+
+/**
+ @remarks Process Specific Boxes
+*/
global $page, $template;
$currencies=$page->return_object('currencies');
$cart=$page->return_object('cart');
@@ -31,6 +36,11 @@
*/
$cart_contents_string.=' <a href="'.tep_href_link(FILENAME_SHOPPING_CART).'"><span class="nbproducts">'.__('article x ').''.$item.'</span><img id="img_cart" src="'.HTTP_SERVER.DIR_WS_HTTP_CATALOG.DIR_WS_TEMPLATES.$template.'/img/'.'panier.jpg" alt="panier"/></a> ';
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array=array('title'=>__('Votre Panier'),'content'=>tep_output_string_protected($cart_contents_string,false,true));
?>
\ No newline at end of file
Modified: trunk/catalog/templates/defaut/includes/boxes/whats_new.php
===================================================================
--- trunk/catalog/templates/defaut/includes/boxes/whats_new.php 2013-10-04 06:03:52 UTC (rev 4859)
+++ trunk/catalog/templates/defaut/includes/boxes/whats_new.php 2013-10-04 13:12:43 UTC (rev 4860)
@@ -3,8 +3,8 @@
@licence GPL 2005-2013 The osCSS developers - osCSS Open Source E-commerce
@portion code Copyright (c) 2002 osCommerce
@package osCSS-2 <www http://www.oscss.org>
- @version 2.1.1
- @date 28/11/12, 08:18
+ *\version 2.1.2
+ *\date 04/10/2013, 08:18
@author oscim <mail aur...@os...> <www http://www.oscim.fr>
@encode UTF-8
@group boxes
@@ -15,10 +15,17 @@
* Affichage de la boite des nouveautés, qui assure l'affichage d'une seul produit.
*/
- //! @remarks depend Data_product active
+/**
+ @remarks Check display this box
+ depend Data_product active
+*/
if( ! DataTypes::is_active('product'))
return false;
+
+/**
+ @remarks Process Specific Boxes
+*/
global $random_product, $price;
$sql = "select p.products_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p.products_status = '1' and c.categories_status = '1' and p.products_date_added > SUBDATE(now(), INTERVAL ".(int)MAX_DATEADDED_FOR_NEWX_PRODUCT." MONTH) order by p.products_date_added desc limit " . $page->_conf_value('MAX_RANDOM_SELECT_NEW');
@@ -30,6 +37,11 @@
$random_product['products_image'] =$product_obj->products_image;
$random_product['specials_new_products_price'] = $price->print_products_price($random_product['products_id']);
+
+
+/**
+ @remarks Transmit var array for master construtor boxes
+*/
$array= array('title'=>__('box heading whats new'),'content'=>tep_output_string_protected(tep_get_include_contents('box.whats_new'),false,true));
}
else
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|