Exemple #1
0
         */
        //$this->customUserPreference();
        /**
         * Register custom PageList type and define custom PageList classes.
         * Rationale: Certain themes should be able to extend the predefined list
         * of pagelist types. E.g. certain plugins, like MostPopular might use
         * info=pagename,hits,rating
         * which displays the rating column whenever the wikilens theme is active.
         * See themes/wikilens/themeinfo.php
         */
        //$this->addPageListColumn();
    }
}
$WikiTheme = new WikiTheme_Sidebar('Sidebar');
if (ENABLE_RATEIT) {
    require_once "lib/wikilens/CustomPrefs.php";
    require_once "lib/wikilens/PageListColumns.php";
    //require_once("lib/plugin/RateIt.php");
    $plugin = new WikiPlugin_RateIt();
    // add parent to current theme to find the RateIt images
    // $WikiTheme->addParent('wikilens', 'noinit');
    $WikiTheme->_parents[] = new WikiTheme('wikilens', 'noinit');
    $plugin->head();
}
// Local Variables:
// mode: php
// tab-width: 8
// c-basic-offset: 4
// c-hanging-comment-ender-p: nil
// indent-tabs-mode: nil
// End:
Exemple #2
0
 function format($pagelist, $page_handle, &$revision_handle)
 {
     $plugin = new WikiPlugin_RateIt();
     $widget = $plugin->RatingWidgetHtml($page_handle->getName(), "", "pagerat", $this->_dimension, "small");
     $td = HTML::td($widget);
     $td->setAttr('nowrap', 'nowrap');
     return $td;
 }