{% comment %} Renders a different SVG icon based on https://iconsvg.xyz Accepts: - icon: {String} The icon name, e.g. cart, account, search - size: {Number} (Optional) The icon size (default is 22) - stroke_width: {Number} (Optional) The icon stroke width (default is 2) - class: {String} (Optional) An optional class to apply to the SVG element Usage: {% render 'svg-icons' icon: 'menu', size: 24, stroke_width: 2, class: "m-3" %} {% endcomment %} {% case icon %} {% when 'cart' %} {% if settings.cart_icon == 'cart' %} {% elsif settings.cart_icon == 'bag' %} {% endif %} {% when 'menu' %} {% when 'account' %} {% when 'search' %} {% when 'heart' %} {% when 'recently-viewed' %} {% when 'x' %} {% when 'more' %} {% when 'minus' %} {% when 'plus' %} {% when 'alert-circle' %} {% when 'remove' %} {% when 'lock' %} {% when 'truck' %} {% when 'gift' %} {% when 'maximize' %} {% when 'arrow-top' %} {% when 'arrow-bottom' %} {% when 'arrow-left' %} {% when 'arrow-right' %} {% when 'chevron-left' %} {% when 'chevron-right' %} {% when 'chevron-up' %} {% when 'chevron-down' %} {% when 'filter' %} {% when 'tag' %} {% when 'mail' %} {% when 'star' %} {% when 'play' %} {% when 'phone' %} {% when 'edit' %} {% when 'time' %} {% endcase %}