
內容簡介
Endomondo 是一個基於免費實時 GPS 追蹤跑步、騎自行車等運動的社區。帶上你的智慧手機開始運動,並獲得完整的訓練記錄。你可以使用 Endomondo WP 將你的訓練結果在 WordPress 上展示。
從 WordPress 網站下載插件,安裝並在頁面/文章中添加 Endomondo WP
很簡單,添加簡碼 [endomondowp user="XXXX"],並將“XXXX”替換為你的 Endomondo ID。你可以在你的 Endomondo 個人資料的 URL 中找到你的 ID http://www.endomondo.com/profile/XXXX
演示和資訊
你可以在插件官網上找到更多 資訊 和 插件演示。
可擴充性強
你可以在你的自訂插件中使用它,或在“頁面模板”(請參見頁面模板 « WordPress Codex )中使用函數 do_endomondowp(…) 或使用 4 個自訂 action!
配置
如果你想要控制觀看方式,可以在簡碼中添加以下屬性
user:Endomondo 使用者 ID
type:觀看方式的類型(默認為“最近訓練”)
id:元素的唯一 ID(默認為隨機數字)
width:頁面的寬度(默認為 680)
height:頁面的高度(默認為 600)
對於設計師
如果你想要自定義觀看方式的樣式,可以添加 CSS,並使用 hook!!
對於開發者
你可以在你的自訂插件中使用 Endomondo WP!否則你可以在你當前的佈景主題中使用它。根據 Codex,你可以使用“子佈景主題 « WordPress Codex” 修改當前的佈景主題,
使用新的“頁面模板 « WordPress Codex”或直接修改佈景主題的 php 檔案。在其中任何一種情況下,你都可以添加對 do_endomondowp(…) 函數的調用,並獲得與簡碼相同的操作。
此外,你還可以在你的插件或 function.php 中添加一個 hook 到 4 個 action 中的一個,然後運行自定義代碼。
允許執行的 action 已在下面列出,每個 action 都有和 do_endomondowp(…) 函數相同的參數:
pre_ewp_show action。在 do_endomondowp(…) 函數之前被調用
post_ewp_show action。在 do_endomondowp(…) 函數之後被調用
pre_ewp_shortcode action。在所有 shortcode [endomondowp …] 被調用之前被調用
post_ewp_shortcode action。在所有 shortcode [endomondowp …] 被調用之後被調用
聲明,法律注意事項和其他一切
本插件與 Endomondo 或其他方沒有任何聯繫或授權。
本站提供的軟件“按原樣”提供,不提供任何明示或暗示保證,包括但不限於商業適用性和特定用途的隱含保證。對於因任何原因引起的任何直接、間接、偶發、特殊、示範性或後果性損害(包括但不限於替代商品或服務的采購;使用、資料或利潤的損失或業務中斷),Alessandro Staniscia 或他們的貢獻者概不負責,不論是在合同、嚴格責任或侵權行為等方面。
外掛標籤
開發者團隊
原文外掛簡介
Endomondo is a sports community based on free real-time GPS tracking of running, cycling, etc. Bring your mobile on the track and get a complete training log. You can show your workout on WordPress with Endomondo WP.
Download the plugin from WordPress Site, install it and add EndomondoWP on page/post
It’s easy, add the shortcode [ endomondowp user=“XXXX” ] and swap “XXXX” with your Endomondo ID. You can find your id on URL of your endomondo profile http://www.endomondo.com/profile/XXXX
DEMO and INFO
You can find more info and demo of plugin on plugin homesite.
It’s opened to extensions
You can use it on your plugin or into “Page Template” (see Page Templates « WordPress Codex ) with the function do_endomondowp(…) or with 4 custom actions!!
Configure it
If you want to control the view, you can add these attributes on shortcode
user: The endomondo User ID
type: The type of view (default is ‘last-workout’)
id: unique id of element (default is random number)
width: the width of page (default is 680)
height: the height of page (default is 600)
For designers
If you want to customize the style of view, you can add css and use the hook!!
For developer
You can use the EndomondoWP on your plugin! Otherwise you can use it on your current theme. In according to Codex, you can modify the current theme with “Child Themes « WordPress Codex”,
with a new “Page Templates « WordPress Codex” or simply modify directly the php file of theme. In any of this case you can add a invocation of function do_endomondowp(…) and you will have same action of shortcode.
Also the parameters of function are the same of shortcode.
Otherwise on your plugin or on your function.php you can add one hook to one of 4 action and you can run your custom code.
The allowed action are show below and every action have the same parameter of do_endomondowp(…) function:
pre_ewp_show action. It’s called before do_endomondowp(…) function
post_ewp_show action. It’s called after do_endomondowp(…) function
pre_ewp_shortcode action. It’s called before invocation of all shortcode [endomondowp …]
post_ewp_shortcode action. It’s called after invocation of all shortcode [endomondowp …]
Disclaimer, legalese and everything else.
This is not affiliated or endorset by Endomondo, or any other party.
This software available on the site is provided “as is” and any expressed or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall Alessandro Staniscia, or any of their contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software, even if advised of the possibility of such damage.
Credits
Copyright 2012 Alessandro Staniscia (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
