Example #1
0
function jq_release_dependencies()
{
    $pkg = jq_release_manifest();
    $ret = "";
    foreach ($pkg->dependencies as $plugin => $version) {
        if (get_page_by_path($plugin)) {
            $ret .= "<li class=\"icon-caret-right\"><a href='/{$plugin}'>{$plugin}</a> {$version}</li>";
        } else {
            $ret .= "<li class=\"icon-caret-right\">{$plugin} {$version}</li>";
        }
    }
    return $ret;
}
function jq_release_dependencies()
{
    $pkg = jq_release_manifest();
    $ret = '<ul>';
    foreach ($pkg->dependencies as $plugin => $version) {
        if (get_page_by_path($plugin)) {
            $ret .= "<li><a href='/{$plugin}'>{$plugin}</a> {$version}</li>";
        } else {
            $ret .= "<li>{$plugin} {$version}</li>";
        }
    }
    $ret .= '</ul>';
    return $ret;
}