
內容簡介
WParty 是一個 WordPress 插件,可混合您的網站內容,包括頁面、文章、小工具、聯絡表單、選單和媒體。
DEV: 主題建立器
頁面
您想包括來自另一個頁面的內容嗎?
只需使用短代碼「[part]」
[part name=”page-name”]
可添加自定義 HTML 樣式屬性(id、class、style)。
[part name=”page-name” id=”my-id” class=”my-class” style=”background-color:#123456;”]
注意事項
該插件還啟用了 Text Widget 中的所有短代碼。
這使在 WordPress 編輯器中使用頁面豐富編輯器編寫 HTML 內容,然後將該內容嵌入到 Text Widget 中更加容易。
注意事項
該插件還禁用了 WordPress 自動 (P) (/P)。
短代碼 [part name=”page-name”] 可存取所有公共和私有頁面/文章(對於多用戶網站請慎用)。
這樣可以將部分內容保持為私有內容。
重定向
簡單頁面重定向
[part widget=”redirect” instance=”/page-new-url/”]
短代碼編程
輕鬆管理事件或多語言網站⋯⋯
條件可以與小工具結合使用。
日期條件
在 01/03/2013 至 25/03/2013 之間顯示短代碼內容?
[part name=”page-name” start=”01-03-2013″ end=”25-03-2013″]
請求條件
如果 URL 具有 GET 指定參數,則顯示短代碼內容⋯⋯
http://mysite.com/my-page/?lang=fr
[part if=”lang=fr” widget=”redirect” instance=”/page-lang-fr/”]
列表小工具:自定義循環和 HTML 佈局
小工具「列表」接受自定義 HTML 模型
[part widget=”list” args=”numberposts=5&tag=my-tag1,my-tag2″]
[永久鏈接](PERMALINK)
標題
內容
標籤/類別/日期
[/part]
Meta
您想在文章內容中顯示文章元數據嗎?
[part meta=”meta-name”]
循環
默認循環可以與小工具一樣包含:
閱讀更多⋯⋯ https://codex.wordpress.org/Template_Tags/get_posts
[part widget=”loop”]
[part widget=”loop” args=”numberposts=5&tag=my-tag1,my-tag2″]
聯絡表單
您想添加聯絡表單嗎?
[part widget=”contact”]
或構建自定義聯絡表單
根據需要翻譯聯絡表單
[part widget=”contact”]
您的名字
您的電子郵件
主題
消息
消息
已發送消息。感謝您的關注。
[PROBLEM]⋯⋯ 請稍後再試⋯⋯
[MISSING]⋯⋯ 請填寫遺漏的信息⋯⋯
[/part]
注意事項
內容可以嵌入遞歸短代碼(最多為 10)。
WordPress 小工具
WP 小工具可以添加
外掛標籤
開發者團隊
原文外掛簡介
WParty is a WordPress Plugin to mix your website contents
* Pages
* Articles
* Widgets
* Contact Form
* Menus
* Media
DEV: Theme Builder
PAGES
Do you want to include the content from another page ?
Simply use the shortcode [part]
[part name=”page-name”]
Custom HTML styles attributes can be added (id, class, style).
[part name=”page-name” id=”my-id” class=”my-class” style=”background-color:#123456;”]
Note
The plugin also activates ALL shortcodes in Text Widgets.
It makes easier to write HTML content in WordPress Editor, using Pages Rich Editor, and then embed the content in Text Widgets.
Note
The plugin also disables WordPress auto (P)(/P).
The shortcode [part name=”page-name”] can access to all public and private pages/articles (warning to multi-users site)
This choice allows to keep parts as private content
REDIRECT
Simple page redirection
[part widget=”redirect” instance=”/page-new-url/”]
SHORTCODE PROGRAMMING
Manage easily Events or Multi-languages websites…
Conditions can be combined with widgets.
DATE CONDITIONS
display shortcode content between 01/03/2013 and 25/03/2013 ?
[part name=”page-name” start=”01-03-2013″ end=”25-03-2013″]
REQUEST CONDITIONS
display shortcode content if URL has GET specific parameter…
http://mysite.com/my-page/?lang=fr
[part if=”lang=fr” widget=”redirect” instance=”/page-lang-fr/”]
LIST WIDGET: CUSTOM LOOP AND HTML LAYOUT
The widget “list” accepts a custom HTML model
[part widget=”list” args=”numberposts=5&tag=my-tag1,my-tag2″]
TITLE
CONTENT
TAGS / CATS / DATE
[/part]
META
Do you want to display post meta inside the post content ?
[part meta=”meta-name”]
LOOP
Default LOOP can be included same as a widget:
Read more… https://codex.wordpress.org/Template_Tags/get_posts
[part widget=”loop”]
[part widget=”loop” args=”numberposts=5&tag=my-tag1,my-tag2″]
CONTACT FORM
Do you want to add a contact form ?
[part widget=”contact”]
Or build your custom contact form
Translate your contact form as needed
[part widget=”contact”]
Your Name
Your Email
Subject
Message
MESSAGE
Message Sent. Thanks for your interest.
[PROBLEM]… Please try again later…
[MISSING]… Please fill missing information…
[/part]
Note
Content can embed recursive shortcodes (max=10).
WORDPRESS WIDGETS
WP Widgets can be added inside Pages/Posts. (Calendar, Recent_Posts, Tags, RSS, etc…).
Read more… https://codex.wordpress.org/Function_Reference/the_widget
[part widget=”news”]
[part widget=”tags”]
[part widget=”categories”]
[part widget=”archives”]
[part widget=”calendar”]
[part widget=”pages”]
[part widget=”rss” instance=”url=http://applh.com/feed/”]
[part widget=”menu” instance=”nav_menu=my-menu”]
SIDEBARS
[part widget=”sidebar” name=”theme-sidebar-name”]
LOREM IPSUM
Fill with text “Lorem Ipsum…”
[part widget=”lorem”]
[part widget=”lorem” max=”200″]
Embed a PDF viewer in your website
See… https://docs.google.com/viewer
[part widget=”pdf” width=”640″ height=”640″]http://your.website.com/file.pdf[/part]
MAP
Embed a Google Map in your website
See… https://maps.google.com/
[part widget=”map” width=”640″ height=”640″]http://maps.google.fr/maps?q=paris[/part]
(note: don’t use the short URL http://goo.gl/maps/…)
MARKDOWN
Prefer writing with MarkDown Syntax ?
See… http://daringfireball.net/projects/markdown/syntax
Requirements: PHP5.3+
[part widget=”mark”]
This is an H1
This is an H2
This is an H6
Bird
McHale
Parish
Red
Green
Blue
This is an example inline link.
This link has no title attribute.
single asterisks
single underscores
double asterisks
double underscores
[/part]
CSV
Need to include some CSV data as a Table?
Requirements: PHP5.3+
note: empty lines are ignored
[part widget=”csv”]
cell11,cell12,cell13
cell21,cell22,cell23
cell31,cell32,cell33
[/part]
[part widget=”csv” cut=”|”]
cell11|cell12|cell13
cell21|cell22|cell23
cell31|cell32|cell33
[/part]
WEBHOOKS: MARK2 and CSV2
Need to fetch data from an URL ?
eg: Google SpreadSheet
Include some CSV external data as a Table
Include some Markdown external code
Requirements: PHP5.3+
[part widget=”mark2″]
https://docs.google.com/spreadsheet/pub?key=0AhDBS7EaaokRdGQ5Z1g5cjE1YzRUS3NxRmZ4RGJYRGc&output=txt
[/part]
[part widget=”csv2″]
https://docs.google.com/spreadsheet/pub?key=0AhDBS7EaaokRdGFFRGNjam1HOEk2dU84d19IUGZlWVE&single=true&gid=0&output=csv
[/part]
PAGE TEMPLATE
Need to customize your active theme with a new Page Template ?
[part dev=”add-template” file=”my-template” text=”Template Name”]
creates a file my-template.php with needed code to show as a Page Template
(note: edit-theme role capability is required)
THEME BUILDER
Need to create a new Theme ?
WParty is also a theme builder
[part theme=”My Theme” name=”new-theme”]
creates the folder /themes/new-theme/ and WP theme files inside to show as “My Theme” in Appearance Menu
(note: edit-theme role capability is required)
Note
WParty is designed to work with MultiSites installation.
MEDIA
UNDER DEVELOPMENT
Creates a local cache copy of original image
Cache folder is /uploads/wparty/
[part widget=”media”]http://somesite.com/image.jpg[/part]
[part widget=”media” width=”100″]http://somesite.com/image.png[/part]
[part widget=”media” width=”100″ height=”200″]http://somesite.com/image.gif[/part]
SLIDER
UNDER DEVELOPMENT
[part widget=”slider” name=”my-slider”]
Happy New Year
Best wishes for 2013. 😉
