@@ -29,15 +29,15 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @return array Key "markup" has the HTML. |
| 31 | 31 | */ |
| 32 | - public function swap( $data ) { |
|
| 32 | + public function swap($data) { |
|
| 33 | 33 | |
| 34 | 34 | |
| 35 | - $id = $data[ 'gallery_id' ]; |
|
| 36 | - if ( is_null( $id ) ) { |
|
| 35 | + $id = $data['gallery_id']; |
|
| 36 | + if (is_null($id)) { |
|
| 37 | 37 | $id = false; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - $markup = sprintf( '<div contenteditable="false" class="lasso--empty-component aesop-component aesop-gallery-component" data-component-type="gallery" data-id="%s">%s</div>', $id, __( 'Save and refresh to view gallery.','lasso' ) ); |
|
| 40 | + $markup = sprintf('<div contenteditable="false" class="lasso--empty-component aesop-component aesop-gallery-component" data-component-type="gallery" data-id="%s">%s</div>', $id, __('Save and refresh to view gallery.', 'lasso')); |
|
| 41 | 41 | |
| 42 | 42 | return array( |
| 43 | 43 | 'gallery' => $markup |
@@ -54,49 +54,49 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @return array|bool On success an array containing "message" or on failure false. |
| 56 | 56 | */ |
| 57 | - public function create( $data ) { |
|
| 57 | + public function create($data) { |
|
| 58 | 58 | |
| 59 | 59 | //@todo adapt auth callbacks to work with args. |
| 60 | - if ( ! lasso_user_can( 'publish_posts' ) ) { |
|
| 60 | + if (!lasso_user_can('publish_posts')) { |
|
| 61 | 61 | return false; |
| 62 | 62 | |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - $gallery_ids = isset( $data['gallery_ids'] ) ? $data['gallery_ids'] : false; |
|
| 65 | + $gallery_ids = isset($data['gallery_ids']) ? $data['gallery_ids'] : false; |
|
| 66 | 66 | |
| 67 | 67 | // bail if no gallery ids |
| 68 | - if ( empty( $gallery_ids ) ) { |
|
| 68 | + if (empty($gallery_ids)) { |
|
| 69 | 69 | return false; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - $postid = isset( $data['postid'] ) ? (int) $data['postid'] : false; |
|
| 73 | - $type = isset( $data['gallery_type'] ) ? $data['gallery_type'] : false; |
|
| 74 | - $edgallerytitle = isset( $data['edgallerytitle'] ) ? $data['edgallerytitle'] : $postid.'-'.rand(); |
|
| 72 | + $postid = isset($data['postid']) ? (int) $data['postid'] : false; |
|
| 73 | + $type = isset($data['gallery_type']) ? $data['gallery_type'] : false; |
|
| 74 | + $edgallerytitle = isset($data['edgallerytitle']) ? $data['edgallerytitle'] : $postid.'-'.rand(); |
|
| 75 | 75 | |
| 76 | 76 | // insert a new gallery |
| 77 | 77 | $args = array( |
| 78 | - 'post_title' => $edgallerytitle , |
|
| 78 | + 'post_title' => $edgallerytitle, |
|
| 79 | 79 | 'post_status' => 'publish', |
| 80 | 80 | 'post_type' => 'ai_galleries' |
| 81 | 81 | ); |
| 82 | 82 | |
| 83 | - $postid = wp_insert_post( apply_filters( 'lasso_insert_gallery_args', $args ) ); |
|
| 83 | + $postid = wp_insert_post(apply_filters('lasso_insert_gallery_args', $args)); |
|
| 84 | 84 | |
| 85 | 85 | // update gallery ids |
| 86 | - if ( $gallery_ids ) { |
|
| 86 | + if ($gallery_ids) { |
|
| 87 | 87 | |
| 88 | - update_post_meta( $postid, '_ase_gallery_images', $gallery_ids ); |
|
| 88 | + update_post_meta($postid, '_ase_gallery_images', $gallery_ids); |
|
| 89 | 89 | |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | // update the gallery type |
| 93 | - if ( !empty( $type ) ) { |
|
| 93 | + if (!empty($type)) { |
|
| 94 | 94 | |
| 95 | - update_post_meta( $postid, 'aesop_gallery_type', $type ); |
|
| 95 | + update_post_meta($postid, 'aesop_gallery_type', $type); |
|
| 96 | 96 | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | - do_action( 'lasso_gallery_published', $postid, $gallery_ids, get_current_user_ID() ); |
|
| 99 | + do_action('lasso_gallery_published', $postid, $gallery_ids, get_current_user_ID()); |
|
| 100 | 100 | |
| 101 | 101 | return array( |
| 102 | 102 | 'message' => 'gallery-created', |
@@ -114,20 +114,20 @@ discard block |
||
| 114 | 114 | * |
| 115 | 115 | * @return array "message" key has the message. |
| 116 | 116 | */ |
| 117 | - public function update( $data ) { |
|
| 118 | - |
|
| 119 | - $options = isset( $data['fields'] ) ? $data['fields'] : false; |
|
| 120 | - $postid = !empty( $options ) ? (int) $options['id'] : false; |
|
| 121 | - $gallery_ids = isset( $data['gallery_ids'] ) ? $data['gallery_ids'] : false; |
|
| 122 | - if ( ! empty( $data ) && $data[ 'gallery_type' ] ) { |
|
| 123 | - $type = $data[ 'gallery_type' ]; |
|
| 124 | - }elseif ( ! empty( $options ) && $options[ 'galleryType' ] ) { |
|
| 125 | - $type = $options[ 'galleryType' ]; |
|
| 126 | - }else{ |
|
| 117 | + public function update($data) { |
|
| 118 | + |
|
| 119 | + $options = isset($data['fields']) ? $data['fields'] : false; |
|
| 120 | + $postid = !empty($options) ? (int) $options['id'] : false; |
|
| 121 | + $gallery_ids = isset($data['gallery_ids']) ? $data['gallery_ids'] : false; |
|
| 122 | + if (!empty($data) && $data['gallery_type']) { |
|
| 123 | + $type = $data['gallery_type']; |
|
| 124 | + }elseif (!empty($options) && $options['galleryType']) { |
|
| 125 | + $type = $options['galleryType']; |
|
| 126 | + } else { |
|
| 127 | 127 | $type = false; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - save_gallery::save_gallery_options( $postid, $gallery_ids, $options, $type ); |
|
| 130 | + save_gallery::save_gallery_options($postid, $gallery_ids, $options, $type); |
|
| 131 | 131 | |
| 132 | 132 | return array( |
| 133 | 133 | 'message' => 'gallery-updated' |
@@ -145,25 +145,25 @@ discard block |
||
| 145 | 145 | * |
| 146 | 146 | * @return bool |
| 147 | 147 | */ |
| 148 | - public function get_images( $data ) { |
|
| 148 | + public function get_images($data) { |
|
| 149 | 149 | |
| 150 | 150 | //check caps |
| 151 | - if ( !current_user_can( 'edit_posts' ) ) { |
|
| 151 | + if (!current_user_can('edit_posts')) { |
|
| 152 | 152 | return false; |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | // bail if no id specified like on new galleries |
| 156 | - if ( is_null( $data['post_id'] ) || empty( $data['post_id'] ) ) { |
|
| 156 | + if (is_null($data['post_id']) || empty($data['post_id'])) { |
|
| 157 | 157 | return false; |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | - $postid = isset( $data['post_id'] ) ? $data['post_id'] : false; |
|
| 160 | + $postid = isset($data['post_id']) ? $data['post_id'] : false; |
|
| 161 | 161 | |
| 162 | 162 | // fetch image ids from cache |
| 163 | - $image_ids = get_post_meta( $postid, '_ase_gallery_images', true ); |
|
| 163 | + $image_ids = get_post_meta($postid, '_ase_gallery_images', true); |
|
| 164 | 164 | |
| 165 | 165 | // send ids to return images |
| 166 | - return self::get_the_images( $image_ids ); |
|
| 166 | + return self::get_the_images($image_ids); |
|
| 167 | 167 | |
| 168 | 168 | } |
| 169 | 169 | |
@@ -173,32 +173,32 @@ discard block |
||
| 173 | 173 | * @param $image_ids array array of image ids |
| 174 | 174 | * @since 0.1 |
| 175 | 175 | */ |
| 176 | - private function get_the_images( $image_ids = '' ) { |
|
| 176 | + private function get_the_images($image_ids = '') { |
|
| 177 | 177 | |
| 178 | - if ( empty( $image_ids ) ) |
|
| 178 | + if (empty($image_ids)) |
|
| 179 | 179 | return; |
| 180 | 180 | |
| 181 | - $image_ids = array_map( 'intval', explode( ',', $image_ids ) ); |
|
| 181 | + $image_ids = array_map('intval', explode(',', $image_ids)); |
|
| 182 | 182 | |
| 183 | 183 | $out[] = '<ul id="ase-gallery-images">'; |
| 184 | 184 | |
| 185 | - if ( !empty( $image_ids ) ): |
|
| 185 | + if (!empty($image_ids)): |
|
| 186 | 186 | |
| 187 | - foreach ( $image_ids as $image_id ) { |
|
| 187 | + foreach ($image_ids as $image_id) { |
|
| 188 | 188 | |
| 189 | - $image = wp_get_attachment_image_src( $image_id, 'thumbnail', false ); |
|
| 189 | + $image = wp_get_attachment_image_src($image_id, 'thumbnail', false); |
|
| 190 | 190 | |
| 191 | - $out[] = sprintf( ' |
|
| 191 | + $out[] = sprintf(' |
|
| 192 | 192 | <li id="%1s" class="ase-gallery-image"> |
| 193 | 193 | <i class="dashicons dashicons-no-alt" title="%2s"></i> |
| 194 | 194 | <i class="dashicons dashicons-edit" title="%3s"></i> |
| 195 | 195 | <img src="%4s"> |
| 196 | 196 | </li> |
| 197 | 197 | ', |
| 198 | - absint( $image_id ), |
|
| 199 | - __( 'Delete From Gallery', 'lasso' ), |
|
| 200 | - __( 'Edit Image Caption', 'lasso' ), |
|
| 201 | - esc_url( $image[0] ) |
|
| 198 | + absint($image_id), |
|
| 199 | + __('Delete From Gallery', 'lasso'), |
|
| 200 | + __('Edit Image Caption', 'lasso'), |
|
| 201 | + esc_url($image[0]) |
|
| 202 | 202 | ); |
| 203 | 203 | |
| 204 | 204 | } |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | $out[] = '</ul>'; |
| 209 | 209 | |
| 210 | - return array( 'html' => implode( '', $out ) ); |
|
| 210 | + return array('html' => implode('', $out)); |
|
| 211 | 211 | |
| 212 | 212 | } |
| 213 | 213 | |
@@ -219,13 +219,13 @@ discard block |
||
| 219 | 219 | * |
| 220 | 220 | * @return array Array of keys to pull from $data per action and their sanitization callback |
| 221 | 221 | */ |
| 222 | - public static function params(){ |
|
| 223 | - $params[ 'process_gallery_swap' ] = array( |
|
| 222 | + public static function params() { |
|
| 223 | + $params['process_gallery_swap'] = array( |
|
| 224 | 224 | 'gallery_id' => 'absint', |
| 225 | 225 | |
| 226 | 226 | ); |
| 227 | 227 | |
| 228 | - $params[ 'process_gallery_create' ] = array( |
|
| 228 | + $params['process_gallery_create'] = array( |
|
| 229 | 229 | 'postid' => 'absint', |
| 230 | 230 | 'content' => 'wp_kses_post', |
| 231 | 231 | 'edgallerytitle' =>'sanitize_text_field', |
@@ -237,7 +237,7 @@ discard block |
||
| 237 | 237 | |
| 238 | 238 | ); |
| 239 | 239 | |
| 240 | - $params[ 'process_gallery_update' ] = array( |
|
| 240 | + $params['process_gallery_update'] = array( |
|
| 241 | 241 | 'postid' => 'absint', |
| 242 | 242 | 'gallery_ids' => 'lasso_sanitize_data', |
| 243 | 243 | 'fields' => 'lasso_sanitize_data', |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | ) |
| 248 | 248 | ); |
| 249 | 249 | |
| 250 | - $params[ 'process_gallery_get_images' ] = array( |
|
| 250 | + $params['process_gallery_get_images'] = array( |
|
| 251 | 251 | 'post_id' => 'absint' |
| 252 | 252 | ); |
| 253 | 253 | |
@@ -263,19 +263,19 @@ discard block |
||
| 263 | 263 | * @return array Array of additional functions to use to authorize action. |
| 264 | 264 | */ |
| 265 | 265 | public static function auth_callbacks() { |
| 266 | - $params[ 'process_gallery_swap' ] = array( |
|
| 266 | + $params['process_gallery_swap'] = array( |
|
| 267 | 267 | 'lasso_user_can' |
| 268 | 268 | ); |
| 269 | 269 | |
| 270 | - $params[ 'process_gallery_create' ] = array( |
|
| 270 | + $params['process_gallery_create'] = array( |
|
| 271 | 271 | 'is_user_logged_in' |
| 272 | 272 | ); |
| 273 | 273 | |
| 274 | - $params[ 'process_gallery_update' ] = array( |
|
| 274 | + $params['process_gallery_update'] = array( |
|
| 275 | 275 | 'lasso_user_can' |
| 276 | 276 | ); |
| 277 | 277 | |
| 278 | - $params[ 'process_gallery_get_images' ] = array(); |
|
| 278 | + $params['process_gallery_get_images'] = array(); |
|
| 279 | 279 | |
| 280 | 280 | return $params; |
| 281 | 281 | |
@@ -11,12 +11,12 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | ob_start(); |
| 13 | 13 | |
| 14 | - if ( $galleries ) { ?> |
|
| 14 | + if ($galleries) { ?> |
|
| 15 | 15 | |
| 16 | - <?php if ( lasso_user_can( 'publish_posts' ) ): ?> |
|
| 16 | + <?php if (lasso_user_can('publish_posts')): ?> |
|
| 17 | 17 | <div class="ase-gallery-opts ase-gallery-opts--create-gallery" style="display:inline !important; postion:relative !important;left:12px !important"> |
| 18 | 18 | <div class="ase-gallery-opts--single lasso-option"> |
| 19 | - <a href="#" class="editor-btn-secondary" id="lasso--gallery__create"><?php _e( 'Create gallery', 'lasso' );?></a> |
|
| 19 | + <a href="#" class="editor-btn-secondary" id="lasso--gallery__create"><?php _e('Create gallery', 'lasso'); ?></a> |
|
| 20 | 20 | </div> |
| 21 | 21 | </div> |
| 22 | 22 | <?php endif; ?> |
@@ -24,11 +24,11 @@ discard block |
||
| 24 | 24 | <div class="ase-gallery-opts ase-gallery-opts--edit-gallery" > |
| 25 | 25 | <div class="ase-gallery-opts--single lasso-option"> |
| 26 | 26 | |
| 27 | - <label><?php _e( 'Manage Images', 'lasso' );?> |
|
| 28 | - <a href="#" id="ase-gallery-add-image" class="lasso-editor-tiny-btn" title="<?php esc_attr_e( 'Add Images', 'lasso' );?>"><i class="lasso-icon-pencil"></i></a> |
|
| 27 | + <label><?php _e('Manage Images', 'lasso'); ?> |
|
| 28 | + <a href="#" id="ase-gallery-add-image" class="lasso-editor-tiny-btn" title="<?php esc_attr_e('Add Images', 'lasso'); ?>"><i class="lasso-icon-pencil"></i></a> |
|
| 29 | 29 | |
| 30 | 30 | </label> |
| 31 | - <small class="lasso-option-desc"><?php _e( 'Rearrange or edit the images in this gallery.', 'lasso' );?></small> |
|
| 31 | + <small class="lasso-option-desc"><?php _e('Rearrange or edit the images in this gallery.', 'lasso'); ?></small> |
|
| 32 | 32 | |
| 33 | 33 | <div id="lasso--gallery__images"><span class="lasso-icon-spinner6"></span></div> |
| 34 | 34 | |
@@ -38,22 +38,22 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | <?php } |
| 40 | 40 | |
| 41 | - if ( lasso_user_can( 'publish_posts' ) ): ?> |
|
| 41 | + if (lasso_user_can('publish_posts')): ?> |
|
| 42 | 42 | |
| 43 | 43 | <div class="ase-gallery-opts ase-gallery-opts--create-gallery" > |
| 44 | 44 | |
| 45 | 45 | <div class="ase-gallery-opts--single lasso-option"> |
| 46 | 46 | |
| 47 | - <label><?php _e( 'Create a Gallery', 'lasso' );?></label> |
|
| 47 | + <label><?php _e('Create a Gallery', 'lasso'); ?></label> |
|
| 48 | 48 | <small class="lasso-option-desc">Gallery Name:</small> |
| 49 | 49 | <input type="text" id="lasso--gallery__galleryname" value="New Gallery"><br> |
| 50 | 50 | |
| 51 | - <small class="lasso-option-desc"><?php _e( 'Select images to create a gallery.', 'lasso' );?></small> |
|
| 52 | - <a href="#" class="editor-btn-secondary" id="lasso--gallery__selectImages"><?php _e( 'Select Images', 'lasso' );?></a> |
|
| 51 | + <small class="lasso-option-desc"><?php _e('Select images to create a gallery.', 'lasso'); ?></small> |
|
| 52 | + <a href="#" class="editor-btn-secondary" id="lasso--gallery__selectImages"><?php _e('Select Images', 'lasso'); ?></a> |
|
| 53 | 53 | |
| 54 | 54 | <div id="ase-gallery-images"></div> |
| 55 | 55 | |
| 56 | - <a style="display:none;" class="editor-btn-secondary" data-post-title="<?php echo esc_attr( strtolower( the_title_attribute() ) );?>" id="lasso--gallery__save" href="#"><?php _e( 'Create Gallery', 'lasso' );?></a> |
|
| 56 | + <a style="display:none;" class="editor-btn-secondary" data-post-title="<?php echo esc_attr(strtolower(the_title_attribute())); ?>" id="lasso--gallery__save" href="#"><?php _e('Create Gallery', 'lasso'); ?></a> |
|
| 57 | 57 | |
| 58 | 58 | </div> |
| 59 | 59 | |
@@ -64,14 +64,14 @@ discard block |
||
| 64 | 64 | <!-- Gallery Layout/Type Chooser --> |
| 65 | 65 | <div class="ase-gallery-opts ase-gallery-opts--type" > |
| 66 | 66 | <div data-option="gallery-type" class="ase-gallery-opts--single lasso-option"> |
| 67 | - <label><?php _e( 'Gallery Type', 'lasso' );?></label> |
|
| 68 | - <small class="lasso-option-desc"><?php _e( 'Select the type of gallery.', 'lasso' );?></small> |
|
| 67 | + <label><?php _e('Gallery Type', 'lasso'); ?></label> |
|
| 68 | + <small class="lasso-option-desc"><?php _e('Select the type of gallery.', 'lasso'); ?></small> |
|
| 69 | 69 | <fieldset> |
| 70 | - <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="grid"><?php _e( 'Grid', 'lasso' );?></label> |
|
| 71 | - <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="thumbnail"><?php _e( 'Thumbnail', 'lasso' );?></label> |
|
| 70 | + <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="grid"><?php _e('Grid', 'lasso'); ?></label> |
|
| 71 | + <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="thumbnail"><?php _e('Thumbnail', 'lasso'); ?></label> |
|
| 72 | 72 | <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="sequence">Sequence</label> |
| 73 | - <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="photoset"><?php _e( 'Photoset', 'lasso' );?></label> |
|
| 74 | - <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="stacked"><?php _e( 'Parallax', 'lasso' );?></label> |
|
| 73 | + <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="photoset"><?php _e('Photoset', 'lasso'); ?></label> |
|
| 74 | + <label for="lasso_gallery_type" class="ase-gallery-layout-label"><input class="lasso-generator-attr ase-gallery-type-radio" type="radio" name="lasso_gallery_type" value="stacked"><?php _e('Parallax', 'lasso'); ?></label> |
|
| 75 | 75 | </fieldset> |
| 76 | 76 | </div> |
| 77 | 77 | </div> |
@@ -80,8 +80,8 @@ discard block |
||
| 80 | 80 | <div class="ase-gallery-opts ase-gallery-opts--grid" style="display:none;"> |
| 81 | 81 | |
| 82 | 82 | <div data-option="itemwidth" class="ase-gallery-opts--single lasso-option"> |
| 83 | - <label for="lasso_grid_gallery_width"><?php _e( 'Grid Item Width', 'lasso' );?></label> |
|
| 84 | - <small class="lasso-option-desc"><?php _e( 'Adjust the width of the individual grid items, only if using Grid gallery style. Default is 400.', 'lasso' );?></small> |
|
| 83 | + <label for="lasso_grid_gallery_width"><?php _e('Grid Item Width', 'lasso'); ?></label> |
|
| 84 | + <small class="lasso-option-desc"><?php _e('Adjust the width of the individual grid items, only if using Grid gallery style. Default is 400.', 'lasso'); ?></small> |
|
| 85 | 85 | <input type="text_small" class="lasso-generator-attr" name="lasso_grid_gallery_width" value=""> |
| 86 | 86 | </div> |
| 87 | 87 | |
@@ -91,24 +91,24 @@ discard block |
||
| 91 | 91 | <div class="ase-gallery-opts ase-gallery-opts--thumb" style="display:none;"> |
| 92 | 92 | |
| 93 | 93 | <div data-option="transition" class="ase-gallery-opts--single lasso-option"> |
| 94 | - <label for="lasso_thumb_gallery_transition"><?php _e( 'Gallery Transition', 'lasso' );?></label> |
|
| 95 | - <small class="lasso-option-desc"><?php _e( 'Adjust the transition effect for the Thumbnail gallery. Default is slide.', 'lasso' );?></small> |
|
| 94 | + <label for="lasso_thumb_gallery_transition"><?php _e('Gallery Transition', 'lasso'); ?></label> |
|
| 95 | + <small class="lasso-option-desc"><?php _e('Adjust the transition effect for the Thumbnail gallery. Default is slide.', 'lasso'); ?></small> |
|
| 96 | 96 | <select name="lasso_thumb_gallery_transition" class="lasso-generator-attr"> |
| 97 | - <option value="crossfade"><?php _e( 'Fade', 'lasso' );?></option> |
|
| 98 | - <option value="slide"><?php _e( 'Slide', 'lasso' );?></option> |
|
| 99 | - <option value="dissolve"><?php _e( 'Dissolve', 'lasso' );?></option> |
|
| 97 | + <option value="crossfade"><?php _e('Fade', 'lasso'); ?></option> |
|
| 98 | + <option value="slide"><?php _e('Slide', 'lasso'); ?></option> |
|
| 99 | + <option value="dissolve"><?php _e('Dissolve', 'lasso'); ?></option> |
|
| 100 | 100 | </select> |
| 101 | 101 | </div> |
| 102 | 102 | |
| 103 | 103 | <div data-option="speed" class="ase-gallery-opts--single lasso-option"> |
| 104 | - <label for="lasso_thumb_gallery_transition_speed"><?php _e( 'Gallery Transition Speed', 'lasso' );?></label> |
|
| 105 | - <small class="lasso-option-desc"><?php _e( 'Activate slideshow by setting a speed for the transition.5000 = 5 seconds.', 'lasso' );?></small> |
|
| 104 | + <label for="lasso_thumb_gallery_transition_speed"><?php _e('Gallery Transition Speed', 'lasso'); ?></label> |
|
| 105 | + <small class="lasso-option-desc"><?php _e('Activate slideshow by setting a speed for the transition.5000 = 5 seconds.', 'lasso'); ?></small> |
|
| 106 | 106 | <input type="text" class="lasso-generator-attr" name="lasso_thumb_gallery_transition_speed" value=""> |
| 107 | 107 | </div> |
| 108 | 108 | |
| 109 | 109 | <div data-option="hide-thumbs" class="ase-gallery-opts--single lasso-option"> |
| 110 | 110 | <input class="lasso-generator-attr" type="checkbox" name="lasso_thumb_gallery_hide_thumbs"> |
| 111 | - <label for="lasso_thumb_gallery_hide_thumbs"><?php _e( 'Hide Gallery Thumbnails', 'lasso' );?></label> |
|
| 111 | + <label for="lasso_thumb_gallery_hide_thumbs"><?php _e('Hide Gallery Thumbnails', 'lasso'); ?></label> |
|
| 112 | 112 | </div> |
| 113 | 113 | |
| 114 | 114 | </div> |
@@ -117,14 +117,14 @@ discard block |
||
| 117 | 117 | <div class="ase-gallery-opts ase-gallery-opts--photoset" style="display:none;"> |
| 118 | 118 | |
| 119 | 119 | <div data-option="pslayout" class="ase-gallery-opts--single lasso-option"> |
| 120 | - <label for="lasso-photoset-gallery-layout"><?php _e( 'Gallery Layout', 'lasso' );?></label> |
|
| 121 | - <small class="lasso-option-desc"><?php _e( 'Let\'s say you have 4 images in this gallery. If you enter 121 you will have one image on the top row, two images on the second row, and one image on the third row.', 'lasso' );?></small> |
|
| 120 | + <label for="lasso-photoset-gallery-layout"><?php _e('Gallery Layout', 'lasso'); ?></label> |
|
| 121 | + <small class="lasso-option-desc"><?php _e('Let\'s say you have 4 images in this gallery. If you enter 121 you will have one image on the top row, two images on the second row, and one image on the third row.', 'lasso'); ?></small> |
|
| 122 | 122 | <input type="text" class="lasso-generator-attr" name="lasso_photoset_gallery_layout" value=""> |
| 123 | 123 | </div> |
| 124 | 124 | |
| 125 | 125 | <div data-option="pslightbox" class="ase-gallery-opts--single lasso-option"> |
| 126 | 126 | <input type="checkbox" class="lasso-generator-attr" name="lasso_photoset_gallery_lightbox"> |
| 127 | - <label for="lasso_photoset_gallery_lightbox"><?php _e( 'Enable Lightbox', 'lasso' );?></label> |
|
| 127 | + <label for="lasso_photoset_gallery_lightbox"><?php _e('Enable Lightbox', 'lasso'); ?></label> |
|
| 128 | 128 | </div> |
| 129 | 129 | |
| 130 | 130 | </div> |
@@ -133,13 +133,13 @@ discard block |
||
| 133 | 133 | <div class="ase-gallery-opts ase-gallery-opts--global"> |
| 134 | 134 | |
| 135 | 135 | <div data-option="width" class="ase-gallery-opts--single lasso-option"> |
| 136 | - <label for="lasso_gallery_width"><?php _e( 'Main Gallery Width', 'lasso' );?></label> |
|
| 137 | - <small class="lasso-option-desc"><?php _e( 'Adjust the overall width of the grid/thumbnail gallery. Acceptable values include 500px or 50%.', 'lasso' );?></small> |
|
| 136 | + <label for="lasso_gallery_width"><?php _e('Main Gallery Width', 'lasso'); ?></label> |
|
| 137 | + <small class="lasso-option-desc"><?php _e('Adjust the overall width of the grid/thumbnail gallery. Acceptable values include 500px or 50%.', 'lasso'); ?></small> |
|
| 138 | 138 | <input type="text_small" class="lasso-generator-attr" name="lasso_gallery_width" value=""> |
| 139 | 139 | </div> |
| 140 | 140 | <div data-option="caption" class="ase-gallery-opts--single lasso-option"> |
| 141 | - <label for="lasso_gallery_caption"><?php _e( 'Gallery Caption', 'lasso' );?></label> |
|
| 142 | - <small class="lasso-option-desc"><?php _e( 'Add an optional caption for the gallery.', 'lasso' );?></small> |
|
| 141 | + <label for="lasso_gallery_caption"><?php _e('Gallery Caption', 'lasso'); ?></label> |
|
| 142 | + <small class="lasso-option-desc"><?php _e('Add an optional caption for the gallery.', 'lasso'); ?></small> |
|
| 143 | 143 | <textarea name="lasso_gallery_caption" class="lasso-generator-attr"></textarea> |
| 144 | 144 | </div> |
| 145 | 145 | |