Exemple #1
0
 public function render_link()
 {
     $siteconfig = new org_openpsa_core_siteconfig();
     $products_url = $siteconfig->get_node_full_url('org.openpsa.products');
     if ($products_url) {
         return '<a href="' . $products_url . 'product/' . $this->guid . '/">' . $this->title . "</a>\n";
     } else {
         return $this->title;
     }
 }
Exemple #2
0
 public function render_link()
 {
     $siteconfig = new org_openpsa_core_siteconfig();
     $contacts_url = $siteconfig->get_node_full_url('org.openpsa.contacts');
     if ($contacts_url) {
         return '<a href="' . $contacts_url . 'group/' . $this->guid . '/">' . $this->get_label() . "</a>\n";
     } else {
         return $this->get_label();
     }
 }