function albumOtherAlbumBlock($node = false) { global $num_other_albums, $show_album_art, $jzUSER, $album_name_truncate; if (!defined('NO_AJAX_LINKS') && $node === false) { $node = new jzMediaNode($_SESSION['jz_path']); } $display = new jzDisplay(); $parent = $node->getNaturalParent(); $nodes = $parent->getSubNodes("nodes", false, true, $num_other_albums * 2, true); // randomized, only with art. if (count($nodes) > 1 and $show_album_art != "false") { // Let's startup Smarty $smarty = smartySetup(); // Now let's assign our variables to smarty $smarty->assign('title', word("Other Albums from") . " " . $parent->getName()); // Now let's display the template $smarty->display(SMARTY_ROOT . 'templates/slick/block-other-albums.tpl'); } }