Skip to content

πŸˆπŸ“¦ Simple wordpress plugin to provide a visual overview of the national footbal league (U.S.A) teams.

Notifications You must be signed in to change notification settings

joehunterdev/acmesports-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Acme Sports Challenge

🏈 This is a WordPress plugin that displays a list of NFL teams. It includes functionality to retrieve data from an API, build a table, and enqueue styles and scripts.

πŸš€ Installation

  1. πŸ“₯ Download the plugin files and upload them to the /wp-content/plugins/acmesports-plugin directory, or install the plugin through the WordPress plugins screen directly. Alternativley you can zip them.
  2. πŸš€ Activate the plugin through the 'Plugins' screen in WordPress
  3. πŸ“ Use the shortcode [nfl_data_teams_table] to display the table on any page or post.

🎯 Usage

The plugin includes a shortcode that can be used to display the NFL teams table on any page or post. Simply add the shortcode [nfl_data_teams_table] to the content of the page or post where you want the table to appear.

πŸ“· Screenshots

ACME Sports Plugin

πŸ“œ Changelog

Version 1.2.0:

  • πŸ—οΈ Simple boiler plate structure
  • πŸ“‘ Call to api to retrieve data get_teams_list_array() and convert to php array
  • πŸ—οΈ Table builder to loop through results and build table nfl_teams_table_function()
  • 🎨 Enqueue styles using wp_enqueue_style(); "table" and "page" stylings
  • πŸ“₯ Enqueue jquery (plugin datatables) wp_enqueue_script(); datatables is jquery dependant
  • πŸ§‘β€πŸ’Ό Admin Page to highlight to client the instructions. IE please use shortcode [nfl_data_teams_table]
  • πŸ“¦ Functionality to include required (css/js dependancies) [https://datatables.net/]

Version 1.5.0

  • πŸ”’ Re-Order column data putting id first
  • πŸ“ˆ Possibly utilize other endpoint + shortcode [nfl_data_team_table teamid="55"] to create linked page for more stats and information <a href="team_info/?id=58">See More</a>
  • πŸ“‘ Create method/function get_data($endpoint ='') to handle different endpoints.[https://delivery.oddsandstats.co/{$endpoint}]
  • πŸ“Š Additional Endpoint Parameter funcionality: get_table_data($endpoint ='',$start = '', $limit = '', $sortby = '')
  • πŸš€ Implement jquery ajax internal endpoint to make it easier for serverside pagination of lots of results

Version 2.5.0

  • πŸ› οΈ Make 1.5.0 versioned parameters available via a custom field inside admin.php?page so admins can easily change the following

About

πŸˆπŸ“¦ Simple wordpress plugin to provide a visual overview of the national footbal league (U.S.A) teams.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published