Changeset 827806
- Timestamp:
- 12/24/2013 02:43:57 AM (12 years ago)
- Location:
- multiple-gallery-on-post/trunk
- Files:
-
- 6 edited
-
admin/admin.css (modified) (2 diffs)
-
admin/images/draggable.png (modified) (previous)
-
admin/options.php (modified) (1 diff)
-
functions.php (modified) (1 diff)
-
multiple-gallery-on-post.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multiple-gallery-on-post/trunk/admin/admin.css
r806114 r827806 37 37 position: relative; 38 38 margin-bottom: 12px; 39 cursor: move;39 40 40 /* background: none #f4f4f4; */ 41 41 background: rgba(230,230,230, 0.5); … … 43 43 44 44 .drag-icon { 45 background: url(images/draggable.png) no-repeat 0px 0pxtransparent;45 background: url(images/draggable.png) no-repeat 6px center transparent; 46 46 position: absolute; 47 width: 20px; 48 height: 20px; 49 top: 50%; 50 margin-top: -10px; 51 left: 6px; 47 width: 25px; 48 height: 100%; 49 top: 0; 50 margin-top: 0; 51 left: 0; 52 cursor: move; 53 } 54 55 .drag-icon:hover{ 56 background: url(images/draggable.png) no-repeat -14px center transparent; 52 57 } 53 58 -
multiple-gallery-on-post/trunk/admin/options.php
r806538 r827806 155 155 } 156 156 157 $('.sortable-list').sortable( );157 $('.sortable-list').sortable({handle: '.drag-icon'}); 158 158 mgop_apply_delete($('.sortable-list')); 159 159 -
multiple-gallery-on-post/trunk/functions.php
r806538 r827806 141 141 $attachments = array(); 142 142 foreach($metavalue as $post_id){ 143 $ post= get_post($post_id);144 $ post->full = wp_get_attachment_image_src($post_id, 'full');145 $ post->thumb = wp_get_attachment_image_src($post_id, 'thumbnail');146 $ post->post_alt = trim(strip_tags( get_post_meta($post_id, '_wp_attachment_image_alt', true) ));143 $img = get_post($post_id); 144 $img->full = wp_get_attachment_image_src($post_id, 'full'); 145 $img->thumb = wp_get_attachment_image_src($post_id, 'thumbnail'); 146 $img->post_alt = trim(strip_tags( get_post_meta($post_id, '_wp_attachment_image_alt', true) )); 147 147 148 148 $args = array( 149 '@mgop_image_full_url' => $ post->full[0],150 '@mgop_image_full_width' => $ post->full[1],151 '@mgop_image_full_height' => $ post->full[2],152 '@mgop_image_thumb_url' => $ post->thumb[0],153 '@mgop_image_thumb_width' => $ post->thumb[1],154 '@mgop_image_thumb_height' => $ post->thumb[2],155 '@mgop_image_caption' => $ post->post_excerpt,156 '@mgop_image_alt' => $ post->post_alt,157 '@mgop_image_description' => $ post->post_content,149 '@mgop_image_full_url' => $img->full[0], 150 '@mgop_image_full_width' => $img->full[1], 151 '@mgop_image_full_height' => $img->full[2], 152 '@mgop_image_thumb_url' => $img->thumb[0], 153 '@mgop_image_thumb_width' => $img->thumb[1], 154 '@mgop_image_thumb_height' => $img->thumb[2], 155 '@mgop_image_caption' => $img->post_excerpt, 156 '@mgop_image_alt' => $img->post_alt, 157 '@mgop_image_description' => $img->post_content, 158 158 ); 159 159 $mgop_list .= strtr($template_list, $args); -
multiple-gallery-on-post/trunk/multiple-gallery-on-post.php
r806538 r827806 4 4 * Plugin URI: http://iwayanwirka.duststone.com/multiple-gallery-on-post/ 5 5 * Description: Very simple gallery plugin embeded on post as metabox, be able to add multiple metaboxes in one post with ability to insert multiple images for each. 6 * Version: 0. 36 * Version: 0.4 7 7 * Author: I Wayan Wirka 8 8 * Author URI: http://iwayanwirka.duststone.com/ -
multiple-gallery-on-post/trunk/readme.txt
r806538 r827806 3 3 Tags: gallery, multiple images, multiple metaboxes, multiple galeries 4 4 Requires at least: 3.4.0 5 Tested up to: 3. 7.15 Tested up to: 3.8 6 6 Stable tag: trunk 7 7 License: GPLv2 … … 32 32 33 33 == Changelog == 34 = 0.4 = 35 * Fix shortable trigger on setting page. 36 * Fix for multiple shortcode in one post 37 34 38 = 0.3 = 35 39 * Fix registering style plugin to wp_head() instead of wp_footer().
Note: See TracChangeset
for help on using the changeset viewer.