Skip to content

Commit

Permalink
Give buttons a css definition (report #66)
Browse files Browse the repository at this point in the history
  • Loading branch information
haraldpdl committed Nov 12, 2010
1 parent 90b28ab commit 2ee42d8
Show file tree
Hide file tree
Showing 27 changed files with 75 additions and 68 deletions.
4 changes: 2 additions & 2 deletions catalog/account_edit.php
Expand Up @@ -200,8 +200,8 @@

<br />

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion catalog/account_history.php
Expand Up @@ -84,7 +84,7 @@
}
?>

<div class="contentText">
<div class="buttonSet">
<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion catalog/account_history_info.php
Expand Up @@ -182,7 +182,7 @@
if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php');
?>

<div>
<div class="buttonSet">
<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT_HISTORY, tep_get_all_get_params(array('order_id')), 'SSL')); ?>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions catalog/account_newsletters.php
Expand Up @@ -63,8 +63,8 @@
</table>
</div>

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions catalog/account_notifications.php
Expand Up @@ -149,8 +149,8 @@
}
?>

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions catalog/account_password.php
Expand Up @@ -97,8 +97,8 @@
</table>
</div>

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); ?>
</div>
Expand Down
5 changes: 3 additions & 2 deletions catalog/address_book.php
Expand Up @@ -72,13 +72,14 @@

</div>

<div>
<div class="buttonSet">

<?php
if (tep_count_customer_address_book_entries() < MAX_ADDRESS_BOOK_ENTRIES) {
?>

<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_ADD_ADDRESS, 'home', tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, '', 'SSL'), 'primary'); ?></span>
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_ADD_ADDRESS, 'home', tep_href_link(FILENAME_ADDRESS_BOOK_PROCESS, '', 'SSL'), 'primary'); ?></span>

<?php
}
?>
Expand Down
4 changes: 2 additions & 2 deletions catalog/address_book_process.php
Expand Up @@ -311,8 +311,8 @@
}
?>

<div>
<span style="float: right;"><?php echo tep_draw_hidden_field('action', 'process') . tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_hidden_field('action', 'process') . tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', $back_link); ?>
</div>
Expand Down
2 changes: 1 addition & 1 deletion catalog/advanced_search_result.php
Expand Up @@ -315,7 +315,7 @@

<br />

<div>
<div class="buttonSet">
<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_ADVANCED_SEARCH, tep_get_all_get_params(array('sort', 'page')), 'NONSSL', true, false)); ?>
</div>
</div>
Expand Down
10 changes: 7 additions & 3 deletions catalog/checkout_success.php
Expand Up @@ -99,10 +99,14 @@
<h3><?php echo TEXT_THANKS_FOR_SHOPPING; ?></h3>
</div>

<?php if (DOWNLOAD_ENABLED == 'true') include(DIR_WS_MODULES . 'downloads.php'); ?>
<?php
if (DOWNLOAD_ENABLED == 'true') {
include(DIR_WS_MODULES . 'downloads.php');
}
?>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/conditions.php
Expand Up @@ -26,8 +26,8 @@
<?php echo TEXT_INFORMATION; ?>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/contact_us.php
Expand Up @@ -94,8 +94,8 @@
</table>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/cookie_usage.php
Expand Up @@ -34,8 +34,8 @@
<?php echo TEXT_INFORMATION; ?>
</div>

<div style="float: right; clear: both;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/create_account.php
Expand Up @@ -444,8 +444,8 @@
</table>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'person', null, 'primary'); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'person', null, 'primary'); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/create_account_success.php
Expand Up @@ -34,8 +34,8 @@
<?php echo TEXT_ACCOUNT_CREATED; ?>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', $origin_href); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', $origin_href); ?></span>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/logoff.php
Expand Up @@ -35,8 +35,8 @@
<?php echo TEXT_MAIN; ?>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>

Expand Down
12 changes: 4 additions & 8 deletions catalog/password_forgotten.php
Expand Up @@ -56,22 +56,18 @@
<div class="contentText">
<div><?php echo TEXT_MAIN; ?></div>

<br />

<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="fieldKey"><?php echo ENTRY_EMAIL_ADDRESS; ?></td>
<td class="fieldValue"><?php echo tep_draw_input_field('email_address'); ?></td>
</tr>
</table>
</div>

<br />

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?>
</div>
<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/privacy.php
Expand Up @@ -26,8 +26,8 @@
<?php echo TEXT_INFORMATION; ?>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>

