Changeset 2031477
- Timestamp:
- 02/15/2019 02:21:52 PM (7 years ago)
- Location:
- just-custom-fields
- Files:
-
- 159 added
- 5 edited
-
tags/3.3.1 (added)
-
tags/3.3.1/assets (added)
-
tags/3.3.1/assets/copy.png (added)
-
tags/3.3.1/assets/edit_post.css (added)
-
tags/3.3.1/assets/edit_post.js (added)
-
tags/3.3.1/assets/edit_taxonomy.css (added)
-
tags/3.3.1/assets/edit_taxonomy.js (added)
-
tags/3.3.1/assets/jcf_i18n.js (added)
-
tags/3.3.1/assets/jquery-ui.min.js (added)
-
tags/3.3.1/assets/just_custom_fields.js (added)
-
tags/3.3.1/assets/styles.css (added)
-
tags/3.3.1/components (added)
-
tags/3.3.1/components/checkbox (added)
-
tags/3.3.1/components/checkbox/JustField_Checkbox.php (added)
-
tags/3.3.1/components/collection (added)
-
tags/3.3.1/components/collection/JustField_Collection.php (added)
-
tags/3.3.1/components/collection/assets (added)
-
tags/3.3.1/components/collection/assets/collection.css (added)
-
tags/3.3.1/components/collection/assets/collection.js (added)
-
tags/3.3.1/components/collection/assets/collection_post_edit.js (added)
-
tags/3.3.1/components/datepicker (added)
-
tags/3.3.1/components/datepicker/JustField_DatePicker.php (added)
-
tags/3.3.1/components/datepicker/ui-datepicker.min.js (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-icons_222222_256x240.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-icons_2e83ff_256x240.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-icons_454545_256x240.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-icons_888888_256x240.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/3.3.1/components/datepicker/ui-theme-smoothness/jquery-ui-1.8.13.custom.css (added)
-
tags/3.3.1/components/googlemaps (added)
-
tags/3.3.1/components/googlemaps/JustField_GoogleMaps.php (added)
-
tags/3.3.1/components/googlemaps/assets (added)
-
tags/3.3.1/components/googlemaps/assets/googlemaps.css (added)
-
tags/3.3.1/components/googlemaps/assets/googlemaps.js (added)
-
tags/3.3.1/components/inputtext (added)
-
tags/3.3.1/components/inputtext/JustField_InputText.php (added)
-
tags/3.3.1/components/relatedcontent (added)
-
tags/3.3.1/components/relatedcontent/JustField_RelatedContent.php (added)
-
tags/3.3.1/components/relatedcontent/assets (added)
-
tags/3.3.1/components/relatedcontent/assets/ajax-loader.gif (added)
-
tags/3.3.1/components/relatedcontent/assets/images (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_glass_75_dadada_1x400.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-icons_222222_256x240.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-icons_2e83ff_256x240.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-icons_454545_256x240.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-icons_888888_256x240.png (added)
-
tags/3.3.1/components/relatedcontent/assets/images/ui-icons_cd0a0a_256x240.png (added)
-
tags/3.3.1/components/relatedcontent/assets/jquery-ui-1.8.14.autocomplete.css (added)
-
tags/3.3.1/components/relatedcontent/related-content.css (added)
-
tags/3.3.1/components/relatedcontent/related-content.js (added)
-
tags/3.3.1/components/select (added)
-
tags/3.3.1/components/select/JustField_Select.php (added)
-
tags/3.3.1/components/selectmultiple (added)
-
tags/3.3.1/components/selectmultiple/JustField_SelectMultiple.php (added)
-
tags/3.3.1/components/selectmultiple/views (added)
-
tags/3.3.1/components/selectmultiple/views/field.tpl.php (added)
-
tags/3.3.1/components/selectmultiple/views/form.tpl.php (added)
-
tags/3.3.1/components/simplemedia (added)
-
tags/3.3.1/components/simplemedia/JustField_SimpleMedia.php (added)
-
tags/3.3.1/components/simplemedia/assets (added)
-
tags/3.3.1/components/simplemedia/assets/jcf-delimage.png (added)
-
tags/3.3.1/components/simplemedia/assets/jcf-noimage100x77.jpg (added)
-
tags/3.3.1/components/simplemedia/assets/simplemedia-modal.js (added)
-
tags/3.3.1/components/simplemedia/assets/simplemedia.css (added)
-
tags/3.3.1/components/table (added)
-
tags/3.3.1/components/table/JustField_Table.php (added)
-
tags/3.3.1/components/table/table.css (added)
-
tags/3.3.1/components/table/table.js (added)
-
tags/3.3.1/components/textarea (added)
-
tags/3.3.1/components/textarea/JustField_Textarea.php (added)
-
tags/3.3.1/controllers (added)
-
tags/3.3.1/controllers/AdminController.php (added)
-
tags/3.3.1/controllers/FieldController.php (added)
-
tags/3.3.1/controllers/FieldsetController.php (added)
-
tags/3.3.1/controllers/ImportExportController.php (added)
-
tags/3.3.1/controllers/MigrateController.php (added)
-
tags/3.3.1/controllers/PostTypeController.php (added)
-
tags/3.3.1/controllers/SettingsController.php (added)
-
tags/3.3.1/controllers/TaxonomyController.php (added)
-
tags/3.3.1/core (added)
-
tags/3.3.1/core/Autoload.php (added)
-
tags/3.3.1/core/Controller.php (added)
-
tags/3.3.1/core/DataLayer.php (added)
-
tags/3.3.1/core/DataLayerFactory.php (added)
-
tags/3.3.1/core/JustField.php (added)
-
tags/3.3.1/core/JustFieldFactory.php (added)
-
tags/3.3.1/core/Migration.php (added)
-
tags/3.3.1/core/Model.php (added)
-
tags/3.3.1/core/PluginLoader.php (added)
-
tags/3.3.1/core/Singleton.php (added)
-
tags/3.3.1/functions (added)
-
tags/3.3.1/functions/helpers.php (added)
-
tags/3.3.1/just-custom-fields.php (added)
-
tags/3.3.1/languages (added)
-
tags/3.3.1/migrations (added)
-
tags/3.3.1/migrations/m3x000.php (added)
-
tags/3.3.1/migrations/m3x100.php (added)
-
tags/3.3.1/models (added)
-
tags/3.3.1/models/DBDataLayer.php (added)
-
tags/3.3.1/models/Field.php (added)
-
tags/3.3.1/models/Fieldset.php (added)
-
tags/3.3.1/models/FieldsetVisibility.php (added)
-
tags/3.3.1/models/FilesDataLayer.php (added)
-
tags/3.3.1/models/ImportExport.php (added)
-
tags/3.3.1/models/Migrate.php (added)
-
tags/3.3.1/models/Settings.php (added)
-
tags/3.3.1/models/Shortcodes.php (added)
-
tags/3.3.1/readme.txt (added)
-
tags/3.3.1/screenshot-1.png (added)
-
tags/3.3.1/screenshot-2.png (added)
-
tags/3.3.1/views (added)
-
tags/3.3.1/views/_footer.php (added)
-
tags/3.3.1/views/_header.php (added)
-
tags/3.3.1/views/_notices.php (added)
-
tags/3.3.1/views/_tabs.php (added)
-
tags/3.3.1/views/admin (added)
-
tags/3.3.1/views/admin/index.php (added)
-
tags/3.3.1/views/fields (added)
-
tags/3.3.1/views/fields/collection.php (added)
-
tags/3.3.1/views/fields/form.php (added)
-
tags/3.3.1/views/fieldsets (added)
-
tags/3.3.1/views/fieldsets/_taxonomy_meta_box.php (added)
-
tags/3.3.1/views/fieldsets/form.php (added)
-
tags/3.3.1/views/fieldsets/index.php (added)
-
tags/3.3.1/views/fieldsets/visibility (added)
-
tags/3.3.1/views/fieldsets/visibility/form.php (added)
-
tags/3.3.1/views/fieldsets/visibility/rules.php (added)
-
tags/3.3.1/views/fieldsets/visibility/taxonomies_list.php (added)
-
tags/3.3.1/views/fieldsets/visibility/templates_list.php (added)
-
tags/3.3.1/views/fieldsets/visibility/terms_list.php (added)
-
tags/3.3.1/views/import_export (added)
-
tags/3.3.1/views/import_export/_fields.php (added)
-
tags/3.3.1/views/import_export/export.php (added)
-
tags/3.3.1/views/import_export/import.php (added)
-
tags/3.3.1/views/import_export/index.php (added)
-
tags/3.3.1/views/migrate (added)
-
tags/3.3.1/views/migrate/index.php (added)
-
tags/3.3.1/views/migrate/upgraded.php (added)
-
tags/3.3.1/views/settings (added)
-
tags/3.3.1/views/settings/index.php (added)
-
tags/3.3.1/views/shortcodes (added)
-
tags/3.3.1/views/shortcodes/modal.php (added)
-
trunk/components/simplemedia/JustField_SimpleMedia.php (modified) (2 diffs)
-
trunk/components/textarea/JustField_Textarea.php (modified) (4 diffs)
-
trunk/just-custom-fields.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/views/fieldsets/form.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
just-custom-fields/trunk/components/simplemedia/JustField_SimpleMedia.php
r1646707 r2031477 177 177 { 178 178 if ( empty($this->entry) ) return ''; 179 180 $size = isset($args['size'])? $args['size'] : 'thumbnail'; 181 $value = wp_get_attachment_image($this->entry, $size); 179 180 $imagesizes = wp_get_attachment_image_sizes($this->entry); 181 if ( !empty($imagesizes) ) { 182 // assume this is an image. 183 $size = isset($args['size'])? $args['size'] : 'thumbnail'; 184 $value = wp_get_attachment_image($this->entry, $size); 185 } else { 186 // generate a file link. 187 $link = wp_get_attachment_url($this->entry); 188 $value = "<a href=\"{$link}\" target=\"_blank\">" . basename($link) . "</a>"; 189 } 182 190 183 191 return $args['before_value'] . $value . $args['after_value']; … … 185 193 186 194 } 187 ?> -
just-custom-fields/trunk/components/textarea/JustField_Textarea.php
r1646707 r2031477 13 13 class JustField_Textarea extends core\JustField 14 14 { 15 16 15 public function __construct() 17 16 { … … 26 25 public function field() 27 26 { 27 $adv_buttons = 'bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,spellchecker,fullscreen,wp_adv'; 28 28 ?> 29 29 <div id="jcf_field-<?php echo $this->id; ?>" class="jcf_edit_field <?php echo $this->fieldOptions['classname']; ?>"> … … 31 31 <?php echo $this->fieldOptions['before_title'] . esc_html($this->instance['title']) . $this->fieldOptions['after_title']; ?> 32 32 <?php 33 if ( !empty($this->instance['editor']) ) : // check editor 34 33 // In v5 with gutenberg editor is not working inside the collection. 34 global $wp_version; 35 if ( !empty($this->instance['editor']) 36 && !($this->collectionId && 5 <= (int)$GLOBALS['wp_version']) 37 ) : // check editor 35 38 ob_start(); 36 39 /** … … 45 48 'quicktags' => false, 46 49 'tinymce' => array( 47 'theme_advanced_buttons1' => 'bold,italic,strikethrough,|,bullist,numlist,blockquote,|,justifyleft,justifycenter,justifyright,|,link,unlink,|,spellchecker,fullscreen,wp_adv',50 'theme_advanced_buttons1' => $adv_buttons, 48 51 ), 49 52 )); -
just-custom-fields/trunk/just-custom-fields.php
r1646707 r2031477 7 7 Author: JustCoded / Alex Prokopenko 8 8 Author URI: http://justcoded.com/ 9 Version: 3.3 9 Version: 3.3.1 10 10 */ 11 11 define('JCF_ROOT', dirname(__FILE__)); … … 23 23 */ 24 24 const TEXTDOMAIN = 'just-custom-fields'; 25 const VERSION = '3.30 0';25 const VERSION = '3.301'; 26 26 27 27 /** -
just-custom-fields/trunk/readme.txt
r1996488 r2031477 7 7 Author URI: http://justcoded.com/ 8 8 Requires at least: 4.7 9 Tested up to: 5.0. 19 Tested up to: 5.0.3 10 10 Stable tag: trunk 11 11 License: GNU General Public License v2 … … 85 85 86 86 == Changelog == 87 * Version 3.3.1 - 15 February 2019 88 * Bug: Simplemedia shortcode do not display a link if it's not an image. 89 * Hotfix: Disabled Textarea editors inside collections for WordPress 5+, because tinyMCE is not working there. 90 * Note: Added a note that visibility rules are not working with a Gutenberg plugin. 87 91 * Version 3.3 - 26 April 2017 88 92 * New feature: Taxonomy term custom fields! -
just-custom-fields/trunk/views/fieldsets/form.php
r1646707 r2031477 53 53 </h4> 54 54 <div id="visibility" class="<?php echo !empty($fieldset['visibility_rules']) ? '' : 'hidden' ?>"> 55 <em>* Visibility rules don't work with a new Gutenberg editor.</em> 55 56 <?php if( !empty($fieldset['visibility_rules']) ): ?> 56 57 <?php $this->_render('fieldsets/visibility/rules', array(
Note: See TracChangeset
for help on using the changeset viewer.