Skip to content

Commit

Permalink
added new shortcode g-map to all pages, with replaces googlemaps plugin
Browse files Browse the repository at this point in the history
added misc components section
  • Loading branch information
giansi committed Mar 18, 2016
1 parent cb279a5 commit afb4ee8
Show file tree
Hide file tree
Showing 15 changed files with 117 additions and 150 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v1.0.4
## 03/18/2016
1.[](#improved)
* added new shortcode g-map to all pages, with replaces googlemaps plugin
* added misc components section

# v1.0.3
## 03/08/2016
1.[](#bugfix)
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 Theme Skeleton
version: 1.0.3
version: 1.0.4
description: "Gravstrap is a powerful Grav CMS plugin which simplifies Bootstrap components usage, implementing them as shortcodes. This theme, built on top of Gravstrap, helps you to start a new Bootstrap custom theme, to create your unique design"
icon: picture-o
author:
Expand Down
19 changes: 6 additions & 13 deletions pages/01.home/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,6 @@ title: Home
metadata:
description: Gravstrap Theme helps you to start a new Grav CMS site with Bootstrap support and several ready to use modules. It is also perfect to extend to start a new Bootstrap custom theme, to fit your needs.
slug: welcome-to-gravstrap-theme

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!
---

[g-jumbotron name="jumbotron1" fullwidth="true" image="bg.jpg" render=false]
Expand Down Expand Up @@ -145,7 +133,12 @@ Use the `Where we are` module to tell your customers where you are

___

[GOOGLEMAPS:map]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]

[/g-where-we-are]

Expand Down
20 changes: 6 additions & 14 deletions pages/02.home_single/_contact_map/contact_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
#SINGLE PAGE
menu: Contact and meet us

# MAP DEFINITION
googlemaps:
contactmap:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

# COMMENT TO PUBLISH
published: false
---
Expand All @@ -28,7 +15,12 @@ Use the `Contact map` module to tell your customers position and how they can ge
___

[g-section name="map"]
[GOOGLEMAPS:contactmap]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]
[/g-section]

[g-section name="info"]
Expand Down
20 changes: 6 additions & 14 deletions pages/02.home_single/_where_we_are/where_we_are.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
---

menu: Meet us

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!
---

[g-where-we-are attributes="id:_where_we_are,class:module where-we-are"]
Expand All @@ -22,6 +9,11 @@ Use the `Where we are` module to tell your customers where you are

___

[GOOGLEMAPS:map]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]

[/g-where-we-are]
3 changes: 0 additions & 3 deletions pages/02.home_single/home_single_page.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,3 @@ content:
- _where_we_are
- _contacts
---



20 changes: 6 additions & 14 deletions pages/03.home_carousel/_contact_map/contact_map.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,6 @@
#SINGLE PAGE
menu: Contact and meet us

# MAP DEFINITION
googlemaps:
contactmap:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

# COMMENT TO PUBLISH
published: false
---
Expand All @@ -28,7 +15,12 @@ Use the `Contact map` module to tell your customers position and how they can ge
___

[g-section name="map"]
[GOOGLEMAPS:contactmap]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]
[/g-section]

[g-section name="info"]
Expand Down
19 changes: 6 additions & 13 deletions pages/03.home_carousel/_where_we_are/where_we_are.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
---

menu: Meet us

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!
---

[g-where-we-are name=where-we-are attributes="class:module where-we-are"]
Expand All @@ -22,6 +10,11 @@ Use the `Where we are` module to tell your customers where you are

___

[GOOGLEMAPS:map]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]

[/g-where-we-are]
3 changes: 0 additions & 3 deletions pages/03.home_carousel/home_carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@ content:
- _team
- _where_we_are
- _contacts

highlight:
theme: ir_black
---

2 changes: 1 addition & 1 deletion pages/07.components/01.basic/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
slug: basic-shortcodes-for-grav-cms

highlight:
theme: ir_black
theme: ir-black
---


Expand Down
19 changes: 1 addition & 18 deletions pages/07.components/02.bootstrap/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,8 @@ metadata:
description: Gravstrap plugin implements all Bootstrap components you can add to any page, using powerful shortcodes syntax.
slug: bootstrap-components-as-shortcodes-for-grav-cms

simple_form:
token: "xxxxx"
template_file: default
redirect_to: /thank-you-for-my-page

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

highlight:
theme: ir_black
theme: ir-black
---


Expand Down
63 changes: 25 additions & 38 deletions pages/07.components/03.modules/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,8 @@ metadata:
description: Gravstrap plugin implements several modules you can use as shortcodes to simplify the web site building.
slug: modules-shortcodes-for-grav-cms

simple_form:
token: "xxxxx"
template_file: default
redirect_to: /thank-you-for-my-page

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

contactmap:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

highlight:
theme: ir_black
theme: ir-black
---

[g-jumbotron name="jumbotron1" fullwidth="true" image="bg.jpg" render=false]
Expand Down Expand Up @@ -103,7 +75,12 @@ Use the `Contact map` module to tell your customers position and how they can ge
___

[g-section name="map"]
[GOOGLEMAPS:contactmap]
[g-map id=contactmap zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]
[/g-section]

[g-section name="info"]
Expand Down Expand Up @@ -138,7 +115,12 @@ Saturday - Sunday Closed
___

[g-section name="map"]
{GOOGLEMAPS:contactmap}
[g-map id=contactmap zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]
[/g-section]

[g-section name="info"]
Expand All @@ -163,8 +145,6 @@ Saturday - Sunday Closed
[/g-contacts-map]
[/raw]

>>> Please note that `GOOGLEMAPS` definition must be surrounded by **[ ]** instead of **{ }**: that was only a rendering trick.
___

## Contacts module
Expand Down Expand Up @@ -459,7 +439,12 @@ Use the `Where we are` module to tell your customers where you are

___

[GOOGLEMAPS:map]
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]

[/g-where-we-are]

Expand All @@ -473,14 +458,16 @@ ___

___

{GOOGLEMAPS:map}
[g-map id=map zoom=12 center="41.90278,12.49637"]
[g-map-marker location="41.90278, 12.49637" title="Gravstrap theme"]
**Meet Us**
We are there!
[/g-map-marker]
[/g-map]

[/g-where-we-are]
[/raw]

>>> Please note that `GOOGLEMAPS` definition must be surrounded by **[ ]** instead of **{ }**: that was only a rendering trick.

## Footer One module

[g-footer-one]
Expand Down
19 changes: 1 addition & 18 deletions pages/07.components/04.dynamic/dynamic_components.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,8 @@ metadata:
description: Use available components rendering them by their templates when you need to represent dynamic data fetched from an external source.
slug: dynamic-bootstrap-components-as-shortcodes-for-grav-cms

simple_form:
token: "xxxxx"
template_file: default
redirect_to: /thank-you-for-my-page

googlemaps:
map:
center: 41.90278, 12.49637
zoom: 12
#type: TERRAIN
markers:
- location: 41.90278, 12.49637
title: Gravstrap Theme
zIndex: 1
timeout: 1000
info: <strong>Meet Us</strong>.<br/>We are there!

highlight:
theme: ir_black
theme: ir-black
---


Expand Down
Binary file added pages/07.components/05.misc/bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit afb4ee8

Please sign in to comment.