Permalink
Browse files

Allows the "size" parameter to receive an array, when used with the t…

…emplate tag or do_action() call.

Fixes capitalisation of the "order" direction option keys.
Adds support for random ordering to the widget settings.
  • Loading branch information...
1 parent 3742491 commit db262da3162839b018a4c9bf5e751eef822aa3f8 @mattyza mattyza committed Jan 3, 2013
@@ -366,8 +366,8 @@ protected function get_image ( $id, $size ) {
$response = '';
if ( has_post_thumbnail( $id ) ) {
- // If not a string or an array, and not an integer, default to 50x50.
- if ( is_int( $size ) || ( 0 < intval( $size ) ) ) {
+ // If not a string or an array, and not an integer, default to 150x9999.
+ if ( ( is_int( $size ) || ( 0 < intval( $size ) ) ) && ! is_array( $size ) ) {
$size = array( intval( $size ), intval( $size ) );
} elseif ( ! is_string( $size ) && ! is_array( $size ) ) {
$size = array( 50, 50 );
@@ -229,7 +229,8 @@ protected function get_orderby_options () {
'ID' => __( 'Entry ID', 'woothemes-testimonials' ),
'title' => __( 'Title', 'woothemes-testimonials' ),
'date' => __( 'Date Added', 'woothemes-testimonials' ),
- 'menu_order' => __( 'Specified Order Setting', 'woothemes-testimonials' )
+ 'menu_order' => __( 'Specified Order Setting', 'woothemes-testimonials' ),
+ 'rand' => __( 'Random Order', 'woothemes-testimonials' )
);
} // End get_orderby_options()
@@ -240,8 +241,8 @@ protected function get_orderby_options () {
*/
protected function get_order_options () {
return array(
- 'asc' => __( 'Ascending', 'woothemes-testimonials' ),
- 'desc' => __( 'Descending', 'woothemes-testimonials' )
+ 'ASC' => __( 'Ascending', 'woothemes-testimonials' ),
+ 'DESC' => __( 'Descending', 'woothemes-testimonials' )
);
} // End get_order_options()
} // End Class
@@ -1,9 +1,9 @@
msgid ""
msgstr ""
-"Project-Id-Version: Testimonials v1.2.0\n"
+"Project-Id-Version: Testimonials v1.2.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: \n"
-"PO-Revision-Date: 2012-11-28 09:51:33+0000\n"
+"PO-Revision-Date: 2013-01-03 08:54:32+0000\n"
"Last-Translator: Matty <matt@woothemes.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -286,12 +286,12 @@ msgstr ""
msgid "Specified Order Setting"
msgstr ""
-#: classes/class-woothemes-widget-testimonials.php:243
+#: classes/class-woothemes-widget-testimonials.php:244
#@ woothemes-testimonials
msgid "Ascending"
msgstr ""
-#: classes/class-woothemes-widget-testimonials.php:244
+#: classes/class-woothemes-widget-testimonials.php:245
#@ woothemes-testimonials
msgid "Descending"
msgstr ""
@@ -311,3 +311,8 @@ msgstr ""
msgid "Display Avatar"
msgstr ""
+#: classes/class-woothemes-widget-testimonials.php:233
+#@ woothemes-testimonials
+msgid "Random Order"
+msgstr ""
+
View
@@ -3,8 +3,8 @@ Contributors: woothemes, mattyza, jameskoster
Donate link: http://woothemes.com/
Tags: testimonials, widget, shortcode, template-tag, feedback, customers
Requires at least: 3.4.2
-Tested up to: 3.5-beta3
-Stable tag: 1.2.0
+Tested up to: 3.5
+Stable tag: 1.2.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -95,6 +95,10 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
== Upgrade Notice ==
+= 1.2.1 =
+* Minor bugfixes in the "order" directions options.
+* Adds support for random ordering in the widget.
+
= 1.2.0 =
* Adds basic WPML support.
* Enhancements to the widget output.
@@ -108,6 +112,12 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
== Changelog ==
+= 1.2.1 =
+* 2013-01-03
+* Minor bugfixes in the "order" directions options.
+* Adds support for random ordering in the widget.
+* Allow the "size" parameter to receive an array when used with the template tag or do_action() call.
+
= 1.2.0 =
* 2012-11-28
* Adds basic WPML support to the get_features() method.
@@ -4,7 +4,7 @@
* Plugin URI: http://woothemes.com/
* Description: Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
* Author: WooThemes
- * Version: 1.2.0
+ * Version: 1.2.1
* Author URI: http://woothemes.com/
*
* @package WordPress

0 comments on commit db262da

Please sign in to comment.