Changeset 914954
- Timestamp:
- 05/15/2014 08:59:31 PM (11 years ago)
- Location:
- wp-tiles
- Files:
-
- 24 added
- 15 edited
- 36 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-tiles/tags/1.0-beta2/assets/css/wp-tiles.css
r912590 r914954 1 .screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto;color:#21759b;display:block;font-size:14px;font-weight:bold;height:auto;line-height:normal;padding:15px 23px 14px;position:absolute;left:5px;top:5px;text-decoration:none;text-transform:none;width:auto;z-index:100000}.grid-template-editor{width:100%;height:100px;max-width:100%;font-family:monospace;letter-spacing:0.5em}.wp-tiles-tile-letter{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;height:1em;width:1em;font-size:2em}.wp-tiles-container.wp-tiles-tile-demo{height:276px;width:276px;margin:0 auto}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile{background-color:#3cc;width:266px;height:266px;display:block}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile-bg{background-image:url('../images/tile-demo-1.jpg?1 398890921')}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-byline{background-color:rgba(51,204,204,0.5);overflow:hidden}.wp-tiles-template-selector{list-style:none;overflow:hidden}.wp-tiles-template{border:none;border-radius:2px;cursor:pointer;font-weight:normal;line-height:normal;margin:0 1em 1em 0;float:left;text-decoration:none;text-align:center;padding:0.88889em 1.77778em 0.94444em;font-size:0.88889em;background-color:#444;color:#FFF;opacity:1;-moz-transition:opacity 300ms ease-out 0s;-o-transition:opacity 300ms ease-out 0s;-webkit-transition:opacity 300ms ease-out;-webkit-transition-delay:0s;transition:opacity 300ms ease-out 0s}.wp-tiles-template:hover{opacity:0.8}.wp-tiles-legacy .wp-tiles-template{background-image:-moz-linear-gradient(#252525,#0a0a0a);background-image:-webkit-linear-gradient(#252525,#0a0a0a);background-image:linear-gradient(#252525,#0a0a0a);border:1px solid #ffffff;display:inline;border-radius:10px;color:white;cursor:pointer;text-align:center;padding:6px 9px}.wp-tiles-legacy .wp-tiles-template:hover{border:1px solid #999999}.wp-tiles-container{width:auto;height:auto;background:none;overflow:visible}.wp-tiles-grid{width:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wp-tiles-full-width .wp-tiles-grid{position:absolute;left:0;right:0}.wp-tiles-tile,.wp-tiles-tile-wrapper{display:inline-block}.wp-tiles-loaded .wp-tiles-tile,.wp-tiles-loaded .wp-tiles-tile-wrapper{display:block}.wp-tiles-tile{width:33%;background-color:#EEE;padding:0;overflow:hidden}.wp-tiles-loaded .wp-tiles-tile{position:absolute}.wp-tiles-legacy .wp-tiles-tile{-moz-box-shadow:6px 6px 10px;-webkit-box-shadow:6px 6px 10px;box-shadow:6px 6px 10px}.wp-tiles-legacy .wp-tiles-tile:hover{outline:1px solid #ccc}.wp-tiles-tile a{text-decoration:none}.wp-tiles-byline{max-height:100%;width:100%}.wp-tiles-byline-wrapper{padding:5px}.wp-tiles-loaded .wp-tiles-tile-bg{position:absolute;top:0;left:0;right:0;bottom:0;background-size:cover;background-position:50% 50%}.wp-tiles-tile-with-image .wp-tiles-byline{color:#eee;background:rgba(0,0,0,0.8);max-height:100%}.wp-tiles-loaded .wp-tiles-tile-with-image .wp-tiles-byline{position:absolute;left:0;right:0}.wp-tiles-byline-align-top .wp-tiles-tile-with-image .wp-tiles-byline{top:0}.wp-tiles-byline-align-bottom .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0}.wp-tiles-tile-with-image .wp-tiles-byline-title{margin:0;overflow:hidden;padding:5px;padding-top:2px}.wp-tiles-tile-with-image .wp-tiles-byline-content{padding:5px;font-size:10px;font-weight:600;width:90%;overflow:hidden}.wp-tiles-tile-text-only{background-color:transparent;width:100%;height:100%;opacity:1}.wp-tiles-tile-text-only .wp-tiles-byline{color:#303030}.wp-tiles-tile-text-only .wp-tiles-byline-title{margin:0;font-size:1.5em;line-height:1.15em;padding-top:15px}.wp-tiles-tile-text-only .wp-tiles-byline-content{font-style:normal;font-size:14px;font-weight:600}.wp-tiles-byline-animated .wp-tiles-byline,.wp-tiles-image-animated .wp-tiles-tile-bg{-moz-transition:all 300ms ease-out;-o-transition:all 300ms ease-out;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-down .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-left .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-right .wp-tiles-tile-with-image:hover .wp-tiles-byline{-moz-transform:translateX(0%);-ms-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-transform:translateY(0%);-ms-transform:translateY(0%);-webkit-transform:translateY(0%);transform:translateY(0%)}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0;-moz-transform:translateY(100%);-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.wp-tiles-byline-slide-down .wp-tiles-tile-with-image .wp-tiles-byline{top:0;-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.wp-tiles-byline-slide-left .wp-tiles-tile-with-image .wp-tiles-byline{right:-100%;-moz-transform:translateX(100%);-ms-transform:translateX(100%);-webkit-transform:translateX(100%);transform:translateX(100%)}.wp-tiles-byline-slide-right .wp-tiles-tile-with-image .wp-tiles-byline{-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-webkit-transform:translateX(-100%);transform:translateX(-100%)}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline{opacity:0}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image:hover .wp-tiles-byline{opacity:1}.wp-tiles-image-scale-up .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-scale-down .wp-tiles-tile-bg{-moz-transform:scale(1.2);-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.wp-tiles-image-scale-down .wp-tiles-tile:hover .wp-tiles-tile-bg{-moz-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}.wp-tiles-image-saturate .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile-bg{filter:none;-webkit-filter:grayscale(0%)}.wp-tiles-image-saturate .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile:hover .wp-tiles-tile-bg{filter:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0.5'/></filter></svg>#grayscale");filter:gray alpha(opacity=50);-webkit-filter:grayscale(50%);-webkit-backface-visibility:hidden}.wp-tiles-pagination-ajax{line-height:24px;text-align:center}.wp-tiles-pagination-ajax.loading{background:url('../images/loading.gif?1399040924') no-repeat 50%;text-indent:-9999px}.wp-tiles-pagination-paging .loop-pagination,.wp-tiles-pagination-prev-next .loop-pagination{margin-top:-5px;text-align:center}.wp-tiles-pagination-paging .page-numbers,.wp-tiles-pagination-paging .prev-next,.wp-tiles-pagination-prev-next .page-numbers,.wp-tiles-pagination-prev-next .prev-next{border-top:5px solid transparent;display:inline-block;font-size:14px;font-weight:900;margin-right:1px;padding:7px 16px;text-transform:uppercase}.wp-tiles-pagination-paging a,.wp-tiles-pagination-prev-next a{color:#2b2b2b}.wp-tiles-pagination-paging .page-numbers.current,.wp-tiles-pagination-prev-next .page-numbers.current{border-top:5px solid #24890d}.wp-tiles-pagination-paging a:hover,.wp-tiles-pagination-prev-next a:hover{border-top:5px solid #41a62a;color:#2b2b2b}1 .screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto;color:#21759b;display:block;font-size:14px;font-weight:bold;height:auto;line-height:normal;padding:15px 23px 14px;position:absolute;left:5px;top:5px;text-decoration:none;text-transform:none;width:auto;z-index:100000}.grid-template-editor{width:100%;height:100px;max-width:100%;font-family:monospace;letter-spacing:0.5em}.wp-tiles-tile-letter{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;height:1em;width:1em;font-size:2em}.wp-tiles-container.wp-tiles-tile-demo{height:276px;width:276px;margin:0 auto}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile{background-color:#3cc;width:266px;height:266px;display:block}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile-bg{background-image:url('../images/tile-demo-1.jpg?1400184773')}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-byline{background-color:rgba(51,204,204,0.5);overflow:hidden}.wp-tiles-template-selector{list-style:none;overflow:hidden}.wp-tiles-template{border:none;border-radius:2px;cursor:pointer;font-weight:normal;line-height:normal;margin:0 1em 1em 0;float:left;text-decoration:none;text-align:center;padding:0.88889em 1.77778em 0.94444em;font-size:0.88889em;background-color:#444;color:#FFF;opacity:1;-moz-transition:opacity 300ms ease-out 0s;-o-transition:opacity 300ms ease-out 0s;-webkit-transition:opacity 300ms ease-out;-webkit-transition-delay:0s;transition:opacity 300ms ease-out 0s}.wp-tiles-template:hover{opacity:0.8}.wp-tiles-legacy .wp-tiles-template{background-image:-moz-linear-gradient(#252525,#0a0a0a);background-image:-webkit-linear-gradient(#252525,#0a0a0a);background-image:linear-gradient(#252525,#0a0a0a);border:1px solid #ffffff;display:inline;border-radius:10px;color:white;cursor:pointer;text-align:center;padding:6px 9px}.wp-tiles-legacy .wp-tiles-template:hover{border:1px solid #999999}.wp-tiles-container{width:auto;height:auto;background:none;overflow:visible}.wp-tiles-grid{width:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wp-tiles-full-width .wp-tiles-grid{position:absolute;left:0;right:0}.wp-tiles-tile,.wp-tiles-tile-wrapper{display:inline-block}.wp-tiles-loaded .wp-tiles-tile,.wp-tiles-loaded .wp-tiles-tile-wrapper{display:block}.wp-tiles-tile{width:33%;background-color:#EEE;padding:0;overflow:hidden}.wp-tiles-loaded .wp-tiles-tile{position:absolute}.wp-tiles-legacy .wp-tiles-tile{-moz-box-shadow:6px 6px 10px;-webkit-box-shadow:6px 6px 10px;box-shadow:6px 6px 10px}.wp-tiles-legacy .wp-tiles-tile:hover{outline:1px solid #ccc}.wp-tiles-tile a{text-decoration:none}.wp-tiles-byline{max-height:100%;width:100%}.wp-tiles-byline-wrapper{padding:5px}.wp-tiles-loaded .wp-tiles-tile-bg{position:absolute;top:0;left:0;right:0;bottom:0;background-size:cover;background-position:50% 50%}.wp-tiles-tile-with-image .wp-tiles-byline{color:#eee;background:rgba(0,0,0,0.8);max-height:100%}.wp-tiles-loaded .wp-tiles-tile-with-image .wp-tiles-byline{position:absolute;left:0;right:0}.wp-tiles-byline-align-top .wp-tiles-tile-with-image .wp-tiles-byline{top:0}.wp-tiles-byline-align-bottom .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0}.wp-tiles-tile-with-image .wp-tiles-byline-title{margin:0;overflow:hidden;padding:5px;padding-top:2px}.wp-tiles-tile-with-image .wp-tiles-byline-content{padding:5px;font-size:0.9em;font-weight:normal;overflow:hidden}.wp-tiles-tile-text-only{background-color:transparent;width:100%;height:100%;opacity:1}.wp-tiles-tile-text-only .wp-tiles-byline{color:#303030}.wp-tiles-tile-text-only .wp-tiles-byline-title{margin:0;font-size:1.5em;line-height:1.15em;padding-top:15px}.wp-tiles-tile-text-only .wp-tiles-byline-content{font-style:normal;font-size:1em;font-weight:normal}.wp-tiles-byline-animated .wp-tiles-byline,.wp-tiles-image-animated .wp-tiles-tile-bg{-moz-transition:all 300ms ease-out;-o-transition:all 300ms ease-out;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-down .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-left .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-right .wp-tiles-tile-with-image:hover .wp-tiles-byline{-moz-transform:translateX(0%);-ms-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-transform:translateY(0%);-ms-transform:translateY(0%);-webkit-transform:translateY(0%);transform:translateY(0%)}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0;-moz-transform:translateY(100%);-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.wp-tiles-byline-slide-down .wp-tiles-tile-with-image .wp-tiles-byline{top:0;bottom:initial;-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.wp-tiles-byline-slide-left .wp-tiles-tile-with-image .wp-tiles-byline{right:-100%;-moz-transform:translateX(100%);-ms-transform:translateX(100%);-webkit-transform:translateX(100%);transform:translateX(100%)}.wp-tiles-byline-slide-right .wp-tiles-tile-with-image .wp-tiles-byline{-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-webkit-transform:translateX(-100%);transform:translateX(-100%)}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline{opacity:0}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image:hover .wp-tiles-byline{opacity:1}.wp-tiles-image-scale-up .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-scale-down .wp-tiles-tile-bg{-moz-transform:scale(1.2);-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.wp-tiles-image-scale-down .wp-tiles-tile:hover .wp-tiles-tile-bg{-moz-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}.wp-tiles-image-saturate .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile-bg{filter:none;-webkit-filter:grayscale(0%)}.wp-tiles-image-saturate .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile:hover .wp-tiles-tile-bg{filter:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0.5'/></filter></svg>#grayscale");filter:gray alpha(opacity=50);-webkit-filter:grayscale(50%);-webkit-backface-visibility:hidden}.wp-tiles-pagination-ajax{line-height:24px;text-align:center}.wp-tiles-pagination-ajax.loading{background:url('../images/loading.gif?1400184773') no-repeat 50%;text-indent:-9999px}.wp-tiles-pagination-paging .loop-pagination,.wp-tiles-pagination-prev-next .loop-pagination{margin-top:-5px;text-align:center}.wp-tiles-pagination-paging .page-numbers,.wp-tiles-pagination-paging .prev-next,.wp-tiles-pagination-prev-next .page-numbers,.wp-tiles-pagination-prev-next .prev-next{border-top:5px solid transparent;display:inline-block;font-size:14px;font-weight:900;margin-right:1px;padding:7px 16px;text-transform:uppercase}.wp-tiles-pagination-paging a,.wp-tiles-pagination-prev-next a{color:#2b2b2b}.wp-tiles-pagination-paging .page-numbers.current,.wp-tiles-pagination-prev-next .page-numbers.current{border-top:5px solid #24890d}.wp-tiles-pagination-paging a:hover,.wp-tiles-pagination-prev-next a:hover{border-top:5px solid #41a62a;color:#2b2b2b} -
wp-tiles/tags/1.0-beta2/assets/js/wp-tiles-gallery-settings.js
r910395 r914954 35 35 // Save the setting 36 36 media.gallery.defaults['tiles'] = false; 37 media.gallery.defaults['grid '] = false;37 media.gallery.defaults['grids'] = false; 38 38 media.gallery.defaults['image_size'] = false; 39 39 40 40 this.update.apply( this, ['tiles'] ); 41 this.update.apply( this, ['grid '] );41 this.update.apply( this, ['grids'] ); 42 42 this.update.apply( this, ['image_size'] ); 43 43 return this; -
wp-tiles/tags/1.0-beta2/assets/scss/_animations_byline.scss
r910395 r914954 21 21 .wp-tiles-byline { 22 22 top: 0; 23 bottom: initial; 23 24 @include transform(translateY(-100%)); 24 25 } -
wp-tiles/tags/1.0-beta2/assets/scss/_tile_image.scss
r912590 r914954 43 43 .wp-tiles-byline-content { 44 44 padding: 5px; 45 font-size: 10px;46 font-weight: 600;45 font-size: 0.9em; 46 font-weight: normal; 47 47 48 width: 90%;49 48 overflow: hidden; 50 49 -
wp-tiles/tags/1.0-beta2/assets/scss/_tile_text_only.scss
r912590 r914954 22 22 .wp-tiles-byline-content { 23 23 font-style: normal; 24 font-size: 1 4px;25 font-weight: 600;24 font-size: 1em; 25 font-weight: normal; 26 26 } 27 27 } -
wp-tiles/tags/1.0-beta2/src/WPTiles/Admin/Controls.php
r912590 r914954 19 19 $default_grid = !empty( $grid ) ? reset( $grid )->post_title : '{{last}}'; 20 20 21 returnarray(21 $controls = array( 22 22 array( 23 23 'type' => 'select', … … 35 35 ), 36 36 ) 37 ); 38 39 if ( current_theme_supports( 'wp-tiles-full-width' ) ) { 40 $controls[] = self::full_width(); 41 } 42 43 return $controls; 44 } 45 46 public static function full_width() { 47 return array( 48 'type' => 'toggle', 49 'name' => 'full_width', 50 'label' => __( 'Full Width Tiles', 'wp-tiles' ), 51 'description' => __( 'Let Tiles break out of container', 'wp-tiles' ), 52 'default' => false 37 53 ); 38 54 } … … 76 92 ), 77 93 ); 94 78 95 } else { 79 96 $controls[] = array( … … 197 214 'format' => 'hex', 198 215 ); 216 217 if ( Admin::is_shortcode() ) { 218 if ( current_theme_supports( 'wp-tiles-full-width' ) ) { 219 $controls[] = self::full_width(); 220 } 221 } 199 222 200 223 return $controls; -
wp-tiles/tags/1.0-beta2/src/WPTiles/Gallery.php
r912590 r914954 56 56 <label class="setting"> 57 57 <span><?php _e( 'Grid', 'wp-tiles' ); ?></span> 58 <select name="wp-tiles-grids" data-setting="grid ">58 <select name="wp-tiles-grids" data-setting="grids"> 59 59 <?php foreach ( array_keys( $grids ) as $grid ) : ?> 60 60 <option value="<?php echo esc_attr( $grid ); ?>" <?php selected( $grid, $default ); ?>> -
wp-tiles/tags/1.0-beta2/src/WPTiles/Shortcode.php
r912590 r914954 91 91 // Maybe convert full grid strings into grids so they are not interpreted as names 92 92 $is_grid_string = function( $string ) { 93 return is_string( $string ) && ( strpos( $string, '|' ) !== 0 || strpos( $string, "\n" ) !== 0);93 return is_string( $string ) && ( strpos( $string, '|' ) !== false || strpos( $string, "\n" ) !== false ); 94 94 }; 95 95 96 96 if ( $atts['small_screen_grid'] && $is_grid_string( $atts['small_screen_grid'] ) ) { 97 $atts['small_screen_grid'] = wp_tiles()->format_grid( $atts['small_screen_grid'] ); 97 $atts['small_screen_grid'] = array( 98 'Custom' => wp_tiles()->format_grid( $atts['small_screen_grid'] ) 99 ); 98 100 } 99 101 … … 103 105 'grids' => $grid_names, // Will be converted into grid templates in get_tiles 104 106 105 'small_screen_grid' => '',107 'small_screen_grid' => $atts['small_screen_grid'], 106 108 'breakpoint' => (int) $atts['breakpoint'], 107 109 -
wp-tiles/tags/1.0-beta2/src/WPTiles/WPTiles.php
r912590 r914954 58 58 $this->gallery = Gallery::get_instance(); 59 59 60 Admin\Admin::setup(); // Everything in this class is static60 add_action( 'after_setup_theme', array( 'WPTiles\Admin\Admin', 'setup' ), 20 ); 61 61 62 62 $this->add_action( 'init', 'register_post_type' ); … … 610 610 611 611 wp_register_style( 'wp-tiles', $stylesheet, false, WP_TILES_VERSION ); 612 613 /** 614 * Always enqueue stylesheet or defer loading until an instance of 615 * WP Tiles has been detected 616 * 617 * @since 1.0 618 * @param bool Always enqueue 619 */ 620 if ( !is_admin() && apply_filters( 'wp_tiles_always_enqueue_stylesheet', true ) ) { 621 $this->enqueue_styles(); 622 } 612 623 } 613 624 -
wp-tiles/tags/1.0-beta2/vafpress-framework/classes/metabox.php
r912590 r914954 99 99 { 100 100 $this->in_template = TRUE; 101 101 102 102 // also make current post data available 103 103 global $post; … … 124 124 echo '</div>'; 125 125 } 126 126 127 127 // create a nonce for verification 128 128 echo '<input type="hidden" name="'. $this->id .'_nonce" value="' . wp_create_nonce($this->id) . '" />'; … … 324 324 if($field['is_hidden']) 325 325 $field['container_extra_classes'][] = 'vp-hide'; 326 326 327 327 $field['container_extra_classes'][] = 'vp-dep-inactive'; 328 328 } … … 592 592 } 593 593 594 function _save($post_id) 594 function _save($post_id) 595 595 { 596 596 // skip saving if dev mode is on … … 599 599 600 600 $real_post_id = isset($_POST['post_ID']) ? $_POST['post_ID'] : NULL ; 601 601 602 602 // check autosave 603 603 if (defined('DOING_AUTOSAVE') AND DOING_AUTOSAVE AND !$this->autosave) return $post_id; 604 604 605 605 // make sure data came from our meta box, verify nonce 606 606 $nonce = isset($_POST[$this->id.'_nonce']) ? $_POST[$this->id.'_nonce'] : NULL ; 607 607 if (!wp_verify_nonce($nonce, $this->id)) return $post_id; 608 608 609 609 // check user permissions 610 if ($_POST['post_type'] == 'page') 610 if ($_POST['post_type'] == 'page') 611 611 { 612 612 if (!current_user_can('edit_page', $post_id)) return $post_id; 613 613 } 614 else 614 else 615 615 { 616 616 if (!current_user_can('edit_post', $post_id)) return $post_id; 617 617 } 618 618 619 619 // authentication passed, save data 620 620 $new_data = isset( $_POST[$this->id] ) ? $_POST[$this->id] : NULL ; … … 654 654 { 655 655 $field = $this->prefix . $k; 656 656 657 657 array_push($new_fields,$field); 658 658 … … 737 737 } 738 738 } 739 if (!count($arr)) 739 if (!count($arr)) 740 740 { 741 741 $arr = array(); … … 749 749 foreach ($keys as $key) 750 750 { 751 if (!is_numeric($key)) 751 if (!is_numeric($key)) 752 752 { 753 753 $is_numeric = FALSE; -
wp-tiles/tags/1.0-beta2/vendor/autoload.php
r912590 r914954 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61::getLoader();7 return ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea::getLoader(); -
wp-tiles/tags/1.0-beta2/vendor/composer/autoload_real.php
r912590 r914954 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab615 class ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea', 'loadClassLoader')); 25 25 26 26 $vendorDir = dirname(__DIR__); … … 48 48 } 49 49 50 function composerRequire 66b6ed94258ec8968621b4500e3dab61($file)50 function composerRequire99d57b2392d58e6e735e11785bff47ea($file) 51 51 { 52 52 require $file; -
wp-tiles/trunk/assets/css/wp-tiles.css
r912590 r914954 1 .screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto;color:#21759b;display:block;font-size:14px;font-weight:bold;height:auto;line-height:normal;padding:15px 23px 14px;position:absolute;left:5px;top:5px;text-decoration:none;text-transform:none;width:auto;z-index:100000}.grid-template-editor{width:100%;height:100px;max-width:100%;font-family:monospace;letter-spacing:0.5em}.wp-tiles-tile-letter{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;height:1em;width:1em;font-size:2em}.wp-tiles-container.wp-tiles-tile-demo{height:276px;width:276px;margin:0 auto}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile{background-color:#3cc;width:266px;height:266px;display:block}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile-bg{background-image:url('../images/tile-demo-1.jpg?1 398890921')}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-byline{background-color:rgba(51,204,204,0.5);overflow:hidden}.wp-tiles-template-selector{list-style:none;overflow:hidden}.wp-tiles-template{border:none;border-radius:2px;cursor:pointer;font-weight:normal;line-height:normal;margin:0 1em 1em 0;float:left;text-decoration:none;text-align:center;padding:0.88889em 1.77778em 0.94444em;font-size:0.88889em;background-color:#444;color:#FFF;opacity:1;-moz-transition:opacity 300ms ease-out 0s;-o-transition:opacity 300ms ease-out 0s;-webkit-transition:opacity 300ms ease-out;-webkit-transition-delay:0s;transition:opacity 300ms ease-out 0s}.wp-tiles-template:hover{opacity:0.8}.wp-tiles-legacy .wp-tiles-template{background-image:-moz-linear-gradient(#252525,#0a0a0a);background-image:-webkit-linear-gradient(#252525,#0a0a0a);background-image:linear-gradient(#252525,#0a0a0a);border:1px solid #ffffff;display:inline;border-radius:10px;color:white;cursor:pointer;text-align:center;padding:6px 9px}.wp-tiles-legacy .wp-tiles-template:hover{border:1px solid #999999}.wp-tiles-container{width:auto;height:auto;background:none;overflow:visible}.wp-tiles-grid{width:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wp-tiles-full-width .wp-tiles-grid{position:absolute;left:0;right:0}.wp-tiles-tile,.wp-tiles-tile-wrapper{display:inline-block}.wp-tiles-loaded .wp-tiles-tile,.wp-tiles-loaded .wp-tiles-tile-wrapper{display:block}.wp-tiles-tile{width:33%;background-color:#EEE;padding:0;overflow:hidden}.wp-tiles-loaded .wp-tiles-tile{position:absolute}.wp-tiles-legacy .wp-tiles-tile{-moz-box-shadow:6px 6px 10px;-webkit-box-shadow:6px 6px 10px;box-shadow:6px 6px 10px}.wp-tiles-legacy .wp-tiles-tile:hover{outline:1px solid #ccc}.wp-tiles-tile a{text-decoration:none}.wp-tiles-byline{max-height:100%;width:100%}.wp-tiles-byline-wrapper{padding:5px}.wp-tiles-loaded .wp-tiles-tile-bg{position:absolute;top:0;left:0;right:0;bottom:0;background-size:cover;background-position:50% 50%}.wp-tiles-tile-with-image .wp-tiles-byline{color:#eee;background:rgba(0,0,0,0.8);max-height:100%}.wp-tiles-loaded .wp-tiles-tile-with-image .wp-tiles-byline{position:absolute;left:0;right:0}.wp-tiles-byline-align-top .wp-tiles-tile-with-image .wp-tiles-byline{top:0}.wp-tiles-byline-align-bottom .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0}.wp-tiles-tile-with-image .wp-tiles-byline-title{margin:0;overflow:hidden;padding:5px;padding-top:2px}.wp-tiles-tile-with-image .wp-tiles-byline-content{padding:5px;font-size:10px;font-weight:600;width:90%;overflow:hidden}.wp-tiles-tile-text-only{background-color:transparent;width:100%;height:100%;opacity:1}.wp-tiles-tile-text-only .wp-tiles-byline{color:#303030}.wp-tiles-tile-text-only .wp-tiles-byline-title{margin:0;font-size:1.5em;line-height:1.15em;padding-top:15px}.wp-tiles-tile-text-only .wp-tiles-byline-content{font-style:normal;font-size:14px;font-weight:600}.wp-tiles-byline-animated .wp-tiles-byline,.wp-tiles-image-animated .wp-tiles-tile-bg{-moz-transition:all 300ms ease-out;-o-transition:all 300ms ease-out;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-down .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-left .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-right .wp-tiles-tile-with-image:hover .wp-tiles-byline{-moz-transform:translateX(0%);-ms-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-transform:translateY(0%);-ms-transform:translateY(0%);-webkit-transform:translateY(0%);transform:translateY(0%)}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0;-moz-transform:translateY(100%);-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.wp-tiles-byline-slide-down .wp-tiles-tile-with-image .wp-tiles-byline{top:0;-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.wp-tiles-byline-slide-left .wp-tiles-tile-with-image .wp-tiles-byline{right:-100%;-moz-transform:translateX(100%);-ms-transform:translateX(100%);-webkit-transform:translateX(100%);transform:translateX(100%)}.wp-tiles-byline-slide-right .wp-tiles-tile-with-image .wp-tiles-byline{-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-webkit-transform:translateX(-100%);transform:translateX(-100%)}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline{opacity:0}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image:hover .wp-tiles-byline{opacity:1}.wp-tiles-image-scale-up .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-scale-down .wp-tiles-tile-bg{-moz-transform:scale(1.2);-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.wp-tiles-image-scale-down .wp-tiles-tile:hover .wp-tiles-tile-bg{-moz-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}.wp-tiles-image-saturate .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile-bg{filter:none;-webkit-filter:grayscale(0%)}.wp-tiles-image-saturate .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile:hover .wp-tiles-tile-bg{filter:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0.5'/></filter></svg>#grayscale");filter:gray alpha(opacity=50);-webkit-filter:grayscale(50%);-webkit-backface-visibility:hidden}.wp-tiles-pagination-ajax{line-height:24px;text-align:center}.wp-tiles-pagination-ajax.loading{background:url('../images/loading.gif?1399040924') no-repeat 50%;text-indent:-9999px}.wp-tiles-pagination-paging .loop-pagination,.wp-tiles-pagination-prev-next .loop-pagination{margin-top:-5px;text-align:center}.wp-tiles-pagination-paging .page-numbers,.wp-tiles-pagination-paging .prev-next,.wp-tiles-pagination-prev-next .page-numbers,.wp-tiles-pagination-prev-next .prev-next{border-top:5px solid transparent;display:inline-block;font-size:14px;font-weight:900;margin-right:1px;padding:7px 16px;text-transform:uppercase}.wp-tiles-pagination-paging a,.wp-tiles-pagination-prev-next a{color:#2b2b2b}.wp-tiles-pagination-paging .page-numbers.current,.wp-tiles-pagination-prev-next .page-numbers.current{border-top:5px solid #24890d}.wp-tiles-pagination-paging a:hover,.wp-tiles-pagination-prev-next a:hover{border-top:5px solid #41a62a;color:#2b2b2b}1 .screen-reader-text{clip:rect(1px, 1px, 1px, 1px);position:absolute}.screen-reader-text:focus{background-color:#f1f1f1;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,0.6);clip:auto;color:#21759b;display:block;font-size:14px;font-weight:bold;height:auto;line-height:normal;padding:15px 23px 14px;position:absolute;left:5px;top:5px;text-decoration:none;text-transform:none;width:auto;z-index:100000}.grid-template-editor{width:100%;height:100px;max-width:100%;font-family:monospace;letter-spacing:0.5em}.wp-tiles-tile-letter{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;height:1em;width:1em;font-size:2em}.wp-tiles-container.wp-tiles-tile-demo{height:276px;width:276px;margin:0 auto}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile{background-color:#3cc;width:266px;height:266px;display:block}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-tile-bg{background-image:url('../images/tile-demo-1.jpg?1400184773')}.wp-tiles-container.wp-tiles-tile-demo .wp-tiles-byline{background-color:rgba(51,204,204,0.5);overflow:hidden}.wp-tiles-template-selector{list-style:none;overflow:hidden}.wp-tiles-template{border:none;border-radius:2px;cursor:pointer;font-weight:normal;line-height:normal;margin:0 1em 1em 0;float:left;text-decoration:none;text-align:center;padding:0.88889em 1.77778em 0.94444em;font-size:0.88889em;background-color:#444;color:#FFF;opacity:1;-moz-transition:opacity 300ms ease-out 0s;-o-transition:opacity 300ms ease-out 0s;-webkit-transition:opacity 300ms ease-out;-webkit-transition-delay:0s;transition:opacity 300ms ease-out 0s}.wp-tiles-template:hover{opacity:0.8}.wp-tiles-legacy .wp-tiles-template{background-image:-moz-linear-gradient(#252525,#0a0a0a);background-image:-webkit-linear-gradient(#252525,#0a0a0a);background-image:linear-gradient(#252525,#0a0a0a);border:1px solid #ffffff;display:inline;border-radius:10px;color:white;cursor:pointer;text-align:center;padding:6px 9px}.wp-tiles-legacy .wp-tiles-template:hover{border:1px solid #999999}.wp-tiles-container{width:auto;height:auto;background:none;overflow:visible}.wp-tiles-grid{width:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.wp-tiles-full-width .wp-tiles-grid{position:absolute;left:0;right:0}.wp-tiles-tile,.wp-tiles-tile-wrapper{display:inline-block}.wp-tiles-loaded .wp-tiles-tile,.wp-tiles-loaded .wp-tiles-tile-wrapper{display:block}.wp-tiles-tile{width:33%;background-color:#EEE;padding:0;overflow:hidden}.wp-tiles-loaded .wp-tiles-tile{position:absolute}.wp-tiles-legacy .wp-tiles-tile{-moz-box-shadow:6px 6px 10px;-webkit-box-shadow:6px 6px 10px;box-shadow:6px 6px 10px}.wp-tiles-legacy .wp-tiles-tile:hover{outline:1px solid #ccc}.wp-tiles-tile a{text-decoration:none}.wp-tiles-byline{max-height:100%;width:100%}.wp-tiles-byline-wrapper{padding:5px}.wp-tiles-loaded .wp-tiles-tile-bg{position:absolute;top:0;left:0;right:0;bottom:0;background-size:cover;background-position:50% 50%}.wp-tiles-tile-with-image .wp-tiles-byline{color:#eee;background:rgba(0,0,0,0.8);max-height:100%}.wp-tiles-loaded .wp-tiles-tile-with-image .wp-tiles-byline{position:absolute;left:0;right:0}.wp-tiles-byline-align-top .wp-tiles-tile-with-image .wp-tiles-byline{top:0}.wp-tiles-byline-align-bottom .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0}.wp-tiles-tile-with-image .wp-tiles-byline-title{margin:0;overflow:hidden;padding:5px;padding-top:2px}.wp-tiles-tile-with-image .wp-tiles-byline-content{padding:5px;font-size:0.9em;font-weight:normal;overflow:hidden}.wp-tiles-tile-text-only{background-color:transparent;width:100%;height:100%;opacity:1}.wp-tiles-tile-text-only .wp-tiles-byline{color:#303030}.wp-tiles-tile-text-only .wp-tiles-byline-title{margin:0;font-size:1.5em;line-height:1.15em;padding-top:15px}.wp-tiles-tile-text-only .wp-tiles-byline-content{font-style:normal;font-size:1em;font-weight:normal}.wp-tiles-byline-animated .wp-tiles-byline,.wp-tiles-image-animated .wp-tiles-tile-bg{-moz-transition:all 300ms ease-out;-o-transition:all 300ms ease-out;-webkit-transition:all 300ms ease-out;transition:all 300ms ease-out}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-down .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-left .wp-tiles-tile-with-image:hover .wp-tiles-byline,.wp-tiles-byline-slide-right .wp-tiles-tile-with-image:hover .wp-tiles-byline{-moz-transform:translateX(0%);-ms-transform:translateX(0%);-webkit-transform:translateX(0%);transform:translateX(0%);-moz-transform:translateY(0%);-ms-transform:translateY(0%);-webkit-transform:translateY(0%);transform:translateY(0%)}.wp-tiles-byline-slide-up .wp-tiles-tile-with-image .wp-tiles-byline{bottom:0;-moz-transform:translateY(100%);-ms-transform:translateY(100%);-webkit-transform:translateY(100%);transform:translateY(100%)}.wp-tiles-byline-slide-down .wp-tiles-tile-with-image .wp-tiles-byline{top:0;bottom:initial;-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);-webkit-transform:translateY(-100%);transform:translateY(-100%)}.wp-tiles-byline-slide-left .wp-tiles-tile-with-image .wp-tiles-byline{right:-100%;-moz-transform:translateX(100%);-ms-transform:translateX(100%);-webkit-transform:translateX(100%);transform:translateX(100%)}.wp-tiles-byline-slide-right .wp-tiles-tile-with-image .wp-tiles-byline{-moz-transform:translateX(-100%);-ms-transform:translateX(-100%);-webkit-transform:translateX(-100%);transform:translateX(-100%)}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image .wp-tiles-byline{opacity:0}.wp-tiles-byline-fade-in .wp-tiles-tile-with-image:hover .wp-tiles-byline{opacity:1}.wp-tiles-image-scale-up .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-scale-down .wp-tiles-tile-bg{-moz-transform:scale(1.2);-ms-transform:scale(1.2);-webkit-transform:scale(1.2);transform:scale(1.2)}.wp-tiles-image-scale-down .wp-tiles-tile:hover .wp-tiles-tile-bg{-moz-transform:scale(1);-ms-transform:scale(1);-webkit-transform:scale(1);transform:scale(1)}.wp-tiles-image-saturate .wp-tiles-tile:hover .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile-bg{filter:none;-webkit-filter:grayscale(0%)}.wp-tiles-image-saturate .wp-tiles-tile-bg,.wp-tiles-image-desaturate .wp-tiles-tile:hover .wp-tiles-tile-bg{filter:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='saturate' values='0.5'/></filter></svg>#grayscale");filter:gray alpha(opacity=50);-webkit-filter:grayscale(50%);-webkit-backface-visibility:hidden}.wp-tiles-pagination-ajax{line-height:24px;text-align:center}.wp-tiles-pagination-ajax.loading{background:url('../images/loading.gif?1400184773') no-repeat 50%;text-indent:-9999px}.wp-tiles-pagination-paging .loop-pagination,.wp-tiles-pagination-prev-next .loop-pagination{margin-top:-5px;text-align:center}.wp-tiles-pagination-paging .page-numbers,.wp-tiles-pagination-paging .prev-next,.wp-tiles-pagination-prev-next .page-numbers,.wp-tiles-pagination-prev-next .prev-next{border-top:5px solid transparent;display:inline-block;font-size:14px;font-weight:900;margin-right:1px;padding:7px 16px;text-transform:uppercase}.wp-tiles-pagination-paging a,.wp-tiles-pagination-prev-next a{color:#2b2b2b}.wp-tiles-pagination-paging .page-numbers.current,.wp-tiles-pagination-prev-next .page-numbers.current{border-top:5px solid #24890d}.wp-tiles-pagination-paging a:hover,.wp-tiles-pagination-prev-next a:hover{border-top:5px solid #41a62a;color:#2b2b2b} -
wp-tiles/trunk/assets/js/wp-tiles-gallery-settings.js
r910395 r914954 35 35 // Save the setting 36 36 media.gallery.defaults['tiles'] = false; 37 media.gallery.defaults['grid '] = false;37 media.gallery.defaults['grids'] = false; 38 38 media.gallery.defaults['image_size'] = false; 39 39 40 40 this.update.apply( this, ['tiles'] ); 41 this.update.apply( this, ['grid '] );41 this.update.apply( this, ['grids'] ); 42 42 this.update.apply( this, ['image_size'] ); 43 43 return this; -
wp-tiles/trunk/assets/scss/_animations_byline.scss
r910395 r914954 21 21 .wp-tiles-byline { 22 22 top: 0; 23 bottom: initial; 23 24 @include transform(translateY(-100%)); 24 25 } -
wp-tiles/trunk/assets/scss/_tile_image.scss
r912590 r914954 43 43 .wp-tiles-byline-content { 44 44 padding: 5px; 45 font-size: 10px;46 font-weight: 600;45 font-size: 0.9em; 46 font-weight: normal; 47 47 48 width: 90%;49 48 overflow: hidden; 50 49 -
wp-tiles/trunk/assets/scss/_tile_text_only.scss
r912590 r914954 22 22 .wp-tiles-byline-content { 23 23 font-style: normal; 24 font-size: 1 4px;25 font-weight: 600;24 font-size: 1em; 25 font-weight: normal; 26 26 } 27 27 } -
wp-tiles/trunk/readme.txt
r910440 r914954 1 1 === WP Tiles === 2 2 Contributors: Mike_Cowobo 3 Plugin URI: http://w ordpress.org/extend/plugins/wp-tiles/4 Author URI: http://trenvo press.com/3 Plugin URI: http://wp-tiles.com/ 4 Author URI: http://trenvo.com/ 5 5 Tags: tiles, shortcode 6 Requires at least: 3. 87 Tested up to: 3.9 8 Stable tag: 0. 5.96 Requires at least: 3.4.2 7 Tested up to: 3.9.1 8 Stable tag: 0.6 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 14 == Description == 15 15 16 **WP Tiles 1.0 -beta1 is now available! Read the [announcement](http://wordpress.org/support/topic/10-beta-testers-needed-for-wp-tiles-10-beta?replies=1) to test the completely rebuiltversion!**16 **WP Tiles 1.0 BETA is now available! Read the [announcement](http://wp-tiles.com/blog/announcing-wp-tiles-1-0/) to test the completely updated version!** 17 17 18 18 With WP Tiles you can add tiles to your WP install by simply putting `[wp-tiles]` in your posts and pages, using [Tiles.js](https://github.com/thinkpixellab/tilesjs), as seen on [Pulse.me](http://pulse.me). … … 219 219 == Changelog == 220 220 221 = 0.6 = 222 223 * Last update before release of WP Tiles 1.0. This update contains information and notices about the forthcoming update. 224 221 225 = 0.5.9 = 222 226 … … 361 365 == Upgrade Notice == 362 366 367 = 0.6 = 368 369 WP Tiles will update to version 1.0 **soon**. Please read the [announcement](http://wp-tiles.com/blog/announcing-wp-tiles-1-0/) and be aware that the update after this one will not be 100% compatible. 370 363 371 = 0.5 = 364 372 365 *You can now customize the padding between cells.373 You can now customize the padding between cells. 366 374 367 375 = 0.4.2 = 368 376 369 *The previous update changed the behaviour of the_wp_tiles() in plugins. This is restored. If you changed your template files to suit yesterday's 0.4 or 0.4.1, you can simple change the_wp_tiles() to the_loop_wp_tiles() or the_category_wp_tiles(). See the readme for more info on the new template tags.377 The previous update changed the behaviour of the_wp_tiles() in plugins. This is restored. If you changed your template files to suit yesterday's 0.4 or 0.4.1, you can simple change the_wp_tiles() to the_loop_wp_tiles() or the_category_wp_tiles(). See the readme for more info on the new template tags. 370 378 371 379 = 0.4 = 372 380 373 *WP Tiles can now be used as a replacement for your category pages with pagination! See the readme on how to do this.381 WP Tiles can now be used as a replacement for your category pages with pagination! See the readme on how to do this. 374 382 375 383 = 0.3 = 376 384 377 *In this version you can set at which point you want to switch to the small screen template, or disable this altogether.385 In this version you can set at which point you want to switch to the small screen template, or disable this altogether. -
wp-tiles/trunk/src/WPTiles/Admin/Controls.php
r912590 r914954 19 19 $default_grid = !empty( $grid ) ? reset( $grid )->post_title : '{{last}}'; 20 20 21 returnarray(21 $controls = array( 22 22 array( 23 23 'type' => 'select', … … 35 35 ), 36 36 ) 37 ); 38 39 if ( current_theme_supports( 'wp-tiles-full-width' ) ) { 40 $controls[] = self::full_width(); 41 } 42 43 return $controls; 44 } 45 46 public static function full_width() { 47 return array( 48 'type' => 'toggle', 49 'name' => 'full_width', 50 'label' => __( 'Full Width Tiles', 'wp-tiles' ), 51 'description' => __( 'Let Tiles break out of container', 'wp-tiles' ), 52 'default' => false 37 53 ); 38 54 } … … 76 92 ), 77 93 ); 94 78 95 } else { 79 96 $controls[] = array( … … 197 214 'format' => 'hex', 198 215 ); 216 217 if ( Admin::is_shortcode() ) { 218 if ( current_theme_supports( 'wp-tiles-full-width' ) ) { 219 $controls[] = self::full_width(); 220 } 221 } 199 222 200 223 return $controls; -
wp-tiles/trunk/src/WPTiles/Gallery.php
r912590 r914954 56 56 <label class="setting"> 57 57 <span><?php _e( 'Grid', 'wp-tiles' ); ?></span> 58 <select name="wp-tiles-grids" data-setting="grid ">58 <select name="wp-tiles-grids" data-setting="grids"> 59 59 <?php foreach ( array_keys( $grids ) as $grid ) : ?> 60 60 <option value="<?php echo esc_attr( $grid ); ?>" <?php selected( $grid, $default ); ?>> -
wp-tiles/trunk/src/WPTiles/Shortcode.php
r912590 r914954 91 91 // Maybe convert full grid strings into grids so they are not interpreted as names 92 92 $is_grid_string = function( $string ) { 93 return is_string( $string ) && ( strpos( $string, '|' ) !== 0 || strpos( $string, "\n" ) !== 0);93 return is_string( $string ) && ( strpos( $string, '|' ) !== false || strpos( $string, "\n" ) !== false ); 94 94 }; 95 95 96 96 if ( $atts['small_screen_grid'] && $is_grid_string( $atts['small_screen_grid'] ) ) { 97 $atts['small_screen_grid'] = wp_tiles()->format_grid( $atts['small_screen_grid'] ); 97 $atts['small_screen_grid'] = array( 98 'Custom' => wp_tiles()->format_grid( $atts['small_screen_grid'] ) 99 ); 98 100 } 99 101 … … 103 105 'grids' => $grid_names, // Will be converted into grid templates in get_tiles 104 106 105 'small_screen_grid' => '',107 'small_screen_grid' => $atts['small_screen_grid'], 106 108 'breakpoint' => (int) $atts['breakpoint'], 107 109 -
wp-tiles/trunk/src/WPTiles/WPTiles.php
r912590 r914954 58 58 $this->gallery = Gallery::get_instance(); 59 59 60 Admin\Admin::setup(); // Everything in this class is static60 add_action( 'after_setup_theme', array( 'WPTiles\Admin\Admin', 'setup' ), 20 ); 61 61 62 62 $this->add_action( 'init', 'register_post_type' ); … … 610 610 611 611 wp_register_style( 'wp-tiles', $stylesheet, false, WP_TILES_VERSION ); 612 613 /** 614 * Always enqueue stylesheet or defer loading until an instance of 615 * WP Tiles has been detected 616 * 617 * @since 1.0 618 * @param bool Always enqueue 619 */ 620 if ( !is_admin() && apply_filters( 'wp_tiles_always_enqueue_stylesheet', true ) ) { 621 $this->enqueue_styles(); 622 } 612 623 } 613 624 -
wp-tiles/trunk/vafpress-framework/classes/metabox.php
r912590 r914954 99 99 { 100 100 $this->in_template = TRUE; 101 101 102 102 // also make current post data available 103 103 global $post; … … 124 124 echo '</div>'; 125 125 } 126 126 127 127 // create a nonce for verification 128 128 echo '<input type="hidden" name="'. $this->id .'_nonce" value="' . wp_create_nonce($this->id) . '" />'; … … 324 324 if($field['is_hidden']) 325 325 $field['container_extra_classes'][] = 'vp-hide'; 326 326 327 327 $field['container_extra_classes'][] = 'vp-dep-inactive'; 328 328 } … … 592 592 } 593 593 594 function _save($post_id) 594 function _save($post_id) 595 595 { 596 596 // skip saving if dev mode is on … … 599 599 600 600 $real_post_id = isset($_POST['post_ID']) ? $_POST['post_ID'] : NULL ; 601 601 602 602 // check autosave 603 603 if (defined('DOING_AUTOSAVE') AND DOING_AUTOSAVE AND !$this->autosave) return $post_id; 604 604 605 605 // make sure data came from our meta box, verify nonce 606 606 $nonce = isset($_POST[$this->id.'_nonce']) ? $_POST[$this->id.'_nonce'] : NULL ; 607 607 if (!wp_verify_nonce($nonce, $this->id)) return $post_id; 608 608 609 609 // check user permissions 610 if ($_POST['post_type'] == 'page') 610 if ($_POST['post_type'] == 'page') 611 611 { 612 612 if (!current_user_can('edit_page', $post_id)) return $post_id; 613 613 } 614 else 614 else 615 615 { 616 616 if (!current_user_can('edit_post', $post_id)) return $post_id; 617 617 } 618 618 619 619 // authentication passed, save data 620 620 $new_data = isset( $_POST[$this->id] ) ? $_POST[$this->id] : NULL ; … … 654 654 { 655 655 $field = $this->prefix . $k; 656 656 657 657 array_push($new_fields,$field); 658 658 … … 737 737 } 738 738 } 739 if (!count($arr)) 739 if (!count($arr)) 740 740 { 741 741 $arr = array(); … … 749 749 foreach ($keys as $key) 750 750 { 751 if (!is_numeric($key)) 751 if (!is_numeric($key)) 752 752 { 753 753 $is_numeric = FALSE; -
wp-tiles/trunk/vendor/autoload.php
r912590 r914954 5 5 require_once __DIR__ . '/composer' . '/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61::getLoader();7 return ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea::getLoader(); -
wp-tiles/trunk/vendor/composer/autoload_real.php
r912590 r914954 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab615 class ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea 6 6 { 7 7 private static $loader; … … 20 20 } 21 21 22 spl_autoload_register(array('ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61', 'loadClassLoader'), true, true);22 spl_autoload_register(array('ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea', 'loadClassLoader'), true, true); 23 23 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); 24 spl_autoload_unregister(array('ComposerAutoloaderInit 66b6ed94258ec8968621b4500e3dab61', 'loadClassLoader'));24 spl_autoload_unregister(array('ComposerAutoloaderInit99d57b2392d58e6e735e11785bff47ea', 'loadClassLoader')); 25 25 26 26 $vendorDir = dirname(__DIR__); … … 48 48 } 49 49 50 function composerRequire 66b6ed94258ec8968621b4500e3dab61($file)50 function composerRequire99d57b2392d58e6e735e11785bff47ea($file) 51 51 { 52 52 require $file;
Note: See TracChangeset
for help on using the changeset viewer.