<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 }
<tr> <th scope="col">ID</th> <th scope="col">Release</th> <th scope="col">Action</th> </tr> </thead> <tfoot> <tr> <th scope="col">ID</th> <th scope="col">Release</th> <th scope="col">Action</th> </tr> </tfoot> <tbody> <?php $releases = get_sListLatest(0); foreach ($releases as $release) { $project = get_sProject($release->project_id, false); ?> <tr> <th scope="row"><?php echo $release->id; ?> </th> <td style="vertical-align: inherit;"><?php echo $project->title . ' - ' . get_sFormatRelease($project, $release); ?> </td> <td style="vertical-align: inherit;"><a class="send_release_to_editor" title="<?php echo $release->id; ?>