Code:
if ($app->get('show_page_heading')) :
echo '<h1>' . $app->get('page_heading') . '</h1>';
endif;
if ($this->params->get('show_page_heading', 1)) : ?>
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>"><?php echo $this->escape($this->params->get('page_heading')); ?></div>
<?php
endif;