這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Informational Popup Plugin

外掛說明

This is a shortcode to create animated popup windows. It supports text, images and links. Create dynamic foot notes, explore digressions, extend your posts.
Check out the live demo.
example:
[info_popup pop_title=”Headline at the Top of the Window” message=”This is the main text” pop_image=”example.jpg”]clickable text in your post or page.[/info_pop]

Here’s a template you can copy and paste:

[info_popup pop_title=’PASTE THE WINDOW’S HEADLINE HERE’ message=’PASTE THE MAIN TEXT HERE’ pop_image=’example.jpg’]THIS TEXT WILL SHOW AS BEING CLICKABLE IN YOUR POST BECAUSE IT’S WRAPPED IN THE SHORTCODE[/info_popup]

Example:

I’m using (open anchor tag here) in the example because otherwise it will render as a live anchor tag on this page (the wordpress plugin repository page you’re visiting right now).

[info_popup pop_title=”Here’s a Headline!” message=”Here’s a message! And here is a (open anchor tag here) link to the onion.(close anchor tag here)” pop_image=”example.jpg”]Click me![/info_popup]

Use the code above in any page or post.

To set colors and animation for the popups, go to Appearance->info popup options.

License

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

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:

http://www.gnu.org/licenses/gpl.html.

螢幕擷圖

  • The options page.

  • A screenshot of a window that has animated into the viewport.

安裝方式

Installation and General Use

  1. Upload the whole informational-popup folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. In a post or page use the shortcode [info_popup pop_title=’Headline at the Top of the Window’ message=’This is the main text’]clickable text in your post or page.[/info_popup] to create a popup link.
  4. Go to the dashboard, select appearance->info popup options, choose styles and click set style options.
  5. YOU MUST CLICK “set popup options” TO INITIALIZE POPUP WINDOWS WHEN YOU FIRST INSTALL THIS PLUGIN!
  6. Upload images anywhere to any directory (folder) in your website’s domain.

常見問題集

Here are some common gotchas:

*If you get a weird break in your post after inserting a shortcode, try wrapping the entire post in a h4 tag.

*Remember, you can’t have double quotes inside double quotes or single quotes inside single quotes. You must alternate double and single quotes. If your message contains an apostrophe, make sure your message is wrapped in double quotes.

*Sometimes wordpress loops are set to only print experts of the posts. These loops often leave out shortcodes. A common example would be search results pages.

*A quick work-around to get your popups working in the search results:

Go to your theme’s search.php page. Find the main loop and look for the_excerpt(). Comment out whatever code is associated with the_excerpt()—probablly just the rest of the statement. In other words, comment out everything between the_excerpt() and the terminating ‘;’. Replace it with the_content(). This will get the full post complete with shortcodes.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Informational Popup Plugin〉的開發相關工作。

參與者

將〈Informational Popup Plugin〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

No changes yet.