Skip to content

Commit

Permalink
Merge pull request #11 from arunbasillal/branch-4.1
Browse files Browse the repository at this point in the history
Branch 4.1
  • Loading branch information
arunbasillal committed Feb 1, 2023
2 parents 3ec42fc + 362891d commit 67b49e2
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 40 deletions.
5 changes: 5 additions & 0 deletions admin/css/iaff-style.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
overflow: auto;
}

#bulk-updater-delete-log-button:hover {
opacity: 1 !important;
cursor: pointer;
}

#iaff-pro #bulk-updater-log > p {
margin: 0;
padding: 3px 5px;
Expand Down
4 changes: 4 additions & 0 deletions admin/iaff_image-attributes-from-filename-admin-ui-render.php
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,10 @@ function iaff_admin_interface_render () {
<div id="bulk-updater-results">
<fieldset id="bulk-updater-log-wrapper">
<legend><span class="dashicons dashicons-welcome-write-blog"></span>&nbsp;<strong><?php _e('Event Log', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></strong>&nbsp;<div class="iaff-spinner is-active" style="margin-top:0px;"></div></legend>

<?php if ( function_exists( 'iaffpro_event_log_delete' ) ) { ?>
<div id="bulk-updater-delete-log-button" class="dashicons dashicons-trash" title="<?php _e( 'Delete Event Log', 'auto-image-attributes-from-filename-with-bulk-updater' ) ?>" style="float: right; opacity: 0.7; margin-top: -25px; font-size: 18px;"></div>
<?php } ?>

<div id="bulk-updater-log">

Expand Down
14 changes: 14 additions & 0 deletions admin/iaff_image-attributes-from-filename-do.php
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,20 @@ function iaff_stop_bulk_updater_button_switch( state ) {
break;
}
}

// Delete Event Log
$('#bulk-updater-delete-log-button').click( function() {

data = {
action: 'iaff_bulk_updater_delete_log',
security: '<?php echo wp_create_nonce( "iaff_bulk_updater_delete_log_nonce" ); ?>'
};

$.post(ajaxurl, data, function (response) {
$('#bulk-updater-log').append('<p class="iaff-red"><span class="dashicons dashicons-trash"></span> ' + response.message + '</p>');
$("#bulk-updater-log").animate({scrollTop:$("#bulk-updater-log")[0].scrollHeight - $("#bulk-updater-log").height()},200);
});
});

});
</script> <?php
Expand Down
4 changes: 2 additions & 2 deletions iaff_image-attributes-from-filename.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Automatically Add Image Title, Image Caption, Description And Alt Text From Image Filename. Since this plugin includes a bulk updater this can update both existing images in the Media Library and new images.
* Author: Arun Basil Lal
* Author URI: https://imageattributespro.com/?utm_source=plugin-header&utm_medium=author-uri
* Version: 4.0
* Version: 4.1
* Text Domain: auto-image-attributes-from-filename-with-bulk-updater
* Domain Path: /languages
* License: GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Expand Down Expand Up @@ -65,7 +65,7 @@
* @since 1.3
*/
if ( ! defined( 'IAFF_VERSION_NUM' ) ) {
define( 'IAFF_VERSION_NUM', '4.0' );
define( 'IAFF_VERSION_NUM', '4.1' );
}

