File indexing completed on 2024-12-29 05:24:41
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 $auth = Zend_Auth::getInstance(); 0024 $loginUrl = '/login?redirect=' . $this->encryptUrl(Zend_Controller_Front::getInstance()->getRequest()->getRequestUri(), true); 0025 $txtUserFollows = ''; 0026 $urlUserFollows = $this->buildProductUrl($this->product->project_id, 'unfollow'); 0027 $imgFile = '/theme/flatui/img/icon-like-color.png'; 0028 if (false == $this->userFollowsProject($this->authMember->member_id, $this->product->project_id)) { 0029 $txtUserFollows = ''; 0030 $urlUserFollows = $this->buildProductUrl($this->product->project_id, 'follow'); 0031 $imgFile = '/theme/flatui/img/icon-like.png'; 0032 } 0033 $titleImage = $this->Image($this->product->image_big, array('width' => 1170, 'height' => 300)); 0034 $imageTag = '<img src="' . $titleImage . '">'; 0035 if (strpos($titleImage, 'default.png') !== false) { 0036 $imageTag = ''; 0037 } 0038 ?> 0039 <?php //<script src="https://www.paypalobjects.com/js/external/apdg.js"></script> 0040 //</script> ?> 0041 0042 <div class="container page-container"> 0043 0044 <?php echo $this->render('product/partials/productTopHeader.phtml', array("member" => $this->member, "project" => $this->product, "loginUrl" => $loginUrl, 'product_views' => $this->product_views)); ?> 0045 0046 <div class="about-me-header-menu row-fluid"> 0047 <div class="pull-left header-menu-left"> 0048 <span class="header-menu-left-item"> 0049 <a href="<?= $this->buildProductUrl($this->product->project_id) ?>"><?= $this->translate('Product') ?></a> 0050 </span> 0051 <span class="header-menu-left-item"> 0052 <a href="<?= $this->buildProductUrl($this->product->project_id, 'supporter') ?>"><?= $this->translate('Supporters') ?></a> 0053 </span> 0054 <span class="header-menu-left-item active"> 0055 <a href="<?= $this->buildProductUrl($this->product->project_id, 'updates') ?>"><?= $this->translate('Updates') ?></a> 0056 </span> 0057 </div> 0058 <!-- /.header-menu-left --> 0059 <div class="pull-right header-menu-right"> 0060 <?php if ($auth->hasIdentity()) { ?> 0061 <span class="header-menu-right-item" id="container-follow"> 0062 <a href="<?= $urlUserFollows ?>" class="purple partial love-it" data-target="#container-follow"> 0063 <?= $txtUserFollows ?><img src="<?= $imgFile ?>" 0064 alt="<?= $this->translate('Add to favorites') ?>" 0065 title="<?= $this->translate('Add to favorites') ?>"> 0066 </a> 0067 </span> 0068 <?php } else { ?> 0069 <span class="header-menu-right-item" id="container-follow"> 0070 <a href="<?= $loginUrl ?>" 0071 class="purple partial love-it" 0072 data-target="#modal-dialog" 0073 data-toggle="#modal-dialog"> 0074 <span><?= $txtUserFollows ?></span> 0075 <em class="icon heart-icon" alt="love it" title="Follow Product"></em> 0076 </a> 0077 </span> 0078 <?php } ?> 0079 <span class="header-menu-right-item"> 0080 <a href="<?= $this->buildProductUrl($this->product->project_id, 'share') ?>" 0081 class="partial share-it" 0082 role="button" 0083 data-target="#modal-dialog" 0084 data-toggle="#modal-dialog"> 0085 <em class="icon share-icon" alt="share" title="Share Product"></em> 0086 </a> 0087 </span> 0088 <?php if ($auth->hasIdentity()) { ?> 0089 <span class="header-menu-right-item"> 0090 <a href="<?= $this->buildProductUrl($this->product->project_id, 'report') ?>" 0091 class="partial report-it" 0092 role="button" 0093 data-target="#modal-dialog" 0094 data-toggle="#modal-dialog"> 0095 <em class="icon report-icon" alt="share" title="Report Product"></em> 0096 </a> 0097 </span> 0098 <?php } else { ?> 0099 <span class="header-menu-right-item"> 0100 <a href="<?= $loginUrl ?>" 0101 class="partial report-it" 0102 role="button" 0103 data-target="#modal-dialog" 0104 data-toggle="#modal-dialog"> 0105 <em class="icon report-icon" alt="share" title="Report Product"></em> 0106 </a> 0107 </span> 0108 <?php } ?> 0109 0110 </div> 0111 <!-- /.header-menu-right --> 0112 </div> 0113 <!-- /.about-me-header-menu --> 0114 0115 <div class="row-fluid product-right"> 0116 0117 <div class="span8 product-details"> 0118 0119 <?php if (count($this->updates->toArray()) > 0) { ?> 0120 <div class="product-updates"> 0121 <?php /*<h3 class="update-heading purple"><?=$this->translate('UPDATES')?></h3>*/ ?> 0122 <?= $this->partialLoop('product/partials/productUpdates.phtml', $this->updates->toArray()); ?> 0123 </div> 0124 <?php } ?> 0125 0126 </div> 0127 <!-- /.product-details --> 0128 0129 <?php echo $this->render('product/partials/sidebar.phtml', 0130 array( 0131 'member' => $this->member, 0132 'project' => $this->product, 0133 'comments' => $this->comments, 0134 'supporter' => $this->supporter, 0135 'relatedProducts' => $this->relatedProducts, 0136 )); ?> 0137 </div> 0138 <!-- /.about-me --> 0139 </div> <!-- /.container --> 0140 0141 <?php $this->inlineScript()->appendScript( 0142 ' $(document).ready(function(){ 0143 0144 }); 0145 ');