Skip to content

Instantly share code, notes, and snippets.

View xndrdev's full-sized avatar
🎯
Focusing

Alexander Wolf xndrdev

🎯
Focusing
View GitHub Profile
mv composer.phar /usr/local/bin/composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === 'a5c698ffe4b8e849a443b120cd5ba38043260d5c4023dbf93e1558871f1f07f58274fc6f4c93bcfd858c6bd0775cd8d1') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
@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>
{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
<?php
namespace Shopware\Themes\DEINTHEME;
use Shopware\Components\Form as Form;
class Theme extends \Shopware\Components\Theme
{
protected $extend = 'Responsive';
@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}
@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 23, 2018 15:38
Eigene index.tpl für PDF Dokumente
{extends file="parent:documents/index.tpl"}