I think there might be an issue with using the r($condition) and isNotEmpty(). I’m running the latest Kirby (2.5.8).
So if I wanted to build a variable if a field was filled in I might want to use something like the following.
<?php r($page->tel()->isNotEmpty(), $tel = 'tel: ' . $page->tel() ) ?>
It seems to execute if the condition is false (e.g. the field IS empty).
The following code works as expected.
<?php if($page->tel()->isNotEmpty()): $tel = 'tel: ' . $page->tel(); endif ?>
I’m wondering if someone else can check this on their end.