feat: icon for button is positionable to the left or to the rightof the button + delete old note shortcode

This commit is contained in:
Cornic Mathieu 2016-03-29 14:46:32 +02:00
parent 6bbcccac88
commit 64f732ec17
2 changed files with 13 additions and 2 deletions

View file

@ -1 +1,13 @@
<a {{ with .Get "href"}} href="{{.}}" {{ end }} class="btn btn-default">{{ .Inner }} {{ with .Get "icon"}} <i class="{{.}}"></i> {{ end }}</a> <a {{ with .Get "href"}} href="{{.}}" target="_blank" {{ end }} class="btn btn-default">
{{ $icon := .Get "icon" }}
{{ $iconposition := .Get "icon-position" }}
{{ if ($icon) }}
{{ if or (not ($iconposition)) (eq $iconposition "left") }}
<i class="{{$icon}}"></i>
{{ end }}
{{ end }}
{{ .Inner }}
{{ if and ($icon) (eq $iconposition "right")}}
<i class="{{$icon}}"></i>
{{ end }}
</a>

View file

@ -1 +0,0 @@
<div class="notices note">{{ .Inner }}</div>