Użyj zmiennej SMARTY w PHP
$this->get_template_vars('varX');
Gorgeous Gannet
$this->get_template_vars('varX');