return $text;
}
- return link_arrow_left($text, (string)$href, $accesshide, 'previous');
+ $attrs = [
+ 'data-time' => calendar_get_timestamp($d, $m, $y, $time),
+ ];
+
+ return link_arrow_left($text, $href->out(false), $accesshide, 'previous', $attrs);
}
/**
return $text;
}
- return link_arrow_right($text, (string)$href, $accesshide, 'next');
+ $attrs = [
+ 'data-time' => calendar_get_timestamp($d, $m, $y, $time),
+ ];
+
+ return link_arrow_right($text, $href->out(false), $accesshide, 'next', $attrs);
}
/**