Code Duplication    Length = 10-13 lines in 2 locations

main/social/profile.php 1 location

@@ 516-528 (lines=13) @@
513
        $my_groups .= '<div class="panel panel-default">';
514
        $my_groups .= '<div class="panel-heading">'.get_lang('MyGroups').' ('.$count_groups.') </div>';
515
516
        if ($i > $max_numbers_of_group) {
517
            if (api_get_user_id() == $user_id) {
518
                $my_groups .=  '<div class="box_shared_profile_group_actions">'
519
                    .'<a href="groups.php?#tab_browse-1">'.get_lang('SeeAllMyGroups').'</a></div>';
520
            } else {
521
                $my_groups .=  '<div class="box_shared_profile_group_actions">'
522
                    .'<a href="'.api_get_path(WEB_CODE_PATH).'social/profile_friends_and_groups.inc.php'
523
                    .'?view=mygroups&height=390&width=610&user_id='.$user_id.'"'
524
                    .' class="ajax" title="'.get_lang('SeeAll').'" >'
525
                    .get_lang('SeeAllMyGroups')
526
                    .'</a></div>';
527
            }
528
        }
529
530
        $total = count($grid_my_groups);
531
        $i = 1;

main/inc/lib/social.lib.php 1 location

@@ 1757-1766 (lines=10) @@
1754
        $number_friends = count($friends);
1755
        $friendHtml = '';
1756
        if ($number_friends != 0) {
1757
            if ($number_friends > $number_of_images) {
1758
                if (api_get_user_id() == $user_id) {
1759
                    $friendHtml.= ' <span><a href="friends.php">'.get_lang('SeeAll').'</a></span>';
1760
                } else {
1761
                    $friendHtml.= ' <span>'
1762
                        .'<a href="'.api_get_path(WEB_CODE_PATH).'social/profile_friends_and_groups.inc.php'
1763
                        .'?view=friends&height=390&width=610&user_id='.$user_id.'"'
1764
                        .'class="ajax" data-title="'.get_lang('SeeAll').'" title="'.get_lang('SeeAll').'" >'.get_lang('SeeAll').'</a></span>';
1765
                }
1766
            }
1767
1768
            $friendHtml.= '<ul class="nav nav-list">';
1769
            $j = 1;