<ul class="latest-release-list">
	<?php 
$releases = get_sListLatest($numofposts, false, true);
if ($releases) {
    $icons = wpmanga_get('wpmanga_widget_icons', 0);
    foreach ($releases as $release) {
        $project = get_sProject($release, false);
        echo '<li>';
        if ($icons) {
            echo "<a href='" . get_sPermalink($project) . "' title='{$project->title}'><img src='" . get_sThumbnail('60x60', empty($project->image_thumbnail) ? $project->image : $project->image_thumbnail) . "' width='60' height='60' style='float: left; margin-right: 5px;' class='project-icon-thumbnail'></a>";
        }
        echo "<p><a href='" . get_sPermalink($project) . "#release-{$release->id}' title='{$release->title}'>{$project->title} - " . get_sFormatRelease($project, $release, false) . "</a><br><span class='latest-release-date'>";
        if ($release->revision > 1) {
            echo get_sDuration($release->unixtime_mod);
        } else {
            echo get_sDuration($release->unixtime);
        }
        if ($icons) {
            echo '</span></p><span class="wpmanga-clear"></span></li>';
        } else {
            echo '</span></p></li>';
        }
    }
} else {
    echo '<li>No Releases</li>';
}
?>
</ul>
/**
 * Generate the latest widget for the dashboard.
 * @return widget
 */
function dashboard_sLatestWidgetD()
{
    ?>
<div id="the-comment-list" class="list:comment">
	<?php 
    $releases = get_sListLatest(5);
    ?>
	<?php 
    if ($releases != NULL) {
        ?>
		<?php 
        foreach ($releases as $release) {
            ?>
		<?php 
            $project = get_sProject($release->project_id, false);
            ?>
	<div id="comment-87" class="comment byuser comment-author-zyki odd alt thread-odd thread-alt depth-1 comment-item approved">
		<img src="<?php 
            echo get_sThumbnail('60x60', empty($project->image_thumbnail) ? $project->image : $project->image_thumbnail);
            ?>
" class='avatar avatar-50 photo' />
		<div class="dashboard-comment-wrap">
			<h4 class="comment-meta">
				<?php 
            echo $project->title;
            ?>
 - <i><?php 
            echo get_sFormatRelease($project, $release);
            ?>
</i>
			</h4>
			<blockquote><p>Released: <?php 
            if ($release->revision > 1) {
                echo get_sDuration($release->unixtime_mod);
            } else {
                echo get_sDuration($release->unixtime);
            }
            ?>
</p></blockquote>
			<p class="row-actions">
				<a href="admin.php?page=manga/release&action=edit&id=<?php 
            echo $release->id;
            ?>
" title="Edit this Release">Edit</a> | <a href="<?php 
            echo get_sPermalink($project->id);
            ?>
#release-<?php 
            echo $release->id;
            ?>
" title="<?php 
            echo $release->title;
            ?>
">View</a>
			</p>

		</div>
	</div>
		<?php 
        }
        ?>
	<?php 
    } else {
        ?>
		<li>
			<img src="<?php 
        bloginfo('template_directory');
        ?>
/images/no-image-60px.png" /><?php 
        echo $project->name;
        ?>
</a>
			<p>
				<i>No Releases.</i>
				<span class="popular-post-date">Pending...</span>
			</p>
		</li>
	<?php 
    }
    ?>
	<?php 
    wp_reset_query();
    ?>
</div>
<?php 
}
		if (status) {
			var project = new Array();
			<?php 
$projects = get_sListProject();
foreach ($projects as $project) {
    $lastRelease = get_sLastRelease($project->id, true);
    if ($project->image) {
        $project->image = get_sThumbnail('60x60', $project->image);
    }
    unset($project->custom);
    unset($project->hit);
    if ($lastRelease) {
        if ($lastRelease->revision > 1) {
            $project->last_release_time = get_sDuration($lastRelease->unixtime_mod);
        } else {
            $project->last_release_time = get_sDuration($lastRelease->unixtime);
        }
        $project->last_release = get_sFormatRelease($project, $lastRelease);
        $project->last_release_title = $lastRelease->title;
    } else {
        $project->last_release = '';
        $project->last_release_title = '';
        $project->last_release_time = 'No Releases Yet!';
    }
    echo "project[{$project->id}] = [" . json_encode($project) . "];";
}
?>
			
			var output = 'Project Details';
			if (project[id][0].title != "") {	output = '<b>' + project[id][0].title + '</b>'; }
			if (project[id][0].title_alt != "") {	output = output + '<br />&#12302; ' + project[id][0].title_alt + ' &#12303;'; }