Changeset 770836
- Timestamp:
- 09/12/2013 08:54:39 AM (12 years ago)
- Location:
- wp-tiles
- Files:
-
- 1 added
- 6 edited
- 17 copied
Legend:
- Unmodified
- Added
- Removed
-
wp-tiles/tags/0.5.5/readme.txt
r750702 r770836 6 6 Requires at least: 3.4.2 7 7 Tested up to: 3.5.2 8 Stable tag: 0.5. 48 Stable tag: 0.5.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 178 178 }` 179 179 180 = How can I use custom taxonomy queries in the shortcode? = 181 182 Custom tax queries are supported in the shortcode (but they aren't pretty) using curly braces to create arrays. Use it like this: 183 184 ` 185 [wp-tiles posts_query="tax_query{0}{taxonomy}=my_custom_tax&tax_query{0}{field}=slug&tax_query{0}{terms}=taxonomy-cat-1"] 186 ` 187 180 188 == Screenshots == 181 189 … … 188 196 189 197 == Changelog == 198 199 = 0.5.5 = 200 201 * Fix warning static declaration of WP_Tiles_Settings_Config::dropdowns. (Thanks @chrishas35) 202 * Allow for more complicated queries in the shortcode, using curly braces for arrays. 190 203 191 204 = 0.5.4 = -
wp-tiles/tags/0.5.5/roadmap.txt
r745740 r770836 7 7 * Custom content on the tiles 8 8 * Hide current post in tiles using shortcode 9 10 * Better filters on byline 11 * Better support for custom post type taxonomies -
wp-tiles/tags/0.5.5/wp-tiles-admin.php
r750702 r770836 41 41 } 42 42 43 protected function dropdowns() {43 protected static function dropdowns() { 44 44 $cats = get_categories(); 45 45 $cats_a = array( "" => "All"); -
wp-tiles/tags/0.5.5/wp-tiles-defaults.php
r730881 r770836 25 25 'posts_per_page' 26 26 => -1, 27 'page' => 1 27 'page' => 1, 28 'tax_query' => array() 28 29 ), 29 30 'colors' => array ( -
wp-tiles/tags/0.5.5/wp-tiles.class.php
r745740 r770836 97 97 } elseif ( ! is_array( $att ) && strpos( $att, '=' ) ) { 98 98 $atts_parsed = array( ); 99 $att = str_replace( '{}', '[]', $att);100 wp_parse_str( html_entity_decode( $att ), $atts_parsed );99 $att = str_replace( array( '{', '}' ), array( '[', ']' ), html_entity_decode( $att ) ); 100 wp_parse_str( $att, $atts_parsed ); 101 101 if ( !empty( $atts_parsed ) ) 102 102 $att = $atts_parsed; … … 298 298 299 299 $color = $colors[array_rand( $colors )]; 300 /** 301 * Byline opacity only when using random colors 302 */ 300 303 $data[] = array( 301 304 "id" => $post->ID, … … 326 329 327 330 private function HexToRGB( $hex ) { 328 $hex = ereg_replace( "#", "", $hex );331 $hex = str_replace( "#", "", $hex ); 329 332 $color = array( ); 330 333 -
wp-tiles/tags/0.5.5/wp-tiles.php
r750702 r770836 18 18 * @since 0.1 19 19 */ 20 define( 'WPTILES_VERSION', '0.5. 4' );20 define( 'WPTILES_VERSION', '0.5.5' ); 21 21 22 22 /** -
wp-tiles/trunk/readme.txt
r750702 r770836 6 6 Requires at least: 3.4.2 7 7 Tested up to: 3.5.2 8 Stable tag: 0.5. 48 Stable tag: 0.5.5 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 178 178 }` 179 179 180 = How can I use custom taxonomy queries in the shortcode? = 181 182 Custom tax queries are supported in the shortcode (but they aren't pretty) using curly braces to create arrays. Use it like this: 183 184 ` 185 [wp-tiles posts_query="tax_query{0}{taxonomy}=my_custom_tax&tax_query{0}{field}=slug&tax_query{0}{terms}=taxonomy-cat-1"] 186 ` 187 180 188 == Screenshots == 181 189 … … 188 196 189 197 == Changelog == 198 199 = 0.5.5 = 200 201 * Fix warning static declaration of WP_Tiles_Settings_Config::dropdowns. (Thanks @chrishas35) 202 * Allow for more complicated queries in the shortcode, using curly braces for arrays. 190 203 191 204 = 0.5.4 = -
wp-tiles/trunk/roadmap.txt
r745740 r770836 7 7 * Custom content on the tiles 8 8 * Hide current post in tiles using shortcode 9 10 * Better filters on byline 11 * Better support for custom post type taxonomies -
wp-tiles/trunk/wp-tiles-admin.php
r750702 r770836 41 41 } 42 42 43 protected function dropdowns() {43 protected static function dropdowns() { 44 44 $cats = get_categories(); 45 45 $cats_a = array( "" => "All"); -
wp-tiles/trunk/wp-tiles-defaults.php
r730881 r770836 25 25 'posts_per_page' 26 26 => -1, 27 'page' => 1 27 'page' => 1, 28 'tax_query' => array() 28 29 ), 29 30 'colors' => array ( -
wp-tiles/trunk/wp-tiles.class.php
r745740 r770836 97 97 } elseif ( ! is_array( $att ) && strpos( $att, '=' ) ) { 98 98 $atts_parsed = array( ); 99 $att = str_replace( '{}', '[]', $att);100 wp_parse_str( html_entity_decode( $att ), $atts_parsed );99 $att = str_replace( array( '{', '}' ), array( '[', ']' ), html_entity_decode( $att ) ); 100 wp_parse_str( $att, $atts_parsed ); 101 101 if ( !empty( $atts_parsed ) ) 102 102 $att = $atts_parsed; … … 298 298 299 299 $color = $colors[array_rand( $colors )]; 300 /** 301 * Byline opacity only when using random colors 302 */ 300 303 $data[] = array( 301 304 "id" => $post->ID, … … 326 329 327 330 private function HexToRGB( $hex ) { 328 $hex = ereg_replace( "#", "", $hex );331 $hex = str_replace( "#", "", $hex ); 329 332 $color = array( ); 330 333 -
wp-tiles/trunk/wp-tiles.php
r750702 r770836 18 18 * @since 0.1 19 19 */ 20 define( 'WPTILES_VERSION', '0.5. 4' );20 define( 'WPTILES_VERSION', '0.5.5' ); 21 21 22 22 /**
Note: See TracChangeset
for help on using the changeset viewer.