diff --git a/README b/README index 8ce7a55..9f2f4ea 100644 --- a/README +++ b/README @@ -1,5 +1,4 @@ -The HubbleSite Daily Image Widget embeds a daily HubbleSite Gallery image on -your WordPress blog. +The HubbleSite Daily Image Widget embeds a daily HubbleSite Gallery image on your WordPress blog. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by diff --git a/classes/DailyImageWidget.php b/classes/DailyImageWidget.php index e663e49..f9d17e9 100644 --- a/classes/DailyImageWidget.php +++ b/classes/DailyImageWidget.php @@ -249,4 +249,9 @@ class DailyImageWidget { } } +function the_hubblesite_daily_image_widget() { + $diw = new DailyImageWidget(); + $diw->render(); +} + ?> \ No newline at end of file diff --git a/hubblesite-styles.css b/hubblesite-styles.css index 0613709..ba7bca7 100644 --- a/hubblesite-styles.css +++ b/hubblesite-styles.css @@ -25,4 +25,4 @@ p#hubblesite-daily-image-header { color: #666; margin: 0; padding: 0; -}"; +} \ No newline at end of file diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..a4e5036 --- /dev/null +++ b/readme.txt @@ -0,0 +1,30 @@ +=== HubbleSite Daily Image WIdget === +Contributors: johncoswell +Tags: widget, picture, image +Requires at least: 2.7.1 +Tested up to: 2.7.1 +Stable tag: 0.1 + +The HubbleSite Daily Image Widget embeds a daily HubbleSite Gallery image on your WordPress blog. + +== Description == + +This widget will let you embed and show a beautiful image from the Hubble Space Telescope every day of the year. The image changes daily, and you can choose to show all sorts of other information about the image within the widget, as well. + +== Installation == + +Copy the hubblesite-daily-image-widget directory to your wp-content/plugins/ directory and activate the plugin. The widget will appear on the Appearance -> Widgets screen. Embed the widget in one of your sidebars and change the widget options to show or hide different parts of the widget. + +== Frequently Asked Questions == + += How do I style the widget myself? = + +Turn off "HubbleSite Styles" in the Widget Options and then style the elements with your theme's CSS file. + += I don't use dynamic sidebars. Is there a template tag I can use to embed the widget? = + +`the_hubblesite_daily_image_widget()` will do just that. + +== License == + +The HubbleSite Daily Image Widget is released under the GNU GPL version 2.0 or later. \ No newline at end of file