Skip to content

Instantly share code, notes, and snippets.

View ronnyhartenstein's full-sized avatar

Ronny Hartenstein ronnyhartenstein

View GitHub Profile
@ronnyhartenstein
ronnyhartenstein / header.tpl
Created March 6, 2015 19:59
OXID Bootstrap Responsive: Flechtie layout/header.tpl
[{if $oView->showBetaNote()}]
[{oxid_include_widget cl="oxwBetaNote" noscript=1 nocookie=1}]
[{/if}]
[{if $oViewConf->getTopActionClassName() != 'clearcookies' && $oViewConf->getTopActionClassName() != 'mallstart'}]
[{oxid_include_widget cl="oxwCookieNote" _parent=$oView->getClassName() nocookie=1}]
[{/if}]
<header>
<div class="container">
<div class="row">
@ronnyhartenstein
ronnyhartenstein / footer.tpl
Created March 6, 2015 20:06
OXID Bootstrap Responsive: Flechtie layout/footer.tpl
@ronnyhartenstein
ronnyhartenstein / page.tpl
Created March 6, 2015 20:06
OXID Bootstrap Responsive: Flechtie layout/page.tpl
[{capture append="oxidBlock_pageBody"}]
[{assign var="class" value=$oView->getClassName()}]
[{if $oView->showRDFa()}]
[{ include file="rdfa/rdfa.tpl" }]
[{/if}]
[{include file="layout/header.tpl"}]
<div class="container" data-oxidclass="[{$oView->getClassName()}]" role="main">
[{if $class ne "start" && !$blHideBreadcrumb}]
[{ include file="widget/breadcrumb.tpl"}]
[{/if}]
@ronnyhartenstein
ronnyhartenstein / meinshop.scss
Last active August 29, 2015 14:16
OXID Bootstrap Responsive: out/meinshop/src/css/meinshop.scss
// Azure Theme als Basis laden
@import 'vendor/azure_reset';
@import 'vendor/azure_oxid';
// Bootstrap: Buttons, Forms
// für Erweiterung der OXID-Standard-Komponenten
// bower_components/bootstrap-sass/assets/stylesheets ..
@import 'bootstrap/variables';
@import 'bootstrap/mixins/buttons';
@ronnyhartenstein
ronnyhartenstein / _form.scss
Created March 6, 2015 20:44
OXID Bootstrap Responsive: css/layout/_form.scss
@charset "UTF-8";
/**
* Buttons
*
* @version $Id$
*/
.textbox, input[type="text"] {
height: auto;
}
@ronnyhartenstein
ronnyhartenstein / _checkout.scss
Created March 6, 2015 20:48
OXID Bootstrap Responsive: css/page/_checkout.scss
@charset "UTF-8";
/**
* Bestellprozess
*
* @version $Id$
*/
.lineBox {
background: url("../../img/line-innershadow.png") no-repeat scroll 0 0 transparent;
border-width: 0px;
@ronnyhartenstein
ronnyhartenstein / _navigation.scss
Last active August 29, 2015 14:16
OXID Bootstrap Responsive: widget/_navigation.scss
@charset "UTF-8";
/**
* Navigation
*
* @version $Id$
*/
header {
background-color: #fafafa ;
padding-top: 10px;
@ronnyhartenstein
ronnyhartenstein / categorytree.tpl
Created March 6, 2015 20:51
OXID Bootstrap Responsive: meinshop/tpl/widget/categorytree.tpl
[{if $oxcmp_categories }]
[{assign var="categories" value=$oxcmp_categories->getClickRoot() }]
[{assign var="act" value=$oxcmp_categories->getClickCat() }]
[{if $categories }]
[{assign var="deepLevel" value=$oView->getDeepLevel()}]
<div class="list-group">
[{defun name="tree" categories=$categories}]
[{assign var="deepLevel" value=$deepLevel+1}]
[{assign var="oContentCat" value=$oView->getContentCategory() }]
[{foreach from=$categories item=_cat}]
@ronnyhartenstein
ronnyhartenstein / Gruntfile.js
Last active August 29, 2015 14:19
OXID Bootstrap Responsive: Gruntfile.js
module.exports = function(grunt) {
var path = require('path');
// Zeitmessung ausgeben
require('time-grunt')(grunt);
// automatischen Laden der Grunt-Modulconfigs
require('load-grunt-config')(grunt, {
data: {
pkg: grunt.file.readJSON('package.json')
@ronnyhartenstein
ronnyhartenstein / im_find_snippet.sh
Last active December 7, 2015 08:53
ImageMagick: find files which can contain spaces (!!) and convert them with xargs instead of -exec -- with bash regexp of the target file
# Inspiration:
# http://www.imagemagick.org/discourse-server/viewtopic.php?t=22974
# http://stackoverflow.com/questions/13043344/search-and-replace-in-bash-using-regular-expressions
# http://www.imagemagick.org/script/command-line-options.php
# stay in target dir
find . -type f -name "*.tif" -print0 | xargs -0 -n1 bash -c 'convert "$0" "${0/.tif/}.jpg"'
# flatten to some other target dir
find . -type f -name "*.tif" -print0 | xargs -0 -n1 bash -c 'convert "$0" jpg/"$(basename "$0" .tif).jpg"'