內容簡介
投票記錄 WordPress 外掛可用於記錄和顯示投票紀錄。當選官員可以記錄和顯示他們的投票,市民可以追蹤和顯示他們追蹤的當選官員的投票。
可以在儀表板小工具上輸入投票。投票管理頁面可以在文章選單中使用。使用 <?php recent_votes(); ?> 在主題模板中或 [RECENT-VOTES] 在文字小工具中,可以顯示最近的投票。使用縮碼 [SEARCH-VOTES] 可以在頁面或文章中顯示搜尋投票的表單。Voting Record 的選項包括:
選項包括:
如果大部分或全部的投票都來自同一人,可以指定主要選手。
可以設置要顯示多少最近的投票--限制投票的數量或天數。這包括“加上天數”的選項,該選項顯示指定的天數和任何額外的投票,以達到用户指定的最小列表大小(默認為5)。
最近投票和搜索結果的輸出由模板指定。每個模板都包含一個變量,指定列表前面應顯示什麼,一個變量,指定列表後面應顯示什麼,一個變量,顯示如果沒有結果,應顯示什麼,以及如何格式化列表項目的模板。列表項目允許使用以下模板標記-{bill},以顯示法案的名稱,-{vote},以顯示投票內容,-{voter},以顯示投票人的名稱,-{date},以顯示投票日期,-{desc},以顯示描述內容,-{result},以顯示投票的整體通過/失敗結果,-{tally},以顯示總投票數。除了這些標籤外,搜索結果的標題和頁腳可以使用{count}模板標記,顯示來自當前搜索的結果數量。
外掛標籤
開發者團隊
原文外掛簡介
Voting Record will allow recording of votes cast for display and reference purposes. Elected officials can record and display their votes and citizens can track and display the votes of an elected official they follow.
Votes are entered on a dashboard widget. A vote management page is available from the posts menu. Recent votes are shown by adding in your theme templates or [RECENT-VOTES] within a text widget. You can show a search votes form by using the shortcode [SEARCH-VOTES] on a page or post. Options for Voting Record include:
Options Include:
The option to specify a primary voter (if most or all of the votes being tracked are from one person).
How many recent votes to show – limited by number of votes or number of days. This includes a “Days plus” option which displays the specified number of days plus any extra votes to reach a minimum list size specified by the user (defaults to 5).
Output for the recent votes and the search results are specified by templates. Each template contains a variable to specify what should precede the list, a variable to specify what should follow the list, a variable to show what should display if there are no results, and a template of how the list items should be formatted. List items allow the use of the following template tags – {bill} to display the name of the bill, {vote} to display the vote cast, {voter} displays the name of the voter, {date} displays the date the vote was cast, {desc} displays the description, {result} displays the overall pass/fail outcome of the vote, {tally} displays the overall vote tally. In addition to those standard tags, the header and footer for the search results can use the {count} tamplate tag to display a count of the results from the current search.
