Permalink
Browse files

fix definition keys

  • Loading branch information...
1 parent 005f29e commit f365833f190a3c2deec347c35cd5104f1049279b @haraldpdl haraldpdl committed Nov 12, 2010
View
6 catalog/includes/languages/english/modules/boxes/bm_reviews.php
@@ -13,7 +13,7 @@
define('MODULE_BOXES_REVIEWS_TITLE', 'Reviews');
define('MODULE_BOXES_REVIEWS_DESCRIPTION', 'Show product reviews');
define('MODULE_BOXES_REVIEWS_BOX_TITLE', 'Reviews');
- define('MODULE_BOXES_REVIEWS_WRITE_REVIEW', 'Write a review on this product!');
- define('MODULE_BOXES_REVIEWS_NO_REVIEWS', 'There are currently no product reviews');
- define('MODULE_BOXES_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!');
+ define('MODULE_BOXES_REVIEWS_BOX_WRITE_REVIEW', 'Write a review on this product!');
+ define('MODULE_BOXES_REVIEWS_BOX_NO_REVIEWS', 'There are currently no product reviews');
+ define('MODULE_BOXES_REVIEWS_BOX_TEXT_OF_5_STARS', '%s of 5 Stars!');
?>
View
4 catalog/includes/languages/english/modules/boxes/bm_search.php
@@ -13,6 +13,6 @@
define('MODULE_BOXES_SEARCH_TITLE', 'Search');
define('MODULE_BOXES_SEARCH_DESCRIPTION', 'Show search field');
define('MODULE_BOXES_SEARCH_BOX_TITLE', 'Quick Find');
- define('MODULE_BOXES_SEARCH_TEXT', 'Use keywords to find the product you are looking for.');
- define('MODULE_BOXES_SEARCH_ADVANCED_SEARCH', 'Advanced Search');
+ define('MODULE_BOXES_SEARCH_BOX_TEXT', 'Use keywords to find the product you are looking for.');
+ define('MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH', 'Advanced Search');
?>
View
2 catalog/includes/languages/english/modules/boxes/bm_shopping_cart.php
@@ -13,5 +13,5 @@
define('MODULE_BOXES_SHOPPING_CART_TITLE', 'Shopping Cart');
define('MODULE_BOXES_SHOPPING_CART_DESCRIPTION', 'Show shopping cart contents');
define('MODULE_BOXES_SHOPPING_CART_BOX_TITLE', 'Shopping Cart');
- define('MODULE_BOXES_SHOPPING_CART_CART_EMPTY', '0 items');
+ define('MODULE_BOXES_SHOPPING_CART_BOX_CART_EMPTY', '0 items');
?>
View
6 catalog/includes/modules/boxes/bm_reviews.php
@@ -49,13 +49,13 @@ function execute() {
$rand_review_text = tep_break_string(tep_output_string_protected($rand_review['reviews_text']), 15, '-<br />');
- $reviews_box_contents .= '<div class="ui-widget-content infoBoxContents"><div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $rand_review_text . ' ..</a><br /><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(MODULE_BOXES_REVIEWS_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div></div>';
+ $reviews_box_contents .= '<div class="ui-widget-content infoBoxContents"><div align="center"><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . tep_image(DIR_WS_IMAGES . $random_product['products_image'], $random_product['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></div><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $random_product['products_id'] . '&reviews_id=' . $random_product['reviews_id']) . '">' . $rand_review_text . ' ..</a><br /><div align="center">' . tep_image(DIR_WS_IMAGES . 'stars_' . $random_product['reviews_rating'] . '.gif' , sprintf(MODULE_BOXES_REVIEWS_BOX_TEXT_OF_5_STARS, $random_product['reviews_rating'])) . '</div></div>';
} elseif (isset($HTTP_GET_VARS['products_id'])) {
// display 'write a review' box
- $reviews_box_contents .= '<table border="0" cellspacing="0" cellpadding="2" class="ui-widget-content infoBoxContents"><tr><td><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'box_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a></td><td><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . MODULE_BOXES_REVIEWS_WRITE_REVIEW .'</a></td></tr></table>';
+ $reviews_box_contents .= '<table border="0" cellspacing="0" cellpadding="2" class="ui-widget-content infoBoxContents"><tr><td><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . tep_image(DIR_WS_IMAGES . 'box_write_review.gif', IMAGE_BUTTON_WRITE_REVIEW) . '</a></td><td><a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, 'products_id=' . $HTTP_GET_VARS['products_id']) . '">' . MODULE_BOXES_REVIEWS_BOX_WRITE_REVIEW .'</a></td></tr></table>';
} else {
// display 'no reviews' box
- $reviews_box_contents .= '<div class="ui-widget-content infoBoxContents">' . MODULE_BOXES_REVIEWS_REVIEWS_NO_REVIEWS . '</div>';
+ $reviews_box_contents .= '<div class="ui-widget-content infoBoxContents">' . MODULE_BOXES_REVIEWS_BOX_REVIEWS_NO_REVIEWS . '</div>';
}
$data = '<div class="ui-widget infoBoxContainer">' .
View
2 catalog/includes/modules/boxes/bm_search.php
@@ -37,7 +37,7 @@ function execute() {
' <div class="ui-widget-header infoBoxHeading">' . MODULE_BOXES_SEARCH_BOX_TITLE . '</div>' .
' <div class="ui-widget-content infoBoxContents" style="text-align: center;">' .
' ' . tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get') .
- ' ' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '&nbsp;' . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', MODULE_BOXES_SEARCH_BOX_TITLE) . '<br />' . MODULE_BOXES_SEARCH_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_ADVANCED_SEARCH . '</strong></a>' .
+ ' ' . tep_draw_input_field('keywords', '', 'size="10" maxlength="30" style="width: ' . (BOX_WIDTH-30) . 'px"') . '&nbsp;' . tep_draw_hidden_field('search_in_description', '1') . tep_hide_session_id() . tep_image_submit('button_quick_find.gif', MODULE_BOXES_SEARCH_BOX_TITLE) . '<br />' . MODULE_BOXES_SEARCH_BOX_TEXT . '<br /><a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '"><strong>' . MODULE_BOXES_SEARCH_BOX_ADVANCED_SEARCH . '</strong></a>' .
' </form>' .
' </div>' .
'</div>';
View
2 catalog/includes/modules/boxes/bm_shopping_cart.php
@@ -74,7 +74,7 @@ function execute() {
'<tr><td colspan="2" align="right">' . $currencies->format($cart->show_total()) . '</td></tr>' .
'</table>';
} else {
- $cart_contents_string .= '<div class="ui-widget-content infoBoxContents">' . MODULE_BOXES_SHOPPING_CART_CART_EMPTY . '</div>';
+ $cart_contents_string .= '<div class="ui-widget-content infoBoxContents">' . MODULE_BOXES_SHOPPING_CART_BOX_CART_EMPTY . '</div>';
}
$data = '<div class="ui-widget infoBoxContainer">' .

0 comments on commit f365833

Please sign in to comment.