@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-web-application/>
  a sioc:Post ;
  dc:title "Install the App block" ;
  dcterms:identifier 151782 ;
  dc:modified "2026-10-19T15:20:13Z"^^xsd:dateTime ;
  dc:created "2026-10-19T15:20:13Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-web-application/install-the-app-block/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-web-application/\">LH Web Application</a></li></ul><p class=\"wp-block-paragraph\">The Install the App block (<code>lh-web-application/install-button</code>) puts a button on a page that opens the install sheet. Use it where asking makes sense on a particular site: a members&#8217; page, a registration confirmation, a newsletter landing page. It adds to the automatic prompt rather than replacing it.</p><h3 class=\"wp-block-heading\">Settings</h3><ul class=\"wp-block-list\"><li><strong>Button text</strong>, typed on the button itself. Left empty, it reads Install the app.</li><li><strong>Alignment</strong>: left, centre or right, from the block toolbar.</li><li><strong>Trigger name</strong> (default <code>block</code>): reported as <code>detail.trigger</code> on the install sheet&#8217;s events, so analytics can tell one button from another. It is reduced to lower case letters, numbers, dashes and underscores.</li><li><strong>Hide once installed</strong> (on by default): hides the button in a browser that has installed the app.</li></ul><h3 class=\"wp-block-heading\">How it works</h3><ul class=\"wp-block-list\"><li>Rendered on the server as <code>div.wp-block-lh-web-application-install-button</code> holding <code>button.wp-element-button</code> with a <code>data-lh-web-application-install</code> attribute carrying the trigger name. The theme&#8217;s button styles apply; the install script opens the sheet from any element with that attribute.</li><li>The button is always hidden inside the installed app, where it could do nothing (display-mode media queries, and the body class <code>lh_web_application-is_standalone</code>), and when printing.</li><li>With Hide once installed on, the wrapper gets <code>is-hidden-when-installed</code> and is hidden while the body has <code>lh_web_application-is_installed</code>. The install script sets that class in a browser that has installed the app (remembered in localStorage) and clears it if the browser offers to install it again, meaning the app was removed. An install made on another device or before storage was cleared is not known, so the button shows there.</li><li>Its small stylesheet loads only on pages that use the block. The editor script needs no build step.</li></ul>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH Web ApplicationThe Install the App block (lh-web-application/install-button) puts a button on a page that opens the install sheet. Use it where asking makes sense on a particular site: a members&#8217; page, a registration confirmation, a newsletter landing page. It adds to the automatic prompt rather than replacing it.SettingsButton text, typed on the button itself. Left empty, it reads Install the app.Alignment: left, centre or right, from the block toolbar.Trigger name (default block): reported as detail.trigger on the install sheet&#8217;s events, so analytics can tell one button from another. It is reduced to lower case letters, numbers, dashes and underscores.Hide once installed (on by default): hides the button in a browser that has installed the app.How it worksRendered on the server as div.wp-block-lh-web-application-install-button holding button.wp-element-button with a data-lh-web-application-install attribute carrying the trigger name. The theme&#8217;s button styles apply; the install script opens the sheet from any element with that attribute.The button is always hidden inside the installed app, where it could do nothing (display-mode media queries, and the body class lh_web_application-is_standalone), and when printing.With Hide once installed on, the wrapper gets is-hidden-when-installed and is hidden while the body has lh_web_application-is_installed. The install script sets that class in a browser that has installed the app (remembered in localStorage) and clears it if the browser offers to install it again, meaning the app was removed. An install made on another device or before storage was cleared is not known, so the button shows there.Its small stylesheet loads only on pages that use the block. The editor script needs no build step." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
