Exemplo n.º 1
0
function AddFeedwebColumn($columns)
{
    // Check if user is admin
    if (current_user_can('manage_options')) {
        if (UpdateBlogCapabilities() != null) {
            $columns['feedweb'] = "Feedweb";
            $feedweb_data = GetFeedwebOptions();
            if ($feedweb_data["widget_type"] == "F") {
                $msg = __("Please upgrade your Feedweb widget type to HTML5 (in the Feedweb Plugin settings). The Flash widget support is discontinued.", "FWTD");
                ShowFeedwebMessage($msg, false);
            }
        }
    }
    return $columns;
}
Exemplo n.º 2
0
function GetQuestionCountLimit()
{
    global $feedweb_blog_caps;
    if (UpdateBlogCapabilities() != null) {
        $cap = $feedweb_blog_caps["PQ"];
        return $cap["limit"];
    }
    return -1;
}