Version Description
- Removed all shortcodes in an effort to boost compatibility
Download this release
Release Info
| Developer | jchristopher |
| Plugin | |
| Version | 1.0.4.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.4 to 1.0.4.1
- attachments.php +16 -16
- readme.txt +4 -1
attachments.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Attachments
|
| 4 |
Plugin URI: http://mondaybynoon.com/wordpress-attachments/
|
| 5 |
Description: Attachments gives the ability to append any number of Media Library items to Pages and Posts
|
| 6 |
-
Version: 1.0.4
|
| 7 |
Author: Jonathan Christopher
|
| 8 |
Author URI: http://jchristopher.me
|
| 9 |
*/
|
|
@@ -80,7 +80,7 @@ function attachments_add()
|
|
| 80 |
</ul>
|
| 81 |
|
| 82 |
<div id="attachments-list">
|
| 83 |
-
<input type="hidden" name="attachments_nonce" id="attachments_nonce" value="
|
| 84 |
<ul>
|
| 85 |
<?php
|
| 86 |
if( !empty($_GET['post']) )
|
|
@@ -99,31 +99,31 @@ function attachments_add()
|
|
| 99 |
<li class="attachments-file">
|
| 100 |
<h2>
|
| 101 |
<a href="#" class="attachment-handle">
|
| 102 |
-
<span class="attachment-handle-icon"><img src="
|
| 103 |
</a>
|
| 104 |
-
<span class="attachment-name"
|
| 105 |
<span class="attachment-delete"><a href="#">Delete</a></span>
|
| 106 |
</h2>
|
| 107 |
<div class="attachments-fields">
|
| 108 |
-
<div class="textfield" id="field_attachment_title_
|
| 109 |
-
<label for="attachment_title_
|
| 110 |
-
<input type="text" id="attachment_title_
|
| 111 |
</div>
|
| 112 |
-
<div class="textfield" id="field_attachment_caption_
|
| 113 |
-
<label for="attachment_caption_
|
| 114 |
-
<input type="text" id="attachment_caption_
|
| 115 |
</div>
|
| 116 |
</div>
|
| 117 |
<div class="attachments-data">
|
| 118 |
-
<input type="hidden" name="attachment_name_
|
| 119 |
-
<input type="hidden" name="attachment_location_
|
| 120 |
-
<input type="hidden" name="attachment_mime_
|
| 121 |
-
<input type="hidden" name="attachment_id_
|
| 122 |
-
<input type="hidden" class="attachment_order" name="attachment_order_
|
| 123 |
</div>
|
| 124 |
<div class="attachment-thumbnail">
|
| 125 |
<span class="attachments-thumbnail">
|
| 126 |
-
|
| 127 |
</span>
|
| 128 |
</div>
|
| 129 |
</li>
|
| 3 |
Plugin Name: Attachments
|
| 4 |
Plugin URI: http://mondaybynoon.com/wordpress-attachments/
|
| 5 |
Description: Attachments gives the ability to append any number of Media Library items to Pages and Posts
|
| 6 |
+
Version: 1.0.4.1
|
| 7 |
Author: Jonathan Christopher
|
| 8 |
Author URI: http://jchristopher.me
|
| 9 |
*/
|
| 80 |
</ul>
|
| 81 |
|
| 82 |
<div id="attachments-list">
|
| 83 |
+
<input type="hidden" name="attachments_nonce" id="attachments_nonce" value="<?php echo wp_create_nonce( plugin_basename(__FILE__) ); ?>" />
|
| 84 |
<ul>
|
| 85 |
<?php
|
| 86 |
if( !empty($_GET['post']) )
|
| 99 |
<li class="attachments-file">
|
| 100 |
<h2>
|
| 101 |
<a href="#" class="attachment-handle">
|
| 102 |
+
<span class="attachment-handle-icon"><img src="<?php echo WP_PLUGIN_URL; ?>/attachments/images/handle.gif" alt="Drag" /></span>
|
| 103 |
</a>
|
| 104 |
+
<span class="attachment-name"><?php echo $attachment['name']; ?></span>
|
| 105 |
<span class="attachment-delete"><a href="#">Delete</a></span>
|
| 106 |
</h2>
|
| 107 |
<div class="attachments-fields">
|
| 108 |
+
<div class="textfield" id="field_attachment_title_<?php echo $attachment_index ; ?>">
|
| 109 |
+
<label for="attachment_title_<?php echo $attachment_index; ?>">Title</label>
|
| 110 |
+
<input type="text" id="attachment_title_<?php echo $attachment_index; ?>" name="attachment_title_<?php echo $attachment_index; ?>" value="<?php echo $attachment['title']; ?>" size="20" />
|
| 111 |
</div>
|
| 112 |
+
<div class="textfield" id="field_attachment_caption_<?php echo $attachment_index; ?>">
|
| 113 |
+
<label for="attachment_caption_<?php echo $attachment_index; ?>">Caption</label>
|
| 114 |
+
<input type="text" id="attachment_caption_<?php echo $attachment_index; >" name="attachment_caption_<?php echo $attachment_index; ?>" value="<?php echo $attachment['caption']; ?>" size="20" />
|
| 115 |
</div>
|
| 116 |
</div>
|
| 117 |
<div class="attachments-data">
|
| 118 |
+
<input type="hidden" name="attachment_name_<?php echo $attachment_index; ?>" id="attachment_name_<?php echo $attachment_index; ?>" value="<?php echo $attachment['name']; ?>" />
|
| 119 |
+
<input type="hidden" name="attachment_location_<?php echo $attachment_index; ?>" id="attachment_location_<?php echo $attachment_index; ?>" value="<?php echo $attachment['location']; ?>" />
|
| 120 |
+
<input type="hidden" name="attachment_mime_<?php echo $attachment_index; ?>" id="attachment_mime_<?php echo $attachment_index; ?>" value="<?php echo $attachment['mime']; ?>" />
|
| 121 |
+
<input type="hidden" name="attachment_id_<?php echo $attachment_index; ?>" id="attachment_id_<?php echo $attachment_index; ?>" value="<?php echo $attachment['id']; ?>" />
|
| 122 |
+
<input type="hidden" class="attachment_order" name="attachment_order_<?php echo $attachment_index; ?>" id="attachment_order_<?php echo $attachment_index; ?>" value="<?php echo $attachment['order']; ?>" />
|
| 123 |
</div>
|
| 124 |
<div class="attachment-thumbnail">
|
| 125 |
<span class="attachments-thumbnail">
|
| 126 |
+
<?php echo wp_get_attachment_image( $attachment['id'], array(80, 60), true ); ?>
|
| 127 |
</span>
|
| 128 |
</div>
|
| 129 |
</li>
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
|
|
| 4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 2.9
|
| 7 |
-
Stable tag: 1.0.4
|
| 8 |
|
| 9 |
Attachments allows you to append any number of items from your WordPress Media Library to Posts and Pages
|
| 10 |
|
|
@@ -33,6 +33,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
| 33 |
|
| 34 |
== Changelog ==
|
| 35 |
|
|
|
|
|
|
|
|
|
|
| 36 |
= 1.0.4 =
|
| 37 |
* Fixed a potential error resulting in PHP issuing a Warning when trying to attach Attachments
|
| 38 |
|
| 4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
| 5 |
Requires at least: 2.8
|
| 6 |
Tested up to: 2.9
|
| 7 |
+
Stable tag: 1.0.4.1
|
| 8 |
|
| 9 |
Attachments allows you to append any number of items from your WordPress Media Library to Posts and Pages
|
| 10 |
|
| 33 |
|
| 34 |
== Changelog ==
|
| 35 |
|
| 36 |
+
= 1.0.4.1 =
|
| 37 |
+
* Removed all shortcodes in an effort to boost compatibility
|
| 38 |
+
|
| 39 |
= 1.0.4 =
|
| 40 |
* Fixed a potential error resulting in PHP issuing a Warning when trying to attach Attachments
|
| 41 |
|
