
內容簡介
這個外掛提供了一個簡單的方法,用於添加小工具以顯示芬蘭公民倡議的支持聲明的總數。它還添加了一個指向kansalaisaloite.fi的鏈接,您可以在此處簽署此倡議。它從kansalaisaloite.fi的公開數據API中接收倡議信息,因此所有信息都是最新的。
插件正確處理公民倡議的狀態。
如果倡議超過一個月並且支持聲明少於50個,將不會顯示到期日期和簽名鏈接,因為在kansalaisaloite.fi中無法再簽署。超過六個月且支持聲明少於50000個的倡議也是如此。
發送至議會的公民倡議將顯示消息,指出該倡議已發送至議會,並且將不會顯示簽名鏈接。
用法:
前往“小工具”儀表板,將“Kansalaisaloite”小工具拖放到所需的位置,然後設置倡議號以開始。倡議號是kansalaisaloite.fi網站上倡議URL的最後一部分,例如kansalaisaloite.fi/fi/aloite/1。
在小工具設置中,有一個標題輸入,如果該輸入為空,則小工具標題將成為倡議標題。還有機會選擇小工具是否使用芬蘭或瑞典倡議標題。簽名鏈接也使用這個選擇,因此如果選擇瑞典語言,該鏈接將指向kansalaisaloite.fi的瑞典語版本。
未來計劃
添加顯示支持聲明數量視覺化進度條的功能
添加短碼支持,以將支持聲明數量輸入內容中
語言
芬蘭語
由Lotta Söderholm提供的瑞典語
此插件並非由芬蘭司法部提供,他們對此插件不承擔責任!插件由Timi Wahalahti開發。
外掛標籤
開發者團隊
原文外掛簡介
This plugin provides easy way for adding widget to show number of support statements in Finnish citizens’ initiative. It also adds a link to kansalaisaloite.fi where the initiative may be signed. It receives initiative information from kansalaisaloite.fi Open Data API so all the information is fresh.
Plugin handles citizens’ initiative states correctly.
If initiative is more than month old and has less than 50 support statements, the due date and signature link will not be shown because signing is no longer possible in kansalaisaloite.fi. Initiative more than six months old and with less than 50 000 support statements is treated same way.
Citizens’ initiative sent to Parliament will show message saying that the initiative has been sent to Parliament and signature link will not be shown.
Usage
Navigate to the ‘Widgets’ dashboard, drag and drop ‘Kansalaisaloite’-widget to the desired place and set initiative number to get started. Initiative number is the last part of initiative url in kansalaisaloite.fi, example kansalaisaloite.fi/fi/aloite/1.
In widget settings there is input for title, if it is empty widget title will be title of initiative. There is also opportunity to choose whether the widget uses Finnish or Swedish title of initiative. Signature link uses this same choice so that if Swedish is chosen, link will point to Swedish version of kansalaisaloite.fi.
Future plans
Add possibility to show progress bar for visualizing the number of support statements
Add shortcode support to get number of support statements into content
Languages
Finnish
Swedish by Lotta Söderholm
Plugin is NOT provided by Finnish Ministry of Justice and they are not responsible of this plugin! Plugin is developed by Timi Wahalahti.
