File indexing completed on 2025-05-04 05:29:26
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 $this->headTitle($this->product->title . ' - ' . $_SERVER['HTTP_HOST'], 'SET'); 0024 $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); 0025 $this->headMeta()->setName('description', 0026 $this->truncate($this->product->description, 200, '...', false, true)); 0027 $this->headMeta()->setName('title', 0028 $this->truncate($this->product->title, 200, '...', false, true)); 0029 $this->headMeta()->appendProperty('og:url', $this->buildProductUrl($this->product->project_id, '', null, true)); 0030 $this->headMeta()->appendProperty('og:type', 'website'); 0031 $this->headMeta()->appendProperty('og:title', $this->product->title); 0032 $this->headMeta()->appendProperty('og:description', 0033 $this->truncate($this->product->description, 200, '...', false, true)); 0034 $this->headMeta()->appendProperty('og:image', 0035 $this->Image($this->product->image_small, array('width' => 400, 'height' => 400))); 0036 ?> 0037 0038 <main id="explore-content"></main> 0039 <script type="text/javascript"> 0040 var view = "product"; 0041 var product = <?php echo $this->productJson ?>; // product info. title, category, image ... 0042 var updatesJson = <?php echo $this->updatesJson ?>; // Tab changelogs 0043 var ratingsJson = <?php echo $this->ratingsJson ?>; // Tab Ratings & Reviews 0044 var ratingOfUserJson = <?php echo $this->ratingOfUserJson ?>; // Rating of user if exist 0045 var likeJson = <?php echo $this->likeJson ?>; // Tab Favs 0046 var projectplingsJson = <?php echo $this->projectplingsJson ?>; // Tab Plings 0047 var galleryPicturesJson = <?php echo $this->galleryPicturesJson ?>; 0048 0049 var originsJson = <?php echo $this->originsJson ?>; // rightsidebar origins products = Based on 0050 var relatedJson = <?php echo $this->relatedJson ?>;// rightsidebar Variants 0051 var moreProductsJson = <?php echo $this->moreProductsJson ?>; // rightsidebar more proudcts of category 0052 var moreProductsOfOtherUsrJson = <?php echo $this->moreProductsOfOtherUsrJson ?>; // rightsidebar more products of user 0053 var tagsuserJson = <?php echo $this->tagsuserJson ?>; // user tags 0054 var tagssystemJson = <?php echo $this->tagssystemJson ?>; // rightsidebar bottom system tags 0055 var commentsJson = <?php echo $this->commentsJson ?>; // comments TODO Paging 0056 var filesCntJson = <?php echo $this->filesCntJson ?>; // Tab( active files cnt ) 0057 var filesJson = <?php echo $this->filesJson ?>; // Tab files 0058 0059 var user = <?php echo $this->authMemberJson ?>; // authMember 0060 </script> 0061 <script type="text/javascript" src="/theme/react/all.js"></script>