內容簡介
此外掛包含用來建立自訂表單的輔助類別。它是由Tailored Web Services建立用於我們的網站,但任何人都可以使用。
此外掛附帶基本的聯絡表單。您可以編寫額外的外掛來擴展和創建更多表單。如果您不熟悉編寫 PHP 代碼,那麼這個外掛可能不適合您。
此外掛還包含一些簡短的幫助程式碼,用於 Google 地圖、jQuery UI標籤和頁面內容等。
簡碼
此外掛還包括我們經常使用的一些簡碼。
[tabs]
這將應用格式和 JavaScript 來實現jQuery UI標籤。要使用,只需在[tabs] … [/tabs]簡碼中包圍所有分頁內容。每個H2元素都會成為一個新標籤。除了包含一些基本的 CSS 外,您可以在您的佈景主題文件中編寫自己的 CSS,以自定義外觀。
[pagecontent id=”1″]
有時您需要在網站的許多地方包含相同的內容。為了節省時間,此簡碼將允許您在多個地方包含一個頁面的內容。只需使用此簡碼,並提供您想要包含的頁面的 ID。例如,[pagecontent id=”3″] 將插入 ID = 3 的頁面的所有內容。如果您只想包含文本而不是頁面標題,則可以使用 [pagecontent id=”3″ include_title=”no”]。
[googlemap address=”123 somewhere street, Kansas”]
要嵌入 Google 地圖 iframe,請使用此簡碼。Google將對您的地址進行地理編碼以確定按鈕的位置。您還可以指定寬度、高度和縮放級別。您還可以提供“class”,以在iframe元素上設置CSS類。這將嵌入iFrame和靜態圖像。使用CSS來確定顯示哪一個。在這裡使用CSS媒體查詢進行響應式行為。
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin contains helper classes used to build custom forms. It’s built by Tailored Web Services for use on our sites, but anyone is welcome to use it.
This plugin comes with a basic contact form. You can write additional plugins to extend & create more forms. If you are not comfortable writing PHP code, then this plugin is probably not right for you.
It also contains some other shortcode helpers for Google Maps, jQuery UI Tabs, and Page Content.
Shortcodes
This plugin also includes some shortcodes that we tend to use a lot.
[tabs]
This will apply formatting and javascript to implement jQuery UI Tabs. To use, simply wrap all of your tabbed content in [tabs] … [/tabs] shortcodes. Each H2 element will be a new tab. Some basic CSS is included, and you can write your own in your theme file to customise the look.
[pagecontent id=”1″]
Sometimes you need to include the same bit of content in many places on your site. To save time, this shortcode will let you include the content from one page in many places. Just use the shortcode, and provide the ID of the page you want to include. Eg, [pagecontent id=”3″] will insert all content from the page with ID = 3. You can use [pagecontent id=”3″ include_title=”no”] if you want to include the text only, and not the page title.
[googlemap address=”123 somewhere street, Kansas”]
To embed a Google Map iframe, use this shortcode. Google will geocode your address to determine where the pin goes. You can also specify width, height, and zoom. You can also provide ‘class’ to set a CSS class on the iframe element. This will embed both the iFrame and a static image. Use CSS to determine which one is shown. Use CSS media queries for responsive behavior here.
