Version Description
- 11.10.2013 =
- NEW : Added Alt tag field for each image in the gallery.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Gallery by BestWebSoft |
Version | 4.0.2 |
Comparing to | |
See all releases |
Code changes from version 4.0.1 to 4.0.2
- bws_menu/bws_menu.php +2 -1
- css/stylesheet.css +2 -2
- gallery-plugin.php +38 -12
- js/bws_menu.js +0 -7
- languages/gallery-cs_CZ.mo +0 -0
- languages/gallery-cs_CZ.po +0 -0
- languages/gallery-pt_BR.mo +0 -0
- readme.txt +9 -2
- screenshot-1.jpg +0 -0
- template/gallery-single-template.php +3 -2
bws_menu/bws_menu.php
CHANGED
@@ -28,7 +28,8 @@ if ( ! function_exists( 'bws_add_menu_render' ) ) {
|
|
28 |
array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-sitemap-plugin.php' ),
|
29 |
array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin/', 'http://bestwebsoft.com/plugin/updater-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' ),
|
30 |
array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search/', 'http://bestwebsoft.com/plugin/custom-fields-search/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_fields_search.php' ),
|
31 |
-
array( 'google-
|
|
|
32 |
);
|
33 |
foreach ( $array_plugins as $plugins ) {
|
34 |
if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) {
|
28 |
array( 'google-sitemap-plugin\/google-sitemap-plugin.php', 'Google sitemap plugin', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/', 'http://bestwebsoft.com/plugin/google-sitemap-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+sitemap+plugin+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-sitemap-plugin.php' ),
|
29 |
array( 'updater\/updater.php', 'Updater', 'http://bestwebsoft.com/plugin/updater-plugin/', 'http://bestwebsoft.com/plugin/updater-plugin/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=updater+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=updater-options' ),
|
30 |
array( 'custom-fields-search\/custom-fields-search.php', 'Custom Fields Search', 'http://bestwebsoft.com/plugin/custom-fields-search/', 'http://bestwebsoft.com/plugin/custom-fields-search/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Custom+Fields+Search+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=custom_fields_search.php' ),
|
31 |
+
array( 'google-one\/google-plus-one.php', 'Google +1', 'http://bestwebsoft.com/plugin/google-plus-one/', 'http://bestwebsoft.com/plugin/google-plus-one/#download', '/wp-admin/plugin-install.php?tab=search&type=term&s=Google+%2B1+bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=google-plus-one.php' ),
|
32 |
+
array( 'relevant\/related-posts-plugin.php', 'Related Posts Plugin', 'http://bestwebsoft.com/plugin/related-posts-plugin/', 'http://bestwebsoft.com/plugin/related-posts-plugin/#download', '/wp-admin/plugin-install.php?tab=search&s=Related+Posts+Plugin+Bestwebsoft&plugin-search-input=Search+Plugins', 'admin.php?page=related-posts-plugin.php' )
|
33 |
);
|
34 |
foreach ( $array_plugins as $plugins ) {
|
35 |
if( 0 < count( preg_grep( "/".$plugins[0]."/", $active_plugins ) ) ) {
|
css/stylesheet.css
CHANGED
@@ -87,10 +87,10 @@ ul.gallery {
|
|
87 |
clear:both;
|
88 |
height:0;
|
89 |
}
|
90 |
-
.gllr_image_text
|
91 |
width:150px;
|
92 |
}
|
93 |
-
.gllr_link_text {
|
94 |
width:170px;
|
95 |
}
|
96 |
.gllr_order_text {
|
87 |
clear:both;
|
88 |
height:0;
|
89 |
}
|
90 |
+
.gllr_image_text {
|
91 |
width:150px;
|
92 |
}
|
93 |
+
.gllr_link_text, .gllr_image_alt_tag {
|
94 |
width:170px;
|
95 |
}
|
96 |
.gllr_order_text {
|
gallery-plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Gallery Plugin
|
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: This plugin allows you to implement gallery page into web site.
|
6 |
Author: BestWebSoft
|
7 |
-
Version: 4.0.
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -200,6 +200,7 @@ if ( ! function_exists( 'gllr_post_custom_box' ) ) {
|
|
200 |
$key = "gllr_image_text";
|
201 |
$gllr_download_link = get_post_meta( $post->ID, 'gllr_download_link', true );
|
202 |
$link_key = "gllr_link_url";
|
|
|
203 |
$error = "";
|
204 |
$uploader = true;
|
205 |
|
@@ -270,6 +271,7 @@ if ( ! function_exists( 'gllr_post_custom_box' ) ) {
|
|
270 |
echo '<div class="gllr_border_image"><img src="'.$image_attributes[0].'" alt="'.$page->post_title.'" title="'.$page->post_title.'" height="'.get_option( 'thumbnail_size_h' ).'" width="'.get_option( 'thumbnail_size_w' ).'" /></div>';
|
271 |
echo '<br />'.__( "Title", "gallery" ).'<br /><input type="text" name="gllr_image_text['.$page->ID.']" value="'.get_post_meta( $page->ID, $key, TRUE ).'" class="gllr_image_text" />';
|
272 |
echo '<input type="text" name="gllr_order_text['.$page->ID.']" value="'.$page->menu_order.'" class="gllr_order_text '.( $page->menu_order == 0 ? "hidden" : '' ).'" />';
|
|
|
273 |
echo '<br />'.__( "URL", "gallery" ).'<br /><input type="text" name="gllr_link_url['.$page->ID.']" value="'.get_post_meta( $page->ID, $link_key, TRUE ).'" class="gllr_link_text" /><br /><span class="small_text">'.__( "(by click on image opens a link in a new window)", "gallery" ).'</span>';
|
274 |
echo '<a class="gllr_pro_version" href="http://bestwebsoft.com/plugin/gallery-pro/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v='.$plugin_info["Version"].'" target="_blank" title="'. __( 'This setting is available in Pro version', 'gallery' ).'"><br />'.
|
275 |
'<div class="gllr_pro_version">'.__( "Open the link", "gallery" ).'<br/><input disabled type="radio" value="_self" > '.__( "Current window", "gallery" ).'<br/><input disabled type="radio" value="_blank" > '.__( "New window", "gallery" ).'</div></a>';
|
@@ -298,6 +300,7 @@ if ( ! function_exists ( 'gllr_save_postdata' ) ) {
|
|
298 |
global $post, $wpdb;
|
299 |
$key = "gllr_image_text";
|
300 |
$link_key = "gllr_link_url";
|
|
|
301 |
|
302 |
if ( isset( $_REQUEST['undefined'] ) && ! empty( $_REQUEST['undefined'] ) ) {
|
303 |
$array_file_name = $_REQUEST['undefined'];
|
@@ -399,6 +402,29 @@ if ( ! function_exists ( 'gllr_save_postdata' ) ) {
|
|
399 |
}
|
400 |
}
|
401 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
402 |
if ( isset( $_REQUEST['gllr_download_link'] ) ) {
|
403 |
if ( get_post_meta( $post_id, 'gllr_download_link', FALSE ) ) {
|
404 |
// Custom field has a value and this custom field exists in database
|
@@ -1010,21 +1036,21 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
|
|
1010 |
), $attr )
|
1011 |
);
|
1012 |
$args = array(
|
1013 |
-
'post_type'
|
1014 |
-
'post_status'
|
1015 |
-
'p'
|
1016 |
'posts_per_page' => 1
|
1017 |
);
|
1018 |
ob_start();
|
1019 |
$second_query = new WP_Query( $args );
|
1020 |
$gllr_options = get_option( 'gllr_options' );
|
1021 |
-
if( $display == 'short' ) { ?>
|
1022 |
<div class="gallery_box">
|
1023 |
<ul>
|
1024 |
<?php
|
1025 |
global $post, $wpdb, $wp_query;
|
1026 |
if ( $second_query->have_posts() ) : $second_query->the_post();
|
1027 |
-
$attachments
|
1028 |
if( empty ( $attachments ) ) {
|
1029 |
$attachments = get_children( 'post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&numberposts=1' );
|
1030 |
$id = key( $attachments );
|
@@ -1068,29 +1094,29 @@ if ( ! function_exists ( 'gllr_shortcode' ) ) {
|
|
1068 |
<?php foreach( $posts as $attachment ) {
|
1069 |
$key = "gllr_image_text";
|
1070 |
$link_key = "gllr_link_url";
|
|
|
1071 |
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'photo-thumb' );
|
1072 |
$image_attributes_large = wp_get_attachment_image_src( $attachment->ID, 'large' );
|
1073 |
$image_attributes_full = wp_get_attachment_image_src( $attachment->ID, 'full' );
|
1074 |
-
if( 1 == $gllr_options['border_images'] ){
|
1075 |
$gllr_border = 'border-width: '.$gllr_options['border_images_width'].'px; border-color:'.$gllr_options['border_images_color'].'';
|
1076 |
$gllr_border_images = $gllr_options['border_images_width'] * 2;
|
1077 |
-
}
|
1078 |
-
else{
|
1079 |
$gllr_border = '';
|
1080 |
$gllr_border_images = 0;
|
1081 |
}
|
1082 |
-
if( $count_image_block % $gllr_options['custom_image_row_count'] == 0 ) { ?>
|
1083 |
<div class="gllr_image_row">
|
1084 |
<?php } ?>
|
1085 |
<div class="gllr_image_block">
|
1086 |
<p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]+$gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]+$gllr_border_images; ?>px;">
|
1087 |
<?php if( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
|
1088 |
<a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
|
1089 |
-
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
|
1090 |
</a>
|
1091 |
<?php } else { ?>
|
1092 |
<a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
|
1093 |
-
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
|
1094 |
</a>
|
1095 |
<?php } ?>
|
1096 |
</p>
|
4 |
Plugin URI: http://bestwebsoft.com/plugin/
|
5 |
Description: This plugin allows you to implement gallery page into web site.
|
6 |
Author: BestWebSoft
|
7 |
+
Version: 4.0.2
|
8 |
Author URI: http://bestwebsoft.com/
|
9 |
License: GPLv2 or later
|
10 |
*/
|
200 |
$key = "gllr_image_text";
|
201 |
$gllr_download_link = get_post_meta( $post->ID, 'gllr_download_link', true );
|
202 |
$link_key = "gllr_link_url";
|
203 |
+
$alt_tag_key = "gllr_image_alt_tag";
|
204 |
$error = "";
|
205 |
$uploader = true;
|
206 |
|
271 |
echo '<div class="gllr_border_image"><img src="'.$image_attributes[0].'" alt="'.$page->post_title.'" title="'.$page->post_title.'" height="'.get_option( 'thumbnail_size_h' ).'" width="'.get_option( 'thumbnail_size_w' ).'" /></div>';
|
272 |
echo '<br />'.__( "Title", "gallery" ).'<br /><input type="text" name="gllr_image_text['.$page->ID.']" value="'.get_post_meta( $page->ID, $key, TRUE ).'" class="gllr_image_text" />';
|
273 |
echo '<input type="text" name="gllr_order_text['.$page->ID.']" value="'.$page->menu_order.'" class="gllr_order_text '.( $page->menu_order == 0 ? "hidden" : '' ).'" />';
|
274 |
+
echo '<br />'.__( "Alt tag", "gallery" ).'<br /><input type="text" name="gllr_image_alt_tag['.$page->ID.']" value="'.get_post_meta( $page->ID, $alt_tag_key, TRUE ).'" class="gllr_image_alt_tag" />';
|
275 |
echo '<br />'.__( "URL", "gallery" ).'<br /><input type="text" name="gllr_link_url['.$page->ID.']" value="'.get_post_meta( $page->ID, $link_key, TRUE ).'" class="gllr_link_text" /><br /><span class="small_text">'.__( "(by click on image opens a link in a new window)", "gallery" ).'</span>';
|
276 |
echo '<a class="gllr_pro_version" href="http://bestwebsoft.com/plugin/gallery-pro/?k=63a36f6bf5de0726ad6a43a165f38fe5&pn=79&v='.$plugin_info["Version"].'" target="_blank" title="'. __( 'This setting is available in Pro version', 'gallery' ).'"><br />'.
|
277 |
'<div class="gllr_pro_version">'.__( "Open the link", "gallery" ).'<br/><input disabled type="radio" value="_self" > '.__( "Current window", "gallery" ).'<br/><input disabled type="radio" value="_blank" > '.__( "New window", "gallery" ).'</div></a>';
|
300 |
global $post, $wpdb;
|
301 |
$key = "gllr_image_text";
|
302 |
$link_key = "gllr_link_url";
|
303 |
+
$alt_tag_key = "gllr_image_alt_tag";
|
304 |
|
305 |
if ( isset( $_REQUEST['undefined'] ) && ! empty( $_REQUEST['undefined'] ) ) {
|
306 |
$array_file_name = $_REQUEST['undefined'];
|
402 |
}
|
403 |
}
|
404 |
}
|
405 |
+
if ( isset( $_REQUEST['gllr_image_alt_tag'] ) ) {
|
406 |
+
$posts = get_posts( array(
|
407 |
+
"showposts" => -1,
|
408 |
+
"what_to_show" => "posts",
|
409 |
+
"post_status" => "inherit",
|
410 |
+
"post_type" => "attachment",
|
411 |
+
"orderby" => "menu_order",
|
412 |
+
"order" => "ASC",
|
413 |
+
"post_mime_type" => "image/jpeg,image/gif,image/jpg,image/png",
|
414 |
+
"post_parent" => $post->ID ));
|
415 |
+
foreach ( $posts as $page ) {
|
416 |
+
if( isset( $_REQUEST['gllr_image_alt_tag'][$page->ID] ) ) {
|
417 |
+
$value = $_REQUEST['gllr_image_alt_tag'][$page->ID];
|
418 |
+
if ( get_post_meta( $page->ID, $alt_tag_key, FALSE ) ) {
|
419 |
+
// Custom field has a value and this custom field exists in database
|
420 |
+
update_post_meta( $page->ID, $alt_tag_key, $value );
|
421 |
+
} elseif( $value ) {
|
422 |
+
// Custom field has a value, but this custom field does not exist in database
|
423 |
+
add_post_meta( $page->ID, $alt_tag_key, $value );
|
424 |
+
}
|
425 |
+
}
|
426 |
+
}
|
427 |
+
}
|
428 |
if ( isset( $_REQUEST['gllr_download_link'] ) ) {
|
429 |
if ( get_post_meta( $post_id, 'gllr_download_link', FALSE ) ) {
|
430 |
// Custom field has a value and this custom field exists in database
|
1036 |
), $attr )
|
1037 |
);
|
1038 |
$args = array(
|
1039 |
+
'post_type' => 'gallery',
|
1040 |
+
'post_status' => 'publish',
|
1041 |
+
'p' => $id,
|
1042 |
'posts_per_page' => 1
|
1043 |
);
|
1044 |
ob_start();
|
1045 |
$second_query = new WP_Query( $args );
|
1046 |
$gllr_options = get_option( 'gllr_options' );
|
1047 |
+
if ( $display == 'short' ) { ?>
|
1048 |
<div class="gallery_box">
|
1049 |
<ul>
|
1050 |
<?php
|
1051 |
global $post, $wpdb, $wp_query;
|
1052 |
if ( $second_query->have_posts() ) : $second_query->the_post();
|
1053 |
+
$attachments = get_post_thumbnail_id( $post->ID );
|
1054 |
if( empty ( $attachments ) ) {
|
1055 |
$attachments = get_children( 'post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&numberposts=1' );
|
1056 |
$id = key( $attachments );
|
1094 |
<?php foreach( $posts as $attachment ) {
|
1095 |
$key = "gllr_image_text";
|
1096 |
$link_key = "gllr_link_url";
|
1097 |
+
$alt_tag_key = "gllr_image_alt_tag";
|
1098 |
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'photo-thumb' );
|
1099 |
$image_attributes_large = wp_get_attachment_image_src( $attachment->ID, 'large' );
|
1100 |
$image_attributes_full = wp_get_attachment_image_src( $attachment->ID, 'full' );
|
1101 |
+
if ( 1 == $gllr_options['border_images'] ) {
|
1102 |
$gllr_border = 'border-width: '.$gllr_options['border_images_width'].'px; border-color:'.$gllr_options['border_images_color'].'';
|
1103 |
$gllr_border_images = $gllr_options['border_images_width'] * 2;
|
1104 |
+
} else {
|
|
|
1105 |
$gllr_border = '';
|
1106 |
$gllr_border_images = 0;
|
1107 |
}
|
1108 |
+
if ( $count_image_block % $gllr_options['custom_image_row_count'] == 0 ) { ?>
|
1109 |
<div class="gllr_image_row">
|
1110 |
<?php } ?>
|
1111 |
<div class="gllr_image_block">
|
1112 |
<p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]+$gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]+$gllr_border_images; ?>px;">
|
1113 |
<?php if( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
|
1114 |
<a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
|
1115 |
+
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
|
1116 |
</a>
|
1117 |
<?php } else { ?>
|
1118 |
<a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>">
|
1119 |
+
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
|
1120 |
</a>
|
1121 |
<?php } ?>
|
1122 |
</p>
|
js/bws_menu.js
CHANGED
@@ -4,13 +4,6 @@
|
|
4 |
$('.bws_system_info_meta_box .inside').css('display','none');
|
5 |
|
6 |
$('.bws_system_info_meta_box .hndle').click( function(){
|
7 |
-
if ( $('.bws_system_info_meta_box .inside').is(":visible") ) {
|
8 |
-
$('.bws_system_info_meta_box .inside').css('display','none !important');
|
9 |
-
} else {
|
10 |
-
$('.bws_system_info_meta_box .inside').css('display','block !important');
|
11 |
-
}
|
12 |
-
});
|
13 |
-
$('.bws_system_info_meta_box .handlediv').click( function(){
|
14 |
if ( $('.bws_system_info_meta_box .inside').is(":visible") ) {
|
15 |
$('.bws_system_info_meta_box .inside').css('display','none');
|
16 |
} else {
|
4 |
$('.bws_system_info_meta_box .inside').css('display','none');
|
5 |
|
6 |
$('.bws_system_info_meta_box .hndle').click( function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
if ( $('.bws_system_info_meta_box .inside').is(":visible") ) {
|
8 |
$('.bws_system_info_meta_box .inside').css('display','none');
|
9 |
} else {
|
languages/gallery-cs_CZ.mo
CHANGED
File without changes
|
languages/gallery-cs_CZ.po
CHANGED
File without changes
|
languages/gallery-pt_BR.mo
CHANGED
File without changes
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.2checkout.com/checkout/purchase?sid=1430388&quantity=10
|
|
4 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6.1
|
7 |
-
Stable tag: 4.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -28,10 +28,11 @@ There is also a premium version of the plugin with more useful features availabl
|
|
28 |
* Actions: Upoad any number of photos to each album in the gallery.
|
29 |
* Actions: Add Single Gallery to your page or post using a shortcode.
|
30 |
* Actions: Attachment sorting settings in the admin panel.
|
31 |
-
* Caption: Add a caption to each photo in the album.
|
32 |
* Display: Change the size of album cover thumbnails and photos in the album.
|
33 |
* Display: Choose a number of pictures to display in one row in the gallery album.
|
34 |
* Slideshow: View pictures as a slide show and in a full size.
|
|
|
35 |
|
36 |
= Translation =
|
37 |
|
@@ -145,6 +146,9 @@ and add (for the themes Twenty Eleven or Twenty Ten):
|
|
145 |
|
146 |
== Changelog ==
|
147 |
|
|
|
|
|
|
|
148 |
= V4.0.1 - 02.10.2013 =
|
149 |
* Update : The Brazilian Portuguese language file is updated.
|
150 |
|
@@ -334,6 +338,9 @@ and add (for the themes Twenty Eleven or Twenty Ten):
|
|
334 |
|
335 |
== Upgrade Notice ==
|
336 |
|
|
|
|
|
|
|
337 |
= V4.0.1 =
|
338 |
The Brazilian Portuguese language file is updated.
|
339 |
|
4 |
Tags: gallery, image, gallery image, album, foto, fotoalbum, website gallery, multiple pictures, pictures, photo, photoalbum, photogallery
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.6.1
|
7 |
+
Stable tag: 4.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
28 |
* Actions: Upoad any number of photos to each album in the gallery.
|
29 |
* Actions: Add Single Gallery to your page or post using a shortcode.
|
30 |
* Actions: Attachment sorting settings in the admin panel.
|
31 |
+
* Caption: Add a caption and alt tag to each photo in the album.
|
32 |
* Display: Change the size of album cover thumbnails and photos in the album.
|
33 |
* Display: Choose a number of pictures to display in one row in the gallery album.
|
34 |
* Slideshow: View pictures as a slide show and in a full size.
|
35 |
+
* Ability: The ability to add comments to a Single Gallery.
|
36 |
|
37 |
= Translation =
|
38 |
|
146 |
|
147 |
== Changelog ==
|
148 |
|
149 |
+
= V4.0.2 - 11.10.2013 =
|
150 |
+
* NEW : Added Alt tag field for each image in the gallery.
|
151 |
+
|
152 |
= V4.0.1 - 02.10.2013 =
|
153 |
* Update : The Brazilian Portuguese language file is updated.
|
154 |
|
338 |
|
339 |
== Upgrade Notice ==
|
340 |
|
341 |
+
= V4.0.2 =
|
342 |
+
Added Alt tag field for each image in the gallery.
|
343 |
+
|
344 |
= V4.0.1 =
|
345 |
The Brazilian Portuguese language file is updated.
|
346 |
|
screenshot-1.jpg
CHANGED
Binary file
|
template/gallery-single-template.php
CHANGED
@@ -31,6 +31,7 @@
|
|
31 |
<?php foreach( $posts as $attachment ) {
|
32 |
$key = "gllr_image_text";
|
33 |
$link_key = "gllr_link_url";
|
|
|
34 |
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'photo-thumb' );
|
35 |
$image_attributes_large = wp_get_attachment_image_src( $attachment->ID, 'large' );
|
36 |
$image_attributes_full = wp_get_attachment_image_src( $attachment->ID, 'full' );
|
@@ -49,11 +50,11 @@
|
|
49 |
<p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]+$gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]+$gllr_border_images; ?>px;">
|
50 |
<?php if( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
|
51 |
<a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
|
52 |
-
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
|
53 |
</a>
|
54 |
<?php } else { ?>
|
55 |
<a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" >
|
56 |
-
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
|
57 |
</a>
|
58 |
<?php } ?>
|
59 |
</p>
|
31 |
<?php foreach( $posts as $attachment ) {
|
32 |
$key = "gllr_image_text";
|
33 |
$link_key = "gllr_link_url";
|
34 |
+
$alt_tag_key = "gllr_image_alt_tag";
|
35 |
$image_attributes = wp_get_attachment_image_src( $attachment->ID, 'photo-thumb' );
|
36 |
$image_attributes_large = wp_get_attachment_image_src( $attachment->ID, 'large' );
|
37 |
$image_attributes_full = wp_get_attachment_image_src( $attachment->ID, 'full' );
|
50 |
<p style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]+$gllr_border_images; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]+$gllr_border_images; ?>px;">
|
51 |
<?php if( ( $url_for_link = get_post_meta( $attachment->ID, $link_key, true ) ) != "" ) { ?>
|
52 |
<a href="<?php echo $url_for_link; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" target="_blank">
|
53 |
+
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" />
|
54 |
</a>
|
55 |
<?php } else { ?>
|
56 |
<a rel="gallery_fancybox" href="<?php echo $image_attributes_large[0]; ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" >
|
57 |
+
<img style="width:<?php echo $gllr_options['gllr_custom_size_px'][1][0]; ?>px;height:<?php echo $gllr_options['gllr_custom_size_px'][1][1]; ?>px; <?php echo $gllr_border; ?>" alt="<?php echo get_post_meta( $attachment->ID, $alt_tag_key, true ); ?>" title="<?php echo get_post_meta( $attachment->ID, $key, true ); ?>" src="<?php echo $image_attributes[0]; ?>" rel="<?php echo $image_attributes_full[0]; ?>" />
|
58 |
</a>
|
59 |
<?php } ?>
|
60 |
</p>
|