From: <al...@us...> - 2008-10-27 23:12:55
|
Revision: 769 http://sciret.svn.sourceforge.net/sciret/?rev=769&view=rev Author: alpeb Date: 2008-10-27 22:16:49 +0000 (Mon, 27 Oct 2008) Log Message: ----------- added some missing template vars Modified Paths: -------------- trunk/views/MainView.php Modified: trunk/views/MainView.php =================================================================== --- trunk/views/MainView.php 2008-10-27 18:06:56 UTC (rev 768) +++ trunk/views/MainView.php 2008-10-27 22:16:49 UTC (rev 769) @@ -390,6 +390,7 @@ if ($article->isBookmark()) { $this->tpl->set_var('articleImage', 'bookmark.png'); + $this->tpl->set_var('question', ''); } elseif ($article->getQuestion()) { $this->tpl->set_var('articleImage', 'question.png'); $this->tpl->set_var('questionStr', $article->getQuestion()); @@ -464,8 +465,10 @@ 'modifOrCreated' => $article->getModifiedByUserId() > 0? $this->user->lang('Last Modified') : $this->user->lang('Created on'), 'img_stars' => $article->getTotalVotes()? '<img src="images/'.round($article->getAverageRating()).'stars.png" width="50" height="10" />' : '', 'attachment' => $article->getNumFiles()? '<img src="images/attach.gif" />' : '', + 'art_num' => $article->getId(), 'art_excerpt' => strip_tags($article->getExcerpt()).($article->isBookmark()? '' : '...'), 'art_author' => $article->getCreatedBy(), + 'bookmark_edit' => $article->isBookmark()? '<a href="'.Library::getLink(array('view' => 'ViewBookmark', 'id' => $article->getId())).'" style="font-size:10px">'.$this->user->lang('details').'</a>' : '', )); if ($article->isBookmark()) { @@ -501,6 +504,7 @@ while ($article = $articles->fetch()) { unset($this->tPath); $this->tpl->set_var(array( + 'art_num' => $article->getId(), 'latestLink' => Library::getLink(array('view' => ($article->isBookmark()? 'ViewBookmark' : 'ViewArticle'), 'id' => $article->getId())), 'latestTitle' => $article->getTitle(), 'latestDate' => $this->user->formatDate($article->getCreationDate()), This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |