Advanced Random Posts Widget - Version 2.2.0

Version Description

  • March 07, 2019 =
  • Support WordPress 5.1
  • Added: Display full post. props Rhys Wynne
  • Added: width and height attribute if using custom image size
Download this release

Release Info

Developer satrya
Plugin Icon 128x128 Advanced Random Posts Widget
Version 2.2.0
Comparing to
See all releases

Code changes from version 2.1.1 to 2.2.0

arpw.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
  /**
3
  * Plugin Name: Advanced Random Posts Widget
4
- * Plugin URI: https://www.theme-junkie.com/plugins/advanced-random-posts-widget/
5
  * Description: Easily to display advanced random posts via shortcode or widget.
6
- * Version: 2.1.1
7
- * Author: Theme Junkie
8
- * Author URI: https://www.theme-junkie.com/
9
- * Author Email: support@theme-junkie.com
10
  *
11
  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
12
  * General Public License as published by the Free Software Foundation; either version 2 of the License,
@@ -141,4 +141,4 @@ if ( ! class_exists( 'ARP_Widget' ) ) :
141
 
142
  endif;
143
 
144
- new ARP_Widget;
1
  <?php
2
  /**
3
  * Plugin Name: Advanced Random Posts Widget
4
+ * Plugin URI: https://github.com/idenovasi/advanced-random-posts-widget
5
  * Description: Easily to display advanced random posts via shortcode or widget.
6
+ * Version: 2.2.0
7
+ * Author: Idenovasi
8
+ * Author URI: https://idenovasi.com/
9
+ * Author Email: satrya@idenovasi.com
10
  *
11
  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
12
  * General Public License as published by the Free Software Foundation; either version 2 of the License,
141
 
142
  endif;
143
 
144
+ new ARP_Widget;
includes/form.php CHANGED
@@ -231,6 +231,13 @@ if ( ! defined( 'ABSPATH' ) ) exit;
231
 
232
  <div id="tab-5" class="arpw-tab-content">
233
 
 
 
 
 
 
 
 
234
  <p>
235
  <input class="checkbox" type="checkbox" <?php checked( $instance['excerpt'] ); ?> id="<?php echo $this->get_field_id( 'excerpt' ); ?>" name="<?php echo $this->get_field_name( 'excerpt' ); ?>" />
236
  <label for="<?php echo $this->get_field_id( 'excerpt' ); ?>">
@@ -282,4 +289,4 @@ if ( ! defined( 'ABSPATH' ) ) exit;
282
 
283
  </div><!-- .arpw-tabs-content -->
284
 
285
- </div>
231
 
232
  <div id="tab-5" class="arpw-tab-content">
233
 
234
+ <p>
235
+ <input class="checkbox" type="checkbox" <?php checked( $instance['content'] ); ?> id="<?php echo $this->get_field_id( 'content' ); ?>" name="<?php echo $this->get_field_name( 'content' ); ?>" />
236
+ <label for="<?php echo $this->get_field_id( 'content' ); ?>">
237
+ <?php _e( 'Display full post', 'advanced-random-posts-widget' ); ?>
238
+ </label>
239
+ </p>
240
+
241
  <p>
242
  <input class="checkbox" type="checkbox" <?php checked( $instance['excerpt'] ); ?> id="<?php echo $this->get_field_id( 'excerpt' ); ?>" name="<?php echo $this->get_field_name( 'excerpt' ); ?>" />
243
  <label for="<?php echo $this->get_field_id( 'excerpt' ); ?>">
289
 
290
  </div><!-- .arpw-tabs-content -->
291
 
292
+ </div>
includes/functions.php CHANGED
@@ -31,6 +31,7 @@ function arpw_get_default_args() {
31
  'thumbnail_width' => '',
32
  'thumbnail_height' => '',
33
 
 
34
  'excerpt' => false,
35
  'excerpt_length' => 10,
36
  'date' => false,
@@ -88,4 +89,4 @@ function arpw_custom_css( $args ) {
88
  }
89
 
90
  }
91
- add_action( 'arpw_before_loop', 'arpw_custom_css', 1 );
31
  'thumbnail_width' => '',
32
  'thumbnail_height' => '',
33
 
34
+ 'content' => false,
35
  'excerpt' => false,
36
  'excerpt_length' => 10,
37
  'date' => false,
89
  }
90
 
91
  }
92
+ add_action( 'arpw_before_loop', 'arpw_custom_css', 1 );
includes/posts.php CHANGED
@@ -59,7 +59,7 @@ function arpw_get_random_posts( $args, $id ) {
59
 
60
  $html .= '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
61
  if ( $args['thumbnail_custom'] ) :
62
- $html .= '<img class="arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) . '" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '">';
63
  else :
64
  $html .= get_the_post_thumbnail( get_the_ID(), $args['thumbnail_size'], array( 'alt' => esc_attr( get_the_title() ), 'class' => 'arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) ) );
65
  endif;
@@ -109,6 +109,10 @@ function arpw_get_random_posts( $args, $id ) {
109
  $html .= '<time class="arpw-time modfied" datetime="' . esc_html( get_the_modified_date( 'c' ) ) . '">' . esc_html( $date ) . '</time>';
110
  endif;
111
 
 
 
 
 
112
  if ( $args['excerpt'] ) :
113
  $html .= '<div class="arpw-summary">' . wp_trim_words( apply_filters( 'arpw_excerpt', get_the_excerpt() ), $args['excerpt_length'], ' &hellip;' ) . '</div>';
114
  endif;
@@ -195,4 +199,4 @@ function arpw_get_posts( $args, $id ) {
195
 
196
  return $posts;
197
 
198
- }
59
 
60
  $html .= '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
61
  if ( $args['thumbnail_custom'] ) :
62
+ $html .= '<img class="arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) . '" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '" width="' . esc_attr( $args['thumbnail_width'] ) . '" height="' . esc_attr( $args['thumbnail_height'] ) . '">';
63
  else :
64
  $html .= get_the_post_thumbnail( get_the_ID(), $args['thumbnail_size'], array( 'alt' => esc_attr( get_the_title() ), 'class' => 'arpw-thumbnail align' . esc_attr( $args['thumbnail_align'] ) ) );
65
  endif;
109
  $html .= '<time class="arpw-time modfied" datetime="' . esc_html( get_the_modified_date( 'c' ) ) . '">' . esc_html( $date ) . '</time>';
110
  endif;
111
 
112
+ if ( $args['content'] ) :
113
+ $html .= '<div class="arpw-content">' . apply_filters( 'arpw_content', get_the_content() ) . '</div>';
114
+ endif;
115
+
116
  if ( $args['excerpt'] ) :
117
  $html .= '<div class="arpw-summary">' . wp_trim_words( apply_filters( 'arpw_excerpt', get_the_excerpt() ), $args['excerpt_length'], ' &hellip;' ) . '</div>';
118
  endif;
199
 
200
  return $posts;
201
 
202
+ }
includes/widget.php CHANGED
@@ -9,12 +9,12 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
9
  *
10
  * @since 0.0.1
11
  */
