[WordPress] 外掛分享: Agenda

前言介紹

  • 這款 WordPress 外掛「Agenda」是 2008-08-27 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2008-09-15,距離現在已有 6075 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.6.2 以上版本才可以安裝。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

dgmike |

外掛標籤

date | post | events | manipulate |

內容簡介

現在您可以在 WordPress 中創建事件。使用此外掛程式,您可以創建和操作事件,就像在 Google 日曆上一樣。創建即時事件,創建事件議程。 議程支援重複事件的真實代碼,讓您滿意。

使用 the_agenda_loop(),您可以生成一個包含有關事件的所有屬性的 $the_event 對象。與 Agenda::next_events() 或 Agenda::events_on() 結合使用

您還可以在模板中使用 agenda_compromissos()、agenda_list() 和 agenda_events() 函數。這些函數可生成用於模板的 HTML 代碼

議程列表

生成選中議程中的下一個事件列表
您可以按照 wp_string 或分配的數組傳遞參數:

agenda_list('next=5&only_destak=1')

與:

agenda_list(array('next'=>5,'only_destak'=>true))

參數:

(int) next :要顯示的下一個事件數量 (default: 5)
(bool) only_destak :如果為 true,僅顯示突出顯示的事件 (default: true)
(bool) show_date :如果為 true,顯示每個事件的日期 (default: true)
(string) before :放在每個事件之前 (default:

  • )
    (string) after :放在每個事件之後 (default:
  • )
    (bool) print :印出輸出 (default: true)

    默認情況下,該函數會印出生成的字符串,但是您可以將其靜音並操作相同的字符串。它將返回。

    因此,要使用 agenda_list() 印刷包含下一個 5 個事件的列表。而
    agenda_list(‘print=0’) 不會打印,但會將生成的字符串返回給您手動操作

    議程 compromissos

    agenda_compromissos() 可在您的頁面上使用。
    它生成按日期分隔的事件列表

    參數:agenda_compromissos ($next, $title_tag, $print):

    $next 需要顯示的事件數量。預設:25
    $title_tag 顯示日期標記名。預設:h3
    $print 如果符合 true,則會印出結果,如果不符合,它只會返回字符串供以後操作使用。

    議程事件

    函數 agenda_events() 可在您的頁面上使用,將事件列在年度或月份中

    默認用法:
    $defaults = array(
    'month' => date('m'),
    'year' => date('Y'),
    'title_tag' => 'h3',
    'print' => '1'
    );

    參數:

    month – 如果傳遞,則選擇要顯示的月份(默認值:date(‘m’))
    year – 選擇要顯示的年份(默認值:date(‘Y’) )
    title_tag – 在您的標題/日期標記中使用的標記 (默認值:

    )
    print – 印出結果。(預設:true)

    僅顯示 2009 年 5 月的事件

    以下示例僅顯示與 2009 年 5 月匹配的事件。

    僅顯示 2008 年的事件

    以下示例僅顯示在整個 2008 年中匹配的事件

    更改日期事件的標記

    原文外掛簡介

    Now you can create events for your wordpress. Whit this plugin you can create and manipulate events like
    you do on Google Calendar. Generate events on the fly creating an agenda of events. The agenda suports a realy
    code for repeat events for your satisfaction.
    Using the_agenda_loop() you generates a $the_event object that have all atributes about the event
    Use it in combination to Agenda::next_events() or Agenda::events_on()
    You can also use function agenda_compromissos(), agenda_list() and agenda_events() on your templates. These functions
    generate html codes to be used on your tamplate.
    Agenda list
    Generates a list of next events marked in your agenda
    Pass your params as wp_string or assigned array:
    agenda_list('next=5&only_destak=1')

    is the same as:
    agenda_list(array('next'=>5,'only_destak'=>true))

    Params:

    (int) next : Number of next events to show (default: 5)
    (bool) only_destak : If true, show only highlighted events (default: true)
    (bool) show_date : If true, show the date of each event (default: true)
    (string) before : Put it before each event (default:

  • )
    (string) after : Put it after each event (default:
  • )
    (bool) print : Prints the output (default: true)

    By default, the function prints the generated string, but you can silencity it and
    manipulate the same string. It is returned.
    So for use the agenda_list () prints a list contain the next 5 events. While
    agenda_list (‘print=0’) does not print, but returns the generated string to your manual manipulation
    Agenda compromissos
    agenda_compromissos()` can be used on your tamplate’s page.
    It generates a events list separated by date.
    Params: agenda_compromissos ($next, $title_tag, $print):

    $next Number of events that must be showed.default: 25
    $title_tag show date tag’s name . defaut: h3
    $print if matched as true prints the result, if it is not matched only returns the string for future manipulations.

    Agenda Events
    The function agenda_events() can be used in your page, listing the events in a year or month.
    Default usage:
    $defaults = array(
    'month' => date('m'),
    'year' => date('Y'),
    'title_tag' => 'h3',
    'print' => '1'
    );

    Parameters:

    month – if passed, selects a month to show ( default: date(‘m’) )
    year – selects a yea to show ( default: date(‘Y’) )
    title_tag – the tag to be used on your title/date tag (default:

    )
    1. print – prints the result. (default: true)
    Show only events on may 2009

    The following example shows only events that matches may of 2009.
    Show only events on 2008

    The following example shows only events that matches in all 2008.
    Changing the tag of date events

    The following example show events that matches the curent month, changing the tag of title/date by h5.
    The output will be:

    Note that the function generates a even odd class of each day of events
    The Agenda Loop
    Using the_agenda_loop you generates a $the_event object that have all atributes about the event
    Use it in combination to Agenda::next_events(); or Agenda::events_on();
    Agenda::events_on('month=5,year=2008');
    while (the_agenda_loop()) {
    print "

    {$the_event->what}

    ";
    }

    The global object $the_event is an standard object like this:
    stdClass Object (
    [event_id] => 36
    [content] => Um exemplo de evento simples com a marcacao necessaria.
    [repeat] => daily
    [repeat_daily] => daily
    [repeat_daily_every] => 3
    [range] => never
    [what] => Meu simples evento
    [excerpt] => Meu excerpt, caso seja necessario.
    [author] => 1
    [pings] => open
    [comments] => open
    [calendar] => Array()
    [where] =>
    [destak] => 0
    [when_start_date] => 2008-09-15
    [when_start_time] => 00:00
    [when_end_date] => 2008-09-16
    [when_end_time] => 00:00
    [all_day] => 1
    [tags] => e mais tag,tag
    [range_ends_until] =>
    )

    各版本下載點

    • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
    • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Agenda」來進行安裝。

    (建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


    1.5 | 1.7 | trunk |

    延伸相關外掛(你可能也想知道)

    • PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
    • Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
    • Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
    • Optimize Database after Deleting Revisions 》這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。, 主要功能, , 刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,...。
    • Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
    • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
    • Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
    • WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
    • WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
    • Revision Control 》**本外掛不提供支援。仍可使用,但請勿期待得到支援要求的回應或對「這無法運作」進行回應。**, Revision Control 是 WordPress 的一款外掛,可以讓使用者更...。
    • Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
    • Bulk Delete 》Bulk Delete 是一個 WordPress 外掛,可以根據不同的條件和過濾器批次刪除文章、頁面、附件、使用者和元資料。此外掛支援以下條件和過濾器:, , 刪除文章, , ...。
    • WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
    • Themify Portfolio Post 》Themify Portfolio Posts 是一個簡單的外掛,允許您展示乾淨版面的專案資訊。簡約而精美,您可以點擊您的圖庫專案的每張圖片,選擇顯示更多細節,例如專案類...。
    • Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。

    文章
    Filter
    Apply Filters
    Mastodon