Options - Widgets

An Embedded supports customization at the page-level with elements or in adding data-* attributes to individual generated elements.

Websites can set widget preferences across their entire website by including in every page for interpretation by YouRepo's widget JavaScript before creating a new widget or button.

Widget settings specified in a may be overridden at the individual widget level. Order of precedence:

  1. web intent link query parameter
  2. widget attribute
  3. meta element
  4. widget ID stored preference (embedded repositories only)

Theme

Override the default light theme preference for an Embedded Package or an Embedded Repository.

<meta name="yourepo:widgets:theme" content="dark">
<a data-theme="dark" class="yourepo-widget" ...></a>

Link color

Specify a hexadecimal color value for links displayed in an Embedded Package or an Embedded Repository.

<meta name="yourepo:widgets:link-color" content="ff00ff">
<a data-link-color="ff00ff" class="yourepo-widget" ...></a>

Border color

Specify a border color for any Embedded widgets displayed on the page.

<meta name="yourepo:widgets:border-color" content="ff00ff">
<a data-border-color="ff00ff" class="yourepo-widget" ...></a>

Dimensions

An embedded widget automatically adjusts to the width of its parent element with a minimum width of 250 pixels and a maximum width of 520 pixels. Set the maximum width or the maximum height of an embedded widget by adding a width or height attribute to the widget's anchor element.

You can also use auto value to specify no maximum size.

<a with="350" height="auto" class="yourepo-widget" ...></a>

Language

Loads text components in the specified language. Note: does not affect the text of a Package displayed.

Supported YouRepo language code:

<a data-lang="en" class="yourepo-widget" ...></a>

Style

Remove a display component of a widget with space-separated tokens.

<blockquote data-theme="light" data-chrome="noheader transparent" height="auto" width="auto" data-link-color="ff0000" data-border-color="ff0000" data-widget-id="http://jerem10.yourepo.com/pack/arciel" class="yourepo-widget">...</blockquote>

Thème hivernal pour iPhone 4 à 6s + iPad et iPod à activer dans winterboard ou Anemone ( marche avec le tweak IconBundles et iconomatic )

— jerem10 2016-01-04