diff --git a/application/modules/default/views/scripts/user/aboutme.phtml b/application/modules/default/views/scripts/user/aboutme.phtml index 042ccb62e..7d5cefb29 100644 --- a/application/modules/default/views/scripts/user/aboutme.phtml +++ b/application/modules/default/views/scripts/user/aboutme.phtml @@ -1,604 +1,604 @@ . **/ $helperBuildMemberUrl = new Default_View_Helper_BuildMemberUrl(); $helperImage = new Default_View_Helper_Image(); $helpTruncate = new Default_View_Helper_Truncate(); $this->headTitle($this->member->username . ' - ' . $_SERVER['HTTP_HOST'], 'SET'); $this->doctype(Zend_View_Helper_Doctype::XHTML1_RDFA); $desc= isset($this->mainProject->description) ? nl2br(strip_tags($this->mainProject->description)): $this->member->username; $this->headMeta()->setName('description', $helpTruncate->truncate($desc, 200, '...', false, true)); $this->headMeta()->setName('title', $this->member->username . ' - ' . $_SERVER['HTTP_HOST']); $this->headMeta()->appendProperty('og:url', $helperBuildMemberUrl->buildMemberUrl($this->member->username)); $this->headMeta()->appendProperty('og:type', 'website'); $this->headMeta()->appendProperty('og:title', $this->member->username); $this->headMeta()->appendProperty('og:description', $helpTruncate->truncate($desc, 200, '...', false, true)); $this->headMeta()->appendProperty('og:image', $helperImage->Image($this->member->profile_image_url,array('width' => 110, 'height' => 110, 'crop' => 2))); $helperFetchMainCategories = new Default_View_Helper_FetchMainCategories(); $helperRatingWidget = new Default_View_Helper_PrintRatingWidget(); $categories = $helperFetchMainCategories->fetchMainCategories(); $helperAddDefaultScheme = new Default_View_Helper_AddDefaultScheme(); $helperBuildProductUrl = new Default_View_Helper_BuildProductUrl(); $helperTruncate = new Default_View_Helper_Truncate(); $helperImage = new Default_View_Helper_Image(); $helperPrintDate = new Default_View_Helper_PrintDate(); $textCountryCity = $this->member->city; $textCountryCity .= $this->member->country ? ', ' . $this->member->country : ''; $helperMemberScore = new Default_View_Helper_FetchMemberScore(); $isSupporter = $this->stat['donationIssupporter']; $url_gitlab = Zend_Registry::get('config')->settings->client->default->url_gitlab; $url_forum = Zend_Registry::get('config')->settings->client->default->url_forum; $memberProfile = $helperImage->Image($this->member->profile_image_url,array('width' => 110, 'height' => 110, 'crop' => 2)); ?>
Image 01
S profile-image member->roleId==Default_Model_DbTable_Member::ROLE_ID_MODERATOR) { ?>
MODERATOR

member->username; ?>

member->firstname ) :?> member->firstname; ?> member->lastname; ?>
userRole(); ?>
link to hive delete user
member->pling_excluded == 1 ? ' checked=\'checked\' ' : ''; ?> /> user-pling-excluded
userProducts) { ?>
render('user/partials/aboutme-products.phtml'); ?>
stat['cntFProducts']>0){ ?>
userProducts = $this->userFeaturedProducts; $this->projectpage = 1; $this->total_records=0; if ($this->userProducts) { ?>
- render('user/partials/aboutme-products.phtml'); ?> + render('user/partials/aboutme-featured.phtml'); ?>
render('user/partials/loopMyComments.phtml'); ?>
likes->getTotalItemCount()>0){ ?>
render('user/partials/aboutme-likes.phtml'); ?>
plings->getTotalItemCount()>0){ ?>
render('user/partials/aboutme-plings.phtml'); ?>
supportersplings->getTotalItemCount()>0){ ?>
render('user/partials/aboutme-supporters.phtml'); ?>
rated)>0){ ?>
render('user/partials/loopRated.phtml'); ?>
inlineScript()->appendScript( ' $(document).ready(function(){ InitActiveHashTab.setup(); AboutMeMyProjectsPaging.setup(); AboutMeMyProjectsPagingButton.setup(); TooltipUser.setup("tooltipuser","right"); $(\'[data-toggle="popover"]\').popover(); }); '); diff --git a/application/modules/default/views/scripts/user/partials/aboutme-products.phtml b/application/modules/default/views/scripts/user/partials/aboutme-featured.phtml similarity index 84% copy from application/modules/default/views/scripts/user/partials/aboutme-products.phtml copy to application/modules/default/views/scripts/user/partials/aboutme-featured.phtml index 5ffa2d9d1..eeb0496c8 100644 --- a/application/modules/default/views/scripts/user/partials/aboutme-products.phtml +++ b/application/modules/default/views/scripts/user/partials/aboutme-featured.phtml @@ -1,92 +1,74 @@ - userProducts == null || count($this->userProducts)==0) return; - $ix_last=0; - $ix_next=0; - $cat_last=''; - $cat_next=''; + foreach ($this->userProducts as $product): - - $catid= $product['project_category_id']; - if($catid!=$cat_last) - { - echo '
'.$product['cat1'].'>>>>>>>>>'.$product['cat2'].'
'; - } + ?>

printDate($product['project_changed_at']) ?>
0) { ?>
widgetRating = new stdClass(); $this->widgetRating->project_id = $product['project_id']; $this->widgetRating->laplace_score = $product['laplace_score']; $this->widgetRating->count_likes = $product['count_likes']; $this->widgetRating->count_dislikes = $product['count_dislikes']; echo $this->render('partials/widgetRating.phtml'); ?>
total_records / $this->pageLimit); if($this->projectpage<$total_pages){ echo ''; } ?> \ No newline at end of file diff --git a/application/modules/default/views/scripts/user/partials/aboutme-products.phtml b/application/modules/default/views/scripts/user/partials/aboutme-products.phtml index 5ffa2d9d1..62d853b42 100644 --- a/application/modules/default/views/scripts/user/partials/aboutme-products.phtml +++ b/application/modules/default/views/scripts/user/partials/aboutme-products.phtml @@ -1,92 +1,94 @@ userProducts == null || count($this->userProducts)==0) return; - $ix_last=0; - $ix_next=0; + $cat_last=''; - $cat_next=''; foreach ($this->userProducts as $product): - $catid= $product['project_category_id']; if($catid!=$cat_last) { - echo '
'.$product['cat1'].'>>>>>>>>>'.$product['cat2'].'
'; + $title = $product['cat1']; + if($product['cat2']!=$product['cat1']) $title = $title.' ->' . $product['cat2']; + if($product['cat3']!=$product['cat2']) $title = $title.' ->' . $product['cat3']; + + echo '
'.$title.'
'; } ?>

printDate($product['project_changed_at']) ?>
0) { ?>
widgetRating = new stdClass(); $this->widgetRating->project_id = $product['project_id']; $this->widgetRating->laplace_score = $product['laplace_score']; $this->widgetRating->count_likes = $product['count_likes']; $this->widgetRating->count_dislikes = $product['count_dislikes']; echo $this->render('partials/widgetRating.phtml'); ?>
total_records / $this->pageLimit); if($this->projectpage<$total_pages){ echo ''; } ?> \ No newline at end of file