File indexing completed on 2024-12-29 05:24:38
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 $helperBaseUrl = new Default_View_Helper_BaseUrl(); 0024 $helperBuildProductUrl = new Default_View_Helper_BuildProductUrl(); 0025 $helperServerUrl = new Zend_View_Helper_ServerUrl(); 0026 $helperTruncate = new Default_View_Helper_Truncate(); 0027 $helperImage = new Default_View_Helper_Image(); 0028 $helperGetAuthUser = new Default_View_Helper_GetAuthUser(); 0029 $auth = Zend_Auth::getInstance(); 0030 ?> 0031 <div class="col-lg-3 col-md-3 col-sm-3 col-xs-3"> 0032 <div class="prod-widget-box left"> 0033 <div id="pling-it-box"> 0034 0035 <div class="claim-it"> 0036 0037 <?php if (false == empty($this->product->claimed_by_member)) { ?> 0038 <a role="button" id="claim-it" href="javascript:;"> 0039 <span class="btn-pling-2 disabled"><?= $this->translate('claim requested') ?></span> 0040 </a> 0041 <?php } else { 0042 if ($auth->hasIdentity()) { ?> 0043 <a role="button" id="claim-it" href="#modalClaim" data-toggle="modal"> 0044 <span class="btn-pling-2"><?= $this->translate('claimable') ?></span> 0045 </a> 0046 <?php } else { ?> 0047 <a id="claim-it" href="/register" data-target="#modal-dialog" 0048 data-toggle="#modal-dialog"> 0049 <span class="btn-pling-2"><?= $this->translate('join community to claim') ?></span> 0050 </a> 0051 <?php } 0052 } ?> 0053 0054 </div> 0055 0056 <!-- confirm claim modal --> 0057 0058 <div id="modalClaim" class="modal fade"> 0059 <div class="modal-dialog content-modal"> 0060 <div class="modal-content"> 0061 <!-- dialog contents --> 0062 <div class="modal-header"> 0063 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 0064 <h3 class="center"><?= $this->translate('Claim Confirmation') ?></h3> 0065 </div> 0066 <div class="modal-body"> 0067 <?= $this->translate('You are the owner and want to claim this product?') ?><br/> 0068 <?= $this->translate('Click YES to agree and have read <a href="/content/terms" target="_blank">"terms and conditions"</a>.') ?> 0069 </div> 0070 <!-- dialog buttons --> 0071 <div class="modal-footer"> 0072 <a href="<?= $helperBuildProductUrl->buildProductUrl($this->product->project_id, 'claim', 0073 array('m' => $this->member->member_id)) ?>" 0074 role="button" class="btn btn-primary"> 0075 <?= $this->translate('YES') ?> 0076 </a> 0077 <a href="#" 0078 role="button" 0079 class="btn btn-primary" 0080 data-dismiss="modal" 0081 aria-hidden="true"><?= $this->translate('NO') ?></a> 0082 </div> 0083 </div> 0084 </div> 0085 </div> 0086 <!-- /confirm claim modal --> 0087 0088 0089 </div> 0090 </div> 0091 </div> 0092 0093 <!-- /pling it box -->