Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Hardcoded Glyphicon
Browse files Browse the repository at this point in the history
Remove to allow users to use Glyphicons or FontAwesome.
  • Loading branch information
gburton committed Jan 27, 2015
1 parent 0a18aee commit 751698f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions includes/modules/pages/tp_account.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ function prepare() {
$oscTemplate->_data[$this->group] = array('account' => array('title' => MY_ACCOUNT_TITLE,
'links' => array('edit' => array('title' => MY_ACCOUNT_INFORMATION,
'link' => tep_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL'),
'icon' => 'user'),
'icon' => 'glyphicon glyphicon-user'),
'address_book' => array('title' => MY_ACCOUNT_ADDRESS_BOOK,
'link' => tep_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL'),
'icon' => 'home'),
'icon' => 'glyphicon glyphicon-home'),
'password' => array('title' => MY_ACCOUNT_PASSWORD,
'link' => tep_href_link(FILENAME_ACCOUNT_PASSWORD, '', 'SSL'),
'icon' => 'cog'))),
'icon' => 'glyphicon glyphicon-cog'))),
'orders' => array('title' => MY_ORDERS_TITLE,
'links' => array('history' => array('title' => MY_ORDERS_VIEW,
'link' => tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'),
'icon' => 'shopping-cart'))),
'icon' => 'glyphicon glyphicon-shopping-cart'))),
'notifications' => array('title' => EMAIL_NOTIFICATIONS_TITLE,
'links' => array('newsletters' => array('title' => EMAIL_NOTIFICATIONS_NEWSLETTERS,
'link' => tep_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'),
'icon' => 'envelope'),
'icon' => 'glyphicon glyphicon-envelope'),
'products' => array('title' => EMAIL_NOTIFICATIONS_PRODUCTS,
'link' => tep_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL'),
'icon' => 'send'))));
'icon' => 'glyphicon glyphicon-send'))));
}

function build() {
Expand All @@ -50,13 +50,13 @@ function build() {
' <ul class="accountLinkList">';

foreach ( $group['links'] as $entry ) {
$output .= ' <li><span class="';
$output .= ' <li>';

if ( isset($entry['icon']) ) {
$output .= ' glyphicon glyphicon-' . $entry['icon'] . ' ';
$output .= '<i class="' . $entry['icon'] . '"></i> ';
}

$output .= 'accountLinkListEntry"></span>&nbsp;<a href="' . $entry['link'] . '">' . $entry['title'] . '</a></li>';
$output .= '<a href="' . $entry['link'] . '">' . $entry['title'] . '</a></li>';
}

$output .= ' </ul>' .
Expand Down

1 comment on commit 751698f

@gburton
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This page also needs a redesign.

Please sign in to comment.