WordPress.org

Plugin Directory

Changeset 627684


Ignore:
Timestamp:
11/20/12 13:09:52 (17 months ago)
Author:
eskapism
Message:

version 1.1.5

Location:
simple-fields
Files:
3 edited
18 copied

Legend:

Unmodified
Added
Removed
  • simple-fields/tags/1.1.5/readme.txt

    r625129 r627684  
    55Requires at least: 3.3.1 
    66Tested up to: 3.5 
    7 Stable tag: 1.1.4 
     7Stable tag: 1.1.5 
    88 
    99Add more advanced custom fields types to your edit post page. Field can be of several types, including textarea, checkbox, radio buttons, files and color picker. 
     
    164164 
    165165== Changelog == 
     166 
     167#### Version 1.1.5 
     168- Added "view" link to file field, so you can view images/attachments/pdfs/whatever directly from the edit post screen. 
    166169 
    167170#### Version 1.1.4 
  • simple-fields/tags/1.1.5/simple_fields.php

    r625129 r627684  
    44Plugin URI: http://simple-fields.com 
    55Description: Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. 
    6 Version: 1.1.4 
     6Version: 1.1.5 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5555        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    5656        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
    57         define( "SIMPLE_FIELDS_VERSION", "1.1.4"); 
     57        define( "SIMPLE_FIELDS_VERSION", "1.1.5"); 
    5858 
    5959        load_plugin_textdomain( 'simple-fields', null, basename(dirname(__FILE__)).'/languages/'); 
     
    713713                        $image_html = ""; 
    714714                        $image_name = ""; 
     715                        $view_file_url = ""; 
    715716                        if ($attachment_id) { 
    716717                            $image_post = get_post($attachment_id); 
     
    723724                                $image_name = esc_html($image_post->post_title); 
    724725                            } 
     726                            $view_file_url = wp_get_attachment_url($attachment_id); 
    725727                        } 
    726728                        $class = ""; 
     
    733735                            echo "<label>{$field["name"]}</label>"; 
    734736                            echo $description; 
    735                             //echo $description; 
    736737                            echo "</div>"; 
    737738 
     
    745746     
    746747                                $field_unique_id_esc = rawurlencode($field_unique_id); 
    747                                 // $file_url = "media-upload.php?simple_fields_dummy=1&simple_fields_action=select_file&simple_fields_file_field_unique_id=$field_unique_id_esc&post_id=$post_id&TB_iframe=true"; 
    748748                                $file_url = get_bloginfo('wpurl') . "/wp-admin/media-upload.php?simple_fields_dummy=1&simple_fields_action=select_file&simple_fields_file_field_unique_id=$field_unique_id_esc&post_id=$current_post_id&TB_iframe=true"; 
    749                                 echo "<a class='thickbox simple-fields-metabox-field-file-select' href='$file_url'>".__('Select file', 'simple-fields')."</a>"; 
     749                                 
     750                                echo "<a class='simple-fields-metabox-field-file-view' href='$view_file_url'>".__('View', 'simple-fields')."</a>"; 
     751                                echo "<a class='thickbox simple-fields-metabox-field-file-select' href='$file_url'>".__('Select', 'simple-fields')."</a>"; 
    750752                                 
    751753                                $class = ($attachment_id) ? " " : " hidden "; 
  • simple-fields/tags/1.1.5/styles-edit-post.css

    r625129 r627684  
    255255    } 
    256256 
    257     .xxxsimple-fields-metabox-field-file-select, 
     257/*  .xxxsimple-fields-metabox-field-file-select,*/ 
    258258    .simple-fields-metabox-field-file-edit, 
    259259    .simple-fields-metabox-field-file-clear { 
     
    275275} 
    276276 
    277 .simple-fields-metabox-field-file-edit, .simple-fields-metabox-field-file-clear, 
     277.simple-fields-metabox-field-file-select, .simple-fields-metabox-field-file-edit, .simple-fields-metabox-field-file-clear, 
    278278.simple-fields-metabox-field-post-clear { 
    279     border-left: 1px solid #555555; 
     279    border-left: 1px solid #ccc; 
    280280    padding-left: 4px; 
    281281    margin-left: 4px; 
    282282} 
    283  
    284283 
    285284/*.simple-fields-bonny-plugins-inner-sidebar { 
  • simple-fields/trunk/readme.txt

    r625129 r627684  
    55Requires at least: 3.3.1 
    66Tested up to: 3.5 
    7 Stable tag: 1.1.4 
     7Stable tag: 1.1.5 
    88 
    99Add more advanced custom fields types to your edit post page. Field can be of several types, including textarea, checkbox, radio buttons, files and color picker. 
     
    164164 
    165165== Changelog == 
     166 
     167#### Version 1.1.5 
     168- Added "view" link to file field, so you can view images/attachments/pdfs/whatever directly from the edit post screen. 
    166169 
    167170#### Version 1.1.4 
  • simple-fields/trunk/simple_fields.php

    r625129 r627684  
    44Plugin URI: http://simple-fields.com 
    55Description: Add groups of textareas, input-fields, dropdowns, radiobuttons, checkboxes and files to your edit post screen. 
    6 Version: 1.1.4 
     6Version: 1.1.5 
    77Author: Pär Thernström 
    88Author URI: http://eskapism.se/ 
     
    5555        define( "SIMPLE_FIELDS_URL", plugins_url(basename(dirname(__FILE__))). "/"); 
    5656        define( "SIMPLE_FIELDS_NAME", "Simple Fields"); 
    57         define( "SIMPLE_FIELDS_VERSION", "1.1.4"); 
     57        define( "SIMPLE_FIELDS_VERSION", "1.1.5"); 
    5858 
    5959        load_plugin_textdomain( 'simple-fields', null, basename(dirname(__FILE__)).'/languages/'); 
     
    713713                        $image_html = ""; 
    714714                        $image_name = ""; 
     715                        $view_file_url = ""; 
    715716                        if ($attachment_id) { 
    716717                            $image_post = get_post($attachment_id); 
     
    723724                                $image_name = esc_html($image_post->post_title); 
    724725                            } 
     726                            $view_file_url = wp_get_attachment_url($attachment_id); 
    725727                        } 
    726728                        $class = ""; 
     
    733735                            echo "<label>{$field["name"]}</label>"; 
    734736                            echo $description; 
    735                             //echo $description; 
    736737                            echo "</div>"; 
    737738 
     
    745746     
    746747                                $field_unique_id_esc = rawurlencode($field_unique_id); 
    747                                 // $file_url = "media-upload.php?simple_fields_dummy=1&simple_fields_action=select_file&simple_fields_file_field_unique_id=$field_unique_id_esc&post_id=$post_id&TB_iframe=true"; 
    748748                                $file_url = get_bloginfo('wpurl') . "/wp-admin/media-upload.php?simple_fields_dummy=1&simple_fields_action=select_file&simple_fields_file_field_unique_id=$field_unique_id_esc&post_id=$current_post_id&TB_iframe=true"; 
    749                                 echo "<a class='thickbox simple-fields-metabox-field-file-select' href='$file_url'>".__('Select file', 'simple-fields')."</a>"; 
     749                                 
     750                                echo "<a class='simple-fields-metabox-field-file-view' href='$view_file_url'>".__('View', 'simple-fields')."</a>"; 
     751                                echo "<a class='thickbox simple-fields-metabox-field-file-select' href='$file_url'>".__('Select', 'simple-fields')."</a>"; 
    750752                                 
    751753                                $class = ($attachment_id) ? " " : " hidden "; 
  • simple-fields/trunk/styles-edit-post.css

    r625129 r627684  
    255255    } 
    256256 
    257     .xxxsimple-fields-metabox-field-file-select, 
     257/*  .xxxsimple-fields-metabox-field-file-select,*/ 
    258258    .simple-fields-metabox-field-file-edit, 
    259259    .simple-fields-metabox-field-file-clear { 
     
    275275} 
    276276 
    277 .simple-fields-metabox-field-file-edit, .simple-fields-metabox-field-file-clear, 
     277.simple-fields-metabox-field-file-select, .simple-fields-metabox-field-file-edit, .simple-fields-metabox-field-file-clear, 
    278278.simple-fields-metabox-field-post-clear { 
    279     border-left: 1px solid #555555; 
     279    border-left: 1px solid #ccc; 
    280280    padding-left: 4px; 
    281281    margin-left: 4px; 
    282282} 
    283  
    284283 
    285284/*.simple-fields-bonny-plugins-inner-sidebar { 
Note: See TracChangeset for help on using the changeset viewer.