-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathPlugin.php
More file actions
35 lines (24 loc) · 991 Bytes
/
Copy pathPlugin.php
File metadata and controls
35 lines (24 loc) · 991 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
namespace MultipleLocalAuth;
use MapasCulturais\App;
use MapasCulturais\i;
include('Facebook/FacebookStrategy.php');
include('Google/GoogleStrategy.php');
include('LinkedIn/LinkedInStrategy.php');
class Plugin extends \MapasCulturais\Plugin {
public function _init() {
$app = App::i();
// register translation text domain
i::load_textdomain( 'multipleLocal', __DIR__ . "/translations" );
// Load JS & CSS
$app->hook('<<GET|POST>>(auth.<<*>>)', function() use ($app) {
$app->view->enqueueScript('app', 'multipleLocal', 'js/multipleLocal.js');
$app->view->enqueueStyle('app', 'multipleLocal', 'css/multipleLocal.css');
});
$app->hook('<<GET|POST|ALL>>(panel.<<*>>):before', function() use ($app) {
$app->view->enqueueStyle('app', 'multipleLocal', 'css/multipleLocal.css');
});
}
public function register() {
}
}