Changeset 1397012
- Timestamp:
- 04/16/2016 03:34:05 AM (10 years ago)
- Location:
- advanced-term-fields-featured-images
- Files:
-
- 43 added
- 2 deleted
- 4 edited
-
tags/1.0 (added)
-
tags/1.0/README.md (added)
-
tags/1.0/advanced-term-fields-images.php (added)
-
tags/1.0/assets (added)
-
tags/1.0/assets/banner-772x250.jpg (added)
-
tags/1.0/assets/icon-256x256.png (added)
-
tags/1.0/assets/screenshot-1.png (added)
-
tags/1.0/assets/screenshot-2.jpg (added)
-
tags/1.0/assets/screenshot-3.jpg (added)
-
tags/1.0/assets/screenshot-4.jpg (added)
-
tags/1.0/css (added)
-
tags/1.0/css/admin.css (added)
-
tags/1.0/inc (added)
-
tags/1.0/inc/class-advanced-term-images-utils.php (added)
-
tags/1.0/inc/class-advanced-term-images.php (added)
-
tags/1.0/js (added)
-
tags/1.0/js/admin.js (added)
-
tags/1.0/lang (added)
-
tags/1.0/lang/index.php (added)
-
tags/1.0/lib (added)
-
tags/1.0/lib/adv-term-fields (added)
-
tags/1.0/lib/adv-term-fields/class-advanced-term-fields.php (added)
-
tags/1.0/lib/adv-term-fields/views (added)
-
tags/1.0/lib/adv-term-fields/views/add-form-field.php (added)
-
tags/1.0/lib/adv-term-fields/views/edit-form-field.php (added)
-
tags/1.0/lib/adv-term-fields/views/quick-form-field.php (added)
-
tags/1.0/readme.txt (added)
-
tags/1.0/uninstall.php (added)
-
tags/1.0/views (added)
-
tags/1.0/views/inner-add-form-field.php (added)
-
tags/1.0/views/inner-edit-form-field.php (added)
-
tags/1.0/views/inner-quick-form-field.php (added)
-
trunk/README.md (modified) (4 diffs)
-
trunk/advanced-term-fields-images.php (modified) (6 diffs)
-
trunk/assets/icon-256x256.png (added)
-
trunk/inc/class-adv-term-fields-images.php (deleted)
-
trunk/inc/class-advanced-term-images-utils.php (added)
-
trunk/inc/class-advanced-term-images.php (added)
-
trunk/inc/functions.php (deleted)
-
trunk/js/admin.js (modified) (8 diffs)
-
trunk/lib (added)
-
trunk/lib/adv-term-fields (added)
-
trunk/lib/adv-term-fields/class-advanced-term-fields.php (added)
-
trunk/lib/adv-term-fields/views (added)
-
trunk/lib/adv-term-fields/views/add-form-field.php (added)
-
trunk/lib/adv-term-fields/views/edit-form-field.php (added)
-
trunk/lib/adv-term-fields/views/quick-form-field.php (added)
-
trunk/readme.txt (modified) (6 diffs)
-
trunk/uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
advanced-term-fields-featured-images/trunk/README.md
r1350178 r1397012 1 # Advanced Term Fields: FeaturedImages1 # Advanced Term Images 2 2 3 Easily a ssign featured images for categories, tags, and custom taxonomy terms. Term meta, with images!3 Easily add featured images to your categories, tags, and custom taxonomy terms. Supports all taxonomies! 4 4 5 **Advanced Term Fields: Featured Images** extends the Advanced Term Fields framework to give users the ability to easily add and manage featured images for any category, tag, or custom taxonomy. 5 **Advanced Term Images** gives users the ability to easily add and manage featured images for categories, tags, and custom taxonomies. 6 7 **Update:** As of version 1.0 this plugin no longer relies on the Advanced Term Fields framework. All functionality from that framework has been incorporated within this plugin. 6 8 7 9  … … 25 27 ## Usage 26 28 27 This is an extension of the **Advanced Term Fields** framework. To use, the Advanced Term Fields plugin must be installed on your project. You can find that plugin here: 29 Once you've installed and activated the plugin, you should see a new form field in your edit tags screen. (See the Screenshots tab.) 28 30 29 * On WP: [Advanced Term Fields](https://wordpress.org/plugins/advanced-term-fields/) 30 * On GitHub: [Advanced Term Fields](https://github.com/dboutote/Advanced-Term-Fields) 31 32 Once you've installed and activated the ATF and ATF: Images plugins, you should see a new form field in your edit tags screen: 31 Use the native WordPress media picker to select a featured image for your term. 33 32 34 33  … … 38 37 #### Where can I find additional documentation? 39 38 40 The plugin's official page: http://darrinb.com/ advanced-term-fields-images39 The plugin's official page: http://darrinb.com/plugins/advanced-term-images 41 40 42 41 #### Does this plugin depend on any others? 43 42 44 Yes, this plugin is an extension of the **Advanced Term Fields** framework. You'll need to install that plugin to handle all base functionality. You can find that plugin here: 45 46 * On WP: [Advanced Term Fields](https://wordpress.org/plugins/advanced-term-fields/) 47 * On GitHub: [Advanced Term Fields](https://github.com/dboutote/Advanced-Term-Fields) 43 Nope! It _used_ to depend on the Advanced Term Fields plugin, but as of version 1.0, all functionality has been incorporated into this plugin. 48 44 49 45 #### Does this create/modify/destroy database tables? … … 53 49 #### Are there other extensions? 54 50 55 Yep! This is a list of all current extensions:51 Yep! This is a list of all current term meta plugins: 56 52 57 * [Advanced Term Fields: Colors](https://github.com/dboutote/Advanced-Term-Fields-Colors) 58 * [Advanced Term Fields: Icons](https://github.com/dboutote/Advanced-Term-Fields-Icons) 59 * [Advanced Term Fields: Featured Images](https://github.com/dboutote/Advanced-Term-Fields-Images) 53 * [Advanced Term Colors](https://wordpress.org/plugins/advanced-term-fields-colors/) 54 * [Advanced Term Icons](https://wordpress.org/plugins/advanced-term-fields-icons/) 55 * [Advanced Term Images](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 56 * [Advanced Term Locks](https://wordpress.org/plugins/advanced-term-fields-locks/) -
advanced-term-fields-featured-images/trunk/advanced-term-fields-images.php
r1350178 r1397012 1 1 <?php 2 2 /** 3 * Advanced Term Fields: FeaturedImages3 * Advanced Term Images 4 4 * 5 * @package Advanced_Term_ Fields_Images5 * @package Advanced_Term_Images 6 6 * 7 7 * @license http://www.gnu.org/licenses/gpl-2.0.txt GPL-2.0+ 8 * @version 0.1.18 * @version 1.0 9 9 * 10 * Plugin Name: Advanced Term Fields: FeaturedImages10 * Plugin Name: Advanced Term Images 11 11 * Plugin URI: http://darrinb.com/plugins/advanced-term-fields-images 12 12 * Description: Easily assign featured images for categories, tags, and custom taxonomy terms. 13 * Version: 0.1.113 * Version: 1.0 14 14 * Author: Darrin Boutote 15 15 * Author URI: http://darrinb.com … … 35 35 * @since 0.1.1 36 36 */ 37 define( 'ATF_IMAGES_VERSION', ' 0.1.1' );37 define( 'ATF_IMAGES_VERSION', '1.0' ); 38 38 39 39 … … 44 44 45 45 /** 46 * Load Utilities46 * Loads Utilities 47 47 * 48 48 * @since 0.1.1 49 49 */ 50 include dirname( __FILE__ ) . '/inc/ functions.php';50 include dirname( __FILE__ ) . '/inc/class-advanced-term-images-utils.php'; 51 51 52 52 … … 56 56 * @since 0.1.0 57 57 */ 58 add_action( 'plugins_loaded', '_atf_images_compatibility_check', 99 );58 add_action( 'plugins_loaded', array( 'Advanced_Term_Images_Utils', 'compatibility_check' ), 99 ); 59 59 60 60 61 61 /** 62 * Instantiates main Advanced Term Fields: FeaturedImages class62 * Instantiates main Advanced Term Images class 63 63 * 64 64 * @since 0.1.0 … … 66 66 function _atf_images_init() { 67 67 68 if ( ! _atf_images_compatibility_check() ){ return; }68 if( ! defined( 'ATF_IMAGES_IS_COMPATIBLE' ) || ! ATF_IMAGES_IS_COMPATIBLE ) { return; } 69 69 70 include dirname( __FILE__ ) . '/inc/class-adv-term-fields-images.php'; 70 /** 71 * Load core framework 72 * 73 * Note: this replaces the Advanced Term Fields framework plugin 74 * @see https://make.wordpress.org/plugins/2016/03/01/please-do-not-submit-frameworks/ 75 * 76 * @since 1.0 77 */ 78 include dirname( __FILE__ ) . '/lib/adv-term-fields/class-advanced-term-fields.php'; 71 79 72 $Adv_Term_Fields_Images = new Adv_Term_Fields_Images( __FILE__ ); 73 $Adv_Term_Fields_Images->init(); 80 include dirname( __FILE__ ) . '/inc/class-advanced-term-images.php'; 81 82 $Advanced_Term_Images = new Advanced_Term_Images( __FILE__ ); 83 $Advanced_Term_Images->init(); 74 84 75 85 } … … 78 88 79 89 /** 80 * Run actions on plugin upgrade90 * Runs actions on plugin upgrade 81 91 * 82 92 * @since 0.1.1 83 93 */ 84 add_action( "atf__thumbnail_id_version_upgraded", '_atf_images_version_upgraded_notice', 10, 5 );85 add_action( "atf__thumbnail_id_version_upgraded", '_atf_images_maybe_update_meta_key', 10, 5 );94 add_action( "atf__thumbnail_id_version_upgraded", array( 'Advanced_Term_Images_Utils', 'version_upgraded_notice' ), 10, 5 ); 95 add_action( "atf__thumbnail_id_version_upgraded", array( 'Advanced_Term_Images_Utils', 'maybe_update_meta_key' ), 10, 5 ); -
advanced-term-fields-featured-images/trunk/js/admin.js
r1350178 r1397012 3 3 ( function ($) { 4 4 'use strict'; 5 5 6 6 /** 7 7 * Globals … … 13 13 var del_link; 14 14 var atf_tag_form = $('#addtag'); 15 15 16 16 17 17 /** … … 74 74 return link_html; 75 75 }; 76 76 77 77 /** 78 78 * Resets the Image form field … … 84 84 atfResetSetLink( form ); 85 85 atfClearDeleteLink( form ); 86 }; 86 }; 87 87 88 88 … … 212 212 $(':input[name="' + l10n_ATF_Images.meta_key + '"]', '.inline-edit-row').val(img_id).trigger('atf_change');; 213 213 }); 214 214 215 215 216 216 /** … … 223 223 if( form.hasClass('atf-submitted') && $('#ajax-response').html() == '' ) { 224 224 atfResetTagFormFeatImage( form ); 225 } 225 } 226 226 }); 227 228 227 228 229 229 /** 230 230 * Reset the featured image field after the form has been submitted … … 235 235 $( '#submit', atf_tag_form).click( function(){ 236 236 var form = $(this).parents('form'); 237 237 238 238 if ( ! validateForm( form ) ) { 239 239 form.removeClass('atf-submitted'); … … 242 242 form.addClass('atf-submitted'); 243 243 } 244 }); 244 }); 245 245 246 246 -
advanced-term-fields-featured-images/trunk/readme.txt
r1350178 r1397012 1 === Advanced Term Fields: FeaturedImages ===1 === Advanced Term Images === 2 2 Contributors: dbmartin 3 Tags: term meta, term_meta, term, meta, metadata, taxonomy, colors3 Tags: term-meta, term, meta, metadata, taxonomy, image, images, featured-images, category-images 4 4 Requires at least: 4.4 5 Tested up to: 4. 4.16 Stable tag: 0.1.15 Tested up to: 4.5 6 Stable tag: 1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 10 Easily a ssign featured images for categories, tags, and custom taxonomy terms. Term meta, with images!10 Easily add featured images to your categories, tags, and custom taxonomy terms. Supports all taxonomies! 11 11 12 12 == Description == 13 13 14 **Advanced Term Fields: Featured Images** extends the Advanced Term Fields framework to give users the ability to easily add and manage featured images for any category, tag, or custom taxonomy. 14 **Advanced Term Images** gives users the ability to easily add and manage featured images for categories, tags, and custom taxonomies. 15 16 **Update:** As of version 1.0 this plugin no longer relies on the Advanced Term Fields framework. All functionality from that framework has been incorporated within this plugin. 15 17 16 18 = Usage = 17 19 18 This is an extension of the **Advanced Term Fields** framework. To use, the Advanced Term Fields plugin must be installed on your project. You can find that plugin here: 20 Once you've installed and activated the plugin, you should see a new form field in your edit tags screen. (See the Screenshots tab.) 19 21 20 * On WP: [Advanced Term Fields](https://wordpress.org/plugins/advanced-term-fields/) 21 * On GitHub: [Advanced Term Fields](https://github.com/dboutote/Advanced-Term-Fields) 22 Use the native WordPress media picker to select a featured image for your term. 22 23 23 Once you've installed and activated the ATF and ATF: Images plugins, you should see a new form field in your edit tags screen. (See the Screenshots tab.) 24 = Also Check Out: = 24 25 25 = Check Out Other Extensions = 26 27 * [Advanced Term Fields: Colors](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 28 * [Advanced Term Fields: Icons](https://wordpress.org/plugins/advanced-term-fields-icons/) 29 * [Advanced Term Fields: Featured Images](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 26 * [Advanced Term Colors](https://wordpress.org/plugins/advanced-term-fields-colors/) 27 * [Advanced Term Icons](https://wordpress.org/plugins/advanced-term-fields-icons/) 28 * [Advanced Term Images](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 29 * [Advanced Term Locks](https://wordpress.org/plugins/advanced-term-fields-locks/) 30 30 31 31 == Installation == … … 37 37 * No further setup or configuration is necessary. 38 38 39 = From GitHub: =40 41 * Download the [latest stable version](https://github.com/dboutote/Advanced-Term-Fields-Images/archive/master.zip).42 * Extract the zip folder to your plugins directory.43 * Activate in the "Plugins" area of your admin by clicking the "Activate" link.44 * No further setup or configuration is necessary.45 46 39 47 40 == Frequently Asked Questions == … … 49 42 = Where can I find additional documentation? = 50 43 51 The plugin's official page: http://darrinb.com/ advanced-term-fields-images44 The plugin's official page: http://darrinb.com/plugins/advanced-term-images 52 45 53 46 = Does this plugin depend on any others? = 54 47 55 Yes, this plugin is an extension of the **Advanced Term Fields** framework. You'll need to install that plugin to handle all base functionality. You can find that plugin here: 56 57 * On WP: [Advanced Term Fields](https://wordpress.org/plugins/advanced-term-fields/) 58 * On GitHub: [Advanced Term Fields](https://github.com/dboutote/Advanced-Term-Fields) 48 Nope! It _used_ to depend on the Advanced Term Fields plugin, but as of version 1.0, all functionality has been incorporated into this plugin. 59 49 60 50 = Does this create/modify/destroy database tables? = … … 62 52 This leverages the term meta capabilities added in WordPress 4.4. No database modifications needed! 63 53 64 = Are there other extensions? =54 = Are there other plugins in this family? = 65 55 66 Yep! This is a list of all current extensions:56 Yep! This is a list of all current term meta plugins: 67 57 68 * [Advanced Term Fields: Colors](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 69 * [Advanced Term Fields: Icons](https://wordpress.org/plugins/advanced-term-fields-icons/) 70 * [Advanced Term Fields: Featured Images](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 58 * [Advanced Term Colors](https://wordpress.org/plugins/advanced-term-fields-colors/) 59 * [Advanced Term Icons](https://wordpress.org/plugins/advanced-term-fields-icons/) 60 * [Advanced Term Images](https://wordpress.org/plugins/advanced-term-fields-featured-images/) 61 * [Advanced Term Locks](https://wordpress.org/plugins/advanced-term-fields-locks/) 71 62 72 63 == Screenshots == 73 64 74 1. Custom column tothe Tag List Table.65 1. Custom column on the Tag List Table. 75 66 2. Select your image using the native WordPress media picker. 76 67 3. Accessible from the Quick Edit form … … 79 70 80 71 == Changelog == 72 73 = 1.0 = 74 * Incorporated Advanced Term Fields framework into plugin. 75 * Namespaced all option keys. 76 * WP 4.5 Compatibility updates: added 'load-term.php' action hook. 77 * Bug fix: on quick edit form when $taxonomy is not defined. 81 78 82 79 = 0.1.1 = … … 88 85 = 0.1.0 = 89 86 * Initial release 87 88 == Upgrade Notice == 89 90 = 1.0 = 91 This version fixes compatibility issues with WP 4.5. 92 93 94
Note: See TracChangeset
for help on using the changeset viewer.