{"id":48585,"date":"2016-05-24T03:24:22","date_gmt":"2016-05-24T03:24:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/lh-qr-codes\/"},"modified":"2018-03-05T05:47:13","modified_gmt":"2018-03-05T05:47:13","slug":"lh-qr-codes","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/lh-qr-codes\/","author":2531614,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.06","stable_tag":"trunk","tested":"4.9.29","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"LH QR Codes","header_author":"Peter Shaw","header_description":"","assets_banners_color":"3e3e3b","last_updated":"2018-03-05 05:47:13","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/lhero.org\/portfolio\/lh-qr-codes\/","header_plugin_uri":"https:\/\/lhero.org\/portfolio\/lh-qr-codes\/","header_author_uri":"https:\/\/shawfactor.com\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3216,"num_ratings":2,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"2"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2766718,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2766718,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":1422817,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[602,1373,40192,2904,1326],"plugin_category":[50],"plugin_contributors":[83584],"plugin_business_model":[],"class_list":["post-48585","plugin","type-plugin","status-closed","hentry","plugin_tags-login","plugin_tags-qr-code","plugin_tags-self-hosted","plugin_tags-svg","plugin_tags-thumbnail","plugin_category-media","plugin_contributors-shawfactor","plugin_committers-shawfactor"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/lh-qr-codes_3e3e3b.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Embed QR codes throughout your site using template functions and shortcodes. All QR codes are configurable and are generated and hosted locally (unlike other plugins) and use the SVG format (to minimise bandwidth).<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Use the template function or shortcode, see the FAQ for usage.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20include%20a%20qr%20code%20on%20my%20site%3F'><h3>How do I include a QR code on my site?<\/h3><\/dt>\n<dd><p>QR codes can either be included by using the new template function the_post_qrcode(), which functions very similarly to the native template function the_post_thumbnail(), or insert the shortcode [lh_qr_code] into a post, page, or cpt, or finally use the LH QR Code wiget to display a QR code in your sidebar or other widgetable areas.<\/p><\/dd>\n<dt id='what%20arguments%20can%20i%20pass%20to%20the%20the_post_qrcode%28%29%20function%3F'><h3>What arguments can I pass to the the_post_qrcode() function?<\/h3><\/dt>\n<dd><p>The function takes two arguments, both are optional. The first is $size, this is an integer value of the height and width of the generated QR Codes, if not specied the svg image created will be 150 pixels. The second is $attribute, this is an associative array with the following keys:<\/p>\n\n<p>fore_color; the foreground colour of the QR, in hex, if not specified black (0x000000) is used<\/p>\n\n<p>back_color; the background colour of the QR, in hex, if not specified white (0xFFFFFF) is used<\/p>\n\n<p>margin; the margin around the edge of the QR, in pixels, if not specified it is 3 pixels<\/p><\/dd>\n<dt id='what%20attributes%20can%20be%20passed%20to%20the%20shortcode%3F'><h3>What attributes can be passed to the shortcode?<\/h3><\/dt>\n<dd><p>The [lh_qr_code] shortcode takes the following attributes<\/p>\n\n<p>text; the text that the QR code is displaying, if it is not specified the permalink of the post\/page that shortocde is being used on will be what the QR code dsiplays. However you could change it to an email address or the text contents of a Vcard file for example.<\/p>\n\n<p>urlencode; whether to pass the text (set above) or permalink through a urlencode function, by default it does not, but if you need to urlencode a string eg a vcard string then set urlencode=\"1\"<\/p>\n\n<p>fore_color; the foreground colour of the QR, in hex, if not specified black (0x000000) is used<\/p>\n\n<p>format; the format of the QR code, svg or png, if not specified svg is used<\/p>\n\n<p>back_color; the background colour of the QR, in hex, if not specified white (0xFFFFFF) is used<\/p>\n\n<p>margin; the margin around the edge of the QR, if not specified it is 3 pixels<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p><strong>1.00 May 14, 2016<\/strong><br \/>\nInitial release.<strong>1.01 June 27, 2016<\/strong><br \/>\nPermalinks regeneration and widget added.<\/p>\n\n<p><strong>1.02 June 28, 2016<\/strong><br \/>\nAllow QR codes produced by shortcode to be png as well as SVG<\/p>\n\n<p><strong>1.03 June 28, 2016<\/strong><br \/>\nFix for those with Illegal string offset (hopefully)<\/p>\n\n<p><strong>1.04 March 03, 2017<\/strong><br \/>\nAdded urlencode attribute<\/p>\n\n<p><strong>1.05 March 30, 2017<\/strong><br \/>\nUse isset<\/p>\n\n<p><strong>1.06 March 04, 2018<\/strong><br \/>\nBackground and foreground color fix<\/p>","raw_excerpt":"Provides the full set of QR functionality for your WordPress site","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/48585","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=48585"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/shawfactor"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=48585"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=48585"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=48585"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=48585"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=48585"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=48585"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}