=== DD Last Viewed === Contributors: Mosterd3d Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=5V2C94HQAN63C&lc=US&item_name=Dijkstra%20Design¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted Tags: history, lastviewed, recently, visited, posts viewed recently, customisable, seo, woo-commerce, posts, custom, posttypes, thumbnail, cookie, widget, recent, visit terms, taxonomies, taxonomy, term, category, template, customise, woocommerce Requires at least: 3.3 Tested up to: 5.5.3 Stable tag: 6.2.1 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Shows the users recently viewed/visited posts, filtered on types or terms, in a widget. == Description == This plugin contains the lastViewed widget. This widget shows the users recently viewed/visited Posts, Pages, Custom Types and even Terms in a widget. Very nice to use in combination with Woo-commerce! Using caching plugins? No problem! By 2 easy clicks you can bypass the caching and still get the best performance out of this widget. The widget is fully customisable: * Filter on Types and Terms * Set the maximum * Set thumbnail on/off * Show Content(rich or plain) or Excerpt * Set the excerpt length * Add links to elements * Set cookie lifetime * Set cookie same site * Set cookie secure * Set cookie by PHP or JS * load widget with PHP or AJAX customise the widget template by copy the file "dd-templates/lastviewed-widget.php" from the plugin directory into your theme directory. You can now start customising the widgets template. If one of the posts with the filtered types or terms gets visited in the front, a cookie sets/updates with an array of visited ids. Each widget has his own cookie, so you can set as many widgets as you want. == Installation == 1. Upload the `dd-lastViewed` directory to the `/wp-content/plugins/` directory 2. Activate the plugin through the 'Plugins' menu in WordPress 3. customise the widget OPTIONAL ADVANCED (customise widget template): 4. Copy dd_templates/widget.php 5. Paste clipboard in theme folder 6. Start customising the template You can use [dd_lastviewed widget_id="12"] as shortcode to publish the widget inside a page or a post. Do not forget to use the correct id! == Frequently asked questions == Do you have ideas, questions or issues with LastViewed? Please leave a message in the support forum. == Changelog == = 6.2.1 = * Fix setCookie for diff php versions > or < 7.3 (options array) = 6.2 = * pre-fill post types with 'post and pages' if emtpy * Fix logged errors * Fix saving posttypes = 6.1 = * Fix cookie secure option * Fix missing style.css.map * Set 'lax'(samesite) by default if https * Fix bug visiting same page as the only one set in the cookie = 6.0 = * Created advanced cookie settings * Extend cookie settings with sameSite options * Extend cookie settings with Secure options * Activate switch if link is activated * Deactivate link if switch is deactivated * Aligned styling "Avoid widget caching" * Fix styling and js on "accessibility mode" = 5.3 = * Refined code * Set phpcookie on 'WP' hook instead of 'get_header' hook * Update deprecated e.which to e.key = 5.2.1 = * Fix devmode errors "Undefined index" * Update CSS = 5.2 = * Hide 'lastViewedContent' element in widget if no content * Load scripts correctly for ELementor by their custom hook = 5.1.1 = * Fix FE ajax call 'ajax_set_cookie_by_js' = 5.1 = * Added 'primary color to hover item select2' * Border radius on exclude_ids fixed * Fixed Ajax when not logged in = 5.0 = * Implemented Widget load by Ajax * Implemented set cookie by Javascript * Set default cookie lifetime to 365 days * Refined code * Updated translations * Only numbers allowed in Exclude ID's = 4.2 = * Added languages (NL DE FR ES PT CN ) * Fix styling on '/wp-admin/customize.php' * Fix Select2 on '/wp-admin/customize.php' * Make use of select2 for exclude_ids = 4.1 = * Checked with woo-commerce * Fixed styling overwrites * restyled widget in admin = 4.0 = * fix select2 bug * improve code = 3.7 = * UX fix double