Expand Down
15 changes: 8 additions & 7 deletions catalog/product_info.php
Expand Up @@ -181,18 +181,20 @@

<?php
}
?>

</div>

<?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and reviews_status = 1");
$reviews = tep_db_fetch_array($reviews_query);
?>

<br />
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></span>

<div>
<div style="float: right;"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'cart', null, 'primary'); ?></div>

<?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>
</div>
<?php echo tep_draw_button(IMAGE_BUTTON_REVIEWS . (($reviews['count'] > 0) ? ' (' . $reviews['count'] . ')' : ''), 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params())); ?>
</div>

<?php
if ((USE_CACHE == 'true') && empty($SID)) {
Expand All @@ -202,7 +204,6 @@
}
?>

</div>
</div>

</form>
Expand Down
4 changes: 2 additions & 2 deletions catalog/product_reviews.php
Expand Up @@ -131,8 +131,8 @@ function popupWindow(url) {

<br />

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params()), 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params())); ?>
</div>
Expand Down
4 changes: 2 additions & 2 deletions catalog/product_reviews_info.php
Expand Up @@ -90,8 +90,8 @@ function popupWindow(url) {

<br />

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params(array('reviews_id'))), 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_WRITE_REVIEW, 'comment', tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, tep_get_all_get_params(array('reviews_id'))), 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('reviews_id')))); ?>
</div>
Expand Down
10 changes: 4 additions & 6 deletions catalog/product_reviews_write.php
Expand Up @@ -153,14 +153,12 @@ function popupWindow(url) {
<td class="fieldValue"><?php echo TEXT_BAD . ' ' . tep_draw_radio_field('rating', '1') . ' ' . tep_draw_radio_field('rating', '2') . ' ' . tep_draw_radio_field('rating', '3') . ' ' . tep_draw_radio_field('rating', '4') . ' ' . tep_draw_radio_field('rating', '5') . ' ' . TEXT_GOOD; ?></td>
</tr>
</table>
</div>

<br />

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('reviews_id', 'action')))); ?>
</div>
<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params(array('reviews_id', 'action')))); ?>
</div>
</div>

Expand Down
4 changes: 2 additions & 2 deletions catalog/shipping.php
Expand Up @@ -26,8 +26,8 @@
<?php echo TEXT_INFORMATION; ?>
</div>

<div style="float: right;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_DEFAULT)); ?></span>
</div>
</div>

Expand Down
11 changes: 6 additions & 5 deletions catalog/shopping_cart.php
Expand Up @@ -128,31 +128,32 @@
}
?>

<br />
</div>

<p align="right"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?></p>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'), 'primary'); ?></span>
</div>

<?php
$initialize_checkout_methods = $payment_modules->checkout_initialization_method();

if (!empty($initialize_checkout_methods)) {
?>

<p align="right" style="padding-right: 50px;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p>
<p align="right" style="clear: both; padding: 15px 50px 0 0;"><?php echo TEXT_ALTERNATIVE_CHECKOUT_METHODS; ?></p>

<?php
reset($initialize_checkout_methods);
while (list(, $value) = each($initialize_checkout_methods)) {
?>

<p align="right"><?php echo $value; ?></p>
<p align="right"><?php echo $value; ?></p>

<?php
}
}
?>

</div>
</div>

</form>
Expand Down
4 changes: 2 additions & 2 deletions catalog/ssl_check.php
Expand Up @@ -34,8 +34,8 @@
<?php echo TEXT_INFORMATION; ?>
</div>

<div style="float: right; clear: both;">
<?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_LOGIN)); ?>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', tep_href_link(FILENAME_LOGIN)); ?></span>
</div>
</div>

Expand Down
6 changes: 6 additions & 0 deletions catalog/stylesheet.css
Expand Up @@ -131,7 +131,13 @@ table, p {
margin-left: -30px;
}

.buttonSet {
clear: both;
}

.buttonAction {
float: right;
}

.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }
Expand Down
4 changes: 2 additions & 2 deletions catalog/tell_a_friend.php
Expand Up @@ -161,8 +161,8 @@
</table>
</div>

<div>
<span style="float: right;"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>
<div class="buttonSet">
<span class="buttonAction"><?php echo tep_draw_button(IMAGE_BUTTON_CONTINUE, 'triangle-1-e', null, 'primary'); ?></span>

<?php echo tep_draw_button(IMAGE_BUTTON_BACK, 'triangle-1-w', tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . (int)$HTTP_GET_VARS['products_id'])); ?>
</div>
Expand Down

0 comments on commit 2ee42d8

Please sign in to comment.