@@ 298-306 (lines=9) @@ | ||
295 | public function getUrlLink($forWhere) |
|
296 | { |
|
297 | if ($forWhere === 'block') { |
|
298 | if ($this->extentedInfo()) { |
|
299 | return '<a href="' . SMARTPARTNER_URL . 'partner.php?id=' . $this->id() . '">'; |
|
300 | } else { |
|
301 | if ($this->url()) { |
|
302 | return '<a href="' . $this->url() . '" target="_blank">'; |
|
303 | } else { |
|
304 | return ''; |
|
305 | } |
|
306 | } |
|
307 | } elseif ($forWhere === 'index') { |
|
308 | if ($this->extentedInfo()) { |
|
309 | return '<a href="' . SMARTPARTNER_URL . 'partner.php?id=' . $this->id() . '">'; |
|
@@ 308-316 (lines=9) @@ | ||
305 | } |
|
306 | } |
|
307 | } elseif ($forWhere === 'index') { |
|
308 | if ($this->extentedInfo()) { |
|
309 | return '<a href="' . SMARTPARTNER_URL . 'partner.php?id=' . $this->id() . '">'; |
|
310 | } else { |
|
311 | if ($this->url()) { |
|
312 | return '<a href="' . SMARTPARTNER_URL . 'vpartner.php?id=' . $this->id() . '">'; |
|
313 | } else { |
|
314 | return ''; |
|
315 | } |
|
316 | } |
|
317 | } elseif ($forWhere === 'partner') { |
|
318 | if ($this->url()) { |
|
319 | return '<a href="' . SMARTPARTNER_URL . 'vpartner.php?id=' . $this->id() . '">'; |