![]() ![]() Fix image alignment so that it works properly :).Add Gutenberg block for including Browser Shots.Change the rel link property to a toggle for one click changes.Add some placeholder text to the input fields to make it clearer what is expected.Add a new parameter display_link that allows you to disable the link around the screenshot.Ensuring display_link is a boolean in the shortcode.Now displays “Screenshot from domain-name”. Previously it would display the url for the screenshot, but this could be messy, and is not actually useful. If you set the link url to PERMALINK then the url will point to the currrent page or post. Make get_shots static so it can be used outside of the shortcode/ gutenberg block.Added option to allow screenshot to link to the post’s URL.Add a $shortcode parameter to the shortcode_atts function call so that the shortcode properties can be filtered.Add missing text domain for translations.Fix variable comparison that could cause errors in some situations.Fix possible XSS vulnerability as reported by WPScan.Update scripts and packages to the latest version.Small tweaks and improvements to the UX.Fix broken images (the image url moved – thanks for finding the fix).However, if you have the techinical know-how you can fork the repository and make your own version. Keep in mind that this is an Automattic project so, whilst you can look at the code and post bugs, it’s unlikely they will answer support questions. The images are generated by a third party servive and stored on their servers. If the image is displayed on your website then reloading the page is the only option. To reload the image you can press the ‘refresh’ button that appears in the toolbar when the shots block is selected. There is no way for the site to know if they have been created and so a loading image is shown. The images are generated on an external server and take a little while to be created. Why don’t the images display until I refresh the page? Since this service is run by Automattic this could change at any time. It is used with permission from Matt Mullenweg. You can reach out to me with questions or problems on Twitterīrowser Shots is based on the MShots functionality built and used by.If you only want to enable the shortcode for a specific site, activate the plugin for that site only. The Browser Shots plugin is compatibly with WordPress Multisite, just use the Network Activate feature to enable the shortcode on every site. The other parameters, from the shotcode, can be implemented manually when outputting the html. Keep in mind that the plugin must be installed and activated for this to work. If you want to create screenshots in a theme using this plugin then you can do so using the BrowserShots::get_shot method. ![]()
0 Comments
Leave a Reply. |