-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<?php | ||
/** | ||
* AOM - Piwik Advanced Online Marketing Plugin | ||
* | ||
* @author Daniel Stonies <[email protected]> | ||
* @author André Kolell <[email protected]> | ||
*/ | ||
namespace Piwik\Plugins\AOM; | ||
|
||
use Piwik\Plugins\AOM\Platforms\AbstractPlatform; | ||
use Piwik\Plugins\Live\VisitorDetailsAbstract; | ||
use Piwik\View; | ||
|
||
class VisitorDetails extends VisitorDetailsAbstract | ||
{ | ||
/** | ||
* @param array $action | ||
* @param array $previousAction | ||
* @param array $visitorDetails | ||
* @return string|void | ||
*/ | ||
public function renderAction($action, $previousAction, $visitorDetails) | ||
{ | ||
if (false === $previousAction) { | ||
|
||
$additionalDescription = AbstractPlatform::getHumanReadableDescriptionForVisit($visitorDetails['idVisit']); | ||
|
||
if ($additionalDescription) { | ||
|
||
$view = new View('@AOM/_visitorProfileAomAdditionalDescription.twig'); | ||
$view->additionalDescription = $additionalDescription; | ||
|
||
echo $view->render(); | ||
} | ||
} | ||
|
||
parent::renderAction($action, $previousAction, $visitorDetails); | ||
} | ||
} |
0b04f90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess that file wasn't missing. There is a typo in the name here: VIsitorDetails.php
0b04f90
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, I will fix this asap.