diff --git a/src/block/html-snippet/render.php b/src/block/html-snippet/render.php index eabb9bb..f0f9be8 100644 --- a/src/block/html-snippet/render.php +++ b/src/block/html-snippet/render.php @@ -38,48 +38,28 @@ "", esc_html__( 'Webring navigation', 'webring' ), sprintf( - // translators: %1$s: The webring URL for `prev`, %2$s: The `aria-label`describing the link. - '%3$s', + // translators: %1$s: The webring URL for `prev`, %2$s: The `prev` link text. + '%2$s', esc_url( get_home_url( '/webring' ) . '/prev/YOUR-DOMAIN.TLD' ), - sprintf( - // translators: %s: The webring name. - esc_html__( 'Visit the previous website in the %s', 'webring' ), - $webring_name - ), - esc_attr_x( '←', 'webring prev link text', 'webring' ), + esc_attr_x( 'prev', 'webring prev link text', 'webring' ), ), sprintf( - // translators: %1$s: The webring URL for `index`, %2$s: The `aria-label`describing the link. - '%3$s', + // translators: %1$s: The webring URL for `index`, %2$s: The `index` link text. + '%2$s', esc_url( get_home_url( '/webring' ) ), - sprintf( - // translators: %s: The webring name. - esc_html__( 'Visit the %s', 'webring' ), - $webring_name - ), esc_attr( $webring_name ), ), sprintf( - // translators: %1$s: The webring URL for `random`, %2$s: The `aria-label`describing the link. - '%3$s', + // translators: %1$s: The webring URL for `random`, %2$s: The `random` link text. + '%2$s', esc_url( get_home_url( '/webring' ) . '/random/YOUR-DOMAIN.TLD' ), - sprintf( - // translators: %s: The webring name. - esc_html__( 'Visit a random website from the %s', 'webring' ), - $webring_name - ), - esc_attr__( 'random', 'webring' ), + esc_attr_x( 'random', 'webring random link text', 'webring' ), ), sprintf( - // translators: %1$s: The webring URL for `next`, %2$s: The `aria-label`describing the link. - '%3$s', + // translators: %1$s: The webring URL for `next`, %2$s: The `next` link text. + '%2$s', esc_url( get_home_url( '/webring' ) . '/next/YOUR-DOMAIN.TLD' ), - sprintf( - // translators: %s: The webring name. - esc_html__( 'Visit the next website in the %s', 'webring' ), - $webring_name - ), - esc_attr_x( '→', 'webring next link text', 'webring' ), + esc_attr_x( 'next', 'webring next link text', 'webring' ), ) ) );