Пример #1
0
 /**
  * @param $args
  * @param $compiler
  * @return string
  */
 public function compile($args, $compiler)
 {
     // check and get attributes
     $_attr = $this->getAttributes($compiler, $args);
     if (empty($_attr['file'])) {
         return false;
     }
     $file = trim($_attr['file'], '"\'');
     $fullPath = !empty($_attr['fullPath']);
     if (preg_match('/^([\'"]?)[a-zA-Z0-9\\/\\.\\-\\_]+(\\1)$/', $_attr['file'], $match)) {
         $compiler->smarty->loadPlugin('smarty_function_flink');
         return smarty_function_flink(array('file' => $file, 'fullPath' => $fullPath), $compiler);
     }
     return '<?php $_smarty_tpl->smarty->loadPlugin("smarty_function_flink"); echo smarty_function_flink(array(' . '"file" => ' . $_attr['file'] . ', ' . '"fullPath" => ' . var_export($fullPath, true) . '), $_smarty_tpl); ?>';
 }
    function content_56424013099f77_33570863($_smarty_tpl)
    {
        if (!is_callable('smarty_function_controllerAction')) {
            include 'C:\\Users\\jkeull\\Documents\\xampp\\htdocs\\shopware\\engine\\Library\\Enlight\\Template/Plugins\\function.controllerAction.php';
        }
        ?>
<div class="logo-main block-group" role="banner">

	
	
		<div class="logo--shop block">
			<a class="logo--link" href="<?php 
        echo 'http://localhost/shopware/';
        ?>
" title="<?php 
        ob_start();
        echo 'Goucher Sandbox';
        $_tmp1 = ob_get_clean();
        echo htmlspecialchars($_tmp1, ENT_QUOTES, 'utf-8', true);
        ?>
 - <?php 
        ob_start();
        $_smarty_tpl->smarty->_tag_stack[] = array('snippet', array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'));
        $_block_repeat = true;
        echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo "zur Startseite wechseln";
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_tmp2 = ob_get_clean();
        echo htmlspecialchars($_tmp2, ENT_QUOTES, 'utf-8', true);
        ?>
">
                <picture>
                    <source srcset="<?php 
        $_smarty_tpl->smarty->loadPlugin("smarty_function_flink");
        echo smarty_function_flink(array("file" => $_smarty_tpl->tpl_vars['theme']->value['desktopLogo'], "fullPath" => false), $_smarty_tpl);
        ?>
" media="(min-width: 78.75em)">
                    <source srcset="<?php 
        $_smarty_tpl->smarty->loadPlugin("smarty_function_flink");
        echo smarty_function_flink(array("file" => $_smarty_tpl->tpl_vars['theme']->value['tabletLandscapeLogo'], "fullPath" => false), $_smarty_tpl);
        ?>
" media="(min-width: 64em)">
                    <source srcset="<?php 
        $_smarty_tpl->smarty->loadPlugin("smarty_function_flink");
        echo smarty_function_flink(array("file" => $_smarty_tpl->tpl_vars['theme']->value['tabletLogo'], "fullPath" => false), $_smarty_tpl);
        ?>
" media="(min-width: 48em)">

                    <img srcset="<?php 
        $_smarty_tpl->smarty->loadPlugin("smarty_function_flink");
        echo smarty_function_flink(array("file" => $_smarty_tpl->tpl_vars['theme']->value['mobileLogo'], "fullPath" => false), $_smarty_tpl);
        ?>
" alt="<?php 
        ob_start();
        echo 'Goucher Sandbox';
        $_tmp3 = ob_get_clean();
        echo htmlspecialchars($_tmp3, ENT_QUOTES, 'utf-8', true);
        ?>
 - <?php 
        ob_start();
        $_smarty_tpl->smarty->_tag_stack[] = array('snippet', array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'));
        $_block_repeat = true;
        echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'), null, $_smarty_tpl, $_block_repeat);
        while ($_block_repeat) {
            ob_start();
            echo "zur Startseite wechseln";
            $_block_content = ob_get_clean();
            $_block_repeat = false;
            echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'IndexLinkDefault', 'namespace' => 'frontend/index/logo-container'), $_block_content, $_smarty_tpl, $_block_repeat);
        }
        array_pop($_smarty_tpl->smarty->_tag_stack);
        $_tmp4 = ob_get_clean();
        echo htmlspecialchars($_tmp4, ENT_QUOTES, 'utf-8', true);
        ?>
" />
                </picture>
			</a>
		</div>
	

	
	
        <?php 
        ob_start();
        echo smarty_function_controllerAction(array(), $_smarty_tpl);
        $_tmp5 = ob_get_clean();
        if ($_smarty_tpl->tpl_vars['theme']->value['checkoutHeader'] && $_tmp5 !== 'cart') {
            ?>
            <div class="logo--supportinfo block">
                <?php 
            $_smarty_tpl->smarty->_tag_stack[] = array('snippet', array('name' => 'RegisterSupportInfo', 'namespace' => 'frontend/index/logo-container'));
            $_block_repeat = true;
            echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'RegisterSupportInfo', 'namespace' => 'frontend/index/logo-container'), null, $_smarty_tpl, $_block_repeat);
            while ($_block_repeat) {
                ob_start();
                ?>
<strong>Fragen zu Ihrer Bestellung?</strong><br /><strong>12345-123456789</strong> <small>Täglich 7:30 bis 22:00 Uhr</small><?php 
                $_block_content = ob_get_clean();
                $_block_repeat = false;
                echo Enlight_Components_Snippet_Resource::compileSnippetBlock(array('name' => 'RegisterSupportInfo', 'namespace' => 'frontend/index/logo-container'), $_block_content, $_smarty_tpl, $_block_repeat);
            }
            array_pop($_smarty_tpl->smarty->_tag_stack);
            ?>

            </div>
        <?php 
        }
        ?>
	

	
	
</div><?php 
    }