コード例 #1
0
ファイル: blog.php プロジェクト: gpuenteallott/rox
function ewiki_view_append_blog($id, $data, $action)
{
    global $ewiki_config;
    if (!calendar_exists(false)) {
        return;
    }
    #-- conf
    ($n_num = $ewiki_config["wikinews_num"]) || ($n_num = 10);
    ($n_len = $ewiki_config["wikinews_len"]) || ($n_len = 512);
    $o = '<div class="text-blog">' . ewiki_wikinews_summary($n_num, $n_len, '/^' . $id . EWIKI_NAME_SEP . '\\d{8}$/') . '</div>';
    $o .= '<a href="' . ewiki_script("calendarlist", $id) . '">View all log entries.</a>';
    return $o;
}
コード例 #2
0
ファイル: calendar.php プロジェクト: gpuenteallott/rox
<?php

/*
   This snippet invokes the calendar (month view) output function, if
   existing entries belonging to the current site are detected. This only
   works if ewiki_page() was called before.
*/
if (function_exists("calendar") && calendar_exists()) {
    echo calendar();
}
コード例 #3
0
ファイル: mpi_blog.php プロジェクト: gpuenteallott/rox
function ewiki_mpi_blog($action = "html", $args, &$iii, &$s)
{
    global $ewiki_config;
    // read parameters or use default values
    $id = $args["page"] or $id = $GLOBALS["ewiki_id"];
    $n_num = $args["line"] or $n_num = 20;
    $n_len = $args["length"] or $n_len = 512;
    $b_hr = $args["hr"] or $b_hr = 0;
    $b_sort = $args["sort"] or $b_sort = 0;
    $b_calendar = $args["calendar"] or $b_calendar = 0;
    $b_more = $args["displaymore"] or $b_more = 0;
    $b_sortrev = $args["sort_reverse"] or $b_sortrev = 0;
    // if we use the plugin for the calendar, quit on no  calendar pages
    if (!calendar_exists(false) && $b_calendar) {
        return;
    }
    // the output
    $o = '<div class="text-blog">' . ewiki_blog_list($n_num, $n_len, $b_sort, $b_sortrev, $b_hr, $b_more, '/^' . $id . EWIKI_NAME_SEP . '\\d{8}$/') . '</div>';
    return $o;
}