Skip to content

Commit

Permalink
dev
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilupu committed Apr 9, 2015
1 parent e775a0c commit ded0cf8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
3 changes: 2 additions & 1 deletion class-pixproof.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ static function get_metadata( $post_id = null ) {
'orderby' => 'menu_order ID'
) );
$event_date = get_post_meta( get_the_ID(), '_pixproof_event_date', true );
$download_is_disabled = get_post_meta( get_the_ID(), '_pixproof_disable_archive_download', true );

if ( self::$plugin_settings[ 'enable_archive_zip_download' ] ) {
if ( self::$plugin_settings[ 'enable_archive_zip_download' ] && $download_is_disabled !== 'on' ) {

// this must be here
if (!class_exists('PclZip')) {
Expand Down
6 changes: 6 additions & 0 deletions features/metaboxes/metaboxes.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ function pixproof_sample_metaboxes( array $meta_boxes ) {
),
'std' => 'fullwidth',
),
array(
'name' => __( 'Disable Archive Download', 'pixproof_l10n' ),
'desc' => __( 'You can remove the ability to download the zip archive for this gallery', 'pixproof_l10n' ),
'id' => $prefix . 'disable_archive_download',
'type' => 'checkbox',
),
),
);

Expand Down
7 changes: 7 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ You can choose from two options:

== Changelog ==

= 1.2.0 =
* Added the ability to disable the download zip archives.
* Added the option to select the thumbnail size for individual gallery but also for all of them.
* Added the option to select the grid size
* Fixed an issue where images where messed up after the plugin activation
* Small style improvements

= 1.1.1 =
* Fixed ZIP archive download on Windows
* Fixed Small bugs
Expand Down
2 changes: 1 addition & 1 deletion settings/post_types.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@

'enable_pixproof_gallery_global_style' => array(
'label' => __( 'Change Gallery Global Style', 'pixproof_txtd' ),
'desc' => __( 'Do you want to rewrite the style of each proof gallery?', 'pixproof_txtd' ),
'desc' => __( 'Do you want to overwrite the style of all proof galleries?', 'pixproof_txtd' ),
'default' => false,
'type' => 'switch',
'show_group' => 'enable_pixproof_gallery_global_style_group',
Expand Down

0 comments on commit ded0cf8

Please sign in to comment.