Skip to content

Commit

Permalink
Added support for maintaining search term while switching providers
Browse files Browse the repository at this point in the history
  • Loading branch information
dcooney committed Nov 7, 2024
1 parent 3ec7066 commit bc00aab
Show file tree
Hide file tree
Showing 24 changed files with 196 additions and 143 deletions.
24 changes: 15 additions & 9 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Instant Images - One Click Image Uploads from Unsplash, Openverse, Pixabay and Pexels ===
Contributors: dcooney, connekthq
Donate link: <https://connekthq.com/donate/>
Tags: Unsplash, Openverse, Pixabay, Pexels, Stock Photos, media library, prototyping, photos, stock photo, image upload, upload, free photos
Tags: Unsplash, Openverse, Pixabay, Pexels, Stock Photos, photos, stock photo, image upload, upload, free photos
Requires at least: 5.0
Tested up to: 6.5
Stable tag: 6.1.2
Tested up to: 6.7
Stable tag: 6.2.1
License: GPLv2 or later
License URI: <http://www.gnu.org/licenses/gpl-2.0.html>

Expand Down Expand Up @@ -50,11 +50,12 @@ The perfect tool for users who want to save time and frustration by uploading im
Enhance the Instant Images experience with a suite of premium features and added functionality.

**What's Included:**
- Instant Images Gutenberg Block
- WordPress CLI Imports
- Batch Image Imports
- Images Filters (Instagram)
- Search History & Suggestions
- Search History & Autocomplete.
- Instant Images Gutenberg Block.
- WordPress CLI Imports.
- Batch Image Imports.
- Images Filters (Instagram).
- Maintain current search term while switching image providers.
- And more...

