Version Description
- Fixed possible bug with images not thumbnailing properly
- Tabbed media browsing implemented
Download this release
Release Info
| Developer | jchristopher |
| Plugin | |
| Version | 1.0.8 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.7.1 to 1.0.8
- attachments-fr_FR.mo +0 -0
- attachments-fr_FR.po +94 -0
- attachments-pt_BR.mo +0 -0
- attachments-pt_BR.po +6 -9
- attachments.php +14 -4
- css/attachments.css +6 -8
- js/attachments.js +1 -1
- media.php +105 -129
- readme.txt +13 -2
attachments-fr_FR.mo
ADDED
|
Binary file
|
attachments-fr_FR.po
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
msgid ""
|
| 2 |
+
msgstr ""
|
| 3 |
+
"Project-Id-Version: Attachments\n"
|
| 4 |
+
"Report-Msgid-Bugs-To: \n"
|
| 5 |
+
"POT-Creation-Date: 2010-03-21 14:50-0500\n"
|
| 6 |
+
"PO-Revision-Date: 2010-03-21 21:32+0100\n"
|
| 7 |
+
"Last-Translator: \n"
|
| 8 |
+
"Language-Team: Jonathan Christopher <jonathandchr@gmail.com>\n"
|
| 9 |
+
"MIME-Version: 1.0\n"
|
| 10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
| 11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
| 12 |
+
"X-Poedit-KeywordsList: _e;__\n"
|
| 13 |
+
"X-Poedit-Basepath: .\n"
|
| 14 |
+
"X-Poedit-Language: Portuguese\n"
|
| 15 |
+
"X-Poedit-Country: BRAZIL\n"
|
| 16 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
| 17 |
+
"X-Poedit-SearchPath-0: .\n"
|
| 18 |
+
|
| 19 |
+
#: attachments.php:97
|
| 20 |
+
msgid "Users can only see their own attachments"
|
| 21 |
+
msgstr "Les utilisateurs pourront seulement voir leurs propres fichiers attachés."
|
| 22 |
+
|
| 23 |
+
#: attachments.php:102
|
| 24 |
+
msgid "Save"
|
| 25 |
+
msgstr "Enregistrer"
|
| 26 |
+
|
| 27 |
+
#: attachments.php:137
|
| 28 |
+
msgid "Browse Existing"
|
| 29 |
+
msgstr "Parcourir les fichiers attachés existants"
|
| 30 |
+
|
| 31 |
+
#: attachments.php:138
|
| 32 |
+
#: media.php:26
|
| 33 |
+
msgid "Add to Media Library"
|
| 34 |
+
msgstr "Ajouter à la Bibliothèque de Médias"
|
| 35 |
+
|
| 36 |
+
#: attachments.php:160
|
| 37 |
+
msgid "Delete"
|
| 38 |
+
msgstr "Supprimer"
|
| 39 |
+
|
| 40 |
+
#: attachments.php:164
|
| 41 |
+
msgid "Title"
|
| 42 |
+
msgstr "Title"
|
| 43 |
+
|
| 44 |
+
#: attachments.php:168
|
| 45 |
+
msgid "Caption"
|
| 46 |
+
msgstr "Légende"
|
| 47 |
+
|
| 48 |
+
#: attachments.php:205
|
| 49 |
+
#: attachments.php:208
|
| 50 |
+
msgid "Attachments"
|
| 51 |
+
msgstr "Attachments"
|
| 52 |
+
|
| 53 |
+
#: media.php:26
|
| 54 |
+
msgid "Available attachments are listed from your"
|
| 55 |
+
msgstr "Les fichiers attachés disponibles sont listés depuis"
|
| 56 |
+
|
| 57 |
+
#: media.php:26
|
| 58 |
+
msgid "Media Library"
|
| 59 |
+
msgstr "Bibliothèque de Médias"
|
| 60 |
+
|
| 61 |
+
#: media.php:26
|
| 62 |
+
msgid "If you need to upload a new attachment, please close this dialog and use the available"
|
| 63 |
+
msgstr "Si vous avez besoin d'ajouter un nouveau fichier attaché, fermez cette fenêtre et utilisez ceux disponibles"
|
| 64 |
+
|
| 65 |
+
#: media.php:26
|
| 66 |
+
msgid "button"
|
| 67 |
+
msgstr "bouton"
|
| 68 |
+
|
| 69 |
+
#: media.php:27
|
| 70 |
+
msgid "Select/deselect an attachment by clicking its thumbnail. When you're done managing your attachments, click "
|
| 71 |
+
msgstr "Sélectionner / déselectionner un fichier attaché, en cliquant sur sa vignette. Quand vous avez terminé de la gestion de vos ficheirs attachés, cliquez sur"
|
| 72 |
+
|
| 73 |
+
#: media.php:27
|
| 74 |
+
#: media.php:29
|
| 75 |
+
#: media.php:160
|
| 76 |
+
msgid "Apply"
|
| 77 |
+
msgstr "Valider"
|
| 78 |
+
|
| 79 |
+
#: media.php:39
|
| 80 |
+
msgid "Images"
|
| 81 |
+
msgstr "Images"
|
| 82 |
+
|
| 83 |
+
#: media.php:67
|
| 84 |
+
msgid "Videos"
|
| 85 |
+
msgstr "Vidéos"
|
| 86 |
+
|
| 87 |
+
#: media.php:99
|
| 88 |
+
msgid "Documents"
|
| 89 |
+
msgstr "Documents"
|
| 90 |
+
|
| 91 |
+
#: media.php:131
|
| 92 |
+
msgid "Audio"
|
| 93 |
+
msgstr "Audio"
|
| 94 |
+
|
attachments-pt_BR.mo
CHANGED
|
Binary file
|
attachments-pt_BR.po
CHANGED
|
@@ -3,8 +3,8 @@ msgstr ""
|
|
| 3 |
"Project-Id-Version: Attachments\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
"POT-Creation-Date: 2010-03-21 14:50-0500\n"
|
| 6 |
-
"PO-Revision-Date: 2010-03-21
|
| 7 |
-
"Last-Translator:
|
| 8 |
"Language-Team: Jonathan Christopher <jonathandchr@gmail.com>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
|
@@ -26,9 +26,8 @@ msgid "Save"
|
|
| 26 |
msgstr "Salvar"
|
| 27 |
|
| 28 |
#: attachments.php:137
|
| 29 |
-
#, fuzzy
|
| 30 |
msgid "Browse Existing"
|
| 31 |
-
msgstr "
|
| 32 |
|
| 33 |
#: attachments.php:138
|
| 34 |
#: media.php:26
|
|
@@ -38,7 +37,7 @@ msgstr "Adicionar à Biblioteca de Mídia"
|
|
| 38 |
|
| 39 |
#: attachments.php:160
|
| 40 |
msgid "Delete"
|
| 41 |
-
msgstr "
|
| 42 |
|
| 43 |
#: attachments.php:164
|
| 44 |
msgid "Title"
|
|
@@ -54,9 +53,8 @@ msgid "Attachments"
|
|
| 54 |
msgstr "Attachments"
|
| 55 |
|
| 56 |
#: media.php:26
|
| 57 |
-
#, fuzzy
|
| 58 |
msgid "Available attachments are listed from your"
|
| 59 |
-
msgstr "
|
| 60 |
|
| 61 |
#: media.php:26
|
| 62 |
#, fuzzy
|
|
@@ -64,9 +62,8 @@ msgid "Media Library"
|
|
| 64 |
msgstr "Biblioteca de Mídia"
|
| 65 |
|
| 66 |
#: media.php:26
|
| 67 |
-
#, fuzzy
|
| 68 |
msgid "If you need to upload a new attachment, please close this dialog and use the available"
|
| 69 |
-
msgstr "Se você precisar fazer upload de um novo anexo, por favor feche esta janela e
|
| 70 |
|
| 71 |
#: media.php:26
|
| 72 |
msgid "button"
|
| 3 |
"Project-Id-Version: Attachments\n"
|
| 4 |
"Report-Msgid-Bugs-To: \n"
|
| 5 |
"POT-Creation-Date: 2010-03-21 14:50-0500\n"
|
| 6 |
+
"PO-Revision-Date: 2010-03-21 21:23+0100\n"
|
| 7 |
+
"Last-Translator: \n"
|
| 8 |
"Language-Team: Jonathan Christopher <jonathandchr@gmail.com>\n"
|
| 9 |
"MIME-Version: 1.0\n"
|
| 10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
| 26 |
msgstr "Salvar"
|
| 27 |
|
| 28 |
#: attachments.php:137
|
|
|
|
| 29 |
msgid "Browse Existing"
|
| 30 |
+
msgstr "Pesquisar os anexos existentes"
|
| 31 |
|
| 32 |
#: attachments.php:138
|
| 33 |
#: media.php:26
|
| 37 |
|
| 38 |
#: attachments.php:160
|
| 39 |
msgid "Delete"
|
| 40 |
+
msgstr "Apagar"
|
| 41 |
|
| 42 |
#: attachments.php:164
|
| 43 |
msgid "Title"
|
| 53 |
msgstr "Attachments"
|
| 54 |
|
| 55 |
#: media.php:26
|
|
|
|
| 56 |
msgid "Available attachments are listed from your"
|
| 57 |
+
msgstr "Anexos disponíveis estão listados desde"
|
| 58 |
|
| 59 |
#: media.php:26
|
| 60 |
#, fuzzy
|
| 62 |
msgstr "Biblioteca de Mídia"
|
| 63 |
|
| 64 |
#: media.php:26
|
|
|
|
| 65 |
msgid "If you need to upload a new attachment, please close this dialog and use the available"
|
| 66 |
+
msgstr "Se você precisar fazer upload de um novo anexo, por favor feche esta janela e use o disponível"
|
| 67 |
|
| 68 |
#: media.php:26
|
| 69 |
msgid "button"
|
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.
|
| 7 |
Author: Jonathan Christopher
|
| 8 |
Author URI: http://mondaybynoon.com/
|
| 9 |
*/
|
|
@@ -134,8 +134,16 @@ function attachments_add()
|
|
| 134 |
<div id="attachments-inner">
|
| 135 |
|
| 136 |
<ul id="attachments-actions">
|
| 137 |
-
<li id="attachments-browse"
|
| 138 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
</ul>
|
| 140 |
|
| 141 |
<div id="attachments-list">
|
|
@@ -175,7 +183,7 @@ function attachments_add()
|
|
| 175 |
</div>
|
| 176 |
<div class="attachment-thumbnail">
|
| 177 |
<span class="attachments-thumbnail">
|
| 178 |
-
<?php echo wp_get_attachment_image( $attachment['id'], array(80, 60),
|
| 179 |
</span>
|
| 180 |
</div>
|
| 181 |
</li>
|
|
@@ -384,6 +392,8 @@ function attachments_get_attachments( $post_id=null )
|
|
| 384 |
|
| 385 |
function attachments_init()
|
| 386 |
{
|
|
|
|
|
|
|
| 387 |
wp_enqueue_style('attachments', WP_PLUGIN_URL . '/attachments/css/attachments.css');
|
| 388 |
wp_enqueue_script('attachments', WP_PLUGIN_URL . '/attachments/js/attachments.js');
|
| 389 |
|
| 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.8
|
| 7 |
Author: Jonathan Christopher
|
| 8 |
Author URI: http://mondaybynoon.com/
|
| 9 |
*/
|
| 134 |
<div id="attachments-inner">
|
| 135 |
|
| 136 |
<ul id="attachments-actions">
|
| 137 |
+
<li id="attachments-browse">
|
| 138 |
+
<a href="<?php echo WP_PLUGIN_URL . '/attachments/media.php'; ?>?width=640&height=600" class="button thickbox button-highlighted browse-attachments">
|
| 139 |
+
<?php _e("Browse Existing", "attachments")?>
|
| 140 |
+
</a>
|
| 141 |
+
</li>
|
| 142 |
+
<li id="attachments-add-new">
|
| 143 |
+
<a href="media-upload.php?type=image&TB_iframe=true&width=640&height=600" class="button thickbox">
|
| 144 |
+
<?php _e("Add to Media Library", "attachments")?>
|
| 145 |
+
</a>
|
| 146 |
+
</li>
|
| 147 |
</ul>
|
| 148 |
|
| 149 |
<div id="attachments-list">
|
| 183 |
</div>
|
| 184 |
<div class="attachment-thumbnail">
|
| 185 |
<span class="attachments-thumbnail">
|
| 186 |
+
<?php echo wp_get_attachment_image( $attachment['id'], array(80, 60), 1 ); ?>
|
| 187 |
</span>
|
| 188 |
</div>
|
| 189 |
</li>
|
| 392 |
|
| 393 |
function attachments_init()
|
| 394 |
{
|
| 395 |
+
wp_enqueue_script('jquery-ui-core');
|
| 396 |
+
wp_enqueue_script('jquery-ui-tabs');
|
| 397 |
wp_enqueue_style('attachments', WP_PLUGIN_URL . '/attachments/css/attachments.css');
|
| 398 |
wp_enqueue_script('attachments', WP_PLUGIN_URL . '/attachments/js/attachments.js');
|
| 399 |
|
css/attachments.css
CHANGED
|
@@ -13,14 +13,12 @@ li#attachments-add-new { float:right; text-align:right; }
|
|
| 13 |
#attachments-file-list { padding:0 10px 15px 10px; background:#fff; }
|
| 14 |
.attachments-file-section { padding:0 0 20px 0; }
|
| 15 |
p.attachments-actions { padding:10px 0; }
|
| 16 |
-
|
| 17 |
-
#attachments-file-details
|
| 18 |
-
#attachments-file-details
|
| 19 |
-
#attachments-file-details
|
| 20 |
-
|
| 21 |
-
#attachments-file-details
|
| 22 |
-
|
| 23 |
-
#attachments-file-details li a.attachments-selected { border:3px solid #eb3525; }
|
| 24 |
|
| 25 |
/* File listings, not images */
|
| 26 |
#attachments-file-details .attachments-alt li { width:290px; }
|
| 13 |
#attachments-file-list { padding:0 10px 15px 10px; background:#fff; }
|
| 14 |
.attachments-file-section { padding:0 0 20px 0; }
|
| 15 |
p.attachments-actions { padding:10px 0; }
|
| 16 |
+
|
| 17 |
+
#attachments-file-details .attachments img { display:block; }
|
| 18 |
+
#attachments-file-details .attachments a { display:block; border:3px solid #fff; float:left; }
|
| 19 |
+
#attachments-file-details .attachments a:hover { border:3px solid #ccc; }
|
| 20 |
+
|
| 21 |
+
#attachments-file-details .attachments a.attachments-selected { border:3px solid #eb3525; }
|
|
|
|
|
|
|
| 22 |
|
| 23 |
/* File listings, not images */
|
| 24 |
#attachments-file-details .attachments-alt li { width:290px; }
|
js/attachments.js
CHANGED
|
@@ -26,7 +26,7 @@ jQuery(document).ready(function() {
|
|
| 26 |
|
| 27 |
|
| 28 |
// Keep track of our browse dialog selections
|
| 29 |
-
jQuery('
|
| 30 |
jQuery(this).toggleClass('attachments-selected');
|
| 31 |
return false;
|
| 32 |
});
|
| 26 |
|
| 27 |
|
| 28 |
// Keep track of our browse dialog selections
|
| 29 |
+
jQuery('.attachments a').live('click', function() {
|
| 30 |
jQuery(this).toggleClass('attachments-selected');
|
| 31 |
return false;
|
| 32 |
});
|
media.php
CHANGED
|
@@ -23,140 +23,116 @@
|
|
| 23 |
?>
|
| 24 |
|
| 25 |
<div id="attachments-file-list">
|
| 26 |
-
|
| 27 |
-
<p><?php _e("Select/deselect an attachment by clicking its thumbnail. When you're done managing your attachments, click
|
| 28 |
|
| 29 |
<p class="attachments-actions"><a href="#" class="attachments-apply button button-highlighted"><?php _e("Apply", "attachments"); ?></a></p>
|
| 30 |
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
echo '</li>';
|
| 56 |
-
}
|
| 57 |
-
}
|
| 58 |
-
echo '</ul>';
|
| 59 |
-
echo '</div>';
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
// ==========
|
| 64 |
-
// = VIDEOS =
|
| 65 |
-
// ==========
|
| 66 |
-
echo '<div class="attachments-file-section attachments-alt attachments-videos">';
|
| 67 |
-
echo '<h2>' . __("Videos", "attachments") . '</h2>';
|
| 68 |
-
echo '<ul>';
|
| 69 |
-
foreach ($attachment_files as $post)
|
| 70 |
-
{
|
| 71 |
-
if ( strpos($post->post_mime_type, 'video') !== false )
|
| 72 |
-
{
|
| 73 |
-
echo '<li>';
|
| 74 |
-
echo '<a href="#">';
|
| 75 |
-
echo '<span class="attachments-data">';
|
| 76 |
-
echo '<span class="attachment-file-name">' . $post->post_name . '</span>';
|
| 77 |
-
echo '<span class="attachment-file-id">' . $post->ID . '</span>';
|
| 78 |
-
echo '</span>';
|
| 79 |
-
echo '<span class="attachments-thumbnail">';
|
| 80 |
-
echo wp_get_attachment_image( $post->ID, array(80, 60), true );
|
| 81 |
-
echo '</span>';
|
| 82 |
-
echo '<h2 class="attachments-title-display">';
|
| 83 |
-
echo $post->post_name;
|
| 84 |
-
echo '</h2>';
|
| 85 |
-
echo '</a>';
|
| 86 |
-
echo '</li>';
|
| 87 |
-
}
|
| 88 |
-
}
|
| 89 |
-
echo '</ul>';
|
| 90 |
-
echo '</div>';
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
// =============
|
| 96 |
-
// = DOCUMENTS =
|
| 97 |
-
// =============
|
| 98 |
-
echo '<div class="attachments-file-section attachments-alt attachments-documents">';
|
| 99 |
-
echo '<h2>' . __("Documents", "attachments") . '</h2>';
|
| 100 |
-
echo '<ul>';
|
| 101 |
-
foreach ($attachment_files as $post)
|
| 102 |
-
{
|
| 103 |
-
if ( strpos($post->post_mime_type, 'application') !== false )
|
| 104 |
-
{
|
| 105 |
-
echo '<li>';
|
| 106 |
-
echo '<a href="#">';
|
| 107 |
-
echo '<span class="attachments-data">';
|
| 108 |
-
echo '<span class="attachment-file-name">' . $post->post_name . '</span>';
|
| 109 |
-
echo '<span class="attachment-file-id">' . $post->ID . '</span>';
|
| 110 |
-
echo '</span>';
|
| 111 |
-
echo '<span class="attachments-thumbnail">';
|
| 112 |
-
echo wp_get_attachment_image( $post->ID, array(80, 60), true );
|
| 113 |
-
echo '</span>';
|
| 114 |
-
echo '<h2 class="attachments-title-display">';
|
| 115 |
-
echo $post->post_name;
|
| 116 |
-
echo '</h2>';
|
| 117 |
-
echo '</a>';
|
| 118 |
-
echo '</li>';
|
| 119 |
-
}
|
| 120 |
-
}
|
| 121 |
-
echo '</ul>';
|
| 122 |
-
echo '</div>';
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
// =========
|
| 128 |
-
// = AUDIO =
|
| 129 |
-
// =========
|
| 130 |
-
echo '<div class="attachments-file-section attachments-alt attachments-audio">';
|
| 131 |
-
echo '<h2>' . __("Audio", "attachments") . '</h2>';
|
| 132 |
-
echo '<ul>';
|
| 133 |
-
foreach ($attachment_files as $post)
|
| 134 |
-
{
|
| 135 |
-
if ( strpos($post->post_mime_type, 'audio') !== false )
|
| 136 |
-
{
|
| 137 |
-
echo '<li>';
|
| 138 |
-
echo '<a href="#">';
|
| 139 |
-
echo '<span class="attachments-data">';
|
| 140 |
-
echo '<span class="attachment-file-name">' . $post->post_name . '</span>';
|
| 141 |
-
echo '<span class="attachment-file-id">' . $post->ID . '</span>';
|
| 142 |
-
echo '</span>';
|
| 143 |
-
echo '<span class="attachments-thumbnail">';
|
| 144 |
-
echo wp_get_attachment_image( $post->ID, array(80, 60), true );
|
| 145 |
-
echo '</span>';
|
| 146 |
-
echo '<h2 class="attachments-title-display">';
|
| 147 |
-
echo $post->post_name;
|
| 148 |
-
echo '</h2>';
|
| 149 |
-
echo '</a>';
|
| 150 |
-
echo '</li>';
|
| 151 |
-
}
|
| 152 |
-
}
|
| 153 |
-
echo '</ul>';
|
| 154 |
-
echo '</div>';
|
| 155 |
-
|
| 156 |
?>
|
| 157 |
|
| 158 |
-
</div>
|
| 159 |
|
| 160 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 161 |
|
| 162 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
?>
|
| 24 |
|
| 25 |
<div id="attachments-file-list">
|
| 26 |
+
|
| 27 |
+
<p><?php _e("Available attachments are listed from your <strong>Media Library</strong>. If you need to upload a new attachment, please close this dialog and use the available <strong>Add to Media Library</strong> button.", "attachments"); ?> <?php _e("Select/deselect an attachment by clicking its thumbnail. When you're done managing your attachments, click <strong>Apply</strong>.", "attachments")?></p>
|
| 28 |
|
| 29 |
<p class="attachments-actions"><a href="#" class="attachments-apply button button-highlighted"><?php _e("Apply", "attachments"); ?></a></p>
|
| 30 |
|
| 31 |
+
|
| 32 |
+
<?php
|
| 33 |
+
|
| 34 |
+
$attachments_attachment_types = array(
|
| 35 |
+
|
| 36 |
+
array(
|
| 37 |
+
'name' => 'Images',
|
| 38 |
+
'mime' => 'image',
|
| 39 |
+
),
|
| 40 |
+
array(
|
| 41 |
+
'name' => 'Videos',
|
| 42 |
+
'mime' => 'video'
|
| 43 |
+
),
|
| 44 |
+
array(
|
| 45 |
+
'name' => 'Documents',
|
| 46 |
+
'mime' => 'application'
|
| 47 |
+
),
|
| 48 |
+
array(
|
| 49 |
+
'name' => 'Audio',
|
| 50 |
+
'mime' => 'audio'
|
| 51 |
+
),
|
| 52 |
+
|
| 53 |
+
);
|
| 54 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
?>
|
| 56 |
|
|
|
|
| 57 |
|
| 58 |
+
<div id="attachments-tabs">
|
| 59 |
+
|
| 60 |
+
<ul class="subsubsub">
|
| 61 |
+
<?php $attachments_total_types = count( $attachments_attachment_types ); ?>
|
| 62 |
+
<?php for($attachments_index=0; $attachments_index < $attachments_total_types; $attachments_index++) : ?>
|
| 63 |
+
<li>
|
| 64 |
+
<a href="#attachments-<?php echo $attachments_attachment_types[$attachments_index]['mime']; ?>">
|
| 65 |
+
<?php echo $attachments_attachment_types[$attachments_index]['name']; ?>
|
| 66 |
+
</a>
|
| 67 |
+
</li>
|
| 68 |
+
<?php if( $attachments_index < $attachments_total_types - 1 ) : ?> |<?php endif ?>
|
| 69 |
+
<?php endfor ?>
|
| 70 |
+
|
| 71 |
+
</ul>
|
| 72 |
+
|
| 73 |
+
<br class="clear" />
|
| 74 |
+
|
| 75 |
+
<div id="attachments-file-details">
|
| 76 |
+
|
| 77 |
+
<?php foreach ( $attachments_attachment_types as $attachments_attachment_type ) : ?>
|
| 78 |
+
<div class="attachments attachments-file-section attachments-<?php echo $attachments_attachment_type['mime']; ?>" id="attachments-<?php echo $attachments_attachment_type['mime']; ?>">
|
| 79 |
+
|
| 80 |
+
<h2><?php echo __($attachments_attachment_type['name'], "attachments"); ?></h2>
|
| 81 |
+
|
| 82 |
+
<table class="widefat fixed" cellpadding="0">
|
| 83 |
+
<thead>
|
| 84 |
+
<tr>
|
| 85 |
+
<th scope="col" id="icon" class="manage-column column-icon">Icon</th>
|
| 86 |
+
<th scope="col" id="media" class="manage-column column-media">File</th>
|
| 87 |
+
</tr>
|
| 88 |
+
</thead>
|
| 89 |
+
<tfoot>
|
| 90 |
+
<tr>
|
| 91 |
+
<th scope="col" id="icon" class="manage-column column-icon">Icon</th>
|
| 92 |
+
<th scope="col" id="media" class="manage-column column-media">File</th>
|
| 93 |
+
</tr>
|
| 94 |
+
</tfoot>
|
| 95 |
+
<tbody>
|
| 96 |
+
<?php foreach ($attachment_files as $post) : if ( strpos($post->post_mime_type, $attachments_attachment_type['mime']) !== false ) : ?>
|
| 97 |
+
<tr class="author-other status-inherit" valign="top">
|
| 98 |
+
<td class="column-icon media-icon">
|
| 99 |
+
<a href="#">
|
| 100 |
+
<span class="attachments-thumbnail">
|
| 101 |
+
<?php echo wp_get_attachment_image( $post->ID, array(80, 60), true ); ?>
|
| 102 |
+
</span>
|
| 103 |
+
<span class="attachments-data">
|
| 104 |
+
<span class="attachment-file-name">
|
| 105 |
+
<?php echo $post->post_name; ?>
|
| 106 |
+
</span>
|
| 107 |
+
<span class="attachment-file-id">
|
| 108 |
+
<?php echo $post->ID; ?>
|
| 109 |
+
</span>
|
| 110 |
+
</span>
|
| 111 |
+
</a>
|
| 112 |
+
</td>
|
| 113 |
+
<td class="media column-media">
|
| 114 |
+
<p><?php echo $post->post_name; ?></p>
|
| 115 |
+
</td>
|
| 116 |
+
</tr>
|
| 117 |
+
<?php endif; endforeach; ?>
|
| 118 |
+
</tbody>
|
| 119 |
+
</table>
|
| 120 |
+
|
| 121 |
+
</div>
|
| 122 |
+
<!-- /attachments-<?php echo $attachments_attachment_type['name']; ?> -->
|
| 123 |
+
<?php endforeach ?>
|
| 124 |
+
|
| 125 |
+
</div>
|
| 126 |
+
<!-- /attachments-file-details -->
|
| 127 |
+
|
| 128 |
+
</div>
|
| 129 |
+
<!-- /attachments-tabs -->
|
| 130 |
+
|
| 131 |
+
<p class="attachments-actions"><a href="#" class="attachments-apply button button-highlighted"><?php _e("Apply", "attachments"); ?></a></p>
|
| 132 |
|
| 133 |
</div>
|
| 134 |
+
<!-- /attachments-file-list -->
|
| 135 |
+
|
| 136 |
+
<script type="text/javascript" charset="utf-8">
|
| 137 |
+
jQuery('#attachments-tabs').tabs();
|
| 138 |
+
</script>
|
readme.txt
CHANGED
|
@@ -3,8 +3,8 @@ Contributors: jchristopher
|
|
| 3 |
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:
|
| 7 |
-
Stable tag: 1.0.
|
| 8 |
|
| 9 |
Attachments allows you to append any number of items from your WordPress Media Library to Posts and Pages
|
| 10 |
|
|
@@ -41,6 +41,14 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
| 41 |
|
| 42 |
== Changelog ==
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
= 1.0.7.1 =
|
| 45 |
* Added Portuguese Translation (rough)
|
| 46 |
|
|
@@ -73,6 +81,9 @@ Attachments uses WordPress' built in Media library for uploads and storage.
|
|
| 73 |
|
| 74 |
== Upgrade Notice ==
|
| 75 |
|
|
|
|
|
|
|
|
|
|
| 76 |
= 1.0.7 =
|
| 77 |
Attachments are now stored in such a way that removes an in-place limitation on string lengths for both titles and captions.
|
| 78 |
|
| 3 |
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: 3.0
|
| 7 |
+
Stable tag: 1.0.8
|
| 8 |
|
| 9 |
Attachments allows you to append any number of items from your WordPress Media Library to Posts and Pages
|
| 10 |
|
| 41 |
|
| 42 |
== Changelog ==
|
| 43 |
|
| 44 |
+
= 1.0.8 =
|
| 45 |
+
* Fixed possible bug with images not thumbnailing properly
|
| 46 |
+
* Tabbed media browsing implemented
|
| 47 |
+
|
| 48 |
+
= 1.0.7.2 =
|
| 49 |
+
* Revised Portuguese Translation by [Nicolas Mollet](www.nicolasmollet.com)
|
| 50 |
+
* Added French Translation
|
| 51 |
+
|
| 52 |
= 1.0.7.1 =
|
| 53 |
* Added Portuguese Translation (rough)
|
| 54 |
|
| 81 |
|
| 82 |
== Upgrade Notice ==
|
| 83 |
|
| 84 |
+
= 1.0.8 =
|
| 85 |
+
As always, be sure to back up your database and files before upgrading.
|
| 86 |
+
|
| 87 |
= 1.0.7 =
|
| 88 |
Attachments are now stored in such a way that removes an in-place limitation on string lengths for both titles and captions.
|
| 89 |
|
