Your IP : 216.73.216.43


Current Path : /home/rtorresani/www/app/design/frontend/Magento/indaco/Magento_Theme/templates/html/
Upload File :
Current File : //home/rtorresani/www/app/design/frontend/Magento/indaco/Magento_Theme/templates/html/title.phtml

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * @var $block \Magento\Theme\Block\Html\Title
 */

$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$category = $objectManager->get('Magento\Framework\Registry')->registry('current_category');//get current category

$_category_block = $block->getLayout()->getBlock( 'category.image' );
$showTitle = ! ($category && $_category_block ? $_category_block->getImage()->getUrl($category) : false);

$cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
$titleHtml = '';
if (trim($block->getPageHeading())) {
    $titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
                 . $block->getAddBaseAttribute()
                 . '>'
                 . $block->escapeHtml($block->getPageHeading())
                 . '</span>';
}
?>

<?php if ($titleHtml && $showTitle) : ?>
    <div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
        <h1 class="page-title"
            <?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
            <?php if ($block->getAddBaseAttributeAria()) : ?>
                aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
            <?php endif; ?>>
            <?= /* @noEscape */ $titleHtml ?>
        </h1>
        <?= $block->getChildHtml() ?>
    </div>
<?php endif; ?>