Zionetrix::Git
Repositories
Help
Report an Issue
viewgit-projectinfos-plugin
Code
Commits
Branches
Tags
Search
Tree:
4fd6f93
Branches
Tags
master
viewgit-projectinfos-plugin
projectinfos
main.php
Move plugin file in subdirectory with valid name for deploying
Benjamin Renard
commited
4fd6f93
at 2013-08-21 17:25:30
main.php
Blame
History
Raw
<?php /** * Project infos plugin for ViewGit. * * This add project infos on summary page. * * @author Benjamin Renard <brenard@easter-eggs.com> */ class ProjectInfosPlugin extends VGPlugin { function __construct() { $this->register_hook('summary'); } function hook_summary() { global $page; $page['project_infos']=get_project_info($page['project']); if (isset($page['project_infos']['url']) && !is_array($page['project_infos']['url'])) { $page['project_infos']['url']=array($page['project_infos']['url']); } $this->display_plugin_template('summary', FALSE); } function hook($type) { global $conf; if ($type == 'summary') { $this -> hook_summary(); } } }