Skip to content

Commit

Permalink
New Content Modules implementation for the Account, Checkout Success,…
Browse files Browse the repository at this point in the history
… and Login pages.
  • Loading branch information
haraldpdl committed Jun 4, 2014
1 parent cf22a7b commit f396c33
Show file tree
Hide file tree
Showing 30 changed files with 1,518 additions and 199 deletions.
27 changes: 3 additions & 24 deletions catalog/account.php
Expand Up @@ -33,32 +33,11 @@
?> ?>


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


<div class="contentText"> <?php
<ul class="accountLinkList"> echo $oscTemplate->getContent('account');
<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>


<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> </div>


<?php <?php
Expand Down
22 changes: 22 additions & 0 deletions catalog/admin/includes/boxes/modules_content.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');
?>
25 changes: 25 additions & 0 deletions catalog/admin/includes/languages/english/modules_content.php
@@ -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:');
?>

0 comments on commit f396c33

Please sign in to comment.