$def with (share_links, page_url, link_markup, classes='', show_embed=True) $# :param list[dict] share_links: $# :param str page_url: absolute url excluding params $# :param str link_markup: Markup for element that triggers share modal $# :param str classes: HTML classes for this component $def embed_iframe(page_url):
$:link_markup
×$_("Close")

$for share_link in share_links: $ track_tag = share_link['text'].replace(' ', '-')
- $share_link['text']
$if show_embed:
- $# rm special characters from url such as single quote which break js prompt/iframe $ clean_url = page_url.replace("'", "\\'") $ iframe_html = str(embed_iframe(clean_url)).strip()
  $_("Embed")
- $_("Copy URL")
- $_("QR Code")