Dotclear

source: plugins/socialLogin/inc/class.SocialLoginWidget.php @ 3102

Revision 3102, 834 bytes checked in by nicofrand, 11 years ago (diff)

Version 1.0: Initial commit

Line 
1<?php
2/**
3 * This file is part of socialLogin, a plugin for Dotclear.
4 *
5 * @author Nicolas Frandeboeuf <nicofrand@gmail.com>
6 * @version 1.0
7 * @package socialLogin
8 * Licensed under the GPL version 3 license.
9 * http://www.gnu.org/licenses/gpl-3.0.html
10 */
11
12class SocialLoginWidget
13{
14    /**
15     * Initializes the widget.
16     * @param object $widgetContainer the widget container.
17     */
18    public static function init($widgetContainer)
19    {
20     //id, name, callback to display the widget on the public area
21     $widgetContainer->create("socialLogin", "SocialLogin", array("SocialLoginPublic", "getWidgetContent"));
22     $widgetContainer->socialLogin->setting("connexion_text", __("Connexion text"), "Sign-in", "text");
23     $widgetContainer->socialLogin->setting("deconnexion_text", __("Deconnexion text"), "Sign off", "text");
24    }
25}
26?>
Note: See TracBrowser for help on using the repository browser.

Sites map