From e1fd838fab0f34af69a95a4cdb35a2ffb9dd1a1e Mon Sep 17 00:00:00 2001 From: Twinpictures Date: Tue, 9 Jan 2018 10:57:21 +0100 Subject: [PATCH 1/3] version 0.9.9 Added ajax_dropdowns_callback hook so other plugins can trigger functions after successful content load --- ajax-dropdowns.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ajax-dropdowns.php b/ajax-dropdowns.php index 12dcc7d..b2bfa24 100644 --- a/ajax-dropdowns.php +++ b/ajax-dropdowns.php @@ -1,14 +1,14 @@ ' . get_the_title( $post_id ) . ''; endif; endforeach; $select .= ''; - + /** * Select script (defaults to ajax) */ @@ -451,6 +451,9 @@ public static function ajax_callback() { endwhile; + // Add callback hook to play well with others + do_action('ajax_dropdowns_callback'); + die(); } From 4f7bf16f4e2b885c536c53e74c9f9fca63b9bb82 Mon Sep 17 00:00:00 2001 From: Twinpictures Date: Tue, 9 Jan 2018 10:57:46 +0100 Subject: [PATCH 2/3] populated with useful info --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/README.md b/README.md index d39a158..60eddfe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,47 @@ ajax-dropdowns ============== +* Contributors: brianmiyaji, twinpictures +* Tags: ajax, dropdowns, option, posts, pages, custom post types, tabs, groups, redirect, inline +* Requires at least: 3.0 +* Tested up to: 4.9.1 +* Stable tag: 0.9.9 +* License: GPLv2 or later +* License URI: http://www.gnu.org/licenses/gpl-2.0.html + +Description +----------- +Add content from multiple post types on one page with a dropdown to switch between them. Dropdowns are displayed on the frontend of your site and can query posts via Ajax, inline, or redirection. + += Features = +* Create unlimited dropdowns +* Display on any post or page using the included shortcode +* Drag and drop posts to reorder them within a dropdown +* Decrease page load by dynamically querying posts via Ajax +* Use inline dropdowns to quickly switch between posts +* Redirection method also available + += Get Involved = +Developers can contribute via the [Ajax Dropdowns GitHub Repository](https://github.com/ThemeBoy/ajax-dropdowns). +Translators can contribute new languages to Ajax Dropdowns and our other WordPress plugins through [Transifex](https://www.transifex.com/projects/p/wp-plugins/). + +Installation +------------ += Minimum Requirements = +* WordPress 3.0 or greater +* PHP version 5.2.4 or greater +* MySQL version 5.0 or greater + += Automatic Installation = +Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t even need to leave your web browser. To do an automatic install of Ajax Dropdown, log in to your WordPress admin panel, navigate to the Plugins menu and click Add New. + +In the search field type "Ajax Dropdown" and click Search Plugins. Once you’ve found the plugin you can view details about it such as the point release, rating and description. Most importantly of course, you can install it by simply clicking Install Now. After clicking that link you will be asked if you’re sure you want to install the plugin. Click yes and WordPress will automatically complete the installation. + += Manual Installation = +The manual installation method involves downloading the plugin and uploading it to your webserver via your favorite FTP application. + +1. Download the plugin file to your computer and unzip it +1. Using an FTP program, or your hosting control panel, upload the unzipped plugin folder to your WordPress installation’s wp-content/plugins/ directory. +1. Activate the plugin from the Plugins menu within the WordPress admin. + += Upgrading = +Automatic updates should work like a charm; as always though, ensure you backup your site just in case. From 595830c695f731348cc7936379cf094e093f0ba8 Mon Sep 17 00:00:00 2001 From: Twinpictures Date: Tue, 9 Jan 2018 10:58:31 +0100 Subject: [PATCH 3/3] updated to version 0.9.9 --- readme.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index ecbf7c8..761a5a5 100644 --- a/readme.txt +++ b/readme.txt @@ -1,10 +1,11 @@ === Ajax Dropdowns === -Contributors: brianmiyaji +Contributors: brianmiyaji, twinpictures Tags: ajax, dropdowns, option, posts, pages, custom post types, tabs, groups, redirect, inline Requires at least: 3.0 -Tested up to: 4.7 -Stable tag: 0.9.8 +Tested up to: 4.9.1 +Stable tag: 0.9.9 License: GPLv2 or later +License URI: http://www.gnu.org/licenses/gpl-2.0.html Display a group of posts that can be switched using dropdowns. @@ -62,6 +63,9 @@ Automatic updates should work like a charm; as always though, ensure you backup == Changelog == += 0.9.9 = +* Feature - Added callback on successful content load. + = 0.9.8 = * Fix - Automatically display content of first option in widget.