[Learn More](https://getinstantimages.com/add-ons/extended/)
Expand Down Expand Up @@ -159,11 +160,16 @@ How to install Instant Images.

== Changelog ==

= 6.2.0 - November 8, 2024 =
* NEW: Added support for new Extended add-on feature to maintain search term when switching providers.
* UPDATE: WordPress 6.7 compatibility updates.
* UPDATE: Various UI/UX updates throughout the app.
* UPDATE: Dependancy updates.

= 6.1.2 - April 15, 2024 =
* FIX: Fixed issue with Openverse search not working due to plugin error.
* UPDATE: WordPress 6.5 compatibility updates.


= 6.1.1 - January 25, 2024 =
* FIX: Various security patches.
* FIX: Fixed issue with permissions for accessing Instant Images settings.
Expand Down
2 changes: 1 addition & 1 deletion admin/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ function instant_images_display_licenses() {
?>
<div class="license-settings--empty">
<p><?php esc_attr_e( 'You do not have any Instant Images add-ons installed.', 'instant-images' ); ?></p>
<p><a class="button button-primary" href="https://getinstantimages.com/add-ons/" target="_blank"><?php esc_attr_e( 'Browse Add-ons', 'instant-images' ); ?></a></p>
<p><a class="button button-primary" href="<?php echo esc_url( INSTANT_IMAGES_ADDONS_URL ); ?>" target="_blank"><?php esc_attr_e( 'Browse Add-ons', 'instant-images' ); ?></a></p>
</div>
<?php
}
Expand Down
15 changes: 10 additions & 5 deletions admin/includes/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
</h1>
<?php
if ( $show_settings && InstantImages::instant_img_has_settings_access() ) {
?>
<a href="<?php echo esc_url( INSTANT_IMAGES_WPADMIN_SETTINGS_URL ); ?>" class="button button-secondary button-large">
<i class="fa fa-cog" aria-hidden="true"></i> <?php esc_attr_e( 'Settings', 'instant-images' ); ?>
</a>
<?php } ?>
?>
<div>
<a href="<?php echo esc_url( INSTANT_IMAGES_ADDONS_URL ); ?>" class="button button-primary button-large" target="_blank">
<?php esc_attr_e( 'Browse Add-ons', 'instant-images' ); ?>
</a>
<a href="<?php echo esc_url( INSTANT_IMAGES_WPADMIN_SETTINGS_URL ); ?>" class="button button-secondary button-large">
<i class="fa fa-cog" aria-hidden="true"></i> <?php esc_attr_e( 'Settings', 'instant-images' ); ?>
</a>
</div>
<?php } ?>
</header>
3 changes: 3 additions & 0 deletions admin/includes/settings/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<?php echo wp_kses_post( InstantImages::instant_images_get_tagline() ); ?>
</h1>
<p>
<a href="<?php echo esc_url( INSTANT_IMAGES_ADDONS_URL ); ?>" class="button button-primary button-large" target="_blank">
<?php esc_attr_e( 'Browse Add-ons', 'instant-images' ); ?>
</a>
<a href="<?php echo esc_url( INSTANT_IMAGES_WPADMIN_URL ); ?>" class="button button-secondary button-large">
<?php esc_attr_e( 'Get Images', 'instant-images' ); ?>
</a>
Expand Down
6 changes: 0 additions & 6 deletions admin/includes/settings/our-plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@
<div class="settings-entry--action other-plugins">
<?php
$instant_images_plugin_array = [
[
'slug' => 'ajax-load-more',
],
[
'slug' => 'block-manager',
],
[
'slug' => 'easy-query',
],
[
'slug' => 'velocity',
],
Expand Down
2 changes: 1 addition & 1 deletion build/block/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '7c59cb31aa91aa8b087e');
<?php return array('dependencies' => array('react', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '81c099ea3fca1106f2d2');
2 changes: 1 addition & 1 deletion build/block/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/instant-images.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'aa74b9bbe3879f4ad9c7');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'fc10c92482e3e4e883e3');
2 changes: 1 addition & 1 deletion build/instant-images.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/media-modal/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'f2b3ad1789730e5524f3');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-element', 'wp-i18n'), 'version' => 'd7cfb89cc06c9b2ad5e3');
2 changes: 1 addition & 1 deletion build/media-modal/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/plugin-sidebar/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => 'e97d5306630feee2b015');
<?php return array('dependencies' => array('react', 'wp-blocks', 'wp-data', 'wp-edit-post', 'wp-element', 'wp-i18n', 'wp-plugins'), 'version' => '42313150bd42af3a10df');
2 changes: 1 addition & 1 deletion build/plugin-sidebar/index.js

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions build/style-instant-images.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 11 additions & 6 deletions instant-images.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
/**
* Plugin Name: Instant Images
* Plugin URI: https://connekthq.com/plugins/instant-images/
* Description: One click image uploads directly to your media library from Unsplash, Openverse, Pixabay and Pexels.
* Description: One-click image uploads directly to your media library from Unsplash, Openverse, Pixabay and Pexels.
* Author: Darren Cooney
* Twitter: @connekthq
* Author URI: https://connekthq.com
* Text Domain: instant-images
* Version: 6.1.2
* Version: 6.2.0
* License: GPL
* Copyright: Darren Cooney & Connekt Media
*
Expand All @@ -18,8 +18,8 @@
exit;
}

define( 'INSTANT_IMAGES_VERSION', '6.1.2' );
define( 'INSTANT_IMAGES_RELEASE', 'April 15, 2024' );
define( 'INSTANT_IMAGES_VERSION', '6.2.0' );
define( 'INSTANT_IMAGES_RELEASE', 'November 8, 2024' );
define( 'INSTANT_IMAGES_STORE_URL', 'https://getinstantimages.com' );

/**
Expand Down Expand Up @@ -89,6 +89,7 @@ private function constants() {
define( 'INSTANT_IMAGES_SETTINGS', 'instant_img_settings' );
define( 'INSTANT_IMAGES_API_SETTINGS', 'instant_img_api_settings' );
define( 'INSTANT_IMAGES_NAME', 'instant-images' );
define( 'INSTANT_IMAGES_ADDONS_URL', 'https://getinstantimages.com/add-ons/' );

// Instant Images: Extended.
if ( ! defined( 'INSTANT_IMAGES_EXTENDED_ID' ) ) {
Expand Down Expand Up @@ -469,7 +470,7 @@ public static function instant_img_not_current_screen( $screens = [] ) {
*/
public static function instant_images_get_tagline() {
// translators: Instant Images tagline.
$instant_images_tagline = __( 'One click photo uploads from %1$s, %2$s, %3$s and %4$s.', 'instant-images' ); // phpcs:ignore
$instant_images_tagline = __( 'One-click photo uploads from %1$s, %2$s, %3$s and %4$s.', 'instant-images' ); // phpcs:ignore
return '<span class="instant-images-tagline">' . sprintf( $instant_images_tagline, '<a href="https://unsplash.com/" target="_blank">Unsplash</a>', '<a href="https://wordpress.org/openverse" target="_blank">Openverse</a>', '<a href="https://pixabay.com/" target="_blank">Pixabay</a>', '<a href="https://pexels.com/" target="_blank">Pexels</a>' ) .'</span>'; // phpcs:ignore
}

Expand All @@ -482,7 +483,11 @@ public static function instant_images_get_tagline() {
* @since 2.0
*/
public function add_action_links( $links ) {
$mylinks = [ '<a href="' . INSTANT_IMAGES_WPADMIN_URL . '">' . __( 'Get Images', 'instant-images' ) . '</a>', '<a href="' . INSTANT_IMAGES_WPADMIN_SETTINGS_URL . '">' . __( 'Settings', 'instant-images' ) . '</a>' ];
$mylinks = [
'<a href="' . INSTANT_IMAGES_WPADMIN_URL . '">' . __( 'Get Images', 'instant-images' ) . '</a>',
'<a href="' . INSTANT_IMAGES_ADDONS_URL . '" target="_blank">' . __( 'Browse Add-ons', 'instant-images' ) . '</a>',
'<a href="' . INSTANT_IMAGES_WPADMIN_SETTINGS_URL . '">' . __( 'Settings', 'instant-images' ) . '</a>'
];
return array_merge( $mylinks, $links );
}

Expand Down
Loading

0 comments on commit bc00aab

Please sign in to comment.