Joomla template params / quick vars mainly for template index
<?php
# Getting params from template
$this->params = $this->app->getTemplate(true)->params;
$this->view = $this->app->input->get('view');
$this->active = $this->menu->getActive();
$this->alias = $this->active->alias;
$this->ishome = $this->active == $this->menu->getDefault();
// to access template images/ protected
<?php echo "{$this->baseurl}/templates/{$this->template}/images/logo.png"; ?>