@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-membership/>
  a sioc:Post ;
  dc:title "Log in/out icon" ;
  dcterms:identifier 154425 ;
  dc:modified "2026-11-13T06:29:04Z"^^xsd:dateTime ;
  dc:created "2026-11-13T06:29:04Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-membership/log-in-out-icon/> ;
  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-membership/\">LH Membership</a></li></ul><p class=\"wp-block-paragraph\">A Log in/out block placed inside a Navigation block and given a CSS class starting <code>icon-</code> (for example <code>icon-user</code>) gets an inline SVG icon before its link text: a user icon when logged out and a log-out icon when logged in. The block&#8217;s wrapper gets the <code>has-inline-icon</code> class, so a theme can skip its own pseudo-element icon, as LH 2015 does in its social menu.</p><p class=\"wp-block-paragraph\">Left untouched: Log in/out blocks without an <code>icon-</code> class (plain text links in a footer menu, say), blocks outside a Navigation block, and blocks set to show the login form.</p><h2 class=\"wp-block-heading\">How it works</h2><ul class=\"wp-block-list\"><li>Navigation blocks are tracked while they render (<code>render_block_data</code> in, <code>render_block_core/navigation</code> out), so the Log in/out filter knows whether it is inside one.</li><li>The SVG has the class <code>lh-membership-loginout-icon</code>, is <code>aria-hidden</code>, 1em square and drawn in <code>currentColor</code>. A one-line style giving it a small end margin is enqueued only on pages that draw it.</li><li>In the block editor, which renders the block without the filter, the log-out icon is previewed as a CSS mask on Log in/out blocks with an <code>icon-</code> class inside Navigation blocks.</li></ul><h2 class=\"wp-block-heading\">Filters</h2><ul class=\"wp-block-list\"><li><code>lh_membership_return_loginout_icons</code> ( array $icons ): the icons, keyed <code>login</code> and <code>logout</code>, each an array of <code>viewbox</code> and <code>path</code>.</li><li><code>lh_membership_loginout_show_icon</code> ( bool $show, array $block ): whether this block gets the icon.</li></ul><p class=\"wp-block-paragraph\">The code is <code>includes/lh-membership-loginout-icon-class.php</code>. (Since 2.108.0; limited to blocks with an <code>icon-</code> class since 2.108.1.)</p>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH MembershipA Log in/out block placed inside a Navigation block and given a CSS class starting icon- (for example icon-user) gets an inline SVG icon before its link text: a user icon when logged out and a log-out icon when logged in. The block&#8217;s wrapper gets the has-inline-icon class, so a theme can skip its own pseudo-element icon, as LH 2015 does in its social menu.Left untouched: Log in/out blocks without an icon- class (plain text links in a footer menu, say), blocks outside a Navigation block, and blocks set to show the login form.How it worksNavigation blocks are tracked while they render (render_block_data in, render_block_core/navigation out), so the Log in/out filter knows whether it is inside one.The SVG has the class lh-membership-loginout-icon, is aria-hidden, 1em square and drawn in currentColor. A one-line style giving it a small end margin is enqueued only on pages that draw it.In the block editor, which renders the block without the filter, the log-out icon is previewed as a CSS mask on Log in/out blocks with an icon- class inside Navigation blocks.Filterslh_membership_return_loginout_icons ( array $icons ): the icons, keyed login and logout, each an array of viewbox and path.lh_membership_loginout_show_icon ( bool $show, array $block ): whether this block gets the icon.The code is includes/lh-membership-loginout-icon-class.php. (Since 2.108.0; limited to blocks with an icon- class since 2.108.1.)" ;
  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> .
