Skip to content

Commit

Permalink
Adds missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-hh committed Sep 30, 2017
1 parent f89152e commit 0b04f90
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions VIsitorDetails.php
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);
}
}

2 comments on commit 0b04f90

@sgiehl
Copy link

@sgiehl sgiehl commented on 0b04f90 Sep 30, 2017

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

@andre-hh
Copy link
Contributor Author

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.

Please sign in to comment.