[wordpress插件] Agenda议程

wordpress 插件 文章 2020-02-11 18:40 558 0 全屏看文

AI助手支持GPT4.0

评分

0

0

描述

Now you can create events for your wordpress.

现在,您可以为您的wordpress创建事件。

Whit this plugin you can create and manipulate events like

惠特这个插件,您可以创建和操作类似
的事件

you do on Google Calendar.

您可以在Google日历上进行操作。

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

使用 the_agenda_loop(),您将生成一个$ the_event对象,该对象具有与该事件有关的所有信息

Use it in combination to Agenda::next_events() or Agenda::events_on()

结合使用它来生成 Agenda :: next_events() Agenda :: events_on()

You can also use function agenda_compromissos(), agenda_list() and agenda_events() on your templates.

您还可以在模板上使用函数 agenda_compromissos() agenda_list() agenda_events()

These functions

这些功能

generate html codes to be used on your tamplate.

生成要在模板上使用的html代码。

Agenda list

议程列表

Generates a list of next events marked in your agenda

生成议程中标记的下一个事件的列表

Pass your params as wp_string or assigned array:

将参数作为wp_string或分配的数组传递:

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

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

is the same as:

与以下相同:

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

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

Params:

参数:

    1. (int) next : Number of next events to show (default: 5)
    2. (int)next:要显示的下一个事件数(默认值:5)

    3. (bool) only_destak : If true, show only highlighted events (default: true)
    4. (布尔)only_destak:如果为true,则仅显示突出显示的事件(默认值:true)

    5. (bool) show_date : If true, show the date of each event (default: true)
    6. (bool)show_date:如果为true,则显示每个事件的日期(默认值:true)

    7. (string) before : Put it before each event (default:
    8. )
    9. (字符串)之前:将其放在每个事件之前(默认值:
    10. (string) after : Put it after each event (default:
    11. )

    12. (字符串)之后:在每个事件之后放置(默认值:

    13. (bool) print : Prints the output (default: true)
    14. (bool)print:打印输出(默认值: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.

    因此,要使用 agenda_list()会打印一个包含接下来5个事件的列表。

    While
        


        

    agenda_list (‘print=0’) does not print, but returns the generated string to your manual manipulation

    schedule_list('print = 0')不打印,但会将生成的字符串返回给您手动操作

    Agenda compromissos

    议程纲要

    agenda_compromissos()` can be used on your tamplate’s page.

    agenda_compromissos()`可以在模板上使用。

    It generates a events list separated by date.

    它会生成一个按日期分隔的事件列表。

    Params: agenda_compromissos ($next, $title_tag, $print):

    参数: agenda_compromissos($ next,$ title_tag,$ print)

      1. $next Number of events that must be showed.default: 25
      2. $ next 必须显示的事件数。默认值:25

      3. $title_tag show date tag’s name .

      4. $ title_tag 显示日期标签的名称。

        defaut: h3

      5. defaut: h3

      6. $print if matched as true prints the result, if it is not matched only returns the string for future manipulations.
      7. $ print 如果匹配为 true ,则打印结果,如果不匹配,则仅返回字符串以供将来操作。

      Agenda Events

      议程活动

      The function agenda_events() can be used in your page, listing the events in a year or month.

      函数 agenda_events()可以在您的页面中使用,列出一年或一个月中的事件。

      Default usage:

      默认用法:

      $defaults = array(  

        $ defaults = array(  

      'month' => date('m'),  

      'month'=> date('m'),  

      'year' => date('Y'),  

      'year'=> date('Y'),  

      'title_tag' => 'h3',  

      'title_tag'=>'h3',  

      'print' => '1'

      '打印'=>'1'

      );

      );

      Parameters:

      参数:

        1. month – if passed, selects a month to show ( default: date(‘m’) )
        2. month –如果已通过,则选择要显示的月份(默认值:date('m'))

        3. year – selects a yea to show ( default: date(‘Y’) )
        4. year –选择要显示的是(默认值:date('Y'))

        5. title_tag – the tag to be used on your title/date tag (default:
        6. title_tag –要在您的title / date标记上使用的标记(默认值:

        <

        << / p>

        h3>)

        h3>)

        1. print – prints the result.

        1.打印–打印结果。

        (default: true)

        (默认值:true)

        Show only events on may 2009

        仅显示2009年5月的事件

          <?php议程事件('month = 5&year = 2009')?>

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

        以下示例仅显示与2009年5月匹配的事件。

        Show only events on 2008

        仅显示2008年的事件

          <?php议程事件('month = false&year = 2008')?>

        The following example shows only events that matches in all 2008.

        以下示例仅显示在所有2008年中都匹配的事件。

        Changing the tag of date events

        更改日期事件的标签

          <?php schedule_events('title_tag = h5')?>

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

        下面的示例显示与当前月份匹配的事件,将title / date的标签更改为h5。

        The output will be:

        输出将是:

          

          
          

        09-12-2008
          

        09-12-2008   

          

          

        11-12-2008
          

        11-12-2008   

        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

        使用the_agenda_loop,您将生成一个$ the_event对象,该对象具有与该事件有关的所有信息

        Use it in combination to Agenda::next_events();

        与Agenda :: next_events();结合使用;

        or Agenda::events_on();

        或Agenda :: events_on();

          Agenda::events_on('month=5,year=2008');    

         议程:: events_on('month = 5,year = 2008');    

        while (the_agenda_loop()) {    

        while(the_agenda_loop()){    

        print "

        {$the_event->what}

        ";  

        打印“

        {$ the_event->什么} ”;  

        }

        }

        The global object $the_event is an standard object like this:

        全局对象 $ the_event 是这样的标准对象:

        stdClass Object (  

          stdClass对象(  

        [event_id] => 36  

        [event_id] => 36  

        [content] => Um exemplo de evento simples com a marcacao necessaria.  

        [content] =>例举了简单事件。  

        [repeat] => daily  

        [重复] =>每天  

        [repeat_daily] => daily  

        [repeat_daily] =>每天  

        [repeat_daily_every] => 3  

        [repeat_daily_every] => 3  

        [range] => never  

        [范围] =>从不  

        [what] => Meu simples evento  

        [what] =>理解简单  

        [excerpt] => Meu excerpt, caso seja necessario.  

        [摘录] =>选录摘要,必要。  

        [author] => 1  

        [作者] => 1  

        [pings] => open  

        [ping] =>打开  

        [comments] => open  

        [评论] =>打开  

        [calendar] => Array()  

        [日历] => Array()  

        [where] =>  

        [where] =>  

        [destak] => 0  

        [目标] => 0  

        [when_start_date] => 2008-09-15  

        [when_start_date] => 2008-09-15  

        [when_start_time] => 00:00  

        [when_start_time] => 00:00  

        [when_end_date] => 2008-09-16  

        [when_end_date] => 2008-09-16  

        [when_end_time] => 00:00  

        [when_end_time] => 00:00  

        [all_day] => 1  

        [全天] => 1  

        [tags] => e mais tag,tag  

        [标签] => e mais标签,标签  

        [range_ends_until] =>

        [range_ends_until] =>

        )

安装步骤

    1. Unzip agenda to the /wp-content/plugins/ directory
    2. 议程解压缩到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. You can configure the category in your Settings.
    6. 您可以在“设置”中配置类别。

    7. Automaticaly you will see new options in Write and Manage sessions of your wordpress admin.
    8. 您将自动在wordpress管理员的“编写”和“管理”会话中看到新选项。

下载地址

https://downloads.wordpress.org/plugin/agenda.1.7.zip

https://downloads.wordpress.org/plugin/agenda.1.7.zip

-EOF-

AI助手支持GPT4.0