コード例 #1
0
 /**
  * Shows a support page
  */
 public function supportAction()
 {
     $this->initHtml();
     $this->html->h3($this->_('Support'));
     $this->html->pInfo()->sprintf($this->_('There is more than one way to get support for %s.'), $this->project->getName());
     if ($url = $this->project->getDocumentationUrl()) {
         $this->html->h4($this->_('Documentation'));
         $this->html->pInfo()->sprintf($this->_('All available documentation is gathered at: %s'))->a($url, array('rel' => 'external', 'target' => 'documentation'));
     }
     if ($url = $this->project->getManualUrl()) {
         $this->html->h4($this->_('Manual'));
         $this->html->pInfo()->sprintf($this->_('The manual is available here: %s'))->a($url, array('rel' => 'external', 'target' => 'manual'));
     }
     if ($url = $this->project->getForumUrl()) {
         $this->html->h4($this->_('The forum'));
         $this->html->pInfo()->sprintf($this->_('You will find questions asked by other users and ask new questions at our forum site: %s'))->a($url, array('rel' => 'external', 'target' => 'forum'));
     }
     if ($url = $this->project->getSupportUrl()) {
         $this->html->h4($this->_('Support site'));
         $this->html->pInfo()->sprintf($this->_('Check our support site at %s.'))->a($url, array('rel' => 'external', 'target' => 'support'));
     }
     $this->html->h4($this->_('Or contact'));
     $this->html->append($this->_getOrganizationsList());
 }