torfs-ict/cmsms-google-maps
Composer 安装命令:
composer require torfs-ict/cmsms-google-maps
包简介
Google Maps module for CMS Made Simple
README 文档
README
Google Maps Module for CMS Made Simple. This module is meant to be used in the Composer and Bower-enabled version of CMSMS.
Features
- Add a map with pure HTML, as well as including an info window.
- Makes sure scrolling your website keeps working on small screens like tablets and smartphones, even when creating a full-width map.
Usage
- Add the required stylesheets to your
headtag:{cms_module module="GoogleMaps" action="css"} - Add the required javascript at the end of your
bodytag:{cms_module module="GoogleMaps" action="js"} - Add the Smarty block as shown below to implement the map, the contents of the block will be put in the info window.
Sample code
{GoogleMaps address="One Microsoft Way Redmond, WA 98052-6399, United States" title="Microsoft HQ"} <h6>Microsoft HQ</h6> <p> One Microsoft Way <br>Redmond, WA 98052-6399 </p> <p>(425) 882-8080</p> <p><a href="https://www.google.be/maps/dir//One+Microsoft+Way+Redmond,+WA+98052-6399,+United+States" target="_blank">Directions</a></p> {/GoogleMaps}
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-08-31