Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate function calls in splitPageResults class to use new methods. Eliminate tep_get_all_get_params in calls to display_links. Migrate the product listing to use the new Product class. Move language constants for Product and splitPageResults classes out of the english.php file. Modernize all affected files.
- Loading branch information
Showing
10 changed files
with
251 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
includes/languages/english/system/versioned/1.0.7.other/1.0.7.12/product.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
/* | ||
$Id$ | ||
CE Phoenix, E-Commerce made Easy | ||
https://phoenixcart.org | ||
Copyright (c) 2021 Phoenix Cart | ||
Released under the GNU General Public License | ||
*/ | ||
|
||
const IS_PRODUCT_SHOW_PRICE = '%s'; | ||
const IS_PRODUCT_SHOW_PRICE_SPECIAL = '<del>%s</del> <span class="text-danger">now %s</span>'; | ||
const IS_PRODUCT_BUTTON_BUY = '<i class="fas fa-shopping-cart"></i>'; | ||
const IS_PRODUCT_BUTTON_VIEW = '<i class="fas fa-eye"></i> View'; |
47 changes: 47 additions & 0 deletions
47
includes/languages/english/system/versioned/1.0.8.4/split_page_results.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/* | ||
$Id$ | ||
CE Phoenix, E-Commerce made Easy | ||
https://phoenixcart.org | ||
Copyright (c) 2021 Phoenix Cart | ||
Released under the GNU General Public License | ||
*/ | ||
|
||
const TEXT_DISPLAY_NUMBER_OF_PRODUCTS = 'Displaying <strong>%d</strong> to <strong>%d</strong> (of <strong>%d</strong> products)'; | ||
|
||
const PREVNEXT_TITLE_FIRST_PAGE = 'First Page'; | ||
const PREVNEXT_TITLE_PREVIOUS_PAGE = 'Previous Page'; | ||
const PREVNEXT_TITLE_NEXT_PAGE = 'Next Page'; | ||
const PREVNEXT_TITLE_LAST_PAGE = 'Last Page'; | ||
const PREVNEXT_TITLE_PAGE_NO = 'Page %d'; | ||
const PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE = 'Previous Set of %d Pages'; | ||
const PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE = 'Next Set of %d Pages'; | ||
const PREVNEXT_BUTTON_FIRST = '<<FIRST'; | ||
const PREVNEXT_BUTTON_PREV = '[<< Prev]'; | ||
const PREVNEXT_BUTTON_NEXT = '[Next >>]'; | ||
const PREVNEXT_BUTTON_LAST = 'LAST>>'; | ||
|
||
const TEXT_DESCENDINGLY = 'Sort products descendingly by %s'; | ||
const TEXT_ASCENDINGLY = 'Sort products ascendingly by %s'; | ||
|
||
const TABLE_HEADING_IMAGE = ''; | ||
const TABLE_HEADING_MODEL = 'Model'; | ||
const TABLE_HEADING_PRODUCTS = 'Product Name'; | ||
const TABLE_HEADING_MANUFACTURER = 'Manufacturer'; | ||
const TABLE_HEADING_QUANTITY = 'Stock'; | ||
const TABLE_HEADING_PRICE = 'Price'; | ||
const TABLE_HEADING_WEIGHT = 'Weight'; | ||
const TABLE_HEADING_BUY_NOW = 'Buy Now'; | ||
const TABLE_HEADING_LATEST_ADDED = 'Date Added'; | ||
const TABLE_HEADING_ORDERED = 'Most Popular'; | ||
|
||
// grid/list | ||
const TEXT_SORT_BY = 'Sort By '; | ||
|
||
// sitewide product listing | ||
const LISTING_SORT_DOWN = '%s <i class="fas fa-level-down-alt text-primary"></i>'; | ||
const LISTING_SORT_UP = '%s <i class="fas fa-level-up-alt text-primary"></i>'; | ||
const LISTING_SORT_UNSELECTED = '%s <i class="fas fa-level-up-alt text-black-50"></i>'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.