diff --git a/application/modules/default/views/scripts/explore/index.phtml b/application/modules/default/views/scripts/explore/index.phtml
index 5b932bf87..596b02161 100644
--- a/application/modules/default/views/scripts/explore/index.phtml
+++ b/application/modules/default/views/scripts/explore/index.phtml
@@ -1,270 +1,271 @@
.
**/
$modelCategory = new Default_Model_DbTable_ProjectCategory();
$this->dataCategory = $modelCategory->findSingleRow($this->cat_id);
$store_config = Zend_Registry::get('store_config');
$host = $store_config->host;
$og_server = $this->serverUrl(true);
$catTitle = '';
if($this->dataCategory['project_category_id'])
{
$catTitle = $this->dataCategory['title'];
}
if($this->filters['order'] == 'latest'){
$og_title = 'Browse '.$catTitle.' Latest | '.$host;
}else if($this->filters['order'] == 'top'){
$og_title = 'Browse '.$catTitle.' Top | '.$host;
}else{
$og_title='Browse '.$catTitle.' | '.$host;
}
$og_description = $og_title .'| A community for free and open source software and libre content';
$this->templateConfigData = Zend_Registry::get('store_template');
$og_image = 'https://' . $_SERVER['HTTP_HOST'] .$this->templateConfigData['logo'];
$this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA);
$this->headMeta()->appendProperty('og:type', 'website');
$this->headMeta()->appendProperty('og:url', $og_server);
$this->headMeta()->appendProperty('og:title', $og_title);
$this->headMeta()->appendProperty('og:site_name',$host);
$this->headMeta()->appendProperty('og:description',$og_description);
$this->headMeta()->appendProperty('og:image',$og_image);
$helperBuildExploreUrl = new Default_View_Helper_BuildExploreUrl();
$modelInfo = new Default_Model_Info();
$this->countSupporters = $modelInfo->getCountActiveSupporters();
$this->supporters = $modelInfo->getNewActiveSupporters(7);
$this->headLink()->appendStylesheet('/theme/flatui/css/explore_index.css');
if($this->inputFilterOriginal ==1)
{
$checkedOriginal = ' checked';
}else
{
$checkedOriginal = '';
}
?>
products) == 0) {
echo '
No products to show in this category.
';
} else {
$time_start = microtime(true);
echo $this->render('explore/partials/products.phtml');
$time_elapsed = microtime(true) - $time_start;
}
?>
hasIdentity() AND Zend_Auth::getInstance()->getIdentity()->roleName == 'admin') {
echo '
';
echo '
Rendering Time: '.$time_elapsed.' s
';
echo '
';
}?>
comments = $modelInfo->getLatestComments(5, $this->cat_id, $this->package_type);
//$donations = $modelInfo->getLatestPlings(5, $this->cat_id);
$topprods = $modelInfo->getMostDownloaded(100, $this->cat_id, $this->package_type);
$asidehide = '';
if(!$this->catabout && count($this->comments)==0 && count($topprods)==0 )
{
$asidehide = 'hide';
}
+ $this->show_git = false;
?>
inlineScript()->appendScript(
' $(document).ready(function(){
TooltipUser.setup("tooltipuserleft","left");
TooltipUser.setup("tooltipuser","right");
FilterBrowseOriginalFn.setup();
});
');
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 ad58d7a7d..9c0a291b9 100755
--- a/application/modules/default/views/scripts/home/index-opendesktop-test.phtml
+++ b/application/modules/default/views/scripts/home/index-opendesktop-test.phtml
@@ -1,144 +1,145 @@
.
**/
$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();
$productsThemesGTK = $modelInfo->getJsonLastProductsForHostStores(5,"366,363,273,267,138,125,131,153,154,414,133");
$productsThemesPlasma = $modelInfo->getJsonLastProductsForHostStores(5,"365,119,123,266,114,118,349,417,101,100,111,422,423,446,417");
$productsWindowmanager = $modelInfo->getJsonLastProductsForHostStores(5,"117,267,139,143,142,140,141,144");
$productsIconsCursors= $modelInfo->getJsonLastProductsForHostStores(5,"386,107");
$productsScreenshots= $modelInfo->getJsonLastProductsForHostStores(5,"225,445");
$productsApps = $modelInfo->getJsonLastProductsForHostStores(5,233);
$productsAddons = $modelInfo->getJsonLastProductsForHostStores(5,"152");
$productsWallpapersOriginal = $modelInfo->getJsonLastProductsForHostStores(5,"295,158",null,true);
$productsWallpapers = $modelInfo->getJsonLastProductsForHostStores(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();
$item;
foreach ($this->featureProducts as $i) {
$item = $i;
break;
}
$helpCategories = new Default_View_Helper_FetchCategoriesForProductAsString();
$imagehelper = new Default_View_Helper_Image();
$feature = array(
'project_id' => $item['project_id'],
'member_id' => $item['member_id'],
'username' => $item['username'],
'profile_image_url' => $imagehelper->Image($item['profile_image_url'],array('width' => 300, 'height' => 230, 'crop' => 1)),
'featured' => $item['featured'],
'description' => $item['description'],
'title' => $item['title'],
'category' => $helpCategories->fetchCategoriesForProductAsString($item['project_id']),
'image_small' => $item['image_small'],
'laplace_score' => $item['laplace_score'],
'count_likes' => $item['count_likes'],
'count_dislikes' => $item['count_dislikes'],
'changed_at' => $item['changed_at'],
'created_at' => $item['created_at'],
'count_comments' => $item['count_comments']
);
$response = array(
'productsThemesGTK' => array('title' =>'GTK/Gnome','catTitleIds' =>'366','catIds' =>'366,363,273,267,138,125,131,153,154,414,133','products' => $productsThemesGTK),
'productsThemesPlasma' => array('title' =>'KDE Plasma','catTitleIds' =>'365','catIds' =>'365,119,123,266,114,118,349,417,101,100,111,422,423,446,417','products' => $productsThemesPlasma),
'productsWindowmanager' =>array('title' =>'Window Managers','catTitleIds' =>'147','catIds' =>'117,267,139,143,142,140,141,144','products' => $productsWindowmanager),
'productsIconsCursors' =>array('title' =>'Icons, Cursors','catTitleIds' =>'386,107','catIds' =>'386,107','products' => $productsIconsCursors),
'productsWallpapers' =>array('title' =>'Artwork, Wallpapers','catTitleIds' =>'158,295','catIds' =>'158,295','products' => $productsWallpapers),
'productsWallpapersOriginal' =>array('title' =>'Artwork, Wallpapers (Original)','catTitleIds' =>'158,295','catIds' =>'158,295','products' => $productsWallpapersOriginal),
'productsAddons' =>array('title' =>'App Add-Ons','catTitleIds' =>'152','catIds' =>'152','products' => $productsAddons),
'productsApps' =>array('title' =>'Applications','catTitleIds' =>'233','catIds' =>'233','products' => $productsApps),
'productsScreenshots' =>array('title' =>'Concepts, Screenshots','catTitleIds' =>'445,225','catIds' =>'445,225','products' => $productsScreenshots),
"featureProducts" => Zend_Json::encode($feature)
);
?>
diff --git a/application/modules/default/views/scripts/home/index-opendesktop-test2.phtml b/application/modules/default/views/scripts/home/index-opendesktop-test2.phtml
index 7f7e16f1c..d522f4815 100755
--- a/application/modules/default/views/scripts/home/index-opendesktop-test2.phtml
+++ b/application/modules/default/views/scripts/home/index-opendesktop-test2.phtml
@@ -1,142 +1,143 @@
.
**/
$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();
$productsThemesGTK = $modelInfo->getJsonLastProductsForHostStores(5,"366,363,273,267,138,125,131,153,154,414,133");
$productsThemesPlasma = $modelInfo->getJsonLastProductsForHostStores(5,"365,119,123,266,114,118,349,417,101,100,111,422,423,446,417");
$productsWindowmanager = $modelInfo->getJsonLastProductsForHostStores(5,"117,267,139,143,142,140,141,144");
$productsIconsCursors= $modelInfo->getJsonLastProductsForHostStores(5,"386,107");
$productsScreenshots= $modelInfo->getJsonLastProductsForHostStores(5,"225,445");
$productsApps = $modelInfo->getJsonLastProductsForHostStores(5,233);
$productsAddons = $modelInfo->getJsonLastProductsForHostStores(5,"152");
$productsWallpapersOriginal = $modelInfo->getJsonLastProductsForHostStores(5,"295,158",null,true);
$productsWallpapers = $modelInfo->getJsonLastProductsForHostStores(5,"295,158",null,false);
$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();
$item;
foreach ($this->featureProducts as $i) {
$item = $i;
break;
}
$helpCategories = new Default_View_Helper_FetchCategoriesForProductAsString();
$imagehelper = new Default_View_Helper_Image();
$feature = array(
'project_id' => $item['project_id'],
'member_id' => $item['member_id'],
'username' => $item['username'],
'profile_image_url' => $imagehelper->Image($item['profile_image_url'],array('width' => 300, 'height' => 230, 'crop' => 1)),
'featured' => $item['featured'],
'description' => $item['description'],
'title' => $item['title'],
'category' => $helpCategories->fetchCategoriesForProductAsString($item['project_id']),
'image_small' => $item['image_small'],
'laplace_score' => $item['laplace_score'],
'count_likes' => $item['count_likes'],
'count_dislikes' => $item['count_dislikes'],
'changed_at' => $item['changed_at'],
'created_at' => $item['created_at'],
'count_comments' => $item['count_comments']
);
$response = array(
'productsThemesGTK' => array('title' =>'GTK/Gnome','catIds' =>'366','products' => $productsThemesGTK),
'productsThemesPlasma' => array('title' =>'KDE Plasma','catIds' =>'365','products' => $productsThemesPlasma),
'productsWindowmanager' =>array('title' =>'Window Managers','catIds' =>'147','products' => $productsWindowmanager),
'productsIconsCursors' =>array('title' =>'Icons, Cursors','catIds' =>'386,107','products' => $productsIconsCursors),
'productsWallpapers' =>array('title' =>'Artwork, Wallpapers','catIds' =>'158,295','products' => $productsWallpapers),
'productsWallpapersOriginal' =>array('title' =>'Artwork, Wallpapers (Original)','catIds' =>'158,295','products' => $productsWallpapersOriginal),
'productsAddons' =>array('title' =>'App Add-Ons','catIds' =>'152','products' => $productsAddons),
'productsApps' =>array('title' =>'Applications','catIds' =>'233','products' => $productsApps),
'productsScreenshots' =>array('title' =>'Concepts, Screenshots','catIds' =>'445,225','products' => $productsScreenshots),
"featureProducts" => Zend_Json::encode($feature)
);
?>
diff --git a/application/modules/default/views/scripts/home/index-opendesktop.phtml b/application/modules/default/views/scripts/home/index-opendesktop.phtml
index d279bd6e3..c8c55de80 100644
--- a/application/modules/default/views/scripts/home/index-opendesktop.phtml
+++ b/application/modules/default/views/scripts/home/index-opendesktop.phtml
@@ -1,381 +1,382 @@
.
**/
$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();
?>
featureProducts) {
echo $this->render('home/partials/featured-products.phtml');
}
?>
partial('/home/partials/product_group.phtml', array(
"title" => "GTK/Gnome",
"products" => $this->productsThemesGTK,
"catIDs" =>"366"
)
);
echo $this->partial('/home/partials/product_group.phtml', array(
"title" => "KDE Plasma",
"products" => $this->productsThemesPlasma,
"catIDs" =>"365"
)
);
?>
partial('/home/partials/product_group.phtml', array(
"title" => "Window Managers",
"products" => $this->productsWindowmanager,
"catIDs" =>"147"
)
);
echo $this->partial('/home/partials/product_group.phtml', array(
"title" => "Icons, Cursors",
"products" => $this->productsIconsCursors,
"catIDs" =>"386,107"
)
);
?>
partial('/home/partials/product_group.phtml', array(
"title" => "Artwork, Wallpapers ",
"products" => $this->productsWallpapers,
"catIDs" =>"158,295"
)
);
echo $this->partial('/home/partials/product_group.phtml', array(
"title" => "Artwork, Wallpapers (Original)",
"products" => $this->productsWallpapersOriginal,
"catIDs" =>"158,295"
)
);
?>
partial('/home/partials/product_group.phtml', array(
"title" => "App Add-Ons",
"products" => $this->productsAddons,
"catIDs" =>"152"
)
);
echo $this->partial('/home/partials/product_group.phtml', array(
"title" => "Applications",
"products" => $this->productsApps,
"catIDs" =>"233"
)
);
?>
partial('/home/partials/product_group.phtml', array(
"title" => "Concepts, Screenshots",
"products" => $this->productsScreenshots,
"catIDs" =>"445,225"
)
);
?>
partial('/home/partials/plingprojects.phtml', array(
"title" => "Recently plinged Products",
"projects" => $this->plingproducts
)
);
?>
partial('/home/partials/users.phtml', array(
"title" => "Latest Supporters",
"users" => $this->supporters
)
);
?>
partial('/home/partials/users.phtml', array(
"title" => "Latest Community Members ",
"users" => $this->users
)
);
?>
*/
?>
inlineScript()->appendScript(
' $(document).ready(function(){
TooltipUser.setup("tooltipuser","right");
TooltipUser.setup("tooltipuserleft","left");
TooltipUserPlings.setup("tooltipuserplings","right");
});
');
diff --git a/application/modules/default/views/scripts/home/partials/common_rightsidebar.phtml b/application/modules/default/views/scripts/home/partials/common_rightsidebar.phtml
index 5c797b7b1..0bf9a48d0 100644
--- a/application/modules/default/views/scripts/home/partials/common_rightsidebar.phtml
+++ b/application/modules/default/views/scripts/home/partials/common_rightsidebar.phtml
@@ -1,184 +1,185 @@
.
**/
$modelInfo = new Default_Model_Info();
$this->supporters = $modelInfo->getNewActiveSupporters(9);
$helpPrintDate = new Default_View_Helper_PrintDate();
$git_url = Zend_Registry::get('config')->settings->server->opencode->host;
?>
=$this->countSupporters?> people support
those who create freedom
supporters as $user) {
if($i++>6) break;
?>
see all
inlineScript()->appendScript(
' $(document).ready(function(){
RssNews.setup();
BlogJson.setup();
GitlabNewProjectsJson.setup("'.$git_url.'");
});
');
\ No newline at end of file