Beispiel #1
0
 *  along with Goteo.  If not, see <http://www.gnu.org/licenses/agpl.txt>.
 *
 */
use Goteo\Core\View, Goteo\Library\Text, Goteo\Model\Project\Category, Goteo\Model\Invest, Goteo\Model\Image;
$project = $this['project'];
$level = $this['level'] ?: 3;
if ($this['global'] === true) {
    $blank = ' target="_blank"';
} else {
    $blank = '';
}
$categories = Category::getNames($project->id, 2);
//si llega $this['investor'] sacamos el total aportado para poner en "mi aporte"
if (isset($this['investor']) && is_object($this['investor'])) {
    $investor = $this['investor'];
    $invest = Invest::supported($investor->id, $project->id);
}
?>

<div class="widget project activable<?php 
if (isset($this['balloon'])) {
    echo ' balloon';
}
?>
">
	<a href="<?php 
echo SITE_URL;
?>
/project/<?php 
echo $project->id;
?>