'; echo 'GPL'; ?>

Astronomy Picture Of the Day

What is this plugin?

This is a plugin that shows the current daily space image with corresponding information published by NASA within your posts or pages. Technically the plugin uses the public API from NASA and fetches data connected to Astronomy Picture of the Day (APOD). The plugin currently uses the public DEMO_KEY to make request towards the API, which in turn is limited to a number of requests per day from the same ip, so this plugin basically creates a cookie with the information that is stored within the browser for a day (24 hours), minimizing the amount of requests towards the API and also making the plugin more responsive to user rendering.

How to use this plugin?

The plugin can be used by adding short-codes to your posts, pages etc. There are currently two different short-codes that can be used either for fetching a normal-resolution image or one for fetching a high-definition image. The structure that is returned in html is a div acting as a container with the class astronomy-picture-of-the-day-container containing a h2 tag including the title with the class astronomy-picture-of-the-day-title , an img tag with the class astronomy-picture-of-the-day-picture and a p tag with the class astronomy-picture-of-the-day-explanation containing the explanation.

Select text mode within the editor in your posts/pages

By adding the short-code [astronomy-picture-of-the-day] you get this structure with the image tag containing a reference to the normal resolution version, and by instead adding the short-code [astronomy-picture-of-the-day-hd] you get the high-definition version.