diff --git a/application/modules/default/views/scripts/home/index-opendesktop-test.phtml b/application/modules/default/views/scripts/home/index-opendesktop-test.phtml index 1f724a56e..448d51627 100755 --- a/application/modules/default/views/scripts/home/index-opendesktop-test.phtml +++ b/application/modules/default/views/scripts/home/index-opendesktop-test.phtml @@ -1,83 +1,244 @@ . **/ $this->headTitle($_SERVER['HTTP_HOST'], 'SET'); $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $this->headMeta()->appendProperty('og:url', 'www.opendesktop.org'); $this->headMeta()->appendProperty('og:type', 'website'); $this->headMeta()->appendProperty('og:title', 'opendesktop.org'); $this->headMeta()->appendProperty('og:site_name','www.opendesktop.org'); $this->headMeta()->appendProperty('og:description','A community where developers and artists share applications, themes and other content'); $this->headMeta()->appendProperty('og:image','https://www.opendesktop.org/images/system/opendesktop-logo.png'); $modelInfo = new Default_Model_Info(); $this->comments = $modelInfo->getLatestComments(10); //$this->users = $modelInfo->getNewActiveMembers(18); //$this->supporters = $modelInfo->getNewActiveSupporters(9); //$this->plingproducts = $modelInfo->getNewActivePlingProduct(9); $this->productsThemesGTK = $modelInfo->getLastProductsForHostStores(5,"366,363,273,267,138,125,131,153,154,414,133"); $this->productsThemesPlasma = $modelInfo->getLastProductsForHostStores(5,"365,119,123,266,114,118,349,417,101,100,111,422,423,446,417"); $this->productsWindowmanager = $modelInfo->getLastProductsForHostStores(5,"117,267,139,143,142,140,141,144"); $this->productsIconsCursors= $modelInfo->getLastProductsForHostStores(5,"386,107"); $this->productsScreenshots= $modelInfo->getLastProductsForHostStores(5,"225,445"); $this->productsApps = $modelInfo->getLastProductsForHostStores(5,233); $this->productsAddons = $modelInfo->getLastProductsForHostStores(5,"152"); $this->productsWallpapersOriginal = $modelInfo->getLastProductsForHostStores(5,"295,158",null,true); $this->productsWallpapers = $modelInfo->getLastProductsForHostStores(5,"295,158",null,false); $this->countSupporters = $modelInfo->getCountActiveSupporters(); $featuredProducts = $modelInfo->getFeaturedProductsForHostStores(100); if ($featuredProducts->getTotalItemCount()) { $request = Zend_Controller_Front::getInstance()->getRequest(); $offset = (int)$request->getParam('page'); $irandom = rand(1,$featuredProducts->getTotalItemCount()); $featuredProducts->setItemCountPerPage(1); $featuredProducts->setCurrentPageNumber($irandom); $this->featureProducts = $featuredProducts; } $helperBuildMemberUrl = new Default_View_Helper_BuildMemberUrl(); $helperImage = new Default_View_Helper_Image(); $helpPrintDate = new Default_View_Helper_PrintDate(); $response = array( "comments" => Zend_Json::encode($this->comments), "productsThemesGTK" => Zend_Json::encode($this->productsThemesGTK), "productsThemesPlasma" => Zend_Json::encode($this->productsThemesPlasma), "productsWindowmanager" => Zend_Json::encode($this->productsWindowmanager), "productsIconsCursors" => Zend_Json::encode($this->productsIconsCursors), "productsScreenshots" => Zend_Json::encode($this->productsScreenshots), "productsApps" => Zend_Json::encode($this->productsApps), "productsAddons" => Zend_Json::encode($this->productsAddons), "productsWallpapersOriginal" => Zend_Json::encode($this->productsWallpapersOriginal), "productsWallpapers" => Zend_Json::encode($this->productsWallpapers), "featureProducts" => Zend_Json::encode($this->featureProducts) ); ?> -testest -
- - + +
+ +
+ + + +
+
+ + +
+ + + +
+ + + +
diff --git a/httpdocs/theme/react/app-opendesktop-home/app.js b/httpdocs/theme/react/app-opendesktop-home/app.js index 197e1b977..42a018af6 100644 --- a/httpdocs/theme/react/app-opendesktop-home/app.js +++ b/httpdocs/theme/react/app-opendesktop-home/app.js @@ -1,24 +1,24 @@ class App extends React.Component { constructor(props){ super(props); this.state = { }; } componentDidMount() { console.log('opendesktop app homepage'); console.log(window.data); } render(){ return (

test homepage

) } } ReactDOM.render( , - document.getElementById('explore-content') + document.getElementById('main-content') ); diff --git a/httpdocs/theme/react/opendesktop-home.js b/httpdocs/theme/react/opendesktop-home.js index bc6c85703..d741258ee 100644 --- a/httpdocs/theme/react/opendesktop-home.js +++ b/httpdocs/theme/react/opendesktop-home.js @@ -1,25 +1,25 @@ class App extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { console.log('opendesktop app homepage'); console.log(window.data); } render() { return React.createElement( 'main', { id: 'opendesktop-homepage' }, React.createElement( 'p', null, 'test homepage' ) ); } } -ReactDOM.render(React.createElement(App, null), document.getElementById('explore-content')); +ReactDOM.render(React.createElement(App, null), document.getElementById('main-content'));