Changeset 2579975
- Timestamp:
- 08/08/2021 04:56:55 PM (5 years ago)
- Location:
- magic-meta-box/trunk
- Files:
-
- 8 edited
-
includes/repeated-fields/textarea.php (modified) (1 diff)
-
includes/repeater-fields.php (modified) (1 diff)
-
js/meta-box-file.js (modified) (2 diffs)
-
js/meta-box-image.js (modified) (2 diffs)
-
js/metabox-gallery.js (modified) (2 diffs)
-
js/metabox.js (modified) (2 diffs)
-
js/show-hide-metabox.js (modified) (1 diff)
-
magic-metabox.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
magic-meta-box/trunk/includes/repeated-fields/textarea.php
r1779994 r2579975 5 5 <div class="contentMetaDesc"> 6 6 <textarea class="textarea" name="<?php echo $field_id ?>" rows="5" cols="50" 7 <?php if(isset($opt['placeholder']) && !empty($opt['placeholder'])){ ?> placeholder="<?php echo $opt['placeholder'] ?>" <?php } ?>> 8 <?php echo esc_attr($value_field); ?> 9 </textarea> 7 <?php if(isset($opt['placeholder']) && !empty($opt['placeholder'])){ ?> placeholder="<?php echo $opt['placeholder'] ?>" <?php } ?>><?php echo esc_attr($value_field); ?></textarea> 10 8 </div> 11 9 <?php -
magic-meta-box/trunk/includes/repeater-fields.php
r1780015 r2579975 2 2 $fieldsArray = array('text', 'password', 'textarea', 'url', 'email', 'date', 'DateTime', 'time', 'num', 'checkbox', 'multicheckbox', 'radio', 'select', 'multiselect', 'color', 'image', 'gallery', 'file', 'embed', 'slider', 'editor'); 3 3 $count_repeat = 0; 4 $data = (self::gsmb_get($id) == null)? get_post_meta($post->ID,$id,true) : array(); 4 $data = (self::gsmb_get($id) == null)? get_post_meta($post->ID,$id,true) : array(); 5 $data = $data ? $data : array(); 5 6 ?> 6 7 <div class="containerAddNew"> -
magic-meta-box/trunk/js/meta-box-file.js
r1151081 r2579975 7 7 var meta_file_frame; 8 8 // Runs when the image button is clicked. 9 $('.meta-file-button'). live('click', function(e){9 $('.meta-file-button').on('click', function(e){ 10 10 $this = $(this); 11 11 console.log('here'); … … 51 51 }); 52 52 //remove Image 53 $('.metaboxImage .removeImage'). live('click',function(){53 $('.metaboxImage .removeImage').on('click',function(){ 54 54 $(this).parents('.imageUploadMeta').find('.metaboxImageTitle p').html(''); 55 55 $(this).parents('.imageUploadMeta').find('img').slideUp('normal',function(){ -
magic-meta-box/trunk/js/meta-box-image.js
r1142770 r2579975 6 6 var meta_image_frame; 7 7 // Runs when the image button is clicked. 8 $('.meta-image-button'). live('click', function(e){8 $('.meta-image-button').on('click', function(e){ 9 9 $this = $(this); 10 10 // Prevents the default action from occuring. … … 38 38 }); 39 39 //remove Image 40 $('.metaboxImage .removeImage'). live('click',function(){40 $('.metaboxImage .removeImage').on('click',function(){ 41 41 $(this).parents('.imageUploadMeta').find('img').slideUp('normal',function(){ 42 42 $(this).parents('.imageUploadMeta').find('.metaboxImage').css({'display':'none'}); -
magic-meta-box/trunk/js/metabox-gallery.js
r1142770 r2579975 1 1 jQuery(document).ready(function($){ 2 2 // The click event for the gallery manage button 3 $('.manage_gallery'). live('click', function() {3 $('.manage_gallery').on('click', function() { 4 4 $this = $(this); 5 5 // Create the shortcode from the current ids in the hidden field … … 41 41 }); 42 42 }); 43 $('.clear_gallery'). live('click', function() {43 $('.clear_gallery').on('click', function() { 44 44 $this = $(this); 45 45 $this.closest('.metaboxGallery').find('.galleryIDs').val(''); -
magic-meta-box/trunk/js/metabox.js
r1930168 r2579975 143 143 /* Slider End */ 144 144 /* Embed Start */ 145 $('.embedButton'). live('click', function(){145 $('.embedButton').on('click', function(){ 146 146 $(this).closest('.embedContainer').find('.embedIframe').html($(this).closest('.embedContainer').find('.embed').val()); 147 147 }); … … 367 367 /* Add New Repeat Box End */ 368 368 /* Remove Repeat Box Start */ 369 $(".removeMeta"). live('click', function() {369 $(".removeMeta").on('click', function() { 370 370 var number_repeat = $(this).data('number'); 371 371 var number_metabox = $(this).data('number_metabox'); -
magic-meta-box/trunk/js/show-hide-metabox.js
r1166402 r2579975 81 81 $.each(gs_show_hide.show[k], function( index, value ) { 82 82 if(index != 'template' && index != 'post_format'){ 83 $('#' + index + 'checklist input[type="checkbox"]'). live('click', function(){83 $('#' + index + 'checklist input[type="checkbox"]').on('click', function(){ 84 84 showHideMetaBox(); 85 85 }); -
magic-meta-box/trunk/magic-metabox.php
r1930168 r2579975 4 4 Plugin URI: https://wordpress.org/plugins/magic-meta-box/ 5 5 Description: Easy To Create Metabox For Your Theme 6 Version: 2.4. 16 Version: 2.4.2 7 7 Author: Abdelrhman ElGreatly 8 8 License: GPLv2
Note: See TracChangeset
for help on using the changeset viewer.