This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_string_between($string, $start, $end){ | |
$string = ' ' . $string; | |
$ini = strpos($string, $start); | |
if ($ini == 0) return ''; | |
$ini += strlen($start); | |
$len = strpos($string, $end, $ini) - $ini; | |
return substr($string, $ini, $len); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- block choice_widget -%} | |
{% if expanded %} | |
{% if attr.isInline is defined and attr.isInline %} | |
{{- block('choice_widget_expanded_inline') -}} | |
{% elseif attr.isCheckbox is defined and attr.isCheckbox %} | |
{{- block('choice_widget_expanded_checkbox') -}} | |
{% else %} | |
{{- block('choice_widget_expanded') -}} | |
{% endif %} | |
{% else %} |