內容簡介
使用此外掛程式,您可以管理多個商店(或任何類型的場所)。
以下是支援的功能:
地址資訊
聯絡資訊
營業時間
簡短描述
詳細描述
相片庫
距離計算器
商店管理員使用者角色,以便可以委派商店管理,而不需開放 WP 管理員的任何其他部分
樣式設計
外掛程式附有基本和醜陋的樣板檔案和沒有樣式的表單。但是,所有內容都會包裝在 span 或 div 中,並賦予邏輯類別名稱,以便您可以自行設計前端。
您還應該在主題資料夾中建立名為「single-store.php」的檔案。附帶的樣板檔案將顯示如何從商店獲取所有資訊。此檔案位於:
[plugin_folder]/includes/template-single-store.php
shortcode 程式碼
這是表單和結果頁面的 shortcode 程式碼:
[store-manager-form]
如果沒有給定屬性,表單將包含郵遞區號欄位和提交按鈕。
這將新增半徑欄位(半徑以公里為單位):
[store-manager-form radius]
這是操作半徑欄位的範例:
[store-manager-form radius radius-value=15 radius-placeholder=”輸入這裡的佔位文字” radius-label=”這裡的標籤文字”]
此範例顯示了所有其他表單欄位,每個都可以像半徑一樣進行操作:
[store-manager-form address-r1 address-r2 zipcode place country]
此範例顯示如何更改提交按鈕文字:
[store-manager-form submit=”發送”]
待完成項目
路線規劃
其他地圖 API(bing/mapquest)
可能有一些全局或預設商店作為範本。
我想要去除 openstreepmap/google 類別中的 .hover 樣式(第 93/79 行)
外掛標籤
開發者團隊
原文外掛簡介
With this plugin it is possible to manage multiple stores (or any kind of location).
There is support for:
address information
contact information
openinghours
short description
long description
photo gallery
distance calculator
a store manager user role, so that store management can be delegated without opening up any other part of the WP admin
Styling
The plugin comes with a very basic and ugly template file and a form that has no styling. However, everything is wrapped in spans or divs and logical classnames are assigned to everything so that you style the frontend yourself.
You should also make file in your theme folder called single-store.php. The included template file will show how to get all the information from the store. This file is located:
[plugin_folder]/includes/template-single-store.php
Shortcode
This is the shortcode for the form and resultpage:
[store-manager-form]
If no attributes are given, the form will consist of a zipcode fields and a submit button.
This will add a radius field (radius is in KM):
[store-manager-form radius]
Here is an example of how to manipulate the radius field:
[store-manager-form radius radius-value=15 radius-placeholder=”input placeholder text here” radius-label=”label text here”]
This example shows all other form fields, each of them can be manipulated just like radius:
[store-manager-form address-r1 address-r2 zipcode place country]
This example shows how to change the submit button text:
[store-manager-form submit=”Send”]
TODO
routing
other map API’s (bing/mapquest)
maybe some global or default store as a template.
I want to get rid of the .hover styling in the openstreepmap/google class (line 93/79)
