Plugin Directory

Changeset 827806


Ignore:
Timestamp:
12/24/2013 02:43:57 AM (12 years ago)
Author:
wirka
Message:

Update version 0.4

Location:
multiple-gallery-on-post/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • multiple-gallery-on-post/trunk/admin/admin.css

    r806114 r827806  
    3737    position: relative;
    3838    margin-bottom: 12px;
    39     cursor: move;
     39   
    4040    /* background: none #f4f4f4; */
    4141    background: rgba(230,230,230, 0.5);
     
    4343
    4444.drag-icon {
    45     background: url(images/draggable.png) no-repeat 0px 0px transparent;
     45    background: url(images/draggable.png) no-repeat 6px center transparent;
    4646    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;
    5257}
    5358
  • multiple-gallery-on-post/trunk/admin/options.php

    r806538 r827806  
    155155                }
    156156               
    157                 $('.sortable-list').sortable();
     157                $('.sortable-list').sortable({handle: '.drag-icon'});
    158158                mgop_apply_delete($('.sortable-list'));
    159159               
  • multiple-gallery-on-post/trunk/functions.php

    r806538 r827806  
    141141        $attachments = array();
    142142        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) ));
    147147           
    148148            $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,
    158158            );
    159159            $mgop_list .= strtr($template_list, $args);
  • multiple-gallery-on-post/trunk/multiple-gallery-on-post.php

    r806538 r827806  
    44 * Plugin URI: http://iwayanwirka.duststone.com/multiple-gallery-on-post/
    55 * 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.3
     6 * Version: 0.4
    77 * Author: I Wayan Wirka
    88 * Author URI: http://iwayanwirka.duststone.com/
  • multiple-gallery-on-post/trunk/readme.txt

    r806538 r827806  
    33Tags: gallery, multiple images, multiple metaboxes, multiple galeries
    44Requires at least: 3.4.0
    5 Tested up to: 3.7.1
     5Tested up to: 3.8
    66Stable tag: trunk
    77License: GPLv2
     
    3232
    3333== Changelog ==
     34= 0.4 =
     35* Fix shortable trigger on setting page.
     36* Fix for multiple shortcode in one post
     37
    3438= 0.3 =
    3539* Fix registering style plugin to wp_head() instead of wp_footer().
Note: See TracChangeset for help on using the changeset viewer.