-
Notifications
You must be signed in to change notification settings - Fork 2
/
e_meta.php
72 lines (69 loc) · 4.2 KB
/
e_meta.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
72
<?php
/*
+---------------------------------------------------------------+
| e107 website system
| http://e107.org
|
| PView Gallery by R.F. Carter
+---------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
if ($pviewactive = $sql->db_Select("plugin", "*", "plugin_path = 'pviewgallery' AND plugin_installflag = 1")) {
// pviewgallery is installed
//require_once("../../class2.php");
require_once(e_PLUGIN."pviewgallery/pview.class.php");
$PView = new PView;
if ($PView -> getPView_config('img_Link_extJS_pview')) {
// use pview scripts
if ($PView -> getPView_config('img_Link_extJS') == "lightbox") {
// internal lightbox
echo "\n<script type='text/javascript'>\n";
echo "<!--\n";
echo "var lb_closeimage='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/images/close.gif';";
echo "var lb_loadimage='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/images/loading.gif';";
echo "// -->\n";
echo "</script>\n";
if (file_exists(e_PLUGIN . "pviewgallery/ext_js/lightbox/lan/".e_LANGUAGE."_lightbox-lan.js")){
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/lan/".e_LANGUAGE."_lightbox-lan.js' charset='utf-8'></script>\n";
}else {
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/lan/English_lightbox-lan.js' charset='utf-8'></script>\n";
}
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/js/prototype.js'></script>
<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/js/scriptaculous.js?load=effects,builder' charset='utf-8'></script>
<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/js/lightbox.js' charset='utf-8'></script>
<link rel='stylesheet' type='text/css' media='screen' href='".e_PLUGIN_ABS."pviewgallery/ext_js/lightbox/css/lightbox.css' />
\n";
}
if ($PView -> getPView_config('img_Link_extJS') == "shadowbox") {
// internal shadowbox
echo "<link rel='stylesheet' type='text/css' href='".e_PLUGIN_ABS."pviewgallery/ext_js/shadowbox/shadowbox.css'>\n";
if (file_exists(e_PLUGIN . "pviewgallery/ext_js/shadowbox/lan/".e_LANGUAGE."_shadowbox-lan.js")){
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/shadowbox/lan/".e_LANGUAGE."_shadowbox-lan.js' charset='utf-8'></script>\n";
}else {
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/shadowbox/lan/English_shadowbox-lan.js' charset='utf-8'></script>\n";
}
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/shadowbox/shadowbox.js'></script>\n";
echo "<script type='text/javascript'>
Shadowbox.init();
</script>\n";
}
if ($PView -> getPView_config('img_Link_extJS') == "highslide") {
// internal highslide
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/highslide-full.packed.js'></script>\n";
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/highslide.config.js' charset='utf-8'></script>\n";
if (file_exists(e_PLUGIN . "pviewgallery/ext_js/highslide/lan/".e_LANGUAGE."_highslide-lan.js")){
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/lan/".e_LANGUAGE."_highslide-lan.js' charset='utf-8'></script>\n";
}else {
echo "<script type='text/javascript' src='".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/lan/English_highslide-lan.js' charset='utf-8'></script>\n";
}
echo "<link rel='stylesheet' type='text/css' href='".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/highslide.css' />\n";
echo "<script type='text/javascript'>
// override Highslide settings here
// instead of editing the highslide.js file
hs.graphicsDir = '".e_PLUGIN_ABS."pviewgallery/ext_js/highslide/graphics/';
</script>\n";
}
}
}
?>