File indexing completed on 2024-12-29 05:24:40
0001 <?php 0002 /** 0003 * ocs-webserver 0004 * 0005 * Copyright 2016 by pling GmbH. 0006 * 0007 * This file is part of ocs-webserver. 0008 * 0009 * This program is free software: you can redistribute it and/or modify 0010 * it under the terms of the GNU Affero General Public License as 0011 * published by the Free Software Foundation, either version 3 of the 0012 * License, or (at your option) any later version. 0013 * 0014 * This program is distributed in the hope that it will be useful, 0015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0017 * GNU Affero General Public License for more details. 0018 * 0019 * You should have received a copy of the GNU Affero General Public License 0020 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0021 **/ 0022 0023 $helperBuildProductUrl = new Default_View_Helper_BuildProductUrl(); 0024 $helperImage = new Default_View_Helper_Image(); 0025 $helperServerUrl = new Zend_View_Helper_ServerUrl(); 0026 $helperCheckHTTPProtocol = new Default_View_Helper_CheckHttpProtocol(); 0027 0028 $plingUrl = $helperBuildProductUrl->buildProductUrl($this->product->project_id, 'pling'); 0029 $titleImage = $helperImage->Image($this->product->image_big, array('width' => 1170, 'height' => 300)); 0030 $styleAttr = ' style="background-image: url(' . $titleImage . ');"'; 0031 if (strpos($titleImage, 'default.png') !== false) { 0032 $styleAttr = ''; 0033 } 0034 $cssClassAuthCodeTested = $this->product->project_validated ? 'checked' : 'unchecked'; 0035 $txtUserFollows = $this->txtUserFollows; 0036 $urlUserFollows = $this->urlUserFollows; 0037 $imgFile = $this->imgFile; 0038 $loginUrl = $this->loginUrl; 0039 ?> 0040 0041 0042 <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> 0043 0044 <!-- Loading Flat UI --> 0045 <link href="<?= $helperServerUrl->serverUrl(); ?>/theme/flatui/css/flat-ui.css" rel="stylesheet"> 0046 0047 <!-- custom styles --> 0048 <!-- <link href="<?= $helperServerUrl->serverUrl(); ?>/theme/flatui/css/style.css" rel="stylesheet"> --> 0049 0050 <!-- less css --> 0051 <link href="<?= $helperServerUrl->serverUrl(); ?>/theme/flatui/css/stylesheet.css" rel="stylesheet" type="text/css"> 0052 0053 <style type="text/css"> 0054 body { 0055 background-color: transparent !important; 0056 padding: 0; 0057 text-align: center; 0058 } 0059 </style> 0060 0061 <section id="product-payment-message"> 0062 <button id="btn-close" class="btn-close"><span class="glyphicon glyphicon-remove"></span></button> 0063 <figure> 0064 <img 0065 src="<?= $helperImage->Image($this->product->image_small, array('width' => 240, 'height' => 240)); ?>" style="max-width: 240px; max-height:240px"/> 0066 0067 </figure> 0068 <h1><?= $this->product->title; ?></h1> 0069 0070 <div class="info"> 0071 <div class="category"><?= $this->product->cat_title; ?></div> 0072 <?php /* <div class="page-views"><?= $this->product_views ?> page views</div> */ ?> 0073 </div> 0074 <div class="payment-message"> 0075 <?php if (isset($this->paymentMessage)) { 0076 $cssClass = 'text-' . $this->paymentStatus; 0077 ?> 0078 <span class="<?= $cssClass ?>"><?= $this->paymentMessage ?></span> 0079 <?php } ?> 0080 </div> 0081 <div style="padding-top: 20px; float:left"> 0082 Thank you for supporting <?= $this->product->title; ?> , show your support to your friends on 0083 </div> 0084 <div class="social-share"> 0085 0086 <div class="facebook social left"> 0087 <a class="partial-popup" 0088 rel="nofollow" 0089 target="_blank" 0090 href="http://www.facebook.com/sharer.php?p[title]=test&u=<?= urlencode($this->permaLink) ?>&t=<?php echo urlencode('ocs - open content store'); ?>" 0091 title="Share this post on Facebook"><em class="icon icon-facebook"></em> 0092 </a> 0093 </div> 0094 <div class="twitter social left"> 0095 <a class="partial-popup" 0096 rel="nofollow" 0097 target="_blank" 0098 href="http://twitter.com/home?status=i support <?php echo $this->product->title; ?> made by <?php echo $this->product->username; ?>: <?= $this->permaLink; ?>" 0099 title="Share this article with your Twitter followers"><em class="icon icon-twitter"></em> 0100 </a> 0101 </div> 0102 0103 <?php if (false === empty($this->product->link_1) OR $this->product->facebook_code OR $this->product->twitter_code OR $this->product->google_code) : ?> 0104 <div class="pull-left"> 0105 <span>Links:</span> 0106 </div> 0107 <div class="product-link"> 0108 <?php if (false === empty($this->product->link_1)) : ?> 0109 <a href="<?= $helperCheckHTTPProtocol->checkHttpProtocol($this->product->link_1) ?>" target="_blank" 0110 class="web-link white" title="<?= $this->product->link_1 ?>"> 0111 <span class="glyphicon glyphicon-globe"></span> 0112 </a> 0113 <?php endif; 0114 if ($this->product->facebook_code) : ?> 0115 <a href="<?= $this->product->facebook_code ?>" class="fb-link lightblue" target="_blank" 0116 title="<?= $this->product->facebook_code ?>"><em></em></a> 0117 <?php endif; 0118 if ($this->product->twitter_code) : ?> 0119 <a href="<?= $this->product->twitter_code ?>" class="tw-link lightblue" target="_blank" 0120 title="<?= $this->product->twitter_code ?>"><em></em></a> 0121 <?php endif; 0122 if ($this->product->google_code) : ?> 0123 <a href="<?= $this->product->google_code ?>" class="gp-link lightblue" target="_blank" 0124 title="<?= $this->product->google_code ?>"><em></em></a> 0125 <?php endif; ?> 0126 </div> 0127 <?php endif; ?> 0128 </div> 0129 <!-- 0130 <div class="close-modal margin-top-10"> 0131 <button class="btn btn-primary btn-close">Close</button> 0132 </div> 0133 --> 0134 </section> 0135 0136 <script src="//code.jquery.com/jquery-1.9.1.min.js"></script> 0137 <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> 0138 0139 <script> 0140 $(document).ready(function () { 0141 $('.btn-close').on('click', function () { 0142 window.top.location.href = "<?php echo $this->permaLink ?>"; 0143 //window.top.location.reload(); 0144 if (top && top.opener && top.opener.top) { 0145 try { 0146 dgFlow = top.opener.top.dgFlow; 0147 dgFlow.closeFlow(); 0148 } finally { 0149 top.close(); 0150 } 0151 } else if (top.dgFlow) { 0152 dgFlow = top.dgFlow; 0153 dgFlow.closeFlow(); 0154 } else { 0155 alert('Please close the window and reload to continue'); 0156 } 0157 0158 }); 0159 }); 0160 </script>