-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvstore.php
52 lines (41 loc) · 1.25 KB
/
vstore.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
<?php
if (!defined('e107_INIT'))
{
require_once("../../class2.php");
}
e107::js('vstore', 'js/jquery.zoom.min.js');
/// Moved to e_header.php issue #146 ///
// e107::js('vstore', 'js/vstore.js');
// e107::lan('vstore', false, true); // e107_plugins/vstore/languages/English_front.php
// $vstore_prefs = e107::pref('vstore');
// e107::js('settings', array('vstore' => array(
// 'url' => e107::url('vstore', 'index'),
// 'cart' => array(
// 'url' => e107::url('vstore', 'cart'),
// 'addtocart' => LAN_VSTORE_001, // 'Add to cart',
// 'outofstock' => empty($vstore_prefs['caption_outofstock'][e_LANGUAGE])
// ? 'Out of stock'
// : $vstore_prefs['caption_outofstock'][e_LANGUAGE],
// 'available' => 'In stock',
// ),
// 'ImageZoom' => array('url'=>'')
// )
// ));
// if (!empty($vstore_prefs['custom_css']))
// {
// // Add any custom css to the page
// e107::css('inline', "
// /* vstore custom css */
// " . $vstore_prefs['custom_css']);
// }
/** @var vstore $vstore */
$vstore = e107::getSingleton('vstore', e_PLUGIN.'vstore/vstore.class.php');
$vstore->init();
require_once(HEADERF);
$vstore->render();
if(deftrue('e_DEBUG_VSTORE'))
{
e107::getDebug()->log(e107::getSession('vstore')->getData());
}
require_once(FOOTERF);
exit;