12
- function __construct() {
13
 
14
  // Set up the widget options.
15
  $widget_options = array(
16
  'classname' => 'arpw-widget-random',
17
- 'description' => __( 'An advanced widget that gives you total control over the output of the random posts.', 'advanced-random-posts-widget' )
18
  );
19
 
20
  $control_ops = array(
@@ -23,10 +23,10 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
23
 
24
  // Create the widget.
25
  parent::__construct(
26
- 'arpw-widget', // $this->id_base
27
- __( 'Random Posts', 'advanced-random-posts-widget' ), // $this->name
28
- $widget_options, // $this->widget_options
29
- $control_ops // $this->control_options
30
  );
31
 
32
  // Inline default style
@@ -50,7 +50,7 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
50
  *
51
  * @since 0.0.1
52
  */
53
- function widget( $args, $instance ) {
54
  extract( $args );
55
 
56
  // Get the random posts.
@@ -86,7 +86,7 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
86
  *
87
  * @since 0.0.1
88
  */
89
- function update( $new_instance, $old_instance ) {
90
 
91
  $instance = $old_instance;
92
 
@@ -109,6 +109,7 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
109
  $instance['thumbnail_width'] = (int) $new_instance['thumbnail_width'];
110
  $instance['thumbnail_height'] = (int) $new_instance['thumbnail_height'];
111
 
 
112
  $instance['excerpt'] = isset( $new_instance['excerpt'] ) ? (bool) $new_instance['excerpt'] : false;
113
  $instance['excerpt_length'] = (int) $new_instance['excerpt_length'];
114
  $instance['date'] = isset( $new_instance['date'] ) ? (bool) $new_instance['date'] : false;
@@ -128,7 +129,7 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
128
  *
129
  * @since 0.0.1
130
  */
131
- function form( $instance ) {
132
 
133
  // Merge the user-selected arguments with the defaults.
134
  $instance = wp_parse_args( (array) $instance, arpw_get_default_args() );
@@ -141,4 +142,4 @@ class Advanced_Random_Posts_Widget extends WP_Widget {
141
 
142
  }
143
 
144
- }
9
  *
10
  * @since 0.0.1
11
  */
12
+ public function __construct() {
13
 
14
  // Set up the widget options.
15
  $widget_options = array(
16
  'classname' => 'arpw-widget-random',
17
+ 'description' => esc_html__( 'An advanced widget that gives you total control over the output of the random posts.', 'advanced-random-posts-widget' )
18
  );
19
 
20
  $control_ops = array(
23
 
24
  // Create the widget.
25
  parent::__construct(
26
+ 'arpw-widget', // $this->id_base
27
+ esc_html__( 'Random Posts', 'advanced-random-posts-widget' ), // $this->name
28
+ $widget_options, // $this->widget_options
29
+ $control_ops // $this->control_options
30
  );
31
 
32
  // Inline default style
50
  *
51
  * @since 0.0.1
52
  */
53
+ public function widget( $args, $instance ) {
54
  extract( $args );
55
 
56
  // Get the random posts.
86
  *
87
  * @since 0.0.1
88
  */
89
+ public function update( $new_instance, $old_instance ) {
90
 
91
  $instance = $old_instance;
92
 
109
  $instance['thumbnail_width'] = (int) $new_instance['thumbnail_width'];
110
  $instance['thumbnail_height'] = (int) $new_instance['thumbnail_height'];
111
 
112
+ $instance['content'] = isset( $new_instance['content'] ) ? (bool) $new_instance['content'] : false;
113
  $instance['excerpt'] = isset( $new_instance['excerpt'] ) ? (bool) $new_instance['excerpt'] : false;
114
  $instance['excerpt_length'] = (int) $new_instance['excerpt_length'];
115
  $instance['date'] = isset( $new_instance['date'] ) ? (bool) $new_instance['date'] : false;
129
  *
130
  * @since 0.0.1
131
  */
132
+ public function form( $instance ) {
133
 
134
  // Merge the user-selected arguments with the defaults.
135
  $instance = wp_parse_args( (array) $instance, arpw_get_default_args() );
142
 
143
  }
144
 
145
+ }
languages/advanced-random-posts-widget.pot CHANGED
@@ -1,17 +1,17 @@
1
- # Copyright (C) 2017
2
- # This file is distributed under the same license as the package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: \n"
6
- "Report-Msgid-Bugs-To: https://www.theme-junkie.com/contact/\n"
7
- "POT-Creation-Date: 2017-10-19 06:54:48+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2017-MO-DA HO:MI+ZONE\n"
12
- "Last-Translator: Theme Junkie\n"
13
- "Language-Team: Theme Junkie\n"
14
- "X-Generator: grunt-wp-i18n1.0.0\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-Language: English\n"
@@ -23,129 +23,110 @@ msgstr ""
23
  "x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
  "X-Textdomain-Support: yes\n"
25
 
26
- #: build/advanced-random-posts-widget/includes/form.php:48 includes/form.php:48
27
  msgid "Title"
28
  msgstr ""
29
 
30
- #: build/advanced-random-posts-widget/includes/form.php:55 includes/form.php:55
31
  msgid "Title URL"
32
  msgstr ""
33
 
34
- #: build/advanced-random-posts-widget/includes/form.php:62 includes/form.php:62
35
  msgid "CSS Class"
36
  msgstr ""
37
 
38
- #: build/advanced-random-posts-widget/includes/form.php:69 includes/form.php:69
39
  msgid "HTML or text before the random posts"
40
  msgstr ""
41
 
42
- #: build/advanced-random-posts-widget/includes/form.php:76 includes/form.php:76
43
  msgid "HTML or text after the random posts"
44
  msgstr ""
45
 
46
- #: build/advanced-random-posts-widget/includes/form.php:88 includes/form.php:88
47
  msgid "Ignore sticky posts"
48
  msgstr ""
49
 
50
- #: build/advanced-random-posts-widget/includes/form.php:94 includes/form.php:94
51
  msgid "Number of posts to show"
52
  msgstr ""
53
 
54
- #: build/advanced-random-posts-widget/includes/form.php:97 includes/form.php:97
55
  msgid "to show all posts."
56
  msgstr ""
57
 
58
- #: build/advanced-random-posts-widget/includes/form.php:102
59
  #: includes/form.php:102
60
  msgid "Offset"
61
  msgstr ""
62
 
63
- #: build/advanced-random-posts-widget/includes/form.php:105
64
  #: includes/form.php:105
65
  msgid "The number of posts to skip"
66
  msgstr ""
67
 
68
- #: build/advanced-random-posts-widget/includes/form.php:110
69
  #: includes/form.php:110
70
  msgid "Post type"
71
  msgstr ""
72
 
73
- #: build/advanced-random-posts-widget/includes/form.php:121
74
  #: includes/form.php:121
75
  msgid "Post status"
76
  msgstr ""
77
 
78
- #: build/advanced-random-posts-widget/includes/form.php:136
79
  #: includes/form.php:136
80
  msgid "Limit to Category"
81
  msgstr ""
82
 
83
- #: build/advanced-random-posts-widget/includes/form.php:152
84
  #: includes/form.php:152
85
  msgid "Limit to Tag"
86
  msgstr ""
87
 
88
- #: build/advanced-random-posts-widget/includes/form.php:168
89
  #: includes/form.php:168
90
  msgid "Limit to Taxonomy"
91
  msgstr ""
92
 
93
- #: build/advanced-random-posts-widget/includes/form.php:171
94
  #: includes/form.php:171
95
  msgid "Ex: category=1,2,4&amp;post_tag=6,12"
96
  msgstr ""
97
 
98
- #: build/advanced-random-posts-widget/includes/form.php:172
99
  #: includes/form.php:172
100
  msgid "Available: "
101
  msgstr ""
102
 
103
- #: build/advanced-random-posts-widget/includes/form.php:184
104
  #: includes/form.php:184
105
  msgid "Display thumbnail"
106
  msgstr ""
107
 
108
- #: build/advanced-random-posts-widget/includes/form.php:190
109
  #: includes/form.php:190
110
  msgid "Thumbnail Size "
111
  msgstr ""
112
 
113
- #: build/advanced-random-posts-widget/includes/form.php:197
114
  #: includes/form.php:197
115
  msgid "Please read %1$sFAQ%2$s for more information."
116
  msgstr ""
117
 
118
- #: build/advanced-random-posts-widget/includes/form.php:203
119
  #: includes/form.php:203
120
  msgid "Use custom thumbnail sizes"
121
  msgstr ""
122
 
123
- #: build/advanced-random-posts-widget/includes/form.php:209
124
  #: includes/form.php:209
125
  msgid "Width & Height"
126
  msgstr ""
127
 
128
- #: build/advanced-random-posts-widget/includes/form.php:217
129
  #: includes/form.php:217
130
  msgid "Thumbnail Alignment"
131
  msgstr ""
132
 
133
- #: build/advanced-random-posts-widget/includes/form.php:220
134
  #: includes/form.php:220
135
  msgid "Left"
136
  msgstr ""
137
 
138
- #: build/advanced-random-posts-widget/includes/form.php:221
139
  #: includes/form.php:221
140
  msgid "Right"
141
  msgstr ""
142
 
143
- #: build/advanced-random-posts-widget/includes/form.php:222
144
  #: includes/form.php:222
145
  msgid "Center"
146
  msgstr ""
147
 
148
- #: build/advanced-random-posts-widget/includes/form.php:227
149
  #: includes/form.php:227
150
  msgid ""
151
  "Your theme does not support Post Thumbnail feature, please go to "
@@ -153,86 +134,98 @@ msgid ""
153
  "how to activate it in your theme."
154
  msgstr ""
155
 
156
- #: build/advanced-random-posts-widget/includes/form.php:237
157
  #: includes/form.php:237
 
 
 
 
158
  msgid "Display excerpt"
159
  msgstr ""
160
 
161
- #: build/advanced-random-posts-widget/includes/form.php:243
162
- #: includes/form.php:243
163
  msgid "Excerpt Length"
164
  msgstr ""
165
 
166
- #: build/advanced-random-posts-widget/includes/form.php:251
167
- #: includes/form.php:251
168
  msgid "Display Date"
169
  msgstr ""
170
 
171
- #: build/advanced-random-posts-widget/includes/form.php:258
172
- #: includes/form.php:258
173
  msgid "Display Modified Date"
174
  msgstr ""
175
 
176
- #: build/advanced-random-posts-widget/includes/form.php:265
177
- #: includes/form.php:265
178
  msgid "Use Relative Date. eg: 5 days ago"
179
  msgstr ""
180
 
181
- #: build/advanced-random-posts-widget/includes/form.php:275
182
- #: includes/form.php:275
183
  msgid "Custom CSS"
184
  msgstr ""
185
 
186
- #: build/advanced-random-posts-widget/includes/form.php:278
187
- #: includes/form.php:278
188
  msgid "You can find the plugin css selector on %1$sFAQ page%2$s."
189
  msgstr ""
190
 
191
- #: build/advanced-random-posts-widget/includes/functions.php:14
192
- #: build/advanced-random-posts-widget/includes/widget.php:27
193
  #: includes/functions.php:14 includes/widget.php:27
194
  msgid "Random Posts"
195
  msgstr ""
196
 
197
- #: build/advanced-random-posts-widget/includes/posts.php:101
198
- #: build/advanced-random-posts-widget/includes/posts.php:107
199
  #: includes/posts.php:101 includes/posts.php:107
200
  msgid "%s ago"
201
  msgstr ""
202
 
203
- #: build/advanced-random-posts-widget/includes/widget.php:17
204
  #: includes/widget.php:17
205
  msgid ""
206
  "An advanced widget that gives you total control over the output of the "
207
  "random posts."
208
  msgstr ""
209
 
210
- #: build/advanced-random-posts-widget/includes/form.php:34 includes/form.php:34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  msgctxt "widget tab name"
212
  msgid "General"
213
  msgstr ""
214
 
215
- #: build/advanced-random-posts-widget/includes/form.php:35 includes/form.php:35
216
  msgctxt "widget tab name"
217
  msgid "Posts"
218
  msgstr ""
219
 
220
- #: build/advanced-random-posts-widget/includes/form.php:36 includes/form.php:36
221
  msgctxt "widget tab name"
222
  msgid "Taxonomy"
223
  msgstr ""
224
 
225
- #: build/advanced-random-posts-widget/includes/form.php:37 includes/form.php:37
226
  msgctxt "widget tab name"
227
  msgid "Thumbnail"
228
  msgstr ""
229
 
230
- #: build/advanced-random-posts-widget/includes/form.php:38 includes/form.php:38
231
  msgctxt "widget tab name"
232
  msgid "Extras"
233
  msgstr ""
234
 
235
- #: build/advanced-random-posts-widget/includes/form.php:39 includes/form.php:39
236
  msgctxt "widget tab name"
237
  msgid "Custom CSS"
238
  msgstr ""
1
+ # Copyright (C) 2019 Idenovasi
2
+ # This file is distributed under the same license as the Advanced Random Posts Widget package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Advanced Random Posts Widget 2.2.0\n"
6
+ "Report-Msgid-Bugs-To: https://idenovasi.com/contact/\n"
7
+ "POT-Creation-Date: 2019-03-07 16:09:37+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=utf-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2019-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: Idenovasi\n"
13
+ "Language-Team: Idenovasi\n"
14
+ "X-Generator: grunt-wp-i18n 1.0.3\n"
15
  "Plural-Forms: nplurals=2; plural=n != 1;\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-Language: English\n"
23
  "x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
24
  "X-Textdomain-Support: yes\n"
25
 
26
+ #: includes/form.php:48
27
  msgid "Title"
28
  msgstr ""
29
 
30
+ #: includes/form.php:55
31
  msgid "Title URL"
32
  msgstr ""
33
 
34
+ #: includes/form.php:62
35
  msgid "CSS Class"
36
  msgstr ""
37
 
38
+ #: includes/form.php:69
39
  msgid "HTML or text before the random posts"
40
  msgstr ""
41
 
42
+ #: includes/form.php:76
43
  msgid "HTML or text after the random posts"
44
  msgstr ""
45
 
46
+ #: includes/form.php:88
47
  msgid "Ignore sticky posts"
48
  msgstr ""
49
 
50
+ #: includes/form.php:94
51
  msgid "Number of posts to show"
52
  msgstr ""
53
 
54
+ #: includes/form.php:97
55
  msgid "to show all posts."
56
  msgstr ""
57
 
 
58
  #: includes/form.php:102
59
  msgid "Offset"
60
  msgstr ""
61
 
 
62
  #: includes/form.php:105
63
  msgid "The number of posts to skip"
64
  msgstr ""
65
 
 
66
  #: includes/form.php:110
67
  msgid "Post type"
68
  msgstr ""
69
 
 
70
  #: includes/form.php:121
71
  msgid "Post status"
72
  msgstr ""
73
 
 
74
  #: includes/form.php:136
75
  msgid "Limit to Category"
76
  msgstr ""
77
 
 
78
  #: includes/form.php:152
79
  msgid "Limit to Tag"
80
  msgstr ""
81
 
 
82
  #: includes/form.php:168
83
  msgid "Limit to Taxonomy"
84
  msgstr ""
85
 
 
86
  #: includes/form.php:171
87
  msgid "Ex: category=1,2,4&amp;post_tag=6,12"
88
  msgstr ""
89
 
 
90
  #: includes/form.php:172
91
  msgid "Available: "
92
  msgstr ""
93
 
 
94
  #: includes/form.php:184
95
  msgid "Display thumbnail"
96
  msgstr ""
97
 
 
98
  #: includes/form.php:190
99
  msgid "Thumbnail Size "
100
  msgstr ""
101
 
 
102
  #: includes/form.php:197
103
  msgid "Please read %1$sFAQ%2$s for more information."
104
  msgstr ""
105
 
 
106
  #: includes/form.php:203
107
  msgid "Use custom thumbnail sizes"
108
  msgstr ""
109
 
 
110
  #: includes/form.php:209
111
  msgid "Width & Height"
112
  msgstr ""
113
 
 
114
  #: includes/form.php:217
115
  msgid "Thumbnail Alignment"
116
  msgstr ""
117
 
 
118
  #: includes/form.php:220
119
  msgid "Left"
120
  msgstr ""
121
 
 
122
  #: includes/form.php:221
123
  msgid "Right"
124
  msgstr ""
125
 
 
126
  #: includes/form.php:222
127
  msgid "Center"
128
  msgstr ""
129
 
 
130
  #: includes/form.php:227
131
  msgid ""
132
  "Your theme does not support Post Thumbnail feature, please go to "
134
  "how to activate it in your theme."
135
  msgstr ""
136
 
 
137
  #: includes/form.php:237
138
+ msgid "Display full post"
139
+ msgstr ""
140
+
141
+ #: includes/form.php:244
142
  msgid "Display excerpt"
143
  msgstr ""
144
 
145
+ #: includes/form.php:250
 
146
  msgid "Excerpt Length"
147
  msgstr ""
148
 
149
+ #: includes/form.php:258
 
150
  msgid "Display Date"
151
  msgstr ""
152
 
153
+ #: includes/form.php:265
 
154
  msgid "Display Modified Date"
155
  msgstr ""
156
 
157
+ #: includes/form.php:272
 
158
  msgid "Use Relative Date. eg: 5 days ago"
159
  msgstr ""
160
 
161
+ #: includes/form.php:282
 
162
  msgid "Custom CSS"
163
  msgstr ""
164
 
165
+ #: includes/form.php:285
 
166
  msgid "You can find the plugin css selector on %1$sFAQ page%2$s."
167
  msgstr ""
168
 
 
 
169
  #: includes/functions.php:14 includes/widget.php:27
170
  msgid "Random Posts"
171
  msgstr ""
172
 
 
 
173
  #: includes/posts.php:101 includes/posts.php:107
174
  msgid "%s ago"
175
  msgstr ""
176
 
 
177
  #: includes/widget.php:17
178
  msgid ""
179
  "An advanced widget that gives you total control over the output of the "
180
  "random posts."
181
  msgstr ""
182
 
183
+ #. Plugin Name of the plugin/theme
184
+ msgid "Advanced Random Posts Widget"
185
+ msgstr ""
186
+
187
+ #. Plugin URI of the plugin/theme
188
+ msgid "https://github.com/idenovasi/advanced-random-posts-widget"
189
+ msgstr ""
190
+
191
+ #. Description of the plugin/theme
192
+ msgid "Easily to display advanced random posts via shortcode or widget."
193
+ msgstr ""
194
+
195
+ #. Author of the plugin/theme
196
+ msgid "Idenovasi"
197
+ msgstr ""
198
+
199
+ #. Author URI of the plugin/theme
200
+ msgid "https://idenovasi.com/"
201
+ msgstr ""
202
+
203
+ #: includes/form.php:34
204
  msgctxt "widget tab name"
205
  msgid "General"
206
  msgstr ""
207
 
208
+ #: includes/form.php:35
209
  msgctxt "widget tab name"
210
  msgid "Posts"
211
  msgstr ""
212
 
213
+ #: includes/form.php:36
214
  msgctxt "widget tab name"
215
  msgid "Taxonomy"
216
  msgstr ""
217
 
218
+ #: includes/form.php:37
219
  msgctxt "widget tab name"
220
  msgid "Thumbnail"
221
  msgstr ""
222
 
223
+ #: includes/form.php:38
224
  msgctxt "widget tab name"
225
  msgid "Extras"
226
  msgstr ""
227
 
228
+ #: includes/form.php:39
229
  msgctxt "widget tab name"
230
  msgid "Custom CSS"
231
  msgstr ""
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
  === Advanced Random Posts Widget ===
2
- Contributors: themejunkie, satrya
3
- Tags: random posts, thumbnail, widget, widgets, sidebar, excerpt, category, post tag, post type, taxonomy, shortcode, multiple widgets
4
- Requires at least: 4.0
5
- Tested up to: 4.8.2
6
- Stable tag: 2.1.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -29,13 +29,12 @@ This plugin will enable a custom, flexible and advanced random posts. It allows
29
  * Add custom html or text before and/or after random posts.
30
  * Multiple widgets.
31
 
32
- = Support =
33
 
34
- * [Forum support](http://wordpress.org/support/plugin/advanced-random-posts-widget).
35
- * [Rate/Review the plugin](http://wordpress.org/support/view/plugin-reviews/advanced-random-posts-widget).
36
- * [Contribute on Github](https://github.com/themejunkie/advanced-random-posts-widget/)
37
-
38
- > Developed by [Theme Junkie](http://www.theme-junkie.com/)
39
 
40
  == Installation ==
41
 
@@ -157,16 +156,8 @@ after=""
157
 
158
  == Changelog ==
159
 
160
- = 2.1.1 - Oct 19, 2017 =
161
- * Maintenance update
162
- * Support WordPress 4.8.2
163
-
164
- = 2.1.0 - Nov 06, 2015 =
165
- * UI Changes!
166
- * Filter `arpw_query` DEPRECATED
167
- * Change text domain to `advanced-random-posts-widget`
168
- * Remove `title` attribute in the post link
169
- * Sanitize after and before the posts with `wp_kses_post`, security purpose
170
- * Introducing new hook `arpw_before_loop_WIDGETID` & `arpw_after_loop_WIDGETID`
171
- * Inline default style, no more load extra file from the plugin
172
- * Sanitize Custom CSS, better security
1
  === Advanced Random Posts Widget ===
2
+ Contributors: idenovasi, satrya
3
+ Tags: random posts, thumbnail, widget, widgets, sidebar, excerpt, category, post tag, post type, taxonomy, shortcode, multiple widgets, random posts widget
4
+ Requires at least: 4.5
5
+ Tested up to: 5.1
6
+ Stable tag: 2.2.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
29
  * Add custom html or text before and/or after random posts.
30
  * Multiple widgets.
31
 
32
+ = Support Me =
33
 
34
+ * Purchase or download my [WordPress themes](https://wp.idenovasi.com/).
35
+ * Purchase my [Services](https://www.fiverr.com/idenovasi).
36
+ * Try another [WordPress plugin](https://profiles.wordpress.org/idenovasi/#content-plugins) from me.
37
+ * Contribute on [Github](https://github.com/idenovasi/advanced-random-posts-widget).
 
38
 
39
  == Installation ==
40
 
156
 
157
  == Changelog ==
158
 
159
+ = 2.2.0 - March 07, 2019 =
160
+ * Support WordPress 5.1
161
+ * Added: Display full post. props [Rhys Wynne](https://profiles.wordpress.org/rhyswynne/)
162
+ * Added: `width` and `height` attribute if using custom image size
163
+
 
 
 
 
 
 
 
 
screenshot-1.jpg DELETED
Binary file