File indexing completed on 2025-07-13 05:22:22
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 $modelInfo = new Default_Model_Info(); 0024 $imgs = $modelInfo->getLast200ImgsProductsForAllStores(100); 0025 $helpBuildUrl = new Default_View_Helper_BuildProductUrl(); 0026 ?> 0027 <style> 0028 body.home-page main section#intro.wrapper .container article .logo_template { 0029 background-image: <?=$this->template['homepage']['logo']['background-image']?>; 0030 background-position: <?=$this->template['homepage']['logo']['background-position']?>; 0031 background-repeat: <?=$this->template['homepage']['logo']['background-repeat']?>; 0032 float: none; 0033 height: <?=$this->template['homepage']['logo']['height']?>; 0034 margin-left: auto; 0035 margin-right: auto; 0036 text-align: center; 0037 width: <?=$this->template['homepage']['logo']['width']?>; 0038 } 0039 </style> 0040 0041 <main id="mainpage" class="mainpage"> 0042 0043 <section class="wrapper" id="intro" > 0044 <section class="container" > 0045 <div class="row" style=""> 0046 <article> 0047 <figure class="logo_template"> 0048 0049 </figure> 0050 0051 </article> 0052 </div> 0053 </section> 0054 </section> 0055 0056 <section class="wrapper" > 0057 0058 <div class="card-wrapper" > 0059 <?php 0060 $helperStoreConfig = new Default_View_Helper_FetchStoreConfigInfo(); 0061 $helperSearchCategories = new Default_View_Helper_FetchDomainCategories(); 0062 $domainshelper = new Default_View_Helper_FetchDomains(); 0063 $this->domains = $domainshelper->fetchDomainObjects(); 0064 foreach ($this->domains as $obj) { 0065 $host =$obj['host']; 0066 $name =$obj['name']; 0067 $o = $obj['order']; 0068 $curOrder = floor($obj['order']/1000); 0069 if($curOrder<10 or $curOrder>30) continue; 0070 0071 $logo = $helperStoreConfig->getDomainLogo($host); 0072 echo '<div class="row domainobj">'; 0073 echo '<div class="col-lg-3"><a href="http://'.$host.'"><img src="'.$logo.'" class="logo" /></a></div>'; 0074 echo '<div class="col-lg-9">'.$obj['meta_keywords'].'</div>'; 0075 echo '</div>'; 0076 0077 } 0078 ?> 0079 </div> 0080 0081 </section> 0082 0083 0084 0085 <section class="wrapper" id="indeximages" > 0086 <?php 0087 $helperImage = new Default_View_Helper_Image(); 0088 foreach ($imgs as $obj) { 0089 if($obj['image_small']=='') continue; 0090 $imgpath = $helperImage->Image($obj['image_small'],array('width' => 120, 'height' => 120)); 0091 if('http://cn.pling.ws/cache/90x90/img/default.png'== $imgpath) continue; 0092 ?> 0093 <a href="<?= $helpBuildUrl->buildProductUrl($obj['project_id'])?>" title="<?= $obj['title']?>"> <img class="logo" src="<?= $imgpath?>" alt="<?= $obj['title']?>" /></a> 0094 <?php 0095 } 0096 ?> 0097 0098 </section> 0099 </main> 0100 0101 0102