+Settings';
+ array_unshift( $actions, $settings_link );
+ return $actions;
+}
+
+function ddatefunc_deinstall() {
+ delete_option('ddatefunc_string');
+ delete_option('ddatefunc_change');
+}
+
+add_shortcode( 'today_ddate', 'return_today_ddate' );
add_action( 'widgets_init', 'register_ddatefunc_widget' );
-add_filter( 'get_the_date','get_the_ddate_post' );
-add_filter( 'get_comment_date','get_the_ddate_comment' );
\ No newline at end of file
+add_option( 'ddatefunc_string', '%DD day of %DS, in the yold %DY');
+add_option( 'ddatefunc_change', '1');
+
+add_filter( 'plugin_action_links', 'ddatefunc_settings', 10, 2 );
+add_action( 'admin_menu', 'ddatefunc_add_admin' );
+
+if ( get_option('ddatefunc_change') == '1' ) {
+ add_filter( 'get_the_date','get_the_ddate_post' );
+ add_filter( 'get_comment_date','get_the_ddate_comment' );
+}
+
+if (function_exists('register_uninstall_hook'))
+ register_uninstall_hook(__FILE__, 'ddatefunc_deinstall');
\ No newline at end of file
diff --git a/readme.txt b/readme.txt
index 5195ebf..59c2dd9 100644
--- a/readme.txt
+++ b/readme.txt
@@ -13,9 +13,9 @@ Also provides shortcode and widget which displays the current date according to
== Description ==
-This plugin allows WordPress to easily show Erisian dates instead of the standard Gregorian dates. No theme changes are required.
+This plugin allows WordPress to easily show customizable Erisian dates instead of the standard Gregorian dates. No theme changes are required.
-The Discordian Date plugin provides a widget which will display the current date according to the [Discordian calendar](http://en.wikipedia.org/wiki/Discordian_calendar). This functional based on the Discordian Date plugin by Dan Johnson.
+The Discordian Date Function plugin provides a widget which will display the current date according to the [Discordian calendar](http://en.wikipedia.org/wiki/Discordian_calendar). This functional based on the Discordian Date plugin by Dan Johnson.
And you can add the shortcode [today_ddate] in posts or pages for show the Discordian date of today.
@@ -24,6 +24,7 @@ And you can add the shortcode [today_ddate] in posts or pages for show the Disco
1. Extract the files from archive.
1. Upload the folder ddatefunc and its contents to the /wp-content/plugins/ directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
+1. Press 'Settings' for customize date string.
1. If you want to add widget: position the widget in an available area on your pages using the Widgets section of your WordPress administration control panel.
1. Use the widget options to give the widget any title you'd like.
1. (Optional) if you want to add the erisian date of today than you need to add where you want.
@@ -40,10 +41,19 @@ Feel free to ask any questions about this plugin at the [Discordian Date Functio
== Changelog ==
+= 0.55 =
+*Release Date - 5th day of Discord, 3183*
+
+* Fixed names of some Whollydays.
+* Add settings page.
+* Add customizable date string.
+
= 0.5 =
+*Release Date - 2nd day of Discord, 3183*
+
* First public release.
== Upgrade Notice ==
-= 0.5 =
-This version is the first public release.
+= 0.55 =
+This version is actual.