https://github.com/romanturas/wp-theme
Custom theme for WP (training project)
https://github.com/romanturas/wp-theme
Last synced: about 1 year ago
JSON representation
Custom theme for WP (training project)
- Host: GitHub
- URL: https://github.com/romanturas/wp-theme
- Owner: RomanTuras
- Created: 2019-02-24T11:19:13.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T10:02:26.000Z (over 7 years ago)
- Last Synced: 2025-02-14T07:37:58.911Z (over 1 year ago)
- Language: PHP
- Size: 511 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wp-theme "MyPhones"
**This is a training project**
**Realised:**
- custom theme "MyPhones"
- home page: page.php
- filter widget in right sidebar
- custom post type "Product"
- taxonomies: "manufacturer" and "reliable"
- widget "Filter"
- manufacturers and reliables terms added into widget as checkboxes
- template page "page-filter" for request results
- js redirect to page-filter with selected params
- storing and restoring checkboxes state on page filter (reset all states on home page)
**Classes:**
- class-myphones.php - main theme class
- class-myphones-filter.php - class for processing filter parameters
- class-myphones-filter-widget.php - widget class
- class-myphones-post-type.php - class for creation custom post type
- class-myphones-taxonomy.php - class for creation taxonomy
**REST API**
- added ability sending request to rest api
- json response displayed on the screen
- example ulr: http://www.wp.org/wp-json/myphones/samsung,lenovo/medium
all phones will be found where manufacturer = 'samsung' or 'lenovo',
OR where reliable = 'medium'
**Screen of home page**

**Screen of filter page**
