Support

Account

Home Forums General Issues $block > [margin] returns string(21) “var:preset|spacing|80” Reply To: $block > [margin] returns string(21) “var:preset|spacing|80”

  • Has anyone a proper solution for this ?
    At the moment I use

    $padding_top_string = $block['style']['spacing']['padding']['top'];
    $padding_top_value = (int) substr($padding_top_string, strrpos($padding_top_string, '|') + 1); 

    this seems much to dirty…