File indexing completed on 2025-05-04 05:29:27
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 $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); 0023 $this->headMeta()->appendProperty('og:url', 'www.opendesktop.org'); 0024 $this->headMeta()->appendProperty('og:type', 'website.'); 0025 $this->headMeta()->appendProperty('og:title', 'opendesktop.org'); 0026 $this->headMeta()->appendProperty('og:site_name','www.opendesktop.org'); 0027 $this->headMeta()->appendProperty('og:description','A community where developers and artists share applications, themes and other content'); 0028 $this->headMeta()->appendProperty('og:image','https://www.opendesktop.org/images/system/opendesktop-logo.png'); 0029 0030 0031 $helperUserRole = new Backend_View_Helper_UserRole(); 0032 $userRoleName = $helperUserRole->userRole(); 0033 $isAdmin = false; 0034 if (Default_Model_DbTable_MemberRole::ROLE_NAME_ADMIN == $userRoleName) { 0035 $isAdmin = true; 0036 } 0037 0038 0039 $baseurlStore = Zend_Registry::get('config')->settings->client->default->baseurl_store; 0040 $model = new Default_Model_Section(); 0041 $categorisWithPayout = $model->fetchCategoriesWithPayout(); 0042 $sections = $model->fetchAllSections(); 0043 0044 $products = $this->products; 0045 $creators = $this->creators; 0046 $supporters = $this->supporters; 0047 0048 $response = array( 0049 'isAdmin' => $isAdmin, 0050 'sections' => $sections, 0051 'details' => $categorisWithPayout, 0052 'baseurlStore' => $baseurlStore, 0053 'products' => $products, 0054 'creators' => $creators, 0055 'supporters' => $supporters, 0056 'section' => ($this->section?$this->section:null), 0057 'section_id' => ($this->section_id?$this->section_id:null), 0058 'probably_payout_amount' => $this->probably_payout_amount, 0059 'probably_payout_goal' => $this->probably_payout_goal, 0060 'probably_payout_amount_factor' => $this->probably_payout_amount_factor 0061 0062 ); 0063 ?> 0064 <link type="text/css" rel="stylesheet" href="/theme/react/assets/css/pling-section.css"/> 0065 <div class="tooltip_templates" style="display:none"> 0066 <span id="tooltip_content"> 0067 <i class="fa fa-spinner"></i> 0068 </span> 0069 </div> 0070 0071 <main class="pling-section"> 0072 <div id="pling-section-content"></div> 0073 <script type="text/javascript"> 0074 var data = <?php echo Zend_Json::encode($response)?>; 0075 </script> 0076 <script src="/theme/react/bundle/pling-section-bundle.js" type="text/javascript"></script> 0077 </main>