|
Tutoriel 1 : Simple Link
Fichier: /pages/tutorials/link/link-01.php
<?php class Link01 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Simple Link"; $this->render = new Link($this->getBaseLanguageURL(), Link::TARGET_BLANK, __(HOME_LINK)); } } ?>
Tutoriel 2 : Link with JavaScript event
Fichier: /pages/tutorials/link/link-02.php
<?php class Link02 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Link with JavaScript event"; $link = new Link($this->getBaseLanguageURL(), Link::TARGET_BLANK, __(HOME_LINK)); $link->onClickJs(new JavaScript("alert('click link');")); $this->render = $link; } } ?>
Tutoriel 3 : Link with Analytics tracking
Fichier: /pages/tutorials/link/link-03.php
<?php class Link03 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : Link with Analytics tracking"; $link = new Link($this->getBaseLanguageURL(), Link::TARGET_BLANK, __(HOME_LINK)); $link->setTrackEvent("Tutorial", "Click", "Link03"); $this->render = $link; } } ?>
|
|
|
|
|