Skip to content

Instantly share code, notes, and snippets.

View xndrdev's full-sized avatar
🎯
Focusing

Alexander Wolf xndrdev

🎯
Focusing
View GitHub Profile
@xndrdev
xndrdev / index.tpl
Last active July 10, 2016 13:39
AdvancedMenu mit Kategoriebildern
{extends file="parent:frontend/advanced_menu/index.tpl"}
{block name="frontend_plugins_advanced_menu_button_category"}{/block}
{block name="frontend_plugins_advanced_menu_button_close"}{/block}
{block name="frontend_plugins_advanced_menu"}
{function name="emz_categories_top" level=0}
{$columnIndex = 0}
<div id="head_sender">
{block name="document_index_address"}
{block name="document_index_address_sender"}
<p class="sender">{$Containers.Header_Sender.value}</p>
{/block}
{block name="document_index_address_base"}
{$User.$address.company}<br />
{$User.$address.salutation|salutation}
{if {config name="displayprofiletitle"}}
{$User.$address.title}<br/>
@xndrdev
xndrdev / index.tpl
Created February 23, 2018 15:38
Eigene index.tpl für PDF Dokumente
{extends file="parent:documents/index.tpl"}
@xndrdev
xndrdev / index.tpl
Last active December 18, 2018 17:51
Rechnungsblock erweitert um beliebigen Text
{extends file="parent:documents/index.tpl"}
{block name="document_index_address"}
{$smarty.block.parent}
<p>Lieferadresse hier rein</p>
{/block}
@xndrdev
xndrdev / index.tpl
Created February 24, 2018 06:52
Rechnungsblock mit korrekter Lieferadresse erweitert
{extends file="parent:documents/index.tpl"}
{block name="document_index_address"}
{$smarty.block.parent}
{assign var="shippingAddress" value="shipping"}
<br />
{$User.$shippingAddress.company}<br />
{$User.$shippingAddress.salutation|salutation}
<?php
namespace Shopware\Themes\DEINTHEME;
use Shopware\Components\Form as Form;
class Theme extends \Shopware\Components\Theme
{
protected $extend = 'Responsive';
{block name='frontend_index_navigation_categories'}
<div class="navigation--list-wrapper">
{block name='frontend_index_navigation_categories_navigation_list'}
<ul class="navigation--list container" role="menubar" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
{strip}
{block name='frontend_index_navigation_categories_top_home'}
<li class="navigation--entry{if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} is--active{/if} is--home" role="menuitem">
{block name='frontend_index_navigation_categories_top_link_home'}
<a class="navigation--link is--first{if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} active{/if}" href="{url controller='index'}" title="{s name='IndexLinkHome' namespace="frontend/index/categories_top"}{/s}" itemprop="url">
<span itemprop="name">{s name='IndexLin
@xndrdev
xndrdev / main-navigation.tpl
Created August 10, 2018 16:37
Navigation mit Animation
{extends file="parent:frontend/index/main-navigation.tpl"}
{block name='frontend_index_navigation_categories_top_home'}
<li class="navigation--entry hvr-buzz {if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} is--active{/if} is--home" role="menuitem">
{block name='frontend_index_navigation_categories_top_link_home'}
<a class="navigation--link is--first{if $sCategoryCurrent == $sCategoryStart && $Controller == 'index'} active{/if}" href="{url controller='index'}" title="{s name='IndexLinkHome' namespace="frontend/index/categories_top"}{/s}" itemprop="url">
<span itemprop="name">{s name='IndexLinkHome' namespace="frontend/index/categories_top"}{/s}</span>
</a>
{/block}
</li>