File indexing completed on 2024-12-29 05:24:43
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($_SERVER['HTTP_HOST'], 'SET'); 0024 $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); 0025 $this->headMeta()->appendProperty('og:url', 'www.opendesktop.org/s/LibreOffice'); 0026 $this->headMeta()->appendProperty('og:type', 'website'); 0027 $this->headMeta()->appendProperty('og:title', 'www.opendesktop.org/s/LibreOffice'); 0028 $this->headMeta()->appendProperty('og:site_name','www.opendesktop.org/s/LibreOffice'); 0029 $this->headMeta()->appendProperty('og:description','A community where developers and artists share applications, themes and other content'); 0030 $this->headMeta()->appendProperty('og:image','https://www.opendesktop.org/images_sys/superstore/lo-logo.png'); 0031 0032 0033 $modelInfo = new Default_Model_Info(); 0034 $helperBuildMemberUrl = new Default_View_Helper_BuildMemberUrl(); 0035 $helperBuildBaseUrl = new Default_View_Helper_BuildBaseUrl(); 0036 $helperImage = new Default_View_Helper_Image(); 0037 $helpPrintDate = new Default_View_Helper_PrintDate(); 0038 0039 $host = $_SERVER['SERVER_NAME']; 0040 0041 $modelProject = new Default_Model_Project(); 0042 $totalProjects = $modelProject->fetchTotalProjectsCount(true); 0043 0044 $basrUrl = $helperBuildBaseUrl->buildBaseUrl(); 0045 0046 if(strpos ( $host , ".cc" ) > 0 || strpos ( $host , ".local" ) > 0) { 0047 $products1 = $modelInfo->getJsonLastProductsForHostStores(15,"104"); 0048 $products2 = $modelInfo->getJsonLastProductsForHostStores(15,"105"); 0049 $products3 = $modelInfo->getJsonLastProductsForHostStores(15,"98"); 0050 $products4= $modelInfo->getJsonLastProductsForHostStores(15,"57"); 0051 $products5= $modelInfo->getJsonLastProductsForHostStores(15,"53"); 0052 $products6 = $modelInfo->getJsonLastProductsForHostStores(15,"52"); 0053 $products7 = $modelInfo->getJsonLastProductsForHostStores(15,"52"); 0054 0055 $response = array( 0056 'products3' => array('title' =>'Documentation','catIds' =>'52','products' => $products3), 0057 'products4' => array('title' =>'Extensions','catIds' =>'98','products' => $products4), 0058 'products7' => array('title' =>'Templates','catIds' =>'52','products' => $products7), 0059 'products2' => array('title' =>'Dictionaries','catIds' =>'105','products' => $products2), 0060 'products1' => array('title' =>'Clipart Galleries','catIds' =>'104','products' => $products1), 0061 'products6' => array('title' =>'Splash Screens','catIds' =>'53','products' => $products6), 0062 'products5' => array('title' =>'Fonts','catIds' =>'57','products' => $products5), 0063 ); 0064 0065 } else { 0066 $products1 = $modelInfo->getJsonLastProductsForHostStores(15,"559"); 0067 $products2 = $modelInfo->getJsonLastProductsForHostStores(15,"547"); 0068 $products3 = $modelInfo->getJsonLastProductsForHostStores(15,"554"); 0069 $products4= $modelInfo->getJsonLastProductsForHostStores(15,"556"); 0070 $products5= $modelInfo->getJsonLastProductsForHostStores(15,"555"); 0071 $products6 = $modelInfo->getJsonLastProductsForHostStores(15,"271"); 0072 $products7 = $modelInfo->getJsonLastProductsForHostStores(15,"103"); 0073 0074 $response = array( 0075 'products1' => array('title' =>'Documentation','catIds' =>'559','products' => $products1), 0076 'products2' => array('title' =>'Extensions','catIds' =>'547','products' => $products2), 0077 'products3' => array('title' =>'Templates','catIds' =>'554','products' => $products3), 0078 'products4' => array('title' =>'Dictionaries','catIds' =>'556','products' => $products4), 0079 'products5' => array('title' =>'Clipart Galleries','catIds' =>'555','products' => $products5), 0080 'products6' => array('title' =>'Splash Screens','catIds' =>'271','products' => $products6), 0081 'products7' => array('title' =>'Fonts','catIds' =>'103','products' => $products7), 0082 ); 0083 } 0084 0085 ?> 0086 <style> 0087 #main-header .logo-header { 0088 width: 275px; 0089 height: 71px; 0090 left: 0; 0091 top: 0; 0092 background-color: #18a302; 0093 } 0094 0095 #main-header > .container { 0096 margin-left: auto; 0097 margin-right: auto; 0098 float: none; 0099 height: auto; 0100 width: 100%; 0101 background-color: #18a203; 0102 } 0103 0104 #main-header .header_cat_link { 0105 bottom: 20px; 0106 } 0107 </style> 0108 <main id="explore-content"></main> 0109 <script type="text/javascript"> 0110 var filters = {}; 0111 var view = "home"; 0112 var hpVersion = 2; 0113 var page = "libreoffice"; 0114 var data = <?php echo Zend_Json::encode($response)?>; 0115 var totalProjects = <?php echo $totalProjects ?>; 0116 var baseUrl = <?php echo Zend_Json::encode($basrUrl)?>; 0117 </script> 0118 <link type="text/css" rel="stylesheet" href="/theme/react/assets/css/carousel.css"/> 0119 <div id="carousel-module-container" class="app-images-hub"> 0120 </div>