Ultimate Posts Widget - Version 2.1.6

Version Description

  • Tested up to WordPress 5.4.2
  • Updated Opt-in
Download this release

Release Info

Developer upwsupport
Plugin Icon wp plugin Ultimate Posts Widget
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.1.5 to 2.1.6

.editorconfig DELETED
@@ -1,11 +0,0 @@
1
- # editorconfig.org
2
-
3
- root = true
4
-
5
- [*]
6
- indent_style = space
7
- indent_size = 2
8
- end_of_line = lf
9
- charset = utf-8
10
- trim_trailing_whitespace = true
11
- insert_final_newline = true
 
 
 
 
 
 
 
 
 
 
 
.gitignore DELETED
@@ -1,6 +0,0 @@
1
- .svn
2
- node_modules
3
- .sass-cache
4
- *.tmp
5
- package-lock.json
6
- .DS_Store
 
 
 
 
 
 
README.md DELETED
@@ -1,293 +0,0 @@
1
- === Ultimate Posts Widget ===
2
- Contributors: cl272
3
- Donate link: https://sellcodes.com/5U4SICyc
4
- License: MIT
5
- License URI: http://opensource.org/licenses/MIT
6
- Tags: widget, recent posts, custom post types, sticky posts, featured image, post thumbnail, excerpts, category, custom fields, list pages, widget query, microformats, customizable widget, categories widget, tags widget, excerpt, widget templates, post author, post date, custom query, ultimate posts, comments, orderby, comment count
7
- Requires at least: 3.5
8
- Tested up to: 5.4
9
- Stable tag: 2.1.4
10
-
11
- The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
12
-
13
- == Description ==
14
-
15
- UPDATE: Plugin ownership changed for this plugin. We are currently evaluating possible enhancements for it. Stay tuned! If you have any suggestions yourself, please let us know in the Support Forum.
16
-
17
- The ultimate widget for displaying posts, custom post types or sticky posts with an array of options to customize the display.
18
-
19
- Designed for both the average user and developer, Ultimate Posts Widgets aims to provide flexibility and ease of use for displaying any kinds of posts within your widget areas. An array of widget options are available as well as hooks, filters and custom templates for more advanced customization.
20
-
21
- = Options =
22
-
23
- * Filter by categories
24
- * Filter by current category
25
- * Filter by tags
26
- * Filter by current tag
27
- * Filter by custom post types
28
- * Filter by sticky posts
29
- * Select number of posts to display
30
- * Display title
31
- * Display publish date/time with custom format options
32
- * Display post author and link
33
- * Display post comment count
34
- * Display excerpt or full content
35
- * Display read more link with custom label
36
- * Display featured image and at any size
37
- * Display post categories
38
- * Display post tags
39
- * Display custom fields
40
- * Add text or HTML before and after posts list
41
- * Add CSS class to widget
42
- * Add widget title link
43
- * Change excerpt length (in words)
44
- * Order by date, title, number of comments, random or a custom field
45
- * Exclude current post from the list
46
-
47
- = Documentation =
48
-
49
- See the [FAQ tab](https://wordpress.org/plugins/ultimate-posts-widget/faq/) for documentation on custom templates, hooks, common issues, and more.
50
-
51
- = Support =
52
-
53
- For help please ask in the [Support Forum](http://wordpress.org/support/plugin/ultimate-posts-widget/)
54
-
55
- Enjoy this plugin? [Send a tip to support development](https://sellcodes.com/5U4SICyc).
56
-
57
- == Frequently Asked Questions ==
58
-
59
- = Filters =
60
-
61
- **upw_enqueue_styles** *(boolean)*
62
- Allows changing whether to load the template CSS file(s).
63
-
64
- **upw_wp_query_args** *(array)*
65
- Allows changing the WP_Query arguments for the widget.
66
-
67
- **upw_custom_template_path** *(string)*
68
- Allows changing the default custom template path.
69
-
70
- = Templates =
71
-
72
- **legacy**
73
- As of version 2.0.0 we changed the widget HTML markup. For installs prior to 2.0.0 you can use the legacy template to retain the old HTML markup and compatibility.
74
-
75
- **standard**
76
- The new standard template as of version 2.0.0. It features better HTML5 markup, improved styling on various themes without the need for custom CSS, and hfeed microformat.
77
-
78
- **custom**
79
- As of version 2.0.0 you can now provide your own custom template files. To do this, create a directory named `upw` in your theme and copy a template from the plugin's `templates` directory. Edit as needed.
80
-
81
- Then, in the widget settings under the *Display* tab, choose *Custom* from the *Template* drop down. In the *Custom Template Name* field that appears and enter the file name of your template (excluding .php). For example, if your template is named `custom.php` then enter `custom` in the *Custom Template Name* field.
82
-
83
- = Images sizes =
84
-
85
- *As of version 2.0.0, the plugin no longer supports setting custom image sizes from the widget options panel.*
86
-
87
- To change image sizes you can either edit the built-in sizes (thumbnail, medium, and large) or define a custom image size in your theme `functions.php`.
88
-
89
- **Edit built-in image sizes:** Go to *Settings > Media* and change the image sizes as desired. Once image sizes are changed you will need to regenerate thumbnails to update any existing images. This can be done with [AJAX Thumbnail Rebuild](https://wordpress.org/plugins/ajax-thumbnail-rebuild/) or [Regenerate Thumbnails](https://wordpress.org/plugins/regenerate-thumbnails/) plugins. Note that this will affect image sizes for the entire site.
90
-
91
- **Define a custom image size:** Edit your `functions.php` file and add a new image size with the `add_image_size` function. See the [WordPress codex for documentation](http://codex.wordpress.org/Function_Reference/add_image_size). Once the function is added, your custom size will be available to select from the widget options. Like editing a built-in size, you will need to regenerate thumbnails for existing images.
92
-
93
- Example:
94
-
95
- `<?php add_image_size( 'my-custom-size', 800, 600, false ); ?>`
96
-
97
- = Thumbnail images are not displaying =
98
-
99
- *As of version 2.0.0 timthumb is no longer used.*
100
-
101
- This plugin uses the timthumb library to resize post thumbnails. Please review these requirements and troubleshooting tips if you are having problems displaying thumbnails.
102
-
103
- * Right click > view image - If an image isn't loading then this is the first thing you should do. 9 times out of 10 it will tell you what the problem is in an easy to read error message.
104
- * JetPack plugin - There is a known conflict between JetPack's "Photon" component, please disable it for compatibility with timthumb.
105
- * Server requirements - PHP and the GD image library must be installed on your web server. Normally most web servers include them by default.
106
- * Cache permissions - The cache directory `wp-content/plugins/ultimate-posts-widget/cache` should be set to 777 or if that doesn't work, you may find 755 is ok.
107
- * Image sizes - timthumb is configured to only work for images smaller than 1500 x 1500. The plugin and automatically selects the "Large" size from Settings > Media, if it is greater than 1500 x 1500 you will need to reduce the size or modify the configuration in `thumb.php` to support larger image sizes.
108
- * Tilde(~) in url - timthumb has a known issue with this, please use a url without a tilde until a fix is available. [Bug report](https://code.google.com/p/timthumb/issues/detail?id=263)
109
- * Thumbnail images only work with WordPress' native post thumbnail / featured image. Many theme use a custom image field for thumbnails, these are not supported.
110
-
111
- **Still stuck?** See [additional troubleshooting tips](http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/) from the timthumb author.
112
-
113
- == Screenshots ==
114
-
115
- 1. Example with TwentyTwelve theme with the default widget options
116
- 2. General options tab
117
- 3. Display options tab
118
- 4. Filter options tab
119
- 5. Order options tab
120
-
121
- == Changelog ==
122
-
123
- = 2.1.4 =
124
- * Plugin has been updated up to WordPress 5.4
125
-
126
- = 2.1.3 =
127
- * Hotfixed issue
128
-
129
- = 2.1.2 =
130
- * Serval improvements
131
-
132
- = 2.1.1 =
133
- * Added possibility to exclude current post from the list
134
- * Tested update WordPress 5.3.3 (beta)+
135
-
136
- = 2.1.0 =
137
- * Added possibility for changing custom message when no posts.
138
- * Increased stability of the plugin
139
- * Fixed filtering
140
- * Tested update WordPress 5.3.2+
141
-
142
- = 2.0.9 =
143
- * Replaced deprecated code
144
-
145
- = 2.0.8 =
146
- * Plugin revival
147
- * Feedback system integrated
148
- * Readme updated
149
-
150
- = 2.0.7 =
151
- * Tested update WordPress 4.8
152
-
153
- = 2.0.6 =
154
- * Fix PHP notice (thanks @rhyswynne)
155
- * Search custom template both in child theme and in parent (thanks @groucho75)
156
-
157
- = 2.0.5 =
158
- * Adds menu order sort by option
159
-
160
- = 2.0.4 =
161
- * Updated class constructor for WordPress 4.3 compatibility (thanks @JustB)
162
-
163
- = 2.0.3 =
164
- * Adds link to thumbnail images
165
- * Adds option to show all categories, tags, or types for better usability
166
- * Improve spacing and font sizes on some themes for the standard template
167
- * Document adding custom image sizes
168
- * Add option to display full size post thumbnail
169
- * Remove post_class() from legacy template for better backwards compatibility
170
-
171
- = 2.0.2 =
172
- * Reverts back to using `widget_title` filter
173
- * Fixes number of posts setting to allow unlimited amounts
174
- * Adds instance and widget ID variables to filters for more control
175
-
176
- = 2.0.1 =
177
- * Fixes issue loading multiple widgets on the same page and using the same template
178
- * Adds a default title to the widget for new instances
179
- * Documentation improvements
180
-
181
- = 2.0.0 =
182
-
183
- * Added a new standard template and custom template support
184
- * Added basic CSS styles for better formatting
185
- * Add hfeed microformat into new standard template
186
- * Improved widget options interface
187
- * Add option to filter by tags or current tag
188
- * Remove timthumb in favor of using built-in WordPress image sizes
189
- * Remove widget "More Button" options
190
- * Change date display options to now accept any custom date formats
191
- * Add before and after posts HTML fields
192
- * Add option for widget CSS class (thanks @avenirer)
193
- * Add option to display comment count
194
- * Set better defaults for newly created widgets
195
- * Various bug fixes and optimizations
196
-
197
- *Upgrading from an earlier version?*
198
-
199
- * Upgrades from prior to 2.0.0 we retain the "legacy" template for you. To change which template to use, find the "Template" option under the "Display" tab.
200
- * If you used the "More Button", you will need to add in your own HTML into one of the new fields since the more button is now removed.
201
- * If you used custom thumbnail settings you will need to update them. You can now choose from pre-defined sizes available to WordPress. If you need an additional image size please see [how to add image sizes](http://codex.wordpress.org/Function_Reference/add_image_size).
202
- * Date formatting has changed, you will need to update your settings. By default it uses WordPress' date/time options.
203
-
204
- = 1.9.0 =
205
-
206
- * Adds option to order by custom field (thanks @enekochan)
207
- * Remove "Permalink to:" from link titles (thanks @wirelessgizmo)
208
- * Swedish translation (thanks @brstp)
209
-
210
- = 1.8.1 =
211
-
212
- * Add content display option
213
-
214
- = 1.8 =
215
-
216
- * Add custom field display
217
- * Re-organized widget options
218
- * Use proper alt tag for image thumbnails
219
- * Better title attribute for links
220
-
221
- = 1.7 =
222
-
223
- * Added show author option
224
- * Added class to highlight current post
225
- * Fixed PHP error notices
226
-
227
- = 1.6 =
228
-
229
- * Added localization support
230
- * Added show post categories option
231
- * Added show post tags option
232
- * Added custom widget title URL option
233
- * Improved filter controls for sticky posts
234
- * Bug fixes
235
-
236
- = 1.5.1 =
237
-
238
- * Upgrade timthumb to 2.8.11
239
- * Load "Large" size post thumbnails which should eliminate large image errors
240
- * Improved FAQ for thumbnail troubleshooting
241
-
242
- = 1.5 =
243
-
244
- * Adds crop mode option
245
- * Add show published time option
246
- * Now uses date / time format settings
247
- * Bug fixes
248
-
249
- = 1.4.5 =
250
-
251
- * Updates screenshot
252
-
253
- = 1.4.4 =
254
-
255
- * Fixes show_readmore function
256
- * Adds more button link option
257
-
258
- = 1.4 =
259
-
260
- * Cleaner widget options
261
- * Code refactoring and fixes
262
- * Adds order by option
263
-
264
- = 1.3 =
265
-
266
- * Sticky posts only now optional
267
-
268
- = 1.2 =
269
-
270
- * Added post type filter option.
271
- * Code cleanup.
272
- * Better selection mechanism for categories.
273
-
274
- = 1.1 =
275
-
276
- * Added category filter option.
277
-
278
- = 1.0 =
279
-
280
- * First release.
281
-
282
- == Upgrade Notice ==
283
-
284
- = 2.0.0 =
285
-
286
- This is a major update and includes some breaking changes. New templates have been introduced, a few fields have changed, and thumbnails have been modified. See the changelog for details.
287
-
288
- == Installation ==
289
-
290
- 1. Download and extract the zip archive
291
- 2. Upload `ultimate-posts-widget` folder to `/wp-content/plugins/`
292
- 3. Activate the plugin through the 'Plugins' menu in WordPress
293
- 4. Add the widget to a sidebar and configure the options as desired
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
analyst/src/Analyst.php CHANGED
@@ -65,7 +65,9 @@ class Analyst implements AnalystContract
65
 
66
  $this->accountDataFactory = AccountDataFactory::instance();
67
 
68
- $this->mutator->initialize();
 
 
69
 
70
  $this->collector = new Collector($this);
71
 
65
 
66
  $this->accountDataFactory = AccountDataFactory::instance();
67
 
68
+ if(strpos($_SERVER['REQUEST_URI'], 'plugin') !== false) {
69
+ $this->mutator->initialize();
70
+ }
71
 
72
  $this->collector = new Collector($this);
73
 
composer.json DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "name": "bostondv/ultimate-posts-widget",
3
- "type": "wordpress-plugin",
4
- "license": "MIT",
5
- "description": "The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.",
6
- "homepage": "http://wordpress.org/plugins/ultimate-posts-widget/",
7
- "authors": [
8
- {
9
- "name": "Boston Dell-Vandenberg",
10
- "email": "hello@bostondv.com",
11
- "homepage": "https://bostondv.com/"
12
- }
13
- ],
14
- "keywords": [
15
- "wordpress"
16
- ],
17
- "support": {
18
- "issues": "https://github.com/bostondv/ultimate-posts-widget/issues/",
19
- "forum": "http://wordpress.org/support/plugin/ultimate-posts-widget/"
20
- },
21
- "require": {
22
- "php": ">=5.3.0",
23
- "composer/installers": "~1.0"
24
- }
25
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/upw-theme-standard.min.css CHANGED
File without changes
gulpfile.js DELETED
@@ -1,48 +0,0 @@
1
- var gulp = require('gulp');
2
- var sass = require('gulp-sass');
3
- var prefix = require('gulp-autoprefixer');
4
- var minify = require('gulp-minify-css');
5
- var rename = require('gulp-rename');
6
- var util = require('gulp-util');
7
- var size = require('gulp-size');
8
- var uglify = require('gulp-uglifyjs');
9
-
10
- gulp.task('styles', function () {
11
- return gulp.src([`${__dirname}/scss/*.scss`])
12
- .pipe(sass({
13
- outputStyle: 'compressed',
14
- precision: 10
15
- }))
16
- .pipe(prefix('last 2 versions', 'ie 8'))
17
- .pipe(minify({ keepSpecialComments: 1 }))
18
- .pipe(size({
19
- showFiles: true,
20
- gzip: true,
21
- title: 'Styles'
22
- }))
23
- .pipe(rename({suffix: '.min'}))
24
- .pipe(gulp.dest(`${__dirname}/css/`));
25
- });
26
-
27
- gulp.task('scripts', function() {
28
-
29
- return gulp.src([
30
- 'js/*.js',
31
- '!js/*.min.js'
32
- ])
33
- .pipe(uglify())
34
- .pipe(size({
35
- gzip: true,
36
- title: 'Scripts'
37
- }))
38
- .pipe(rename({suffix: '.min'}))
39
- .pipe(gulp.dest(`${__dirname}/js`));
40
-
41
- });
42
-
43
- gulp.task('watch', function () {
44
- gulp.watch('scss/**/*.scss', gulp.series('styles'));
45
- gulp.watch('js/**/*.js', gulp.series('scripts'));
46
- });
47
-
48
- gulp.task('default', gulp.parallel(['styles', 'scripts']));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
js/upw-admin.min.js CHANGED
File without changes
languages/.gitkeep DELETED
File without changes
package.json DELETED
@@ -1,34 +0,0 @@
1
- {
2
- "name": "bostondv/ultimate-posts-widget",
3
- "version": "2.0.6",
4
- "contributors": [
5
- "Boston Dell-Vandenberg <hello@bostondv.com>"
6
- ],
7
- "homepage": "http://wordpress.org/plugins/ultimate-posts-widget/",
8
- "repository": {
9
- "type": "git",
10
- "url": "https://github.com/bostondv/ultimate-posts-widget.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/bostondv/ultimate-posts-widget/issues/"
14
- },
15
- "licenses": [
16
- {
17
- "type": "MIT",
18
- "url": "http://opensource.org/licenses/MIT"
19
- }
20
- ],
21
- "engines": {
22
- "node": ">= 0.10.0"
23
- },
24
- "devDependencies": {
25
- "gulp": "^4.0.2",
26
- "gulp-autoprefixer": "^7.0.1",
27
- "gulp-minify-css": "^1.2.4",
28
- "gulp-rename": "^2.0.0",
29
- "gulp-size": "^3.0.0",
30
- "gulp-uglifyjs": "^0.6.2",
31
- "gulp-util": "^3.0.8",
32
- "gulp-sass": "^4.0.2"
33
- }
34
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -5,8 +5,8 @@ License: MIT
5
  License URI: http://opensource.org/licenses/MIT
6
  Tags: widget, recent posts, custom post types, sticky posts, featured image, post thumbnail, excerpts, category, custom fields, list pages, widget query, microformats, customizable widget, categories widget, tags widget, excerpt, widget templates, post author, post date, custom query, ultimate posts, comments, orderby, comment count
7
  Requires at least: 3.5
8
- Tested up to: 5.4.1
9
- Stable tag: 2.1.5
10
 
11
  The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
12
 
@@ -120,6 +120,10 @@ This plugin uses the [timthumb library](http://www.binarymoon.co.uk/projects/tim
120
 
121
  == Changelog ==
122
 
 
 
 
 
123
  = 2.1.5 =
124
  * Tested up to WordPress 5.4.1
125
  * Changed info
5
  License URI: http://opensource.org/licenses/MIT
6
  Tags: widget, recent posts, custom post types, sticky posts, featured image, post thumbnail, excerpts, category, custom fields, list pages, widget query, microformats, customizable widget, categories widget, tags widget, excerpt, widget templates, post author, post date, custom query, ultimate posts, comments, orderby, comment count
7
  Requires at least: 3.5
8
+ Tested up to: 5.4.2
9
+ Stable tag: 2.1.6
10
 
11
  The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
12
 
120
 
121
  == Changelog ==
122
 
123
+ = 2.1.6 =
124
+ * Tested up to WordPress 5.4.2
125
+ * Updated Opt-in
126
+
127
  = 2.1.5 =
128
  * Tested up to WordPress 5.4.1
129
  * Changed info
ultimate-posts-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Ultimate Posts Widget
4
  Plugin URI: http://wordpress.org/plugins/ultimate-posts-widget/
5
  Description: The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
6
- Version: 2.1.5
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: upw
3
  Plugin Name: Ultimate Posts Widget
4
  Plugin URI: http://wordpress.org/plugins/ultimate-posts-widget/
5
  Description: The ultimate widget for displaying posts, custom post types or sticky posts with an array of options.
6
+ Version: 2.1.6
7
  Author: Clever Widgets
8
  Author URI: https://themecheck.info
9
  Text Domain: upw