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

    <?php if ($isPreview && !$view->containsModules('text-3')) : ?>
    <!-- empty::begin -->
    <?php endif; ?>
    <div class="data-control-id-784311 bd-joomlaposition-12 clearfix" <?php echo buildDataPositionAttr('text-3'); ?>>
        <?php echo $view->position('text-3', 'block%joomlaposition_block_12', '12'); ?>
    </div>
    <?php if ($isPreview && !$view->containsModules('text-3')) : ?>
    <!-- empty::end -->
    <?php endif; ?>
    <?php endif; ?>
<?php
}