<?php
function joomlaposition_17() {
    $document = JFactory::getDocument();
    $view = $document->view;
    $isPreview  = $GLOBALS['theme_settings']['is_preview'];
    if (isset($GLOBALS['isModuleContentExists']) && false == $GLOBALS['isModuleContentExists'])
        $GLOBALS['isModuleContentExists'] = $view->containsModules('header-left') ? true : false;
?>
    <?php if ($isPreview || $view->containsModules('header-left')) : ?>

    <?php if ($isPreview && !$view->containsModules('header-left')) : ?>
    <!-- empty::begin -->
    <?php endif; ?>
    <div class="data-control-id-1385695 bd-joomlaposition-17 clearfix" <?php echo buildDataPositionAttr('header-left'); ?>>
        <?php echo $view->position('header-left', 'block%joomlaposition_block_17', '17'); ?>
    </div>
    <?php if ($isPreview && !$view->containsModules('header-left')) : ?>
    <!-- empty::end -->
    <?php endif; ?>
    <?php endif; ?>
<?php
}