/**
Expand Down
80 changes: 42 additions & 38 deletions languages/auto-image-attributes-from-filename-with-bulk-updater.pot
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Copyright (C) 2022 Arun Basil Lal
# Copyright (C) 2023 Arun Basil Lal
# This file is distributed under the GPL v2 - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
msgid ""
msgstr ""
"Project-Id-Version: Auto Image Attributes From Filename With Bulk Updater 4.0\n"
"Project-Id-Version: Auto Image Attributes From Filename With Bulk Updater 4.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/auto-image-attributes-from-filename-with-bulk-updater\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2022-12-13T09:18:23+00:00\n"
"POT-Creation-Date: 2023-02-01T15:15:01+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: auto-image-attributes-from-filename-with-bulk-updater\n"
Expand Down Expand Up @@ -447,12 +447,12 @@ msgid "The Bulk Updater will update every attribute. If your image is named <em>
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1046
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1098
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1102
msgid "Run Bulk Updater"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1048
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1103
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1107
msgid "Test Bulk Updater"
msgstr ""

Expand All @@ -473,7 +473,7 @@ msgid "If Bulk Updater is stuck, refresh the page, skip current image and try ru
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1062
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1108
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1112
msgid "Reset Counter"
msgstr ""

Expand All @@ -485,128 +485,132 @@ msgstr ""
msgid "Event Log"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1086
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1075
msgid "Delete Event Log"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1090
msgid "Number of Images Remaining: "
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1088
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1092
msgid "Number of Images Updated: "
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1099
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1103
msgid "You are about to run the bulk updater. This will update all images and cannot be undone. Please make a database backup before you proceed. Press OK to confirm."
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1104
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1108
msgid "The bulk updater will do a test run by updating one image. Note that this is a live test and actual values will be updated in the database. Please make a database backup before you proceed. Press Ok to confirm."
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1109
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1113
msgid "You are about to reset the bulk updater counter. The bulk updater will start from scratch in the next run. Press Ok to confirm."
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1119
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1123
msgid "Support And Documentation"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1121
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1125
msgid "Looking for help? Here are the available options."
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1126
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1130
msgid "Free Support"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1128
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1141
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1132
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1145
msgid "Documentation"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1129
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1133
msgid "Read the FAQ"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1130
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1134
msgid "Free Support Forum"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1139
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1143
msgid "Premium Support"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1142
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1146
msgid "Priority Email Support"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1143
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1147
msgid "Contact Support"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1155
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1159
msgid "Upgrade to Pro"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1157
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1161
msgid "Priority support"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1158
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1162
msgid "Advanced features"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1159
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1163
msgid "Support ongoing development"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1176
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1180
msgid "Unlock Traffic"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1178
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1182
msgid "Get more traffic from Google Images"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1179
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1183
msgid "Use post / product title as attributes"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1180
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1184
msgid "Preserve existing attributes"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1181
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1185
msgid "Update attributes within posts"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1182
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1186
msgid "Build custom attributes and fine tune settings"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1192
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1196
msgid "Fast &amp; Simple Time Saver"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1200
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1204
msgid "This plugin will save me a LOT of time! Great plugin!"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1209
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1213
msgid "SEO Newsletter"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1213
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1217
msgid "Stay tuned to the latest image SEO news and receive helpful product updates."
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1217
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1221
msgid "Your Email"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1222
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1226
msgid "Subscribe"
msgstr ""

#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1226
#: admin/iaff_image-attributes-from-filename-admin-ui-render.php:1230
msgid "Your email will be kept private and will not be shared or spammed."
msgstr ""

Expand Down
8 changes: 8 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp

== Changelog ==

= 4.1 =
* Date: 01.February.2023.
* Enhancement: Compatibility with Image Attributes Pro version 4.1. [Check what's new in 4.1](https://imageattributespro.com/changelog/?utm_source=wordpress.org&utm_medium=changelog).

= 4.0 =
* Date: 13.December.2022.
* Tested with WordPress 6.1.1.
Expand Down Expand Up @@ -244,6 +248,10 @@ I am glad to hear that! You can either [upgrade to pro](https://imageattributesp

== Upgrade Notice ==

= 4.1 =
* Date: 01.February.2023.
* Enhancement: Compatibility with Image Attributes Pro version 4.1. [Check what's new in 4.1](https://imageattributespro.com/changelog/?utm_source=wordpress.org&utm_medium=changelog).

= 4.0 =
* Date: 13.December.2022.
* Tested with WordPress 6.1.1.
Expand Down

0 comments on commit 67b49e2

Please sign in to comment.