Skip to content

Instantly share code, notes, and snippets.

@Crizz0
Created April 15, 2014 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Crizz0/10772212 to your computer and use it in GitHub Desktop.
Save Crizz0/10772212 to your computer and use it in GitHub Desktop.
public function add_simpleimprint_viewonline($event)
{
if($event['location_url'] == ('/imprint.php' || 'app.php/imprint' || '/imprint' ))
{
if ($event['row']['session_page'] === 'app.' . $this->php_ext . '/imprint' ||
$event['row']['session_page'] === 'app.' . $this->php_ext . '/imprint.php')
{
$event['location'] = $this->user->lang('VIEWONLINE_SIMPLEIMPRINT');
$event['location_url'] = $this->helper->route('crizzo_simpleimprint');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment