Skip to content

Commit

Permalink
added mdi icons support
Browse files Browse the repository at this point in the history
fixed assets are not added for common plugins
fixed gravstrap-list-item  shortcode does not show the items
  • Loading branch information
giansi committed Jun 21, 2016
1 parent f0ba9ef commit 29ce68f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# v1.1.1
## 06/21/2016
1.[](#improved)
* added mdi icons support

1.[](#bugfix)
* fixed assets are not added for common plugins
* fixed gravstrap-list-item shortcode does not show the items

# v1.1.0
## 06/12/2016
1.[](#improved)
Expand Down
2 changes: 1 addition & 1 deletion blueprints.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Gravstrap
version: 1.1.0
version: 1.1.1
description: "Gravstrap is a Grav plugin that provides Bootstrap components as shortcodes. It has 30+ basic, modules and bootstrap shortcodes"
icon: share-alt
author:
Expand Down
2 changes: 1 addition & 1 deletion gravstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ private function manageModularPage(Page $page)
private function addAssets(Page $page)
{
// get the meta and check for assets
$meta = $page->getContentMeta();
$meta = $page->getContentMeta('shortcode-meta');
if (!isset($meta['shortcode-assets'])) {
return;
}
Expand Down
3 changes: 2 additions & 1 deletion shortcodes/Basic/ListShortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ protected function template()
protected function childrenShortcodes()
{
return array(
'gravstrap-list-item'
'gravstrap-list-item',
'g-list-item',
);
}

Expand Down
2 changes: 2 additions & 0 deletions templates/basic/icon.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<span class="glyphicon glyphicon-{{ icon }} {{ attributes['class'] }}" {% include 'partials/_attributes.html.twig' with {'ignore': ['class']} %}></span>
{% elseif type == 'fontawesome' %}
<i class="fa fa-{{ icon }} {{ attributes['class'] }}" {% include 'partials/_attributes.html.twig' with {'ignore': ['class']} %}></i>
{% elseif type == 'mdi' %}
<i class="mdi mdi-{{ icon }} {{ attributes['class'] }}" {% include 'partials/_attributes.html.twig' with {'ignore': ['class']} %}></i>
{% else %}
<p>{{ 'icon_type ' ~ type ~ ' is not supported'}}</p>
{% endif %}
Expand Down

0 comments on commit 29ce68f

Please sign in to comment.