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 $helpAddDefaultScheme = new Default_View_Helper_AddDefaultScheme();
0024 $helpMemberUrl = new Default_View_Helper_BuildMemberUrl();
0025 $helpEncryptUrl = new Default_View_Helper_EncryptUrl();
0026 $helpImage = new Default_View_Helper_Image();
0027 $helpTruncate = new Default_View_Helper_Truncate();
0028 $helpProductUrl = new Default_View_Helper_BuildProductUrl();
0029 $helpBBCode = new Default_View_Helper_Bbcode2html();
0030 
0031 $identity = Zend_Auth::getInstance()->getStorage()->read();
0032 
0033 $loginUrl = '/login?redirect=' . $helpEncryptUrl->encryptUrl(Zend_Controller_Front::getInstance()->getRequest()
0034         ->getRequestUri(), true);
0035 $viewSidebar = 'product/partials/productAboutSidebar.phtml';
0036 $viewClaimBox = false;
0037 if ($this->product->claimable == 1) {
0038     $viewClaimBox = 'product/partials/productClaimTopHeader.phtml';
0039 }
0040 
0041 
0042 $this->headTitle($this->product->title . ' - ' . $_SERVER['HTTP_HOST'], 'SET');
0043 $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA);
0044 
0045 $this->headMeta()->setName('description',
0046     $helpTruncate->truncate($this->product->description, 200, '...', false, true));
0047 $this->headMeta()->setName('title',
0048     $helpTruncate->truncate($this->product->title, 200, '...', false, true));
0049 $this->headMeta()->appendProperty('og:url', $helpProductUrl->buildProductUrl($this->product->project_id, '', null, true));
0050 $this->headMeta()->appendProperty('og:type', 'website');
0051 $this->headMeta()->appendProperty('og:title', $this->product->title);
0052 $this->headMeta()->appendProperty('og:description',
0053     $helpTruncate->truncate($this->product->description, 200, '...', false, true));
0054 $this->headMeta()->appendProperty('og:image',
0055     $helpImage->Image($this->product->image_small, array('width' => 400, 'height' => 400)));
0056 
0057 $this->headLink()->appendStylesheet('/theme/flatui/css/explore_index.css');
0058 $this->headLink()->appendStylesheet('/theme/react/lib/mdl/material.min.css');
0059 $this->headLink()->appendStylesheet('https://fonts.googleapis.com/icon?family=Material+Icons');
0060 $this->headLink()->appendStylesheet('https://fonts.googleapis.com/css?family=Ubuntu:300,400,500');
0061 $this->headLink()->appendStylesheet('/theme/react/assets/css/style.css');
0062 
0063 ?>
0064 
0065 <main id="explore-content"></main>
0066 
0067 <script type="text/javascript" src="/theme/react/lib/react/react.js"></script>
0068 <script type="text/javascript" src="/theme/react/lib/react-dom/react-dom.js"></script>
0069 <script type="text/javascript" src="/theme/react/lib/redux/redux.min.js"></script>
0070 <script type="text/javascript" src="/theme/react/lib/redux/react-redux.min.js"></script>
0071 <script type="text/javascript" src="/theme/react/lib/mdl/material.min.js"></script>
0072 <script type="text/javascript" src="/theme/react/lib/timeago/timeago.min.js"></script>
0073 <script type="text/javascript" src="/theme/react/lib/md5/md5.js"></script>
0074 
0075 <script type="text/javascript">
0076 var view = "product";
0077 var product = <?php echo Default_Model_Collection::cleanProductInfoForJson($this->productJson) ?>;  // product info. title, category, image ...
0078 var updatesJson = <?php echo $this->updatesJson ?>; // Tab changelogs
0079 var ratingsJson = <?php echo $this->ratingsJson ?>; //  Tab Ratings & Reviews
0080 var ratingOfUserJson = <?php echo $this->ratingOfUserJson ?>;  // Rating of user if exist
0081 var likeJson = <?php echo $this->likeJson ?>;    // Tab Favs
0082 var projectplingsJson = <?php echo $this->projectplingsJson ?>; // Tab Plings
0083 var galleryPicturesJson = <?php echo $this->galleryPicturesJson ?>;
0084 
0085 var originsJson = <?php echo $this->originsJson ?>; // rightsidebar origins products = Based on
0086 var relatedJson = <?php echo $this->relatedJson ?>;// rightsidebar Variants
0087 var moreProductsJson = <?php echo $this->moreProductsJson ?>; // rightsidebar more proudcts of category
0088 var moreProductsOfOtherUsrJson = <?php echo $this->moreProductsOfOtherUsrJson ?>; // rightsidebar more products of user
0089 var tagsuserJson = <?php echo $this->tagsuserJson ?>;  // user tags
0090 var tagssystemJson = <?php echo $this->tagssystemJson ?>;  // rightsidebar bottom system tags
0091 var commentsJson = <?php echo $this->commentsJson ?>; // comments  TODO Paging
0092 var filesCntJson = <?php echo $this->filesCntJson ?>;   // Tab( active files cnt )
0093 var filesJson  = <?php echo $this->filesJson ?>;  // Tab files
0094 
0095 var authMemberJson = <?php echo Default_Model_Member::cleanAuthMemberForJson($this->authMemberJson) ?>  // authMember
0096 </script>
0097 <script type="text/javascript" src="/theme/react/all.js"></script>