=== Supafolio === Contributors: Supadü Tags: supadü, supadu, folio, books, publishers, supafolio, supadu for wordpress, supapress, supafolio for wordpress Requires at least: 4.0 Tested up to: 4.5.2 Stable tag: 2.3.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Quickly and easily connect your book metadata (ONIX) to your WordPress site. == Description == The [Supafolio WordPress plugin](http://www.supadu.com/) allows trade publishers to access powerful features through WordPress previously only available to Supacms users which can be easily embedded in your pages using shortcodes. **Features include:** * **Metadata.** Display the metadata (e.g. ONIX) for any book in your catalog, including cover image, title, subtitle, author, price, format and link by typing in the ISBN13. * **Layouts.** Choose how to display your books through a variety of layouts including grid, carousel and list. * **Control.** Change the metadata that is displayed on the page by overwriting the underlying data through the SupaFolio dashboard. == Installation == 1. Install the Supafolio plugin either via the WordPress.org plugin directory, or by uploading the entire `supapress` folder to the `/wp-content/plugins/` directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. After activating the Supafolio plugin try out the example widget that has been created or add you API key in the settings page You will find 'Supafolio' menu in your WordPress admin panel. == Screenshots == 1. Go to Supafolio > Settings to add your API Key. 2. Use the Links tab in the settings to create you custom book page url patterns. 3. Go to Supafolio > Add New to start creating your widget - add a new and select which type of widget you wish to create. 4. If you're creating an ISBN Lookup Widget, use the content tab to set your books. 5. Use the elements tab to set which elements you wish to display in your widget. 6. Use the Arrangement tab to choose which default layout to use, these layouts can be overridden in your theme. == Changelog == = 2.3.2 = Release Date: May 27, 2016 * Bug Fix: Fixed issue on re-ordered select2 elements were the user was unable to select the first option = 2.3.1 = Release Date: May 26, 2016 * Bug Fix: Fixed styling on select2 elements being used by other 3rd party plugins = 2.3.0 = Release Date: May 25, 2016 * Enhancement: Dashboard widget created for the Pages and Posts editor to allow users to quickly and easily choose the shortcodes they wish to add to the content * Enhancement: The view for Search Results Filters can now be overridden * Enhancement: WP Filters added for the Search Results Filters so developers can filter out specific filters and change filter group headings easily from the theme `functions.php` file * Enhancement: `get_assets` function added to the Book class so developers can access any asset attached to a book * Enhancement: Default CSS class names added to all elements by default so developers do not need to manually set them * Bug Fix: Service parameters decoded before they are encoded to prevent double encoding issues * Bug Fix: URL rewrite functions prefixed with `supapress` to avoid function name clashes * Enhancement: `set_book` function added to the Book class so books from secondary service calls made in the view can be passed through the same class * Bug Fix: `supapress_order` added as a possible URL parameter for setting the search results ordering * Enhancement: Listener added to the DOM so carousels and search results will work when dynamically added to the page * Enhancement: Support for sites built in AngularJS added. Simply enable AngularJS in the settings and add the dependancy to your AngularJS application * Bug Fix: Cache clear function improved to clear if sites are not using the default `wp_` prefix * Bug Fix: Make blank book url link not include the domain so the domain is not included on install * Enhancement: Dropdowns updated to list options in alphabetical order for better usability * Enhancement: Edit link added to the Supafolio Module widget so users can quickly get to the edit screen * Enhancement: Build packages updated to the latest versions * Bug Fix: Buggy fade out removed from hidden elements when switching between module types * Bug Fix: Buggy `ISBN not found` when adding an ISBN with an apostrophe fixed = 2.2.0 = Release Date: February 4, 2016 * Bug Fix: Update to the_reviews to stop blank reviews being printed out * Enhancement: Publisher added as a possible URL part for book details * Enhancement: ISBN-10 added as a possible URL part for book details * Bug Fix: URI decoding fixing when using pagination to stop the keyword changing * Bug Fix: Slashes removed from search bar when searching with and apostrophe = 2.1.3 = Release Date: January 18, 2016 * Bug Fix: The URL pattern for book pages has been updated to be relative to avoid issues when migrating a site * Bug Fix: ISBN lookup updated to skip service calls if search by collection is set but no collection has been set * Bug Fix: All layouts updated to include post ID in the wrappers ID attribute to avoid invalid HTML when there are multiple modules on a page * Enhancement: Shortcode added to the notice bar on save or update for quicker copying * Enhancement: ISBN lookup updated to allow users to input multiple ISBNs at once * Enhancement: Module type column moved on list table for better visibility * Bug Fix: Missing settings added to the uninstall script * Enhancement: Text still referencing `widgets` updated to reference `modules` * Bug Fix: Form navigation updated to hide element configurations if those elements are not available when changing module type = 2.1.2 = Release Date: December 21, 2015 * Bug Fix: Fixed no results message on the search results not coming through * Bug Fix: Swapped default wrappers for book summary and description to divs for HTML validity * Bug Fix: Fixed issue with checkbox column on the Supafolio module table being too wide when other options were hidden * Enhancement: Type column added to Supafolio module table for improved ordering * Bug Fix: Fixed width issue on book covers where the width was 0 in some themes * Bug Fix: API key added to hash for cache key so results are not loaded from cache when the API key is changed * Bug Fix: Fixed issue where save button would become visible when repeatedly clicked on the Cache tab * Enhancement: Text change on cache cleared message = 2.1.1 = Release Date: December 10, 2015 * Enhancement: Caching added to the plugin so all API calls will now be cached for 24 hours. These can be cleared in the admin by going to Supafolio > Settings > Cache * Bug Fix: Incorrect layout selected when switch from ISBN Carousel to Search Results * Enhancement: Additional Supafolio API params added as shortcode attributes to request extra data like other format prices * Bug Fix: Disabled options on prices element dropdown fixed to change when adding / removing options * Enhancement: Updated widget to include title as part of the attribute data * Enhancement: Ability to view the service URL by adding `?debug` to the browser URL * Bug Fix: Fixed `isset` errors showing for filter lists * Enhancement: CSS updates for responsive sites missing certain styles in the theme * Security: Direct access to all PHP files removed * Enhancement: Extra searchable filters added * Enhancement: Retailer names added to retailer links for CSS targeting * Security: Permissions to use the plugin changed to be editors and above only * Enhancement: Styling fixes to element tab * Enhancement: Carousel layout update to be more flexible which which wrapper is the carousel parent wrapper for easier HTML changes = 2.1.0 = Release Date: November 04, 2015 * New admin page interface to match branding to Supafolio * Enhancement: Added support for IE9, IE10 and Microsoft Edge * Bug Fix: Fixed bottom bulk actions on the list page * Enhancement: Improved UX and to the per page element config * Enhancement: New function `get_pagination` added to the view to get pagination details from search * Enhancement: Imprint add as a URL part of the book URLs * Enhancement: Book service URL improved to accept URL with or without `http` = 2.0.8 = Release Date: October 07, 2015 * Enhancement: Added support for Safari * Enhancement: Config options added to search results `per_page` element to allow user to set the drop down options * Enhancement: Added url support for sites without rewrite rules turned on * Bug Fix: Fixed responsive layout issues on product details pages * Enhancement: Updated search results filters so they have a show more / show less feature (labels and limits can be set in the template) to avoid long lists on the page * Bug Fix: Search results filters pre-loader fix to make sure it is always center aligned * Enhancement: Relevance added as the default option for the `sort_by` element when creating new widgets * Bug Fix: API calls url encoded to fix issue with spaces in keyword searches * Enhancement: `amount` attribute can now be added to ISBN Lookup widgets = 2.0.7 = Release Date: September 23, 2015 * Bug Fix: Encode image alt tag so html source is not broke by quotes * Enhancement: Added ability to pass custom attributes on shortcodes * Enhancement: Set search results default amount with `amount` attribute on shortcode * Enhancement: Added date format config to publication date element * Enhancement: Added on sales date element * Enhancement: Added function to return books count * Enhancement: Added functions to return configuration settings and attributes = 2.0.6 = Release Date: September 14, 2015 * Enhancement: Select element updated to work cross browser and also to have filtering abilities * Bug Fix: Clear left added to floats for 5 per row grid layouts * Bug Fix: JS validation updated to force 13 digit numbers only for manually entered ISBNs * Enhancement: Colour of placeholder text updated for better UX * Enhancement: Edit collection link updated to go directly to books tab * Enhancement: Widget updated to return full list instead of filtering by ISBN Lookups only * Bug Fix: Filter for book pages drop down updated to allow external links * Enhancement: Functions added to model to allow raw data to be grabbed in the layout for custom html updates = 2.0.5 = Release Date: September 07, 2015 * Bug Fix: Plugin security permissions updated to `edit_posts` = 2.0.4 = Release Date: September 07, 2015 * Enhancement: Default price locale added for the price element configuration * Enhancement: External link option added to book page dropdown * Bug Fix: Text change to link on plugins page = 2.0.3 = Release Date: September 07, 2015 * Bug Fix: Custom rewrite rules updated to ignore `Link not in use` = 2.0.2 = Release Date: September 07, 2015 * Bug Fix: Install example ISBN list updated to key value pair to include book titles = 2.0.1 = Release Date: September 07, 2015 * Bug Fix: `package.json` file removed from plugin = 2.0.0 = Release Date: September 07, 2015 * Enhancement: First release of the plugin launched = 1.0.0 = Release Date: February 16, 2015 * Prototype created