Skip to content
Permalink
Browse files

New Content Modules implementation for the Account, Checkout Success,…

… and Login pages.
  • Loading branch information...
haraldpdl committed Sep 1, 2013
1 parent cf22a7b commit f396c33ae52b11c691ae1fcae9fa17efac785bb7
Showing with 1,518 additions and 199 deletions.
  1. +3 −24 catalog/account.php
  2. +22 −0 catalog/admin/includes/boxes/modules_content.php
  3. +14 −0 catalog/admin/includes/languages/english/modules/boxes/modules_content.php
  4. +25 −0 catalog/admin/includes/languages/english/modules_content.php
  5. +393 −0 catalog/admin/modules_content.php
  6. +13 −67 catalog/checkout_success.php
  7. +109 −0 catalog/ext/modules/content/account/set_password.php
  8. +66 −0 catalog/includes/classes/osc_template.php
  9. +0 −11 catalog/includes/languages/english/checkout_success.php
  10. +0 −12 catalog/includes/languages/english/login.php
  11. +26 −0 catalog/includes/languages/english/modules/content/account/cm_account_set_password.php
  12. +20 −0 catalog/includes/languages/english/modules/content/checkout_success/cm_cs_downloads.php
  13. +17 −0 catalog/includes/languages/english/modules/content/checkout_success/cm_cs_product_notifications.php
  14. +15 −0 catalog/includes/languages/english/modules/content/checkout_success/cm_cs_redirect_old_order.php
  15. +20 −0 catalog/includes/languages/english/modules/content/checkout_success/cm_cs_thank_you.php
  16. +19 −0 catalog/includes/languages/english/modules/content/login/cm_create_account_link.php
  17. +21 −0 catalog/includes/languages/english/modules/content/login/cm_login_form.php
  18. +90 −0 catalog/includes/modules/content/account/cm_account_set_password.php
  19. +68 −0 catalog/includes/modules/content/checkout_success/cm_cs_downloads.php
  20. +99 −0 catalog/includes/modules/content/checkout_success/cm_cs_product_notifications.php
  21. +68 −0 catalog/includes/modules/content/checkout_success/cm_cs_redirect_old_order.php
  22. +65 −0 catalog/includes/modules/content/checkout_success/cm_cs_thank_you.php
  23. +7 −0 catalog/includes/modules/content/checkout_success/templates/product_notifications.php
  24. +11 −0 catalog/includes/modules/content/checkout_success/templates/thank_you.php
  25. +66 −0 catalog/includes/modules/content/login/cm_create_account_link.php
  26. +98 −0 catalog/includes/modules/content/login/cm_login_form.php
  27. +10 −0 catalog/includes/modules/content/login/templates/create_account_link.php
  28. +26 −0 catalog/includes/modules/content/login/templates/login_form.php
  29. +69 −0 catalog/includes/modules/pages/tp_account.php
  30. +58 −85 catalog/login.php
@@ -33,32 +33,11 @@
?>

<div class="contentContainer">
<h2><?php echo MY_ACCOUNT_TITLE; ?></h2>

<div class="contentText">
<ul class="accountLinkList">
<li><span class="ui-icon ui-icon-person accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . MY_ACCOUNT_INFORMATION . '</a>'; ?></li>
<li><span class="ui-icon ui-icon-home accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . MY_ACCOUNT_ADDRESS_BOOK . '</a>'; ?></li>
<li><span class="ui-icon ui-icon-key accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL') . '">' . MY_ACCOUNT_PASSWORD . '</a>'; ?></li>
</ul>
</div>

<h2><?php echo MY_ORDERS_TITLE; ?></h2>

<div class="contentText">
<ul class="accountLinkList">
<li><span class="ui-icon ui-icon-cart accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . MY_ORDERS_VIEW . '</a>'; ?></li>
</ul>
</div>

<h2><?php echo EMAIL_NOTIFICATIONS_TITLE; ?></h2>
<?php
echo $oscTemplate->getContent('account');
?>

<div class="contentText">
<ul class="accountLinkList">
<li><span class="ui-icon ui-icon-mail-closed accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_NEWSLETTERS . '</a>'; ?></li>
<li><span class="ui-icon ui-icon-heart accountLinkListEntry"></span><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') . '">' . EMAIL_NOTIFICATIONS_PRODUCTS . '</a>'; ?></li>
</ul>
</div>
</div>

<?php
@@ -0,0 +1,22 @@
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
foreach ( $cl_box_groups as &$group ) {
if ( $group['heading'] == BOX_HEADING_MODULES ) {
$group['apps'][] = array('code' => 'modules_content.php',
'title' => MODULES_ADMIN_MENU_MODULES_CONTENT,
'link' => tep_href_link('modules_content.php'));
break;
}
}
?>
@@ -0,0 +1,14 @@
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
define('MODULES_ADMIN_MENU_MODULES_CONTENT', 'Content');
?>
@@ -0,0 +1,25 @@
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2014 osCommerce
Released under the GNU General Public License
*/
define('HEADING_TITLE', 'Content Modules');
define('TABLE_HEADING_MODULES', 'Modules');
define('TABLE_HEADING_GROUP', 'Group');
define('TABLE_HEADING_SORT_ORDER', 'Sort Order');
define('TABLE_HEADING_ACTION', 'Action');
define('TEXT_INFO_VERSION', 'Version:');
define('TEXT_INFO_ONLINE_STATUS', 'online status');
define('TEXT_INFO_API_VERSION', 'API Version:');
define('TEXT_MODULE_DIRECTORY', 'Module Directory:');
?>
Oops, something went wrong.

0 comments on commit f396c33

Please sign in to comment.
You can’t perform that action at this time.