forked from pyrocms/social
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
35 lines (34 loc) · 703 Bytes
/
plugin.php
File metadata and controls
35 lines (34 loc) · 703 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 defined('BASEPATH') OR exit('No direct script access allowed');
/**
* Social Plugin
*
* Create lists of posts
*
* @package PyroCMS
* @author PyroCMS Dev Team
* @copyright Copyright (c) 2008 - 2011, PyroCMS
*
*/
class Plugin_Social extends Plugin
{
/**
* Provider List
*
* Creates a list of social network providers (twitter, facebook, etc)
*
* Usage:
* {{ social:providers }}
* <h2>{{ name }}</h2>
* <p>{{ theme:image_path }}</p>
* {{ /social:providers }}
*
* @param array
* @return array
*/
public function providers()
{
$this->load->model('social/credential_m');
return $this->credential_m->get_active_providers();
}
}
/* End of file plugin.php */