示例#1
0
function showRealese(\Model\programs\Revision $rev, \Model\programs\Version $ver)
{
    $more = "";
    if (is_numeric($rev->getDownloadLink())) {
        $dwld = new \Model\downloads\Download($rev->getDownloadLink());
        $link = "downloads.Download.html?id=" . $rev->getDownloadLink();
        $more = "(nbDownload : " . $dwld->getNbDownload() . ')';
    } else {
        $link = $rev->getDownloadLink();
    }
    echo '<li><span class="release_name">V' . $rev->getRevisionName() . '</span> -<a href="' . $link . '"><span class="release_dwld">Download</span></a>-  ' . $more . '';
    if ($rev->IsBeta()) {
        echo '<span class="realese_beta"> BETA</span>';
    }
    echo '</li>';
    if ($rev->IsBeta()) {
        //Try to find other realeses;
        $realeses = $ver->getAllRevisions();
        foreach ($realeses as $r) {
            if (!$r->IsBeta()) {
                echo '<li>V' . $r->getRevisionName() . ' -<span class="release_dwld">Download</span></li>-';
                break;
            }
        }
    }
}
示例#2
0
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see {http://www.gnu.org/licenses/}.
 */
?>

<div class="prog_changelog">
    <ul>
    <?php 
foreach ($this->revisions as $rev) {
    if ($rev instanceof \Model\programs\Revision) {
        $more = "";
        if (is_numeric($rev->getDownloadLink())) {
            $dwld = new \Model\downloads\Download($rev->getDownloadLink());
            $link = $link = "downloads.Download.html?id=" . $rev->getDownloadLink();
            $more = "(nbDownload : " . $dwld->getNbDownload() . ')';
        } else {
            $link = $rev->getDownloadLink();
        }
        ?>
                <li>
                    <span class="version_title"><?php 
        echo $rev->getRevisionName();
        ?>
 </span>
                    <span class="version_date">(<?php 
        echo date('d/m/y', $rev->getDate());
        ?>
)</span>
                    <span class="version_dwld">  <a href="<?php 
        echo $link;