|
3 | 3 | * Admin UI setup and render
|
4 | 4 | *
|
5 | 5 | * @since 1.3
|
6 |
| - * @function iaff_global_switch_callback() Global Switch Callback |
7 | 6 | * @function iaff_general_settings_callback() General Settings field Callback
|
8 | 7 | * @function iaff_filter_settings_callback() Filter Settings field callback
|
9 | 8 | * @function iaff_basic_seo_settings_callback() Basic SEO Settings Callback
|
|
30 | 29 | // Exit if accessed directly
|
31 | 30 | if ( ! defined('ABSPATH') ) exit;
|
32 | 31 |
|
33 |
| -/** |
34 |
| - * Global Switch Callback |
35 |
| - * |
36 |
| - * @since 1.4 |
37 |
| - */ |
38 |
| -function iaff_global_switch_callback() { |
39 |
| - |
40 |
| - // Get Settings |
41 |
| - $settings = iaff_get_settings(); |
42 |
| - ?> |
43 |
| - |
44 |
| - <fieldset> |
45 |
| - |
46 |
| - <label for="iaff_settings[global_switch]"> |
47 |
| - <input type="checkbox" name="iaff_settings[global_switch]" id="iaff_settings[global_switch]" value="1" <?php if ( isset($settings['global_switch']) ) checked( '1', $settings['global_switch'] ); ?>> |
48 |
| - <span><?php _e('Globally enable or disable Auto Image Attributes. Should be checked for the plugin to work.', 'auto-image-attributes-from-filename-with-bulk-updater') ?></span> |
49 |
| - </label><br> |
50 |
| - |
51 |
| - </fieldset> |
52 |
| - |
53 |
| - <?php |
54 |
| -} |
55 |
| - |
56 | 32 | /**
|
57 | 33 | * General Settings field Callback
|
58 | 34 | *
|
@@ -275,7 +251,7 @@ function iaff_custom_filter_callback() {
|
275 | 251 |
|
276 | 252 | <fieldset>
|
277 | 253 |
|
278 |
| - <p><?php _e('Enter words or characters to filter separated by commas. Filter is case sensitive.', 'auto-image-attributes-from-filename-with-bulk-updater') ?></p> |
| 254 | + <p><?php printf( __( 'Enter words or characters to filter separated by commas. Filter is case sensitive. <a href="%s" target="_blank">Read more.</a>', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/custom-filter-and-regex-filter/?utm_source=iaff-basic&utm_medium=advanced-tab' ); ?></p> |
279 | 255 | <input type="text" name="iaff_settings[custom_filter]" placeholder="DCIM, img" class="all-options" value="<?php if ( isset( $settings['custom_filter'] ) && ( ! empty( $settings['custom_filter'] ) ) ) echo esc_attr( $settings['custom_filter'] ); ?>"/><br><br>
|
280 | 256 |
|
281 | 257 | <p><?php _e('Filter with regular expression', 'auto-image-attributes-from-filename-with-bulk-updater') ?></p>
|
@@ -657,7 +633,7 @@ function iaff_bu_custom_filter_callback() {
|
657 | 633 |
|
658 | 634 | <fieldset>
|
659 | 635 |
|
660 |
| - <p><?php _e('Enter words or characters to filter separated by commas. Filter is case sensitive.', 'auto-image-attributes-from-filename-with-bulk-updater') ?></p> |
| 636 | + <p><?php printf( __( 'Enter words or characters to filter separated by commas. Filter is case sensitive. <a href="%s" target="_blank">Read more.</a>', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/custom-filter-and-regex-filter/?utm_source=iaff-basic&utm_medium=bu-settings-tab' ); ?></p> |
661 | 637 | <input type="text" name="iaff_settings[bu_custom_filter]" placeholder="DCIM, img" class="all-options" value="<?php if ( isset( $settings['bu_custom_filter'] ) && ( ! empty( $settings['bu_custom_filter'] ) ) ) echo esc_attr( $settings['bu_custom_filter'] ); ?>"/><br><br>
|
662 | 638 |
|
663 | 639 | <p><?php _e('Filter with regular expression', 'auto-image-attributes-from-filename-with-bulk-updater') ?></p>
|
@@ -1009,7 +985,7 @@ function iaff_admin_interface_render () {
|
1009 | 985 | <!-- Basic Settings -->
|
1010 | 986 | <div id="iaff-basic" class="iaff-settings-tab">
|
1011 | 987 | <h2 class="showh2"><?php _e('Basic Settings', 'auto-image-attributes-from-filename-with-bulk-updater') ?></h2>
|
1012 |
| - <p><?php _e('Automatically add Image attributes such as Image Title, Image Caption, Description And Alt Text from Image Filename for new uploads', 'auto-image-attributes-from-filename-with-bulk-updater') ?></p> |
| 988 | + <p><?php printf( __( 'Automatically add image attributes such as Image Title, Alt Text, Caption and Description from image filename for new uploads. <a href="%s" target="_blank">Take a tour</a>', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/demo/?utm_source=iaff-basic&utm_medium=basic-tab' ); ?> 📺</p> |
1013 | 989 | <?php do_settings_sections( 'iaff_basic_settings_section' ); ?>
|
1014 | 990 | <?php submit_button( __('Save Settings', 'auto-image-attributes-from-filename-with-bulk-updater') ); ?>
|
1015 | 991 | </div>
|
@@ -1061,7 +1037,7 @@ function iaff_admin_interface_render () {
|
1061 | 1037 | <p><strong><?php _e('Use <code>Test Bulk Updater</code> button to update one image at a time and verify the results.', 'auto-image-attributes-from-filename-with-bulk-updater') ?></strong></p>
|
1062 | 1038 |
|
1063 | 1039 | <?php if( ! iaff_is_pro() ) { ?>
|
1064 |
| - <p><strong><?php printf( __( 'If your image is named <em>a-lot-like_love.jpg</em>, your Image Title, Caption, Description and Alt Text will be: <em>a lot like love</em>. <a href="%s" target="_blank">Upgrade to Pro</a> for more options.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=bulk-updater-notice' ); ?></strong></p> |
| 1040 | + <p><strong><?php printf( __( 'The Bulk Updater will update every attribute. If your image is named <em>a-lot-like_love.jpg</em>, your Image Title, Alt Text, Caption and Description will be: <em>a lot like love</em>. <a href="%s" target="_blank">Upgrade to Pro</a> for more options.', 'auto-image-attributes-from-filename-with-bulk-updater' ), 'https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=bulk-updater-notice' ); ?></strong></p> |
1065 | 1041 | <?php } ?>
|
1066 | 1042 |
|
1067 | 1043 | </div>
|
@@ -1177,57 +1153,59 @@ function iaff_admin_interface_render () {
|
1177 | 1153 | <div class="iaff-upgrade-header">
|
1178 | 1154 | <a href="https://imageattributespro.com/?utm_source=iaff-basic&utm_medium=coupon-sidebar" target="_blank">
|
1179 | 1155 | <div class="iaff-icon"></div>
|
1180 |
| - <h1 class="patua"><?php _e('Upgrade to Pro', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></h1> |
| 1156 | + <h1 class="patua"><?php _e( 'Unlock Traffic', 'auto-image-attributes-from-filename-with-bulk-updater' ); ?></h1> |
1181 | 1157 | <ul>
|
1182 |
| - <li><span class="dashicons dashicons-yes"></span><?php _e('Advanced formatting options', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
1183 |
| - <li><span class="dashicons dashicons-yes"></span><?php _e('Use post titles as attributes', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
1184 |
| - <li><span class="dashicons dashicons-yes"></span><?php _e('Fine tune bulk updater settings', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
| 1158 | + <li><span class="dashicons dashicons-yes"></span><?php _e('Get more traffic from Google Images', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
| 1159 | + <li><span class="dashicons dashicons-yes"></span><?php _e('Use post / product title as attributes', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
| 1160 | + <li><span class="dashicons dashicons-yes"></span><?php _e('Preserve existing attributes', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
| 1161 | + <li><span class="dashicons dashicons-yes"></span><?php _e('Update attributes within posts', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
| 1162 | + <li><span class="dashicons dashicons-yes"></span><?php _e('Build custom attributes and fine tune settings', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></li> |
1185 | 1163 | </ul>
|
| 1164 | + <button class="button" style="width:100%">Upgrade to Pro → </button> |
1186 | 1165 | </a>
|
1187 | 1166 | </div><!-- .iaff-upgrade-header -->
|
1188 | 1167 |
|
1189 | 1168 | <div class="iaff-upgrade-form">
|
| 1169 | + |
| 1170 | + <div class="iaff-upgrade-review"> |
| 1171 | + <div class="iaff-upgrade-review-stars"> |
| 1172 | + <h3>"<?php _e('Fast & Simple Time Saver', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>"</h3> |
| 1173 | + <?php echo str_repeat('<span class="dashicons dashicons-star-filled"></span>', 5); ?> |
| 1174 | + </div> |
| 1175 | + <div class="iaff-upgrade-review-detail"> |
| 1176 | + <div class="iaff-upgrade-review-detail-left"> |
| 1177 | + <img class="iaff-upgrade-review-avatar" src="<?php echo IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL . 'admin/img/checkerboardflyer.jpeg'; ?>" /> |
| 1178 | + </div> |
| 1179 | + <div class="iaff-upgrade-review-detail-right"> |
| 1180 | + <p>"<?php _e('This plugin will save me a LOT of time! Great plugin!', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>" <br><a target="_blank" href="https://wordpress.org/support/topic/fast-simple-time-saver/">@checkerboardflyer</a></p> |
| 1181 | + </div> |
| 1182 | + </div> |
| 1183 | + </div> |
| 1184 | + |
| 1185 | + <hr style="margin: 20px 0px;"> |
1190 | 1186 |
|
1191 |
| - <form method="post" action="https://imageattributespro.com/coupons/" target="_blank"> |
| 1187 | + <form method="post" action="https://imageattributespro.com/newsletter/" target="_blank"> |
1192 | 1188 |
|
1193 |
| - <h1 class="patua"><?php _e('10% For Lifetime', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></h1> |
| 1189 | + <h1 class="patua" style="text-align: center;"><?php _e( 'SEO Newsletter', 'auto-image-attributes-from-filename-with-bulk-updater' ); ?></h1> |
1194 | 1190 |
|
1195 | 1191 | <?php $user = wp_get_current_user(); ?>
|
1196 | 1192 |
|
1197 |
| - <p><?php _e('Submit your name and email to receive 10% off when you upgrade to the Lifetime license.', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></p> |
| 1193 | + <p><?php _e('Stay tuned to the latest image SEO news and receive helpful product updates.', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></p> |
1198 | 1194 |
|
1199 | 1195 | <fieldset>
|
1200 |
| - |
1201 |
| - <input type="text" name="first_name" value="<?php echo esc_attr( trim( $user->first_name ) ); ?>" placeholder="<?php _e('First Name', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>"/> |
1202 |
| - |
| 1196 | + |
1203 | 1197 | <input type="email" name="email" value="<?php echo esc_attr( $user->user_email ); ?>" placeholder="<?php _e('Your Email', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>"/>
|
1204 | 1198 |
|
1205 | 1199 | <input type="hidden" name="source" value="IAFF" />
|
1206 | 1200 | <input type="hidden" name="submitted" id="submitted" value="true" />
|
1207 | 1201 |
|
1208 |
| - <input type="submit" class="button" value="<?php _e('Send me the coupon', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>"/> |
| 1202 | + <input type="submit" class="button-primary" style="margin-top:5px;" value="<?php _e( 'Subscribe', 'auto-image-attributes-from-filename-with-bulk-updater' ); ?>"/> |
1209 | 1203 |
|
1210 | 1204 | </fieldset>
|
1211 | 1205 |
|
1212 | 1206 | <p class="opacity-75"><?php _e('Your email will be kept private and will not be shared or spammed.', 'auto-image-attributes-from-filename-with-bulk-updater'); ?></p>
|
1213 |
| - </form> |
1214 |
| - |
1215 |
| - <hr> |
| 1207 | + </form> |
1216 | 1208 |
|
1217 |
| - <div class="iaff-upgrade-review"> |
1218 |
| - <div class="iaff-upgrade-review-stars"> |
1219 |
| - <h3>"<?php _e('Fast & Simple Time Saver', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>"</h3> |
1220 |
| - <?php echo str_repeat('<span class="dashicons dashicons-star-filled"></span>', 5); ?> |
1221 |
| - </div> |
1222 |
| - <div class="iaff-upgrade-review-detail"> |
1223 |
| - <div class="iaff-upgrade-review-detail-left"> |
1224 |
| - <img class="iaff-upgrade-review-avatar" src="<?php echo IAFF_IMAGE_ATTRIBUTES_FROM_FILENAME_URL . 'admin/img/checkerboardflyer.jpeg'; ?>" /> |
1225 |
| - </div> |
1226 |
| - <div class="iaff-upgrade-review-detail-right"> |
1227 |
| - <p>"<?php _e('This plugin will save me a LOT of time! Great plugin!', 'auto-image-attributes-from-filename-with-bulk-updater'); ?>" <br><a target="_blank" href="https://wordpress.org/support/topic/fast-simple-time-saver/">@checkerboardflyer</a></p> |
1228 |
| - </div> |
1229 |
| - </div> |
1230 |
| - </div> |
1231 | 1209 | </div><!-- .iaff-upgrade-form -->
|
1232 | 1210 | </div><!-- .iaff-admin-options-sidebar -->
|
1233 | 1211 | <?php } ?>
|
|
0 commit comments