Version Description
Download this release
Release Info
| Developer | cbaldelomar |
| Plugin | |
| Version | 1.50 |
| Comparing to | |
| See all releases | |
Code changes from version 1.49 to 1.50
- README.md +20 -2
- includes/functions.php +25 -6
- includes/options.php +93 -0
- includes/vendors/wpc-settings-framework/class-wpc-settings-framework.php +3 -0
- includes/vendors/wpc-settings-framework/css/options.css +2 -0
- readme.txt +20 -2
- wc-gallery.php +14 -2
README.md
CHANGED
|
@@ -40,12 +40,30 @@ Yes, I do accept donations. If you want to buy me a sandwich or something, you
|
|
| 40 |
|
| 41 |
## Frequently Asked Questions ##
|
| 42 |
|
| 43 |
-
### How do I use the shortcodes?
|
| 44 |
|
| 45 |
-
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
## Changelog ##
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
### Version 1.49
|
| 50 |
|
| 51 |
* Single column galleries on mobile displays
|
| 40 |
|
| 41 |
## Frequently Asked Questions ##
|
| 42 |
|
| 43 |
+
### How do I use the shortcodes? ###
|
| 44 |
|
| 45 |
+
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery.
|
| 46 |
+
|
| 47 |
+
[http://angiemakes.com/knowledgebase/gallery-plugin-overview/](http://angiemakes.com/knowledgebase/gallery-plugin-overview/)
|
| 48 |
+
|
| 49 |
+
### How do I fix HTTP error code when uploading media? ###
|
| 50 |
+
|
| 51 |
+
[http://angiemakes.com/knowledgebase/how-to-fix-http-error-code-when-uploading-media/](http://angiemakes.com/knowledgebase/how-to-fix-http-error-code-when-uploading-media/)
|
| 52 |
+
|
| 53 |
+
### Where can I get more help? ###
|
| 54 |
+
|
| 55 |
+
For more tutorials on our gallery plugin, go to our knowledge base.
|
| 56 |
+
|
| 57 |
+
[http://angiemakes.com/knowledgebase/category/plugins/gallery/](http://angiemakes.com/knowledgebase/category/plugins/gallery/)
|
| 58 |
|
| 59 |
## Changelog ##
|
| 60 |
|
| 61 |
+
### Version 1.50 ###
|
| 62 |
+
|
| 63 |
+
* added option to disable thumbnail generation
|
| 64 |
+
* admin style update
|
| 65 |
+
* adding settings link in plugin page
|
| 66 |
+
|
| 67 |
### Version 1.49
|
| 68 |
|
| 69 |
* Single column galleries on mobile displays
|
includes/functions.php
CHANGED
|
@@ -6,14 +6,31 @@ function wc_gallery_check_supports() {
|
|
| 6 |
$supports = get_theme_support( 'wpc-gallery' );
|
| 7 |
|
| 8 |
if ( isset( $supports[0] ) && is_array( $supports[0] ) ) {
|
| 9 |
-
foreach ( $supports[0] as $
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
}
|
| 12 |
}
|
| 13 |
}
|
| 14 |
}
|
| 15 |
add_action( 'init', 'wc_gallery_check_supports' );
|
| 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
/**
|
| 18 |
* The Gallery shortcode.
|
| 19 |
*
|
|
@@ -654,11 +671,13 @@ function wc_gallery_after_setup_theme() {
|
|
| 654 |
$name_w = $size . '_size_w';
|
| 655 |
$name_h = $size . '_size_h';
|
| 656 |
$name_crop = $size . '_crop';
|
|
|
|
| 657 |
|
| 658 |
-
$width = get_option( WC_GALLERY_PREFIX . $name_w );
|
| 659 |
-
$height = get_option( WC_GALLERY_PREFIX . $name_h );
|
| 660 |
-
$crop = get_option( WC_GALLERY_PREFIX . $name_crop );
|
| 661 |
-
|
|
|
|
| 662 |
$crop = $crop ? true : false;
|
| 663 |
add_image_size( 'wc' . $size, $width, $height, $crop );
|
| 664 |
}
|
| 6 |
$supports = get_theme_support( 'wpc-gallery' );
|
| 7 |
|
| 8 |
if ( isset( $supports[0] ) && is_array( $supports[0] ) ) {
|
| 9 |
+
foreach ( $supports[0] as $k => $v ) {
|
| 10 |
+
if ( is_array( $v ) ) {
|
| 11 |
+
foreach( $v as $kk => $vv ) {
|
| 12 |
+
$wc_gallery_theme_support[ $k ][ $kk ] = $vv;
|
| 13 |
+
}
|
| 14 |
+
}
|
| 15 |
+
else {
|
| 16 |
+
$wc_gallery_theme_support[ $k ] = $v;
|
| 17 |
+
}
|
| 18 |
}
|
| 19 |
}
|
| 20 |
}
|
| 21 |
}
|
| 22 |
add_action( 'init', 'wc_gallery_check_supports' );
|
| 23 |
|
| 24 |
+
function wc_gallery_add_action_links( $links ) {
|
| 25 |
+
return array_merge(
|
| 26 |
+
array(
|
| 27 |
+
'settings' => '<a href="' . admin_url( 'themes.php?page=wc-gallery' ) . '">' . __( 'Settings', 'wc-gallery' ) . '</a>'
|
| 28 |
+
),
|
| 29 |
+
$links
|
| 30 |
+
);
|
| 31 |
+
}
|
| 32 |
+
add_filter( 'plugin_action_links_' . WC_GALLERY_PLUGIN_BASENAME, 'wc_gallery_add_action_links' );
|
| 33 |
+
|
| 34 |
/**
|
| 35 |
* The Gallery shortcode.
|
| 36 |
*
|
| 671 |
$name_w = $size . '_size_w';
|
| 672 |
$name_h = $size . '_size_h';
|
| 673 |
$name_crop = $size . '_crop';
|
| 674 |
+
$name_enable = $size . '_enable';
|
| 675 |
|
| 676 |
+
$width = get_option( WC_GALLERY_PREFIX . $name_w, $value['size_w'] );
|
| 677 |
+
$height = get_option( WC_GALLERY_PREFIX . $name_h, $value['size_h'] );
|
| 678 |
+
$crop = get_option( WC_GALLERY_PREFIX . $name_crop, $value['crop'] );
|
| 679 |
+
$enable = get_option( WC_GALLERY_PREFIX . $name_enable, $value['enable'] );
|
| 680 |
+
if ( $enable && $width && $height ) {
|
| 681 |
$crop = $crop ? true : false;
|
| 682 |
add_image_size( 'wc' . $size, $width, $height, $crop );
|
| 683 |
}
|
includes/options.php
CHANGED
|
@@ -39,6 +39,7 @@ function wc_gallery_options( $options ) {
|
|
| 39 |
'label' => 'Max Height',
|
| 40 |
'default' => $wc_gallery_theme_support['icon']['size_h'],
|
| 41 |
'type' => 'positive_number',
|
|
|
|
| 42 |
),
|
| 43 |
array(
|
| 44 |
'option_name' => 'icon_crop',
|
|
@@ -46,6 +47,14 @@ function wc_gallery_options( $options ) {
|
|
| 46 |
'default' => $wc_gallery_theme_support['icon']['crop'],
|
| 47 |
'description' => '',
|
| 48 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
),
|
| 50 |
),
|
| 51 |
),
|
|
@@ -67,6 +76,7 @@ function wc_gallery_options( $options ) {
|
|
| 67 |
'default' => $wc_gallery_theme_support['square']['size_h'],
|
| 68 |
'type' => 'positive_number',
|
| 69 |
'less' => true,
|
|
|
|
| 70 |
),
|
| 71 |
array(
|
| 72 |
'option_name' => 'square_crop',
|
|
@@ -74,6 +84,14 @@ function wc_gallery_options( $options ) {
|
|
| 74 |
'default' => $wc_gallery_theme_support['square']['crop'],
|
| 75 |
'description' => '',
|
| 76 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
),
|
| 78 |
),
|
| 79 |
),
|
|
@@ -93,6 +111,14 @@ function wc_gallery_options( $options ) {
|
|
| 93 |
'label' => 'Max Height',
|
| 94 |
'default' => $wc_gallery_theme_support['small']['size_h'],
|
| 95 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
),
|
| 97 |
),
|
| 98 |
),
|
|
@@ -112,6 +138,14 @@ function wc_gallery_options( $options ) {
|
|
| 112 |
'label' => 'Max Height',
|
| 113 |
'default' => $wc_gallery_theme_support['standard']['size_h'],
|
| 114 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
),
|
| 116 |
),
|
| 117 |
),
|
|
@@ -131,6 +165,14 @@ function wc_gallery_options( $options ) {
|
|
| 131 |
'label' => 'Max Height',
|
| 132 |
'default' => $wc_gallery_theme_support['big']['size_h'],
|
| 133 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
),
|
| 135 |
),
|
| 136 |
),
|
|
@@ -150,6 +192,14 @@ function wc_gallery_options( $options ) {
|
|
| 150 |
'label' => 'Max Height',
|
| 151 |
'default' => $wc_gallery_theme_support['fixedheightsmall']['size_h'],
|
| 152 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
),
|
| 154 |
),
|
| 155 |
),
|
|
@@ -169,6 +219,14 @@ function wc_gallery_options( $options ) {
|
|
| 169 |
'label' => 'Max Height',
|
| 170 |
'default' => $wc_gallery_theme_support['fixedheightmedium']['size_h'],
|
| 171 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
),
|
| 173 |
),
|
| 174 |
),
|
|
@@ -188,6 +246,14 @@ function wc_gallery_options( $options ) {
|
|
| 188 |
'label' => 'Max Height',
|
| 189 |
'default' => $wc_gallery_theme_support['fixedheight']['size_h'],
|
| 190 |
'type' => 'positive_number',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 191 |
),
|
| 192 |
),
|
| 193 |
),
|
|
@@ -207,6 +273,7 @@ function wc_gallery_options( $options ) {
|
|
| 207 |
'label' => 'Max Height',
|
| 208 |
'default' => $wc_gallery_theme_support['carouselsmall']['size_h'],
|
| 209 |
'type' => 'positive_number',
|
|
|
|
| 210 |
),
|
| 211 |
array(
|
| 212 |
'option_name' => 'carouselsmall_crop',
|
|
@@ -214,6 +281,14 @@ function wc_gallery_options( $options ) {
|
|
| 214 |
'default' => $wc_gallery_theme_support['carouselsmall']['crop'],
|
| 215 |
'description' => '',
|
| 216 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 217 |
),
|
| 218 |
),
|
| 219 |
),
|
|
@@ -233,6 +308,7 @@ function wc_gallery_options( $options ) {
|
|
| 233 |
'label' => 'Max Height',
|
| 234 |
'default' => $wc_gallery_theme_support['carousel']['size_h'],
|
| 235 |
'type' => 'positive_number',
|
|
|
|
| 236 |
),
|
| 237 |
array(
|
| 238 |
'option_name' => 'carousel_crop',
|
|
@@ -240,6 +316,14 @@ function wc_gallery_options( $options ) {
|
|
| 240 |
'default' => $wc_gallery_theme_support['carousel']['crop'],
|
| 241 |
'description' => '',
|
| 242 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 243 |
),
|
| 244 |
),
|
| 245 |
),
|
|
@@ -259,6 +343,7 @@ function wc_gallery_options( $options ) {
|
|
| 259 |
'label' => 'Max Height',
|
| 260 |
'default' => $wc_gallery_theme_support['slider']['size_h'],
|
| 261 |
'type' => 'positive_number',
|
|
|
|
| 262 |
),
|
| 263 |
array(
|
| 264 |
'option_name' => 'slider_crop',
|
|
@@ -266,6 +351,14 @@ function wc_gallery_options( $options ) {
|
|
| 266 |
'default' => $wc_gallery_theme_support['slider']['crop'],
|
| 267 |
'description' => '',
|
| 268 |
'type' => 'checkbox',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 269 |
),
|
| 270 |
),
|
| 271 |
),
|
| 39 |
'label' => 'Max Height',
|
| 40 |
'default' => $wc_gallery_theme_support['icon']['size_h'],
|
| 41 |
'type' => 'positive_number',
|
| 42 |
+
'newline' => true,
|
| 43 |
),
|
| 44 |
array(
|
| 45 |
'option_name' => 'icon_crop',
|
| 47 |
'default' => $wc_gallery_theme_support['icon']['crop'],
|
| 48 |
'description' => '',
|
| 49 |
'type' => 'checkbox',
|
| 50 |
+
'newline' => true,
|
| 51 |
+
),
|
| 52 |
+
array(
|
| 53 |
+
'option_name' => 'icon_enable',
|
| 54 |
+
'label' => 'Enable Thumbnail Generation',
|
| 55 |
+
'default' => $wc_gallery_theme_support['icon']['enable'],
|
| 56 |
+
'description' => '',
|
| 57 |
+
'type' => 'checkbox',
|
| 58 |
),
|
| 59 |
),
|
| 60 |
),
|
| 76 |
'default' => $wc_gallery_theme_support['square']['size_h'],
|
| 77 |
'type' => 'positive_number',
|
| 78 |
'less' => true,
|
| 79 |
+
'newline' => true,
|
| 80 |
),
|
| 81 |
array(
|
| 82 |
'option_name' => 'square_crop',
|
| 84 |
'default' => $wc_gallery_theme_support['square']['crop'],
|
| 85 |
'description' => '',
|
| 86 |
'type' => 'checkbox',
|
| 87 |
+
'newline' => true,
|
| 88 |
+
),
|
| 89 |
+
array(
|
| 90 |
+
'option_name' => 'square_enable',
|
| 91 |
+
'label' => 'Enable Thumbnail Generation',
|
| 92 |
+
'default' => $wc_gallery_theme_support['square']['enable'],
|
| 93 |
+
'description' => '',
|
| 94 |
+
'type' => 'checkbox',
|
| 95 |
),
|
| 96 |
),
|
| 97 |
),
|
| 111 |
'label' => 'Max Height',
|
| 112 |
'default' => $wc_gallery_theme_support['small']['size_h'],
|
| 113 |
'type' => 'positive_number',
|
| 114 |
+
'newline' => true,
|
| 115 |
+
),
|
| 116 |
+
array(
|
| 117 |
+
'option_name' => 'small_enable',
|
| 118 |
+
'label' => 'Enable Thumbnail Generation',
|
| 119 |
+
'default' => $wc_gallery_theme_support['small']['enable'],
|
| 120 |
+
'description' => '',
|
| 121 |
+
'type' => 'checkbox',
|
| 122 |
),
|
| 123 |
),
|
| 124 |
),
|
| 138 |
'label' => 'Max Height',
|
| 139 |
'default' => $wc_gallery_theme_support['standard']['size_h'],
|
| 140 |
'type' => 'positive_number',
|
| 141 |
+
'newline' => true,
|
| 142 |
+
),
|
| 143 |
+
array(
|
| 144 |
+
'option_name' => 'standard_enable',
|
| 145 |
+
'label' => 'Enable Thumbnail Generation',
|
| 146 |
+
'default' => $wc_gallery_theme_support['standard']['enable'],
|
| 147 |
+
'description' => '',
|
| 148 |
+
'type' => 'checkbox',
|
| 149 |
),
|
| 150 |
),
|
| 151 |
),
|
| 165 |
'label' => 'Max Height',
|
| 166 |
'default' => $wc_gallery_theme_support['big']['size_h'],
|
| 167 |
'type' => 'positive_number',
|
| 168 |
+
'newline' => true,
|
| 169 |
+
),
|
| 170 |
+
array(
|
| 171 |
+
'option_name' => 'big_enable',
|
| 172 |
+
'label' => 'Enable Thumbnail Generation',
|
| 173 |
+
'default' => $wc_gallery_theme_support['big']['enable'],
|
| 174 |
+
'description' => '',
|
| 175 |
+
'type' => 'checkbox',
|
| 176 |
),
|
| 177 |
),
|
| 178 |
),
|
| 192 |
'label' => 'Max Height',
|
| 193 |
'default' => $wc_gallery_theme_support['fixedheightsmall']['size_h'],
|
| 194 |
'type' => 'positive_number',
|
| 195 |
+
'newline' => true,
|
| 196 |
+
),
|
| 197 |
+
array(
|
| 198 |
+
'option_name' => 'fixedheightsmall_enable',
|
| 199 |
+
'label' => 'Enable Thumbnail Generation',
|
| 200 |
+
'default' => $wc_gallery_theme_support['fixedheightsmall']['enable'],
|
| 201 |
+
'description' => '',
|
| 202 |
+
'type' => 'checkbox',
|
| 203 |
),
|
| 204 |
),
|
| 205 |
),
|
| 219 |
'label' => 'Max Height',
|
| 220 |
'default' => $wc_gallery_theme_support['fixedheightmedium']['size_h'],
|
| 221 |
'type' => 'positive_number',
|
| 222 |
+
'newline' => true,
|
| 223 |
+
),
|
| 224 |
+
array(
|
| 225 |
+
'option_name' => 'fixedheightmedium_enable',
|
| 226 |
+
'label' => 'Enable Thumbnail Generation',
|
| 227 |
+
'default' => $wc_gallery_theme_support['fixedheightmedium']['enable'],
|
| 228 |
+
'description' => '',
|
| 229 |
+
'type' => 'checkbox',
|
| 230 |
),
|
| 231 |
),
|
| 232 |
),
|
| 246 |
'label' => 'Max Height',
|
| 247 |
'default' => $wc_gallery_theme_support['fixedheight']['size_h'],
|
| 248 |
'type' => 'positive_number',
|
| 249 |
+
'newline' => true,
|
| 250 |
+
),
|
| 251 |
+
array(
|
| 252 |
+
'option_name' => 'fixedheight_enable',
|
| 253 |
+
'label' => 'Enable Thumbnail Generation',
|
| 254 |
+
'default' => $wc_gallery_theme_support['fixedheight']['enable'],
|
| 255 |
+
'description' => '',
|
| 256 |
+
'type' => 'checkbox',
|
| 257 |
),
|
| 258 |
),
|
| 259 |
),
|
| 273 |
'label' => 'Max Height',
|
| 274 |
'default' => $wc_gallery_theme_support['carouselsmall']['size_h'],
|
| 275 |
'type' => 'positive_number',
|
| 276 |
+
'newline' => true,
|
| 277 |
),
|
| 278 |
array(
|
| 279 |
'option_name' => 'carouselsmall_crop',
|
| 281 |
'default' => $wc_gallery_theme_support['carouselsmall']['crop'],
|
| 282 |
'description' => '',
|
| 283 |
'type' => 'checkbox',
|
| 284 |
+
'newline' => true,
|
| 285 |
+
),
|
| 286 |
+
array(
|
| 287 |
+
'option_name' => 'carouselsmall_enable',
|
| 288 |
+
'label' => 'Enable Thumbnail Generation',
|
| 289 |
+
'default' => $wc_gallery_theme_support['carouselsmall']['enable'],
|
| 290 |
+
'description' => '',
|
| 291 |
+
'type' => 'checkbox',
|
| 292 |
),
|
| 293 |
),
|
| 294 |
),
|
| 308 |
'label' => 'Max Height',
|
| 309 |
'default' => $wc_gallery_theme_support['carousel']['size_h'],
|
| 310 |
'type' => 'positive_number',
|
| 311 |
+
'newline' => true,
|
| 312 |
),
|
| 313 |
array(
|
| 314 |
'option_name' => 'carousel_crop',
|
| 316 |
'default' => $wc_gallery_theme_support['carousel']['crop'],
|
| 317 |
'description' => '',
|
| 318 |
'type' => 'checkbox',
|
| 319 |
+
'newline' => true,
|
| 320 |
+
),
|
| 321 |
+
array(
|
| 322 |
+
'option_name' => 'carousel_enable',
|
| 323 |
+
'label' => 'Enable Thumbnail Generation',
|
| 324 |
+
'default' => $wc_gallery_theme_support['carousel']['enable'],
|
| 325 |
+
'description' => '',
|
| 326 |
+
'type' => 'checkbox',
|
| 327 |
),
|
| 328 |
),
|
| 329 |
),
|
| 343 |
'label' => 'Max Height',
|
| 344 |
'default' => $wc_gallery_theme_support['slider']['size_h'],
|
| 345 |
'type' => 'positive_number',
|
| 346 |
+
'newline' => true,
|
| 347 |
),
|
| 348 |
array(
|
| 349 |
'option_name' => 'slider_crop',
|
| 351 |
'default' => $wc_gallery_theme_support['slider']['crop'],
|
| 352 |
'description' => '',
|
| 353 |
'type' => 'checkbox',
|
| 354 |
+
'newline' => true,
|
| 355 |
+
),
|
| 356 |
+
array(
|
| 357 |
+
'option_name' => 'slider_enable',
|
| 358 |
+
'label' => 'Enable Thumbnail Generation',
|
| 359 |
+
'default' => $wc_gallery_theme_support['slider']['enable'],
|
| 360 |
+
'description' => '',
|
| 361 |
+
'type' => 'checkbox',
|
| 362 |
),
|
| 363 |
),
|
| 364 |
),
|
includes/vendors/wpc-settings-framework/class-wpc-settings-framework.php
CHANGED
|
@@ -513,6 +513,9 @@ class WC_Gallery_Settings_Framework {
|
|
| 513 |
require( 'views/settings/input-field.php' );
|
| 514 |
break;
|
| 515 |
}
|
|
|
|
|
|
|
|
|
|
| 516 |
}
|
| 517 |
|
| 518 |
/************
|
| 513 |
require( 'views/settings/input-field.php' );
|
| 514 |
break;
|
| 515 |
}
|
| 516 |
+
|
| 517 |
+
if ( isset( $args['newline'] ) && $args['newline'] )
|
| 518 |
+
echo "<br />";
|
| 519 |
}
|
| 520 |
|
| 521 |
/************
|
includes/vendors/wpc-settings-framework/css/options.css
CHANGED
|
@@ -120,6 +120,8 @@
|
|
| 120 |
border-bottom: 1px solid #ccc;
|
| 121 |
outline: none;
|
| 122 |
box-shadow: none;
|
|
|
|
|
|
|
| 123 |
}
|
| 124 |
.wpcsf-navigation .nav-tab.nav-tab-active {
|
| 125 |
border-bottom: 1px solid #f1f1f1;
|
| 120 |
border-bottom: 1px solid #ccc;
|
| 121 |
outline: none;
|
| 122 |
box-shadow: none;
|
| 123 |
+
position: relative;
|
| 124 |
+
top: 1px;
|
| 125 |
}
|
| 126 |
.wpcsf-navigation .nav-tab.nav-tab-active {
|
| 127 |
border-bottom: 1px solid #f1f1f1;
|
readme.txt
CHANGED
|
@@ -4,7 +4,7 @@ Contributors: cbaldelomar
|
|
| 4 |
Donate link: http://webplantmedia.com/pay-now/
|
| 5 |
Tags: masonry gallery, pinterest style gallery, pinterest gallery, gallery slider, slider gallery, carousel gallery, carousel, slider
|
| 6 |
Requires at least: 3.7
|
| 7 |
-
Tested up to: 4.
|
| 8 |
Stable tag: trunk
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
|
@@ -42,10 +42,28 @@ Yes, I do accept donations. If you want to buy me a sandwich or something, you
|
|
| 42 |
|
| 43 |
= How do I use the shortcodes? =
|
| 44 |
|
| 45 |
-
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
|
| 47 |
== Changelog ==
|
| 48 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
= Version 1.49 =
|
| 50 |
|
| 51 |
* Single column galleries on mobile displays
|
| 4 |
Donate link: http://webplantmedia.com/pay-now/
|
| 5 |
Tags: masonry gallery, pinterest style gallery, pinterest gallery, gallery slider, slider gallery, carousel gallery, carousel, slider
|
| 6 |
Requires at least: 3.7
|
| 7 |
+
Tested up to: 4.5.2
|
| 8 |
Stable tag: trunk
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 42 |
|
| 43 |
= How do I use the shortcodes? =
|
| 44 |
|
| 45 |
+
Insert a gallery through your dashboard. You will see extra dropdown settings when configuring your gallery.
|
| 46 |
+
|
| 47 |
+
[http://angiemakes.com/knowledgebase/gallery-plugin-overview/](http://angiemakes.com/knowledgebase/gallery-plugin-overview/)
|
| 48 |
+
|
| 49 |
+
= How do I fix HTTP error code when uploading media? =
|
| 50 |
+
|
| 51 |
+
[http://angiemakes.com/knowledgebase/how-to-fix-http-error-code-when-uploading-media/](http://angiemakes.com/knowledgebase/how-to-fix-http-error-code-when-uploading-media/)
|
| 52 |
+
|
| 53 |
+
= Where can I get more help? =
|
| 54 |
+
|
| 55 |
+
For more tutorials on our gallery plugin, go to our knowledge base.
|
| 56 |
+
|
| 57 |
+
[http://angiemakes.com/knowledgebase/category/plugins/gallery/](http://angiemakes.com/knowledgebase/category/plugins/gallery/)
|
| 58 |
|
| 59 |
== Changelog ==
|
| 60 |
|
| 61 |
+
= Version 1.50 =
|
| 62 |
+
|
| 63 |
+
* added option to disable thumbnail generation
|
| 64 |
+
* admin style update
|
| 65 |
+
* adding settings link in plugin page
|
| 66 |
+
|
| 67 |
= Version 1.49 =
|
| 68 |
|
| 69 |
* Single column galleries on mobile displays
|
wc-gallery.php
CHANGED
|
@@ -5,7 +5,7 @@ Plugin URI: http://wordpresscanvas.com/features/gallery/
|
|
| 5 |
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
-
Version: 1.
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
|
@@ -13,12 +13,13 @@ function wc_gallery_using_woocommerce() {
|
|
| 13 |
return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
|
| 14 |
}
|
| 15 |
|
| 16 |
-
define( 'WC_GALLERY_VERSION', '1.
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 20 |
define( 'WC_GALLERY_USING_WOOCOMMERCE', wc_gallery_using_woocommerce() );
|
| 21 |
define( 'WC_GALLERY_CURRENT_VERSION', get_option( WC_GALLERY_PREFIX . 'current_version' ) );
|
|
|
|
| 22 |
|
| 23 |
global $wc_gallery_options;
|
| 24 |
global $wc_gallery_theme_support;
|
|
@@ -28,56 +29,67 @@ $wc_gallery_theme_support = array(
|
|
| 28 |
'size_w' => '48',
|
| 29 |
'size_h' => '48',
|
| 30 |
'crop' => true,
|
|
|
|
| 31 |
),
|
| 32 |
'square' => array(
|
| 33 |
'size_w' => '300',
|
| 34 |
'size_h' => '300',
|
| 35 |
'crop' => true,
|
|
|
|
| 36 |
),
|
| 37 |
'small' => array(
|
| 38 |
'size_w' => '250',
|
| 39 |
'size_h' => '9999',
|
| 40 |
'crop' => false,
|
|
|
|
| 41 |
),
|
| 42 |
'standard' => array(
|
| 43 |
'size_w' => '550',
|
| 44 |
'size_h' => '9999',
|
| 45 |
'crop' => false,
|
|
|
|
| 46 |
),
|
| 47 |
'big' => array(
|
| 48 |
'size_w' => '800',
|
| 49 |
'size_h' => '9999',
|
| 50 |
'crop' => false,
|
|
|
|
| 51 |
),
|
| 52 |
'fixedheightsmall' => array(
|
| 53 |
'size_w' => '9999',
|
| 54 |
'size_h' => '180',
|
| 55 |
'crop' => false,
|
|
|
|
| 56 |
),
|
| 57 |
'fixedheightmedium' => array(
|
| 58 |
'size_w' => '9999',
|
| 59 |
'size_h' => '300',
|
| 60 |
'crop' => false,
|
|
|
|
| 61 |
),
|
| 62 |
'fixedheight' => array(
|
| 63 |
'size_w' => '9999',
|
| 64 |
'size_h' => '500',
|
| 65 |
'crop' => false,
|
|
|
|
| 66 |
),
|
| 67 |
'carouselsmall' => array(
|
| 68 |
'size_w' => '210',
|
| 69 |
'size_h' => '150',
|
| 70 |
'crop' => true,
|
|
|
|
| 71 |
),
|
| 72 |
'carousel' => array(
|
| 73 |
'size_w' => '400',
|
| 74 |
'size_h' => '285',
|
| 75 |
'crop' => true,
|
|
|
|
| 76 |
),
|
| 77 |
'slider' => array(
|
| 78 |
'size_w' => '1100',
|
| 79 |
'size_h' => '500',
|
| 80 |
'crop' => true,
|
|
|
|
| 81 |
),
|
| 82 |
);
|
| 83 |
|
| 5 |
Description: Extend WordPress galleries to display masonry gallery, carousel gallery, and slider gallery
|
| 6 |
Author: Chris Baldelomar
|
| 7 |
Author URI: http://webplantmedia.com/
|
| 8 |
+
Version: 1.50
|
| 9 |
License: GPLv2 or later
|
| 10 |
*/
|
| 11 |
|
| 13 |
return in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) );
|
| 14 |
}
|
| 15 |
|
| 16 |
+
define( 'WC_GALLERY_VERSION', '1.50' );
|
| 17 |
define( 'WC_GALLERY_PREFIX', 'wc_gallery_' );
|
| 18 |
define( '_WC_GALLERY_PREFIX', '_wc_gallery_' );
|
| 19 |
define( 'WC_GALLERY_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
| 20 |
define( 'WC_GALLERY_USING_WOOCOMMERCE', wc_gallery_using_woocommerce() );
|
| 21 |
define( 'WC_GALLERY_CURRENT_VERSION', get_option( WC_GALLERY_PREFIX . 'current_version' ) );
|
| 22 |
+
define( 'WC_GALLERY_PLUGIN_BASENAME', plugin_basename( plugin_dir_path( realpath( __FILE__ ) ) . 'wc-gallery.php' ) );
|
| 23 |
|
| 24 |
global $wc_gallery_options;
|
| 25 |
global $wc_gallery_theme_support;
|
| 29 |
'size_w' => '48',
|
| 30 |
'size_h' => '48',
|
| 31 |
'crop' => true,
|
| 32 |
+
'enable' => true,
|
| 33 |
),
|
| 34 |
'square' => array(
|
| 35 |
'size_w' => '300',
|
| 36 |
'size_h' => '300',
|
| 37 |
'crop' => true,
|
| 38 |
+
'enable' => true,
|
| 39 |
),
|
| 40 |
'small' => array(
|
| 41 |
'size_w' => '250',
|
| 42 |
'size_h' => '9999',
|
| 43 |
'crop' => false,
|
| 44 |
+
'enable' => true,
|
| 45 |
),
|
| 46 |
'standard' => array(
|
| 47 |
'size_w' => '550',
|
| 48 |
'size_h' => '9999',
|
| 49 |
'crop' => false,
|
| 50 |
+
'enable' => true,
|
| 51 |
),
|
| 52 |
'big' => array(
|
| 53 |
'size_w' => '800',
|
| 54 |
'size_h' => '9999',
|
| 55 |
'crop' => false,
|
| 56 |
+
'enable' => true,
|
| 57 |
),
|
| 58 |
'fixedheightsmall' => array(
|
| 59 |
'size_w' => '9999',
|
| 60 |
'size_h' => '180',
|
| 61 |
'crop' => false,
|
| 62 |
+
'enable' => true,
|
| 63 |
),
|
| 64 |
'fixedheightmedium' => array(
|
| 65 |
'size_w' => '9999',
|
| 66 |
'size_h' => '300',
|
| 67 |
'crop' => false,
|
| 68 |
+
'enable' => true,
|
| 69 |
),
|
| 70 |
'fixedheight' => array(
|
| 71 |
'size_w' => '9999',
|
| 72 |
'size_h' => '500',
|
| 73 |
'crop' => false,
|
| 74 |
+
'enable' => true,
|
| 75 |
),
|
| 76 |
'carouselsmall' => array(
|
| 77 |
'size_w' => '210',
|
| 78 |
'size_h' => '150',
|
| 79 |
'crop' => true,
|
| 80 |
+
'enable' => true,
|
| 81 |
),
|
| 82 |
'carousel' => array(
|
| 83 |
'size_w' => '400',
|
| 84 |
'size_h' => '285',
|
| 85 |
'crop' => true,
|
| 86 |
+
'enable' => true,
|
| 87 |
),
|
| 88 |
'slider' => array(
|
| 89 |
'size_w' => '1100',
|
| 90 |
'size_h' => '500',
|
| 91 |
'crop' => true,
|
| 92 |
+
'enable' => true,
|
| 93 |
),
|
| 94 |
);
|
| 95 |
|
