Default XenForo 2 Icon

XF2 Addons Standard Library by Xon 1.22.6
A number of helper utilities designed to ease add-on development

  • XF2.3 support
    • Various .js files should work with XF2.1/XF2.2/XF2.3
  • Fix hasDesiredAddOnVersion could error if the target addon was in a processing state
  • Fix Standard Lib: Log parse_less_func debug info option not working
  • Backport <xf:macro name="template::macro syntax to to XF2.1
  • Update parse_less_color to not return CSS variables where possible
  • Bundle choices.js as a near drop-in replacement for select2
HTML:
<xf:macro template="svStandardLib_macros" name="choices_setup" />
<xf:selectrow label="Select row example" name="select_row_example"
              multiple="multiple"
              data-xf-init="sv-choices"
              data-placeholder="{{ phrase('example')|for_attr }}"
              data-max-item-count="2">
    <xf:option value="1">Option 1</xf:option>
    <xf:option value="2" selected="true">Option 2</xf:option>
    <xf:option value="3">Option 3</xf:option>
</xf:selectrow>
  • The initial structure is pre-rendered to reduce/prevent page jank.
  • To opt-out add the skip-rendering="true" attribute to the <xf:select> or <xf:selectrow> element
  • This will be used by a number of my add-ons and other 3rd party addons.
  • Fix \SV\StandardLib\Helper::repo()->aliasClass() had a compatibility issue with XF2.2.13+ when the aliased class was the top-most class extension.
Top Bottom