Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
public functuion build(){
...
if ($data->hasChildren) {
$class[] = 'ul-level-' . $level;
}
else {
$class[] = 'leaf li-level-' $level;
}
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment