2012-11-16 11:55:15 +00:00
|
|
|
<?php if(!class_exists('ShareYourCartBase',false)) die('Access Denied'); ?>
|
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $this->getUrl(dirname(__FILE__).'/../css/style.css'); ?>" />
|
2012-04-28 17:28:18 +00:00
|
|
|
<!--[if lt IE 9]>
|
2012-11-16 11:55:15 +00:00
|
|
|
<link rel="stylesheet" href="<?php echo $this->getUrl(dirname(__FILE__).'/../css/ie.css'); ?>" type="text/css"/>
|
2012-04-28 17:28:18 +00:00
|
|
|
<![endif]-->
|
|
|
|
|
2012-12-12 15:58:54 +00:00
|
|
|
<?php //check if there is a style outside of the SDK, and include that one as well
|
2012-11-16 11:55:15 +00:00
|
|
|
|
|
|
|
$_reflection_ = new ReflectionClass(get_class($this));
|
|
|
|
$_file_ = dirname($_reflection_->getFileName())."/css/style.css";
|
2012-12-12 15:58:54 +00:00
|
|
|
|
2012-11-16 11:55:15 +00:00
|
|
|
//check if there is a file in the specified location
|
|
|
|
if(file_exists($_file_)):?>
|
2012-12-12 15:58:54 +00:00
|
|
|
|
2012-11-16 11:55:15 +00:00
|
|
|
<link rel="stylesheet" type="text/css" href="<?php echo $this->getUrl($_file_); ?>" />
|
|
|
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
2012-04-28 17:28:18 +00:00
|
|
|
<meta property="syc:client_id" content="<?php echo $this->getClientId(); ?>" />
|
2012-11-16 11:55:15 +00:00
|
|
|
<meta property="syc:callback_url" content="<?php echo $this->getButtonCallbackURL(); ?>" />
|
|
|
|
|
2012-04-28 17:28:18 +00:00
|
|
|
<?php if($this->isActive() & is_array($data)): ?>
|
|
|
|
|
|
|
|
<meta property="og:title" content="<?php echo htmlspecialchars(@$data['item_name']); ?>" />
|
|
|
|
<meta property="og:url" content="<?php echo @$data['item_url'] ?>" />
|
|
|
|
<meta property="og:description" content="<?php echo htmlspecialchars(@$data['item_description']); ?>" />
|
|
|
|
<meta property="og:image" content="<?php echo @$data['item_picture_url'] ?>" />
|
|
|
|
<meta property="syc:price" content="<?php echo @$data['item_price'] ?>" />
|
|
|
|
|
2012-11-16 11:55:15 +00:00
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
(function() {
|
|
|
|
var a = document.createElement('script'); a.type = 'text/javascript'; a.async = true;
|
|
|
|
a.src = '<?php echo $this->SHAREYOURCART_BUTTON_JS; ?>';
|
|
|
|
var b = document.getElementsByTagName('script')[0]; b.parentNode.insertBefore(a, b);
|
|
|
|
})();
|
|
|
|
</script>
|
|
|
|
|