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 $this->headTitle($_SERVER['HTTP_HOST'], 'SET');
0023 $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA);
0024 $this->headMeta()->appendProperty('og:url', 'www.opendesktop.org');
0025 $this->headMeta()->appendProperty('og:type', 'website');
0026 $this->headMeta()->appendProperty('og:title', 'opendesktop.org');
0027 $this->headMeta()->appendProperty('og:site_name','www.opendesktop.org');
0028 $this->headMeta()->appendProperty('og:description','A community where developers and artists share applications, themes and other content');
0029 $this->headMeta()->appendProperty('og:image','https://www.opendesktop.org/images/system/opendesktop-logo.png');
0030 
0031 $modelInfo = new Default_Model_Info();
0032 $this->comments = $modelInfo->getLatestComments(10);
0033 //$this->users = $modelInfo->getNewActiveMembers(18);
0034 //$this->supporters = $modelInfo->getNewActiveSupporters(9);
0035 //$this->plingproducts = $modelInfo->getNewActivePlingProduct(9);
0036 $this->productsThemesGTK = $modelInfo->getLastProductsForHostStores(5,"366,363,273,267,138,125,131,153,154,414,133");
0037 $this->productsThemesPlasma = $modelInfo->getLastProductsForHostStores(5,"365,119,123,266,114,118,349,417,101,100,111,422,423,446,417");
0038 $this->productsWindowmanager = $modelInfo->getLastProductsForHostStores(5,"117,267,139,143,142,140,141,144");
0039 $this->productsIconsCursors= $modelInfo->getLastProductsForHostStores(5,"386,107");
0040 $this->productsScreenshots= $modelInfo->getLastProductsForHostStores(5,"225,445");
0041 $this->productsApps = $modelInfo->getLastProductsForHostStores(5,233);
0042 $this->productsAddons = $modelInfo->getLastProductsForHostStores(5,"152");
0043 $this->productsWallpapersOriginal = $modelInfo->getLastProductsForHostStores(5,"295,158",null,true);
0044 $this->productsWallpapers = $modelInfo->getLastProductsForHostStores(5,"295,158",null,false);
0045 $this->countSupporters = $modelInfo->getCountAllSupporters();
0046 
0047 $this->featureProducts = $modelInfo->getRandFeaturedProduct();
0048 $this->type='Featured';
0049 
0050  $json_productsPlinged = $modelInfo->getJsonNewActivePlingProduct(15);
0051 
0052 
0053 $response = array(
0054   'productsThemesGTK' => array('title' =>'Plinged','catIds' =>'','products' => $json_productsPlinged),
0055 );
0056 
0057 
0058 $helperBuildMemberUrl = new Default_View_Helper_BuildMemberUrl();
0059 $helperImage = new Default_View_Helper_Image();
0060 $helpPrintDate = new Default_View_Helper_PrintDate();
0061 ?>
0062 
0063 <style>
0064 
0065   @media (max-width:611px){
0066 
0067     body > .panel.panel-default.pull-left {
0068       max-width: 100%;
0069       overflow-y: hidden;
0070     }
0071 
0072 
0073     .sidebar-left {
0074         background-color: #e4e4e4;
0075     }
0076 
0077     .GridFlex-cell.sidebar-left {
0078       width: 100%;
0079       flex: none !important;
0080       border: 0;
0081       border-bottom: 1px solid #ccd4d8;
0082     }
0083 
0084     #explore-content.startpage-store .GridFlex-cell.content {
0085       padding: 0;
0086       min-width: 100% !important;
0087       padding: 0 5px;
0088       padding-right: 5px !important;
0089     }
0090 
0091     #featureProductsContainer .feature_container {
0092       width: 100% !important;
0093     }
0094 
0095     #featureProductsContainer {
0096       height: auto !important;
0097       margin-bottom: 15px;
0098     }
0099 
0100     #featureProductsContainer .feature_container {
0101         width: 100%;
0102         display: block;
0103         margin: 0 auto;
0104     }
0105 
0106     #featureProductsContainer .feature_container .main_container {
0107       float: left;
0108       width: 100%;
0109     }
0110 
0111     #featureProductsContainer .feature_container .feature_title {
0112       width: 100%;
0113       display: block;
0114       float: left;
0115       text-align: center;
0116       height: 25px;
0117       line-height: 30px;
0118     }
0119 
0120     #featureProductsContainer .feature_container .main_container .label_featured {
0121       float: right;
0122       position: absolute;
0123       top: 30px;
0124       right: 0;
0125       height: 25px;
0126       line-height: 25px;
0127       border-radius: 0 5px 0 5px;
0128     }
0129 
0130     #featureProductsContainer .feature_container .main_container .feature_image {
0131       width: 100%;
0132       margin: 0;
0133       max-width: 100%;
0134     }
0135 
0136     #featureProductsContainer .feature_container .main_container .feature_image img {
0137       margin: 0 auto;
0138       display: table;
0139       max-width: 100%;
0140       width: 100%;
0141       height: auto;
0142     }
0143 
0144     #featureProductsContainer .feature_container .main_container .feature_text {
0145       width: 100%;
0146       float: left;
0147       padding: 15px;
0148     }
0149 
0150     #featureProductsContainer .feature_container .main_container .feature_text .feature_category {
0151       width: 80%;
0152     }
0153 
0154     #featureProductsContainer .feature_container .main_container .feature_text .feature_rating {
0155       padding-right: 0;
0156       padding-top: 0;
0157     }
0158 
0159     .prod-widget-box {
0160       padding: 0;
0161       width: 100% !important;
0162     }
0163 
0164     #explore-content .GridFlex .sidebar-right {
0165         width: 100% !important;
0166         flex: none !important;
0167     }
0168 
0169     #explore-content .sidebar-right-info {
0170       padding-left: 10px;
0171     }
0172 
0173     .commentstore {
0174       padding: 5px;
0175     }
0176 
0177   }
0178 
0179 
0180 .product-carousel-header
0181 {
0182   padding-left: 20px;
0183 }
0184 
0185 #carousel-module-container
0186 {
0187   padding-bottom: 20px;
0188 }
0189 </style>
0190 
0191 
0192 <link type="text/css" rel="stylesheet" href="/theme/react/assets/css/carousel.css"/>
0193 <main id="explore-content" class="startpage-store">
0194   <div class="GridFlex">
0195     <div class="GridFlex-cell sidebar-left">
0196             <?php  echo $this->render('explore/partials/filter.phtml'); ?>
0197     </div>
0198 
0199     <div class="GridFlex-cell content" id="main-content">
0200             <div class="contentcontainer">                          
0201 
0202                             <div class="row"  id="featureProductsContainer">
0203 
0204                                 <?php
0205                                 if ($this->featureProducts) {
0206                                               echo $this->render('home/partials/featured-products.phtml');
0207                                 }
0208                                 ?>
0209                             </div>
0210 
0211                             <div class="row">
0212                                 <div id="carousel-module-container"></div>                                                                                                              
0213                             </div>
0214 
0215                             <div class="row" id="productgroup1">
0216                             <?php
0217                                         echo $this->partial('/home/partials/product_group.phtml', array(
0218                                                 "title"  => "GTK/Gnome",
0219                                                 "products" => $this->productsThemesGTK,
0220                                                 "catIDs" =>"366"
0221                                             )
0222                                         );
0223 
0224                                         echo $this->partial('/home/partials/product_group.phtml', array(
0225                                                 "title"  => "KDE Plasma",
0226                                                 "products" => $this->productsThemesPlasma,
0227                                                 "catIDs" =>"365"
0228                                             )
0229                                         );
0230                             ?>
0231                             </div>
0232 
0233                             <div class="row blockpadding">
0234                             <?php
0235                                         echo $this->partial('/home/partials/product_group.phtml', array(
0236                                                 "title"  => "Window Managers",
0237                                                 "products" => $this->productsWindowmanager,
0238                                                 "catIDs" =>"147"
0239                                             )
0240                                         );
0241 
0242                                         echo $this->partial('/home/partials/product_group.phtml', array(
0243                                                 "title"  => "Icons, Cursors",
0244                                                 "products" => $this->productsIconsCursors,
0245                                                 "catIDs" =>"386,107"
0246                                             )
0247                                         );
0248                             ?>
0249                             </div>
0250 
0251                             <div class="row blockpadding">
0252                             <?php
0253                                     echo $this->partial('/home/partials/product_group.phtml', array(
0254                                             "title"  => "Artwork, Wallpapers ",
0255                                             "products" => $this->productsWallpapers,
0256                                             "catIDs" =>"158,295"
0257                                         )
0258                                     );
0259 
0260 
0261                                         echo $this->partial('/home/partials/product_group.phtml', array(
0262                                                 "title"  => "Artwork, Wallpapers (Original)",
0263                                                 "products" => $this->productsWallpapersOriginal,
0264                                                 "catIDs" =>"158,295"
0265 
0266                                             )
0267                                         );
0268                             ?>
0269                             </div>
0270                             <div class="row blockpadding" >
0271                              <?php
0272                                          echo $this->partial('/home/partials/product_group.phtml', array(
0273                                                  "title"  => "App Add-Ons",
0274                                                  "products" => $this->productsAddons,
0275                                                  "catIDs" =>"152"
0276                                              )
0277                                          );
0278 
0279                                          echo $this->partial('/home/partials/product_group.phtml', array(
0280                                                  "title"  => "Applications",
0281                                                  "products" => $this->productsApps,
0282                                                  "catIDs" =>"233"
0283                                              )
0284                                          );
0285 
0286                              ?>
0287                             </div>
0288 
0289                             <div class="row blockpadding">
0290                             <?php
0291                                                echo $this->partial('/home/partials/product_group.phtml', array(
0292                                                 "title"  => "Concepts, Screenshots",
0293                                                 "products" => $this->productsScreenshots,
0294                                                 "catIDs" =>"445,225"
0295                                             )
0296                                         );
0297 
0298                             ?>
0299                             </div>
0300 
0301                            
0302                  </div>
0303     </div>
0304     <div class="GridFlex-cell sidebar-right">
0305             <aside  id="explore-sidebar" >
0306 
0307             <?php
0308                 $this->show_git = true;
0309                 echo $this->render('/home/partials/common_rightsidebar.phtml');
0310             ?>
0311 
0312 
0313             <div>
0314                 <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
0315                 <!-- Responsive New Displayblock -->
0316                 <ins class="adsbygoogle"
0317                      style="display:block"
0318                      data-ad-client="ca-pub-1150932386931372"
0319                      data-ad-slot="1024407251"
0320                      data-ad-format="auto"></ins>
0321                 <script>
0322                 (adsbygoogle = window.adsbygoogle || []).push({});
0323 
0324                 </script>
0325             </div>
0326 
0327             </aside>
0328     </div>
0329   </div>
0330   <div class="tooltip_templates" style="display:none">
0331       <span id="tooltip_content">
0332           <i class="fa fa-spinner"></i>
0333       </span>
0334   </div>
0335 </main>
0336 
0337 <script type="application/javascript">
0338     $(document).ready(function () {
0339         $('body').on('click', '.ajaxPartialFeatureProduct', function (event) {
0340             event.preventDefault();
0341             $(this).off();
0342             var target = '#featureProductsContainer';
0343             if($(this).hasClass( "disabled" )) return false;
0344             var url = $(this).attr("href");
0345             $(target).load(url, function (response, status, xhr) {
0346                 if (status == "error") {
0347                     $(target).empty().html('Service is temporarily unavailable. Our engineers are working quickly to resolve this issue. <br/>Find out why you may have encountered this error.');
0348                 }
0349             });
0350             return false;
0351         });
0352     });
0353 
0354 
0355   var page = "opendesktop";
0356   var hpVersion = 2;
0357   var data = <?php echo Zend_Json::encode($response)?>;                                
0358 </script>
0359 <script src="/theme/react/carousel.js" type="text/javascript"></script>
0360 
0361 <?php $this->inlineScript()->appendScript(
0362     '    $(document).ready(function(){
0363                 TooltipUser.setup("tooltipuser","right");
0364                 TooltipUser.setup("tooltipuserleft","left");
0365                 TooltipUserPlings.setup("tooltipuserplings","right");
0366             });
0367         ');