-
Notifications
You must be signed in to change notification settings - Fork 7
/
e_sitelink.php
71 lines (56 loc) · 1.27 KB
/
e_sitelink.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Sitelinks configuration module - gsitemap
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/_blank/e_sitelink.php,v $
* $Revision$
* $Date$
* $Author$
*
*/
if (!defined('e107_INIT')) { exit; }
/*if(!e107::isInstalled('_blank'))
{
return;
}*/
class youtube_sitelink // include plugin-folder in the name.
{
function config()
{
global $pref;
$links = array();
$links[] = array(
'name' => "Drop-Down Categories",
'function' => "myCategories"
);
return $links;
}
function myCategories()
{
$sql = e107::getDb();
$tp = e107::getParser();
$sublinks = array();
$sql->select("youtube","*","youtube_id != '' ");
while($row = $sql->fetch())
{
$sublinks[] = array(
'link_name' => $tp->toHTML($row['youtube_title'],'','TITLE'),
'link_url' => e107::url('youtube', 'cat', $row),
'link_description' => '',
'link_button' => $row['blank_icon'],
'link_category' => '',
'link_order' => '',
'link_parent' => '',
'link_open' => '',
'link_class' => e_UC_PUBLIC
);
}
return $sublinks;
}
}