Giter Club home page Giter Club logo

acmesports-plugin's Introduction

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

acmesports-plugin's People

Contributors

joehunterdev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.