Browse the code

 

Differences between 596 and 597 on /.
Number of edited files: 20 (2 added, 2 deleted and 16 modified)
Revision 597

About 1 month and 4 days ago.

* Started a full rewrite of the webdesign (new scheme, new navigation, new appearance)
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
35
35
// Require all global functions
36
36
require(dirname(__FILE__).'/../globalFunctions.php');
37
37

                                        
38
 

                                    
39
38
/**
40
39
 * CodingTeam class
41
40
 */
102
101
            Header ('Location: '.CT_BASEURL.'index');
103
102
            exit();
104
103
        }
105
 
 
 
104

                                    
106
105
        // List all available language
107
106
        $langlist = array('en');
108
107
        $langdir = opendir(CT_BASEDIR.'/i18n/');
116
115
        {
117
116
            $accept_language = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
118
117

                                        
119
 
            foreach ($accept_language as $value) 
 
118
            foreach ($accept_language as $value)
120
119
            {
121
120
                // Get the language code
122
121
                $choice = mb_substr($value, 0, 2);
123
122

                                        
124
 
                // Check if the language is in the list 
 
123
                // Check if the language is in the list
125
124
                if (in_array($choice, $langlist))
126
125
                {
127
126
                    $lang = $choice;
295
294
                                $visitor_locale, $error, $start_time);
296
295
    }
297
296
}
298
 
?>
 
297
?>
299
298

                                        

 

Old New Code
159
159
                         mb_substr($this->lang, 0, 2).'-'.
160
160
                         str_replace('/', '-', getURLbyTags($this->page));
161
161

                                        
162
 
        if ( (file_exists($cachenamefile) && 
 
162
        if ( (file_exists($cachenamefile) &&
163
163
              filemtime($cachenamefile) < time() - ( 3600 * 24 * 7 )) ||
164
164
             !file_exists($cachenamefile) )
165
165
        {
191
191
                                      $this->langlist, $this->lang);
192
192

                                        
193
193
                $atom_array = $view_atom->showFeed();
194
 
            
 
194

                                    
195
195
                if (!is_array($atom_array))
196
196
                    $this->error->displayError(i18n('404 Document not found.'),
197
197
                                               0, '404 Not Found');
231
231
                foreach ($atom_array['threads'] as $thread)
232
232
                {
233
233
                    $item = $xml->createElement('entry');
234
 
                    $item->appendChild($xml->createElement('title', 
 
234
                    $item->appendChild($xml->createElement('title',
235
235
                                                           $thread['title']));
236
236

                                        
237
237
                    $time = convertDate($thread['pubDate'],
262
262
            }
263
263

                                        
264
264
            // Prepare the output
265
 
            $xml->formatOutput = true; 
 
265
            $xml->formatOutput = true;
266
266
            $tpl_show = $xml->saveXML();
267
267

                                        
268
268
            // Maximum files in cache
299
299
        }
300
300
        else
301
301
            $tpl_show = file_get_contents($cachenamefile);
302
 
        
 
302

                                    
303
303
        // Show the result
304
304
        echo $tpl_show;
305
305
    }
358
358
                                     $this->langlist, $this->lang);
359
359

                                        
360
360
                $rss_array = $view_rss->showFeed();
361
 
            
 
361

                                    
362
362
                if (!is_array($rss_array))
363
363
                    $this->error->displayError(i18n('404 Document not found.'),
364
364
                                               0, '404 Not Found');
375
375
            $rss->setAttribute('version', '2.0');
376
376
            $rss->setAttribute('xmlns:dc', 'http://purl.org/dc/elements/1.1/');
377
377
            $xml->appendChild($rss);
378
 
            
 
378

                                    
379
379
            $channel = $xml->createElement('channel');
380
380
            $rss->appendChild($channel);
381
381

                                        
414
414
            }
415
415

                                        
416
416
            // Prepare the output
417
 
            $xml->formatOutput = true; 
 
417
            $xml->formatOutput = true;
418
418
            $tpl_show = $xml->saveXML();
419
419

                                        
420
420
            // Maximum files in cache
451
451
        }
452
452
        else
453
453
            $tpl_show = file_get_contents($cachenamefile);
454
 
        
 
454

                                    
455
455
        // Show the result
456
456
        echo $tpl_show;
457
457
    }
685
685
                        $moduleview = 'views/'.$wished_view;
686
686

                                        
687
687
                        // Exit if view is disabled
688
 
                        $is_active = $view['active']; 
 
688
                        $is_active = $view['active'];
689
689
                        if ($is_active == 'FALSE')
690
690
                            $this->error->displayError(i18n('This feature has'.
691
691
                                   ' been disabled by an administrator.'), 0);
758
758
        include($tpl_file);
759
759

                                        
760
760
        $page_content = ob_get_contents();
761
 
        ob_end_clean(); 
 
761
        ob_end_clean();
762
762

                                        
763
763
        /* Ok. Now, we have generated our view based on the template and the
764
764
         * view class related to the request.
859
859
            $head['head_member']->getPageContent();
860
860
            $temp['view:head_member'] = ob_get_clean();
861
861
        }
862
 
        
 
862

                                    
863
863
        if (array_key_exists('head_search', $head))
864
864
        {
865
865
            ob_start();
919
919
        if (isset($menu))
920
920
        {
921
921
            $basemenu = $menu->getPageMenu($tmp_title[0]);
922
 
            $temp['view:pagemenu'] = $basemenu;
 
922
            $temp['view:pagemenu'] = $basemenu[0];
 
923
            if (isset($basemenu[1][0]))
 
924
                $temp['view:pagename'] = '<h1><a href="'.$basemenu[1][0].'">'.$basemenu[1][1].'</a></h1>';
 
925
            else
 
926
                $temp['view:pagename'] = '';
 
927
            $temp['view:additionalmenu'] = $basemenu[2];
 
928
            $temp['view:pagelogo'] = $basemenu[3];
923
929
        }
924
930
        else
925
931
            $temp['view:pagemenu'] = '';
962
968
     * Color palettes are inspired by Google Material design guidelines.
963
969
     * More information: https://www.google.com/design/spec/style/color.html
964
970
     * All 10 available color palettes are:
965
 
     * 0    blue            default, recommended
966
 
     * 1    teal            recommended
967
 
     * 2    grey            recommended
968
 
     * 3    brown           recommended
969
 
     * 4    black & white   recommended
970
 
     * 5    purple
971
 
     * 6    green
972
 
     * 7    orange
973
 
     * 8    cyan
974
 
     * 9    pink
 
971
     * 0    codingteam      default
 
972
     * 1    blue
 
973
     * 2    teal
 
974
     * 3    grey
 
975
     * 4    brown
 
976
     * 5    cyan
 
977
     * 6    purple
 
978
     * 7    green
 
979
     * 8    orange
 
980
     * 9    black & white
975
981
     */
976
982
    function parseCSS ($colorpalette=0)
977
983
    {
978
984
        $input_css = file_get_contents(CT_BASEDIR.implode('/', $this->page));
979
985

                                        
980
 
        if ($colorpalette == 0) // Default color palette (blue)
 
986
        if ($colorpalette == 0) //Default color palette
 
987
            $palette = array('color_50'  => '#fff',
 
988
                             'color_100' => '#fafafa',
 
989
                             'color_200' => '#f0f0f0',
 
990
                             'color_300' => '#CECECE',
 
991
                             'color_400' => '#ADADAD',
 
992
                             'color_500' => '#2196f3',
 
993
                             'color_600' => '#6A6E7D',
 
994
                             'color_700' => '#5A5E6B',
 
995
                             'color_800' => '#4D515C',
 
996
                             'color_900' => '#000');
 
997
        elseif ($colorpalette == 1) // Color palette n°1: blue
981
998
            $palette = array('color_50'  => '#e3f2fd',
982
999
                             'color_100' => '#bbdefb',
983
1000
                             'color_200' => '#90caf9',
988
1005
                             'color_700' => '#1976d2',
989
1006
                             'color_800' => '#1565c0',
990
1007
                             'color_900' => '#0d47a1');
991
 
        elseif ($colorpalette == 1) // Color palette n°1: teal
 
1008
        elseif ($colorpalette == 2) // Color palette n°2: teal
992
1009
            $palette = array('color_50'  => '#e0f2f1',
993
1010
                             'color_100' => '#b2dfdb',
994
1011
                             'color_200' => '#80cbc4',
999
1016
                             'color_700' => '#00796b',
1000
1017
                             'color_800' => '#00695c',
1001
1018
                             'color_900' => '#004d40');
1002
 
        elseif ($colorpalette == 2) // Color palette n°2: grey
 
1019
        elseif ($colorpalette == 3) // Color palette n°3: grey
1003
1020
            $palette = array('color_50'  => '#eceff1',
1004
1021
                             'color_100' => '#cfd8dc',
1005
1022
                             'color_200' => '#b0bec5',
1010
1027
                             'color_700' => '#455a64',
1011
1028
                             'color_800' => '#37474f',
1012
1029
                             'color_900' => '#263238');
1013
 
        elseif ($colorpalette == 3) // Color palette n°3: brown
 
1030
        elseif ($colorpalette == 4) // Color palette n°4: brown
1014
1031
            $palette = array('color_50'  => '#efebe9',
1015
1032
                             'color_100' => '#d7ccc8',
1016
1033
                             'color_200' => '#bcaaa4',
1021
1038
                             'color_700' => '#5d4037',
1022
1039
                             'color_800' => '#4e342e',
1023
1040
                             'color_900' => '#3e2723');
1024
 
        elseif ($colorpalette == 4) // Color palette n°4: black & white
1025
 
            $palette = array('color_50'  => '#fafafa',
1026
 
                             'color_100' => '#f5f5f5',
1027
 
                             'color_200' => '#eeeeee',
1028
 
                             'color_300' => '#e0e0e0',
1029
 
                             'color_400' => '#bdbdbd',
1030
 
                             'color_500' => '#9e9e9e',
1031
 
                             'color_600' => '#757575',
1032
 
                             'color_700' => '#616161',
1033
 
                             'color_800' => '#424242',
1034
 
                             'color_900' => '#212121');
1035
 
        elseif ($colorpalette == 5) // Color palette n°5: purple
 
1041
        elseif ($colorpalette == 5) // Color palette n°5: cyan
 
1042
            $palette = array('color_50'  => '#e0f7fa',
 
1043
                             'color_100' => '#b2ebf2',
 
1044
                             'color_200' => '#80deea',
 
1045
                             'color_300' => '#4dd0e1',
 
1046
                             'color_400' => '#26c6da',
 
1047
                             'color_500' => '#00bcd4',
 
1048
                             'color_600' => '#00acc1',
 
1049
                             'color_700' => '#0097a7',
 
1050
                             'color_800' => '#00838f',
 
1051
                             'color_900' => '#006064');
 
1052
        elseif ($colorpalette == 6) // Color palette n°6: purple
1036
1053
            $palette = array('color_50'  => '#f3e5f5',
1037
1054
                             'color_100' => '#e1bee7',
1038
1055
                             'color_200' => '#ce93d8',
1043
1060
                             'color_700' => '#7b1fa2',
1044
1061
                             'color_800' => '#6a1b9a',
1045
1062
                             'color_900' => '#4a148c');
1046
 
        elseif ($colorpalette == 6) // Color palette n°6: green
 
1063
        elseif ($colorpalette == 7) // Color palette n°7: green
1047
1064
            $palette = array('color_50'  => '#e8f5e9',
1048
1065
                             'color_100' => '#c8e6c9',
1049
1066
                             'color_200' => '#a5d6a7',
1054
1071
                             'color_700' => '#388e3c',
1055
1072
                             'color_800' => '#2e7d32',
1056
1073
                             'color_900' => '#1b5e20');
1057
 
        elseif ($colorpalette == 7) // Color palette n°7: orange
 
1074
        elseif ($colorpalette == 8) // Color palette n°8: orange
1058
1075
            $palette = array('color_50'  => '#fbe9e7',
1059
1076
                             'color_100' => '#ffccbc',
1060
1077
                             'color_200' => '#ffab91',
1065
1082
                             'color_700' => '#e64a19',
1066
1083
                             'color_800' => '#d84315',
1067
1084
                             'color_900' => '#bf360c');
1068
 
        elseif ($colorpalette == 8) // Color palette n°8: cyan
1069
 
            $palette = array('color_50'  => '#e0f7fa',
1070
 
                             'color_100' => '#b2ebf2',
1071
 
                             'color_200' => '#80deea',
1072
 
                             'color_300' => '#4dd0e1',
1073
 
                             'color_400' => '#26c6da',
1074
 
                             'color_500' => '#00bcd4',
1075
 
                             'color_600' => '#00acc1',
1076
 
                             'color_700' => '#0097a7',
1077
 
                             'color_800' => '#00838f',
1078
 
                             'color_900' => '#006064');
1079
 
        elseif ($colorpalette == 9) // Color palette n°9: pink
1080
 
            $palette = array('color_50'  => '#fce4ec',
1081
 
                             'color_100' => '#f8bbd0',
1082
 
                             'color_200' => '#f48fb1',
1083
 
                             'color_300' => '#f06292',
1084
 
                             'color_400' => '#ec407a',
1085
 
                             'color_500' => '#e91e63',
1086
 
                             'color_600' => '#d81b60',
1087
 
                             'color_700' => '#c2185b',
1088
 
                             'color_800' => '#ad1457',
1089
 
                             'color_900' => '#880e4f');
 
1085
        elseif ($colorpalette == 9) // Color palette n°9: black & white
 
1086
            $palette = array('color_50'  => '#fafafa',
 
1087
                             'color_100' => '#f5f5f5',
 
1088
                             'color_200' => '#eeeeee',
 
1089
                             'color_300' => '#e0e0e0',
 
1090
                             'color_400' => '#bdbdbd',
 
1091
                             'color_500' => '#9e9e9e',
 
1092
                             'color_600' => '#757575',
 
1093
                             'color_700' => '#616161',
 
1094
                             'color_800' => '#424242',
 
1095
                             'color_900' => '#212121');
1090
1096

                                        
1091
1097
        // Edit the CSS
1092
1098
        foreach ($palette as $key => $value)
1093
1099

                                        

 

Old New Code
41
41
                if (!is_scalar($_POST['login_nickname']) &&
42
42
                    !is_scalar($_POST['login_password']))
43
43
                    exit('Error.');
44
 
        
 
44

                                    
45
45
                if (!$this->ct_session->isLogged())
46
46
                {
47
47
                    if(!empty($_POST['auto']))
130
130
            $jid = md5(htmlspecialchars($user->getJid()));
131
131

                                        
132
132
            $omnipresence = $this->config->get('jabber', 'omnipresence-url');
133
 
            
 
133

                                    
134
134
            $file = 'public/upload/avatars/'.$nickname;
135
135
            $none = 'public/images/icons/user-avatar_128.png';
136
 
        
 
136

                                    
137
137
            if ($avatar == '!jabber!')
138
138
                $logourl = $omnipresence.'avatar.php?hash='.$jid.
139
139
                           '&amp;default='.CT_BASEURL.$none;
157
157
                                                       $user->getDashboard_lastelement());
158
158

                                        
159
159
            echo '
160
 
              <div id="user">
161
 
                <img src="public/images/icons/user_menu.png" alt="menu" />
162
 
                <ul>
163
 
                  <li><a href="users/show/'.$nickname.'">
164
 
                    <img src="public/images/icons/user-profile.png" alt="profile" /><span>'.i18n('User profile').'</span></a></li>
165
 
                  <li><a href="users/briefcase">
166
 
                    <img src="public/images/icons/user-briefcase.png" alt="briefcase" /><span>'.i18n('Briefcase').'</span></a></li>
167
 
                  <li><a href="users/register/'.$nickname.'">
168
 
                    <img src="public/images/icons/user-profileedit.png" alt="edit" /><span>'.i18n('Edit profile').'</span></a></li>
169
 
                  <li><a href="projects/add">
170
 
                    <img src="public/images/icons/user-projectadd.png" alt="add" /><span>'.i18n('Add a project').'</span></a></li>
171
 
                  <li><a href="teams/create">
172
 
                    <img src="public/images/icons/user-teamcreate.png" alt="create" /><span>'.i18n('Create a team').'</span></a></li>
173
 
                  <li><a href="users/logout">
174
 
                    <img src="public/images/icons/user-logout.png" alt="logout" /><span>'.i18n('Log out').'</span></a></li>
175
 
                </ul>
176
 
              </div>
177
 
              <div id="userlinks">
178
 
                <a href="users/messages">
179
 
                  <img src="public/images/icons/user_messages.png" alt="messages" /><div id="up_mess_elem">'.
180
 
                  (($unread > 0) ? '<span>'.$unread.'</span>' : '').'
181
 
                  </div><span class="title">'.i18n('Messages').'</span></a>
 
160
              <li class="user" style="background-image: url(\''.$logourl.'\');">;
 
161
                <a href="users/show/'.$nickname.'">'.$nickname.'</a>
 
162
              </li>
182
163

                                        
 
164
              <li class="useractions">
183
165
                <a href="dashboard">
184
 
                  <img src="public/images/icons/user_dashboard.png" alt="dashboard" /><div id="up_dash_elem">'.
185
 
                  (($activities > 0) ? '<span>'.$activities.'</span>' : '').'
186
 
                  </div><span class="title">'.i18n('Dashboard').'</span></a>
187
 
              </div>
 
166
                  <div id="up_dash_elem">'.(($activities > 0) ? '<span>'.$activities.'</span>' : '').'
 
167
                  </div>'.i18n('Dashboard').'</a></li>
188
168

                                        
 
169
              <li class="useractions">
 
170
                <a href="users/messages">
 
171
                  <div id="up_mess_elem">'.(($unread > 0) ? '<span>'.$unread.'</span>' : '').'
 
172
                  </div>'.i18n('Messages').'</a></li>
 
173

                                    
 
174
              <li><a href="users/briefcase">'.i18n('Briefcase').'</a></li>
 
175
              <li><a href="users/register/'.$nickname.'">'.i18n('Edit profile').'</a></li>
 
176
              <li><a href="projects/add">'.i18n('Add a project').'</a></li>
 
177
              <li><a href="teams/create">'.i18n('Create a group').'</a></li>
 
178
              <li><a href="users/logout">'.i18n('Log out').'</a></li>
 
179

                                    
 
180

                                    
189
181
            <script type="text/javascript">
190
182

                                        
191
183
initial_title = document.title;
192
184

                                        
 
185
function sendNotification(title, text)
 
186
{
 
187
  /*
 
188
  #TODO: develop this function.
 
189

                                    
 
190
  if ((\'Notification\' in window))
 
191
  {
 
192
    if (Notification.permission !== \'denied\')
 
193
      Notification.requestPermission(function (permission) {
 
194
        if(!(\'permission\' in Notification)) {
 
195
          Notification.permission = permission;
 
196
        }
 
197
      });
 
198

                                    
 
199
    if (Notification.permission === \'granted\')
 
200
      var notification = new Notification(title,
 
201
        {icon: \'public/images/logos/ct_cube.png\',
 
202
         body: text});
 
203
  }
 
204
  */
 
205
}
 
206

                                    
 
207

                                    
193
208
function update_informations()
194
209
{
195
210
  xmlhttp = new XMLHttpRequest();
223
238
    sp2.innerHTML = \'\';
224
239

                                        
225
240
  if (dashboard > 0 || messages > 0)
 
241
  {
226
242
    document.title = \'(\' + (dashboard + messages) + \') \' + initial_title;
 
243

                                    
 
244
    sendNotification(\''.i18n('%(total)s new activities!', array('total' => '\'+(dashboard + messages)+\'')).'\',
 
245
                     \''.i18n('You should take a look at your account.').'\');
 
246

                                    
 
247
  }
227
248
  else
228
249
    document.title = initial_title;
229
250

                                        
242
263
        }
243
264
    }
244
265
}
245
 
?>
 
266
?>
246
267

                                        

 

Old New Code
47
47
        echo '
48
48
        <form action="search/" method="get">
49
49

                                        
50
 
          <div style="position: relative;"><a href="projects/add" style="float: left;padding-right: 10px;" class="addprjicon">
51
 
            <img src="public/images/icons/addproject_24.png" alt="add a project" />
52
 
            <span class="title">'.i18n('Add a project').'</span>
53
 
          </a></div>
54
 

                                    
55
50
          <div class="input">';
56
51

                                        
57
52
        if ($this->page[1] == 'project' && isset($this->page[2]))
59
54
            echo '<input type="hidden" name="project" value="'.
60
55
                 htmlspecialchars($this->page[2]).'" />';
61
56

                                        
62
 
            $text = i18n('Search in this project');
 
57
            $text = i18n('This project');
63
58
        }
64
59
        else
65
 
            $text = i18n('Search');
 
60
            $text = i18n('Forge');
66
61

                                        
67
62
        echo '<label for="inputsearch">'.$text.'</label>
68
63
              <input type="text" size="10" maxlength="255" name="keyword"
69
 
                                                         id="inputsearch" />
 
64
                     id="inputsearch" placeholder="'.i18n('Search').'" />
70
65
          </div>
71
66

                                        
72
67
        </form>';
73
68
    }
74
69
}
75
 
?>
 
70
?>
76
71

                                        

 

Old New Code
34
34
        // Notepad menu
35
35
        $this->notepadmenu = array('module' => 'index',
36
36
                                   'link' => 'index',
37
 
                                   'title' => i18n('Projects list'),
 
37
                                   'title' => i18n('Projects'),
38
38
                                   'position' => 0,
39
39
                                   'force_login' => FALSE);
40
40

                                        
49
49

                                        
50
50
    function getPageMenu($page_title)
51
51
    {
52
 
        $this->pagemenu .= '
53
 
            <div id="header_page_content_title">
54
 
              <a href="index"><img src="public/images/logos/ct_cube_material.png" alt="projects list" class="project" /><img src="public/images/icons/goback.png" alt="" class="back" /></a>
55
 
              <h1 class="project">'.i18n('Projects list').'</h1>
56
 
            </div>';
 
52
        $this->pagemenu .= '';
57
53

                                        
58
 
        return $this->pagemenu;
 
54
        return array(// Module menu
 
55
                     $this->pagemenu,
 
56
                     // Page title and URL
 
57
                     array(),
 
58
                     // Additional menu
 
59
                     '',
 
60
                     // Page logo
 
61
                     'public/images/logos/ct_cube.png'
 
62
                     );
59
63
    }
60
64
}
61
65
?>
62
66

                                        

 

Old New Code
7
7

                                        
8
8
<p class="spacer" style="height: 5px;">&nbsp;</p>
9
9

                                        
10
 
<div class="projects_box">
 
10
<div class="prettylist_box">
11
11
<h2><?=$subtitle;?></h2>
12
12

                                        
13
 
<div class="project_order">
 
13
<div class="prettylist_order">
14
14
  <div class="criteria <? if ($orderby == 'name'): ?>current<? endif; ?>">
15
15
    <a href="index/default<?=$link;?>name:asc"><img src="public/images/icons/sort-asc.png" alt="sort" /></a>
16
16
    <a href="index/default<?=$link;?>name:desc"><img src="public/images/icons/sort-desc.png" alt="sort" /></a>
17
17
    <?=i18n('Project name');?>
18
18
  </div>
19
19

                                        
 
20
  <div class="criteria <? if ($orderby == 'downloads'): ?>current<? endif; ?>">
 
21
    <a href="index/default<?=$link;?>downloads:asc"><img src="public/images/icons/sort-asc.png" alt="sort" /></a>
 
22
    <a href="index/default<?=$link;?>downloads:desc"><img src="public/images/icons/sort-desc.png" alt="sort" /></a>
 
23
    <?=i18n('Downloads');?>
 
24
  </div>
 
25

                                    
20
26
  <div class="criteria <? if ($orderby == 'date'): ?>current<? endif; ?>">
21
27
    <a href="index/default<?=$link;?>date:asc"><img src="public/images/icons/sort-asc.png" alt="sort" /></a>
22
28
    <a href="index/default<?=$link;?>date:desc"><img src="public/images/icons/sort-desc.png" alt="sort" /></a>
23
29
    <?=i18n('Registered');?>
24
30
  </div>
25
 

                                    
26
 
  <div class="criteria <? if ($orderby == 'downloads'): ?>current<? endif; ?>">
27
 
    <a href="index/default<?=$link;?>downloads:asc"><img src="public/images/icons/sort-asc.png" alt="sort" /></a>
28
 
    <a href="index/default<?=$link;?>downloads:desc"><img src="public/images/icons/sort-desc.png" alt="sort" /></a>
29
 
    <?=i18n('Downloads');?>
30
 
  </div>
31
31
</div>
32
32

                                        
33
33
<? if ($nb_prj > 0): ?>
34
34
<? foreach ($projects as $project): ?>
35
 
  <div class="projects_browsing">
 
35
  <div class="prettylist_browsing">
36
36
    <span class="date"><?=$project['date'];?></span>
37
37
    <span class="download"><?=$project['downloads'];?></span>
38
38

                                        
39
39

                                        

 

Old New Code
17
17
class PasteMenu {
18
18
    private $ct_db, $lang, $ct_session, $page, $xmlmodule;
19
19
    public $notepadmenu, $pagemenu;
20
 
    
 
20

                                    
21
21
    function __construct($db, $lang, $session, $page, $xmlmodule)
22
22
    {
23
23
        // Acces to database
34
34
        // Notepad menu
35
35
        $this->notepadmenu = array('module' => 'paste',
36
36
                                   'link' => 'paste',
37
 
                                   'title' => i18n('Notepad'),
 
37
                                   'title' => i18n('Snippets'),
38
38
                                   'position' => 4,
39
39
                                   'force_login' => FALSE);
40
40

                                        
49
49

                                        
50
50
    function getPageMenu($page_title)
51
51
    {
52
 
        $this->pagemenu .= '
53
 
            <div id="header_page_content_title">
54
 
              <a href="paste"><img src="public/images/icons/icon_paste.png" alt="notepad" class="project" /><img src="public/images/icons/goback.png" alt="" class="back" /></a>
55
 
              <h1 class="project">'.i18n('Notepad').'</h1>'.(($page_title != i18n('Notepad')) ? '<h1 class="page">'.$page_title.'</h1>' : '').'
56
 
            </div>';
 
52
        $this->pagemenu .= '';
57
53

                                        
58
54
        $show = TRUE;
59
55
        if (isset($this->page[2]) && $this->page[2] == 'new')
62
58
        if ($show)
63
59
            $this->pagemenu .= '<a href="paste/new" id="page_add_content"><img src="public/images/icons/icon_write.png" alt="notepad-add" /><span class="title">'.i18n('Paste something on the notepad').'</span></a>';
64
60

                                        
65
 
        return $this->pagemenu;
 
61
        return array(// Module menu
 
62
                     $this->pagemenu,
 
63
                     // Page title and URL
 
64
                     array(),
 
65
                     // Additional menu
 
66
                     '',
 
67
                     // Page logo
 
68
                     'public/images/logos/ct_cube.png'
 
69
                     );
66
70
    }
67
71
}
68
 
?>
 
72
?>
69
73

                                        

 

Old New Code
1
 
<h1 style="margin-bottom: 20px;"><?=i18n('Notepad');?></h1>
2
 

                                    
3
1
<? if (!$has_paste): ?>
4
2
  <em><?=i18n('Not yet.');?></em>
5
3
<? else: ?>
6
 
  <h2><?=i18n('Latest 20 pastes');?></h2>
7
4

                                        
 
5
  <p class="spacer" style="height: 5px;">&nbsp;</p>
 
6

                                    
8
7
  <div class="feed" style="float: right;">
9
8
    <?=$feed;?></div>
10
9

                                        
11
 
  <table style="width: 100%;">
12
 
    <thead>
13
 
      <tr>
14
 
        <th><?=i18n('Snippet title');?></th>
15
 
        <th><?=i18n('Author');?></th>
16
 
        <th><?=i18n('Language');?></th>
17
 
      </tr>
18
 
    </thead>
19
 
    <tbody>
 
10
  <div class="prettylist_box">
 
11
    <h2><?=i18n('Latest 20 pastes');?></h2>
 
12

                                    
 
13
    <div class="prettylist_order">
 
14
      <div class="criteria current">
 
15
        <?=i18n('Date posted');?>
 
16
      </div>
 
17
    </div>
 
18

                                    
20
19
    <? for($i=0; $i<sizeof($list); $i++): ?>
21
20
    <? (($i & 1) ? $cl = 'background_table_second' : $cl = 'background_table_first'); ?>
22
 
      <tr>
23
 
        <td style="width: 50%;" class="<?=$cl;?>">
24
 
          <a href="<?=$list[$i]['link'];?>"><strong><?=$list[$i]['title'];?></strong></a></td>
25
 
        <td style="width: 25%;" class="<?=$cl;?>"><?=$list[$i]['nick'];?></td>
26
 
        <td style="width: 25%;" class="<?=$cl;?>"><em><?=$list[$i]['lang'];?></em></td>
27
 
      </tr>
 
21
      <div class="prettylist_browsing">
 
22
        <h3><a href="<?=$list[$i]['link'];?>"><?=$list[$i]['title'];?></a></h3>
 
23
        <span><?=$list[$i]['lang'];?></span>
 
24
        <span><?=i18n('Snippet by %(nick)s.', array('nick' => $list[$i]['nick']));?></span>
 
25
      </div>
28
26
    <? endfor; ?>
29
 
    </tbody>
30
 
  </table>
31
 
<? endif; ?>
 
27

                                    
 
28
  </div>
 
29
<? endif; ?>
32
30

                                        

 

Old New Code
17
17
class ProjectMenu {
18
18
    private $ct_db, $lang, $ct_session, $page, $xmlmodule;
19
19
    public $notepadmenu, $pagemenu;
20
 
    
 
20

                                    
21
21
    function __construct($db, $lang, $session, $page, $xmlmodule)
22
22
    {
23
23
        // Acces to database
75
75
        else
76
76
            exit('Error.');
77
77

                                        
 
78
        // Number of open tickets in the tasks manager
 
79
        $project_bugs = getClass('project.bugs', $this->ct_db);
 
80
        $all = $project_bugs->count(array('projectid' => $this->id));
 
81
        $res = $project_bugs->count(array('projectid' => $this->id, 'status' => 'resolved')) + $project_bugs->count(array('projectid' => $this->id, 'status' => 'rejected'));
 
82
        $opentickets = $all - $res;
 
83

                                    
 
84
        // Number of topics in the forum
 
85
        $forum = getClass('project.forum', $this->ct_db);
 
86
        $messages_global = $forum->countTopics('global', $this->id);
 
87
        $messages_userscomments = $forum->countTopics('userscomments', $this->id);
 
88
        $messages_developement = $forum->countTopics('developement', $this->id);
 
89
        $messages_help = $forum->countTopics('help', $this->id);
 
90
        $messages_total = ($messages_global +
 
91
                           $messages_userscomments +
 
92
                           $messages_developement +
 
93
                           $messages_help);
 
94

                                    
78
95
        // Page menu
79
96
        $file = 'public/upload/projects/'.$this->dbname.'/'.$this->logo;
80
97

                                        
85
102
        else
86
103
            $url = $this->logo;
87
104

                                        
88
 
        $this->pagemenu = '<div id="header_page_content_buttons">
89
 
              <ul>';
 
105
        $this->pagemenu = '<ul>;
 
106
        <li><a href="project/'.$this->dbname.'" '.((!isset($this->page[3])) ? 'class="current"' : '').' />'.i18n('Project').'</a></li>';
90
107

                                        
91
108
        if ($this->views['timeline'] == 'TRUE')
92
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/timeline"><img src="public/images/icons/icon_activity.png" alt="project-timeline" '.((isset($this->page[3]) && $this->page[3] == 'timeline') ? 'class="current"' : '').' /><span class="title">'.i18n('Activities').'</span></a></li>';
 
109
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/timeline" '.((isset($this->page[3]) && $this->page[3] == 'timeline') ? 'class="current"' : '').' />'.i18n('Timeline').'</a></li>';
93
110

                                        
94
111
        if ($this->views['news'] == 'TRUE')
95
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/news"><img src="public/images/icons/icon_news.png" alt="project-news" '.((isset($this->page[3]) && $this->page[3] == 'news') ? 'class="current"' : '').' /><span class="title">'.i18n('News').'</span></a></li>';
 
112
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/news" '.((isset($this->page[3]) && $this->page[3] == 'news') ? 'class="current"' : '').' />'.i18n('News').'</a></li>';
96
113

                                        
97
114
        if ($this->views['download'] == 'TRUE')
98
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/download"><img src="public/images/icons/icon_download.png" alt="project-download" '.((isset($this->page[3]) && $this->page[3] == 'download') ? 'class="current"' : '').' /><span class="title">'.i18n('Download').'</span></a></li>';
 
115
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/download" '.((isset($this->page[3]) && $this->page[3] == 'download') ? 'class="current"' : '').' />'.i18n('Download').'</a></li>';
99
116

                                        
100
117
        if ($this->views['browse'] == 'TRUE')
101
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/browse"><img src="public/images/icons/icon_sourcecode.png" alt="project-sourcecode" '.((isset($this->page[3]) && $this->page[3] == 'browse') ? 'class="current"' : '').' /><span class="title">'.i18n('Browse the code').'</span></a></li>';
 
118
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/browse" '.((isset($this->page[3]) && $this->page[3] == 'browse') ? 'class="current"' : '').' />'.i18n('Source code').'</a></li>';
102
119

                                        
103
120
        if ($this->views['roadmap'] == 'TRUE')
104
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/roadmap"><img src="public/images/icons/icon_roadmap.png" alt="project-roadmap" '.((isset($this->page[3]) && in_array($this->page[3], array('bugs', 'roadmap'))) ? 'class="current"' : '').' /><span class="title">'.i18n('Roadmap').'</span></a></li>';
 
121
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/roadmap" '.((isset($this->page[3]) && in_array($this->page[3], array('bugs', 'roadmap'))) ? 'class="current"' : '').' >'.i18n('Tasks').(($opentickets > 0) ? '&nbsp;<span class="info">'.$opentickets.'</span></a></li>' : '</a></li>');
105
122

                                        
106
123
        if ($this->views['doc'] == 'TRUE')
107
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/doc"><img src="public/images/icons/icon_documentation.png" alt="project-documentation" '.((isset($this->page[3]) && $this->page[3] == 'doc') ? 'class="current"' : '').' /><span class="title">'.i18n('Documentation').'</span></a></li>';
 
124
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/doc" '.((isset($this->page[3]) && $this->page[3] == 'doc') ? 'class="current"' : '').' />'.i18n('Documentation').'</a></li>';
108
125

                                        
109
126
        if ($this->views['i18n'] == 'TRUE')
110
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/i18n"><img src="public/images/icons/icon_i18n.png" alt="project-i18n" '.((isset($this->page[3]) && $this->page[3] == 'i18n') ? 'class="current"' : '').' /><span class="title">'.i18n('Internationalization').'</span></a></li>';
 
127
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/i18n" '.((isset($this->page[3]) && $this->page[3] == 'i18n') ? 'class="current"' : '').' />'.i18n('Internationalization').'</a></li>';
111
128

                                        
112
129
        if ($this->views['forum'] == 'TRUE')
113
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/forum"><img src="public/images/icons/icon_forum.png" alt="project-forum" '.((isset($this->page[3]) && $this->page[3] == 'forum') ? 'class="current"' : '').' /><span class="title">'.i18n('Forum').'</span></a></li>';
 
130
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/forum" '.((isset($this->page[3]) && $this->page[3] == 'forum') ? 'class="current"' : '').' />'.i18n('Discussions').(($messages_total > 0) ? '&nbsp;<span class="info">'.$messages_total.'</span>' : '').'</a></li>';
114
131

                                        
115
132
        if ($this->views['statistics'] == 'TRUE')
116
 
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/statistics"><img src="public/images/icons/icon_statistics.png" alt="project-statistics" '.((isset($this->page[3]) && $this->page[3] == 'statistics') ? 'class="current"' : '').' /><span class="title">'.i18n('Statistics').'</span></a></li>';
 
133
            $this->pagemenu .= '<li><a href="project/'.$this->dbname.'/statistics" '.((isset($this->page[3]) && $this->page[3] == 'statistics') ? 'class="current"' : '').' />'.i18n('Statistics').'</a></li>';
117
134

                                        
118
135
        if ($this->ct_session->isLogged())
119
136
        {
131
148
                else
132
149
                    $this->pagemenu .= 'edit/';
133
150

                                        
134
 
                $this->pagemenu .= $this->dbname.'"><img src="public/images/icons/icon_settings.png" alt="config" /><span class="title">'.i18n('Edit this project').'</span></a></li>';
 
151
                $this->pagemenu .= $this->dbname.'">'.i18n('Edit this project').'</a></li>';
135
152
            }
136
153
        }
 
154
        $this->pagemenu .= '</ul>';
137
155

                                        
138
 
        $this->pagemenu .= '</ul>
139
 
            </div>
140
 
            <div id="header_page_content_title">
141
 
              <a href="project/'.$this->dbname.'"><img src="'.$url.'" alt="'.$this->dbname.'" class="project" /><img src="public/images/icons/goback.png" alt="" class="back" /></a>
142
 
              <h1 class="project">'.$this->name.'</h1>'.(($page_title != $this->name) ? '<h1 class="page">'.$page_title.'</h1>' : '').'
143
 
            </div>';
 
156
        $additional = '';
 
157
        if (isset($this->page[3]))
 
158
        {
 
159
            if ($this->page[3] == 'timeline')
 
160
                $additional = '
 
161
                <div id="page_menu">
 
162
                  <ul>
 
163
                    <li><a href="project/'.$this->dbname.'/timeline" '.(($_GET == array()) ? 'class="current"' : '').'>'.i18n('Everything').'</a></li>
 
164
                    <li><a href="project/'.$this->dbname.'/timeline/?download=1&news=1" '.(($_GET == array('download' => '1', 'news' => '1')) ? 'class="current"' : '').'>'.i18n('Official updates').'</a></li>
 
165
                    <li><a href="project/'.$this->dbname.'/timeline/?bugs=1&bugs-updates=1" '.(($_GET == array('bugs' => '1', 'bugs-updates' => '1')) ? 'class="current"' : '').'>'.i18n('Tasks').'</a></li>
 
166
                    <li><a href="project/'.$this->dbname.'/timeline/?forum=1&forum-answers=1" '.(($_GET == array('forum' => '1', 'forum-answers' => '1')) ? 'class="current"' : '').'>'.i18n('Discussions').'</a></li>
 
167
                  </ul>
 
168
                </div>';
 
169
            elseif (in_array($this->page[3], array('bugs', 'roadmap')))
 
170
                $additional = '
 
171
                <div id="page_menu">
 
172
                  <ul>
 
173
                    <li><a href="project/'.$this->dbname.'/roadmap" '.(($this->page[3] == 'roadmap') ? 'class="current"' : '').'>'.i18n('Roadmap').'</a></li>
 
174
                    <li><a href="project/'.$this->dbname.'/board" '.(($this->page[3] == 'board') ? 'class="current"' : '').'>'.i18n('Board').'</a></li>
 
175
                    <li><a href="project/'.$this->dbname.'/bugs/?nbbugs=30" '.(($this->page[3] == 'bugs' && !isset($this->page[4])) ? 'class="current"' : '').'>'.i18n('Tasks').'</a></li>
 
176
                    <li><a href="project/'.$this->dbname.'/bugs/add" '.((isset($this->page[4]) && $this->page[4] == 'add') ? 'class="current"' : '').'>'.i18n('Create a ticket').'</a></li>
 
177
                  </ul>
 
178
                </div>';
 
179
            elseif ($this->page[3] == 'doc')
 
180
            {
 
181
                if (empty($this->page[4]))
 
182
                    $pagename = 'HomePage';
 
183
                elseif (in_array($this->page[4], array('edit', 'log', 'diff')))
 
184
                    $pagename = $this->page[5];
 
185
                else
 
186
                    $pagename = $this->page[4];
144
187

                                        
145
 
        return $this->pagemenu;
 
188
                $additional = '
 
189
                <div id="page_menu">
 
190
                  <ul>
 
191
                    <li><a href="project/'.$this->dbname.'/doc/'.$pagename.'" '.((!isset($this->page[5])) ? 'class="current"' : '').'>'.$pagename.'</a></li>
 
192
                    <li><a href="project/'.$this->dbname.'/doc/edit/'.$pagename.'" '.((isset($this->page[4]) && $this->page[4] == 'edit') ? 'class="current"' : '').'>'.i18n('Edit').'</a></li>
 
193
                    <li><a href="project/'.$this->dbname.'/doc/log/'.$pagename.'" '.((isset($this->page[4]) && $this->page[4] == 'log') ? 'class="current"' : '').'>'.i18n('History').'</a></li>
 
194
                  </ul>
 
195
                </div>';
 
196
            }
 
197
            elseif ($this->page[3] == 'forum')
 
198
                $additional = '
 
199
                <div id="page_menu">
 
200
                  <ul>
 
201
                    <li><a href="project/'.$this->dbname.'/forum/category/global" '.((isset($this->page[5]) && $this->page[5] == 'global') ? 'class="current"' : '').'>'.i18n('Global').' '.(($messages_global > 0) ? '<span class="info">'.$messages_global.'</span>' : '').'</a></li>
 
202
                    <li><a href="project/'.$this->dbname.'/forum/category/userscomments" '.((isset($this->page[5]) && $this->page[5] == 'userscomments') ? 'class="current"' : '').'>'.i18n('Users comments').' '.(($messages_userscomments > 0) ? '<span class="info">'.$messages_userscomments.'</span>' : '').'</a></li>
 
203
                    <li><a href="project/'.$this->dbname.'/forum/category/developement" '.((isset($this->page[5]) && $this->page[5] == 'developement') ? 'class="current"' : '').'>'.i18n('Developement').' '.(($messages_developement > 0) ? '<span class="info">'.$messages_developement.'</span>' : '').'</a></li>
 
204
                    <li><a href="project/'.$this->dbname.'/forum/category/help" '.((isset($this->page[5]) && $this->page[5] == 'help') ? 'class="current"' : '').'>'.i18n('Help').' '.(($messages_help > 0) ? '<span class="info">'.$messages_help.'</span>' : '').'</a></li>
 
205
                    <li><a href="project/'.$this->dbname.'/forum/add" '.((isset($this->page[4]) && $this->page[4] == 'add') ? 'class="current"' : '').'>'.i18n('Create a topic').'</a></li>
 
206
                  </ul>
 
207
                </div>';
 
208
            elseif ($this->page[3] == 'statistics')
 
209
                $additional = '
 
210
                <div id="page_menu">
 
211
                  <ul>
 
212
                    <li><a href="project/'.$this->dbname.'/forum/statistics" '.((!isset($this->page[5])) ? 'class="current"' : '').'>'.i18n('Overview').'</a></li>
 
213
                    <li><a href="project/'.$this->dbname.'/forum/statistics/sourcecode" '.((isset($this->page[5]) && $this->page[5] == 'sourcecode') ? 'class="current"' : '').'>'.i18n('Source code').'</a></li>
 
214
                  </ul>
 
215
                </div>';
 
216

                                    
 
217

                                    
 
218

                                    
 
219
        }
 
220

                                    
 
221

                                    
 
222

                                    
 
223
        return array(// Module menu
 
224
                     $this->pagemenu,
 
225
                     // Page title and URL
 
226
                     array('project/'.$this->dbname, $this->name),
 
227
                     // Additional menu
 
228
                     $additional,
 
229
                     // Page logo
 
230
                     $url
 
231
                     );
146
232
    }
147
233
}
148
 
?>
 
234
?>
149
235

                                        

 

Old New Code
17
17
class UsersMenu {
18
18
    private $ct_db, $lang, $ct_session, $page, $xmlmodule;
19
19
    public $notepadmenu, $pagemenu;
20
 
    
 
20

                                    
21
21
    function __construct($db, $lang, $session, $page, $xmlmodule)
22
22
    {
23
23
        // Acces to database
35
35
        $this->notepadmenu = '';
36
36

                                        
37
37
        // Page menu
38
 
        $this->pagemenu = '<div class="precontent"></div>';
 
38
        $this->pagemenu = '';
39
39
    }
40
40

                                        
41
41
    function getNotepadMenu()
43
43
        return $this->notepadmenu;
44
44
    }
45
45

                                        
46
 
    function getPageMenu()
 
46
    function getPageMenu($page_title)
47
47
    {
48
 
        return $this->pagemenu;
 
48
        $this->pagemenu .= '';
 
49

                                    
 
50
        $show = TRUE;
 
51
        if (isset($this->page[2]) && $this->page[2] == 'new')
 
52
            $show = FALSE;
 
53

                                    
 
54
        if ($show)
 
55
            $this->pagemenu .= '<a href="users/messages/new" id="page_add_content"><img src="public/images/icons/icon_write.png" alt="notepad-add" /><span class="title">'.i18n('Send a new message').'</span></a>';
 
56

                                    
 
57
        return array(// Module menu
 
58
                     $this->pagemenu,
 
59
                     // Page title and URL
 
60
                     array(),
 
61
                     // Additional menu
 
62
                     '',
 
63
                     // Page logo
 
64
                     'public/images/logos/ct_cube.png'
 
65
                     );
49
66
    }
50
67
}
51
 
?>
 
68
?>
52
69

                                        

 

Old New Code
 
1
<div id="messages_list">
 
2

                                    
 
3
  <div class="users">
 
4
    <? if (is_array($messages)): ?>
 
5
      <? foreach($messages as $mess): ?>
 
6
        <div class="<?=(($mess['read']) ? '' : 'new_message');?>">
 
7
          <h3><a href="users/messages/show/<?=$mess['postid'];?>"><?=$mess['subject'];?></a></h3>
 
8
          <?=$mess['sender'];?> - <?=$mess['date'];?>
 
9
        </div>
 
10
      <? endforeach; ?>
 
11
    <? else: ?>
 
12
      <em><?=i18n('No messages.');?></em>
 
13
    <? endif; ?>
 
14
  </div>
 
15

                                    
 
16
<div class="messages">
 
17
coucou
 
18
</div>
 
19

                                    
 
20
</div>
 
21

                                    
 
22

                                    
 
23

                                    
 
24

                                    
 
25

                                    
 
26

                                    
 
27

                                    
 
28

                                    
 
29

                                    
 
30

                                    
 
31
<!--
 
32

                                    
 
33

                                    
1
34
<h1><?=i18n('Messages');?></h1>
2
35

                                        
3
36
<ul class="actiontools" style="width: 250px;float: right;">
60
93
      </tr>
61
94
    <? endif; ?>
62
95
  </tbody>
63
 
</table>
 
96
</table
 
97

                                    
 
98
-->
64
99

                                        

 

Old New Code
 
1

                                    
 
2

                                    
 
3

                                    
 
4

                                    
 
5

                                    
 
6

                                    
 
7

                                    
 
8
<!--
1
9
<h1><?=i18n('Messages');?></h1>
2
10

                                        
3
11
<p class="spacer">&nbsp;</p>
28
36
  </div>
29
37

                                        
30
38
  <p class="spacer" style="clear: both;">&nbsp;</p>
31
 
<? endforeach; ?>
 
39
<? endforeach; ?>
 
40

                                    
 
41
-->
32
42

                                        

 

Old New Code
183
183
        $construct = array();
184
184
        $construct['__tpl__'] = 'messages-'.$this->view.'.tpl';
185
185

                                        
186
 
        if ($this->view == 'default')
187
 
        {
 
186
        /*if ($this->view == 'default')
 
187
        {*/
188
188
            if (isset($this->page[3]))
189
189
                $page = (int)$this->page[3];
190
190
            else
265
265
            }
266
266

                                        
267
267
            $construct['messages'] = $mess;
268
 
        }
269
 
        elseif ($this->view == 'show')
 
268
        /*}
 
269
        else*/if ($this->view == 'show')
270
270
        {
271
271
            if (is_numeric($this->page[4]))
272
272
                $pid = (int)$this->page[4];
273
273

                                        

 

Old New Code
14
14
  <body>
15
15
  <div id="container">
16
16

                                        
 
17
    <div id="globalmenu">
 
18
      <ul>
 
19
        <li class="title">Forge</li>
 
20

                                    
 
21
        {tpl:notepadmenu}
 
22

                                    
 
23
        {view:head_member}
 
24
      </ul>
 
25
      <div id="footer">
 
26
        <a href="http://codingteam.org">
 
27
          <img src="public/images/logos/ct_cube_material.png" alt="CodingTeam" />
 
28
          CodingTeam
 
29
        </a>
 
30
      </div>
 
31
    </div>
 
32

                                    
17
33
    <div id="header">
18
 
      <div id="header_basic">
19
 
        <div id="header_basic_content">
20
 
          <div id="header_basic_content_right">
21
 
            <ul>
22
 
              {tpl:notepadmenu}
23
 
              <!--<li><a href="http://codingteam.net/project/codingteam/doc">Get help</a></li>-->
24
 
            </ul>
25
 
          </div>
26
 
          <div id="header_basic_content_left">
27
 
            {view:head_member}
28
 
          </div>
29
 
        </div>
30
 
      </div>
31
34
      <div id="header_page">
32
 
        <div id="header_page_content">
 
35
        <h1><a href="/index">{forge_title}</a></h1>
 
36
        {view:pagename}
 
37

                                    
 
38
        {view:head_search}
 
39

                                    
 
40
        <img src="{view:pagelogo}" class="logo" alt="pagelogo" />
 
41

                                    
 
42
        <div id="header_menu">
33
43
          {view:pagemenu}
34
44
        </div>
35
45
      </div>
 
46

                                    
36
47
    </div>
37
48

                                        
38
49
    <div id="content">
 
50
      {view:additionalmenu}
 
51

                                    
39
52
      <div id="page">
40
53
        {view:pagecontent}
41
54
      </div>
42
55

                                        

 

Old New Code
3
3

                                        
4
4
/* Fonts */
5
5
@font-face {
6
 
  font-family: MavenReg;
7
 
  src: url('fonts/MavenPro-Light.otf');
 
6
  font-family: CantarellShipped;
 
7
  src: url('fonts/Cantarell-Regular.otf');
8
8
}
9
9

                                        
10
10
@font-face {
17
17
  border: 0;
18
18
  padding: 0;
19
19
  margin: 0;
20
 
  font-family: "MavenReg", "Maven Pro Light", sans-serif;
 
20
  font-family: "Cantarell", "CantarellShipped", "Verdana", sans-serif;
 
21
  letter-spacing: 0.2px;
21
22
  font-size: 1.0em;
22
23
}
23
24

                                        
24
25
html, body {
25
 
  font-size: 13px;
 
26
  font-size: 14px;
26
27
  margin: 0;
27
28
  padding: 0;
28
 
  background-color: #fff;
29
 
  color: #000;
 
29
  color: {color_900};
 
30
  background-color: {color_50};
30
31
}
31
32

                                        
32
33
a:link, a:visited {
48
49
    to   { opacity: 1; }
49
50
}
50
51

                                        
51
 

                                    
52
52
/* GLOBAL */
53
53
#container {
54
54
}
55
55

                                        
56
 

                                    
57
 
/* HEADER */
58
 
#header {
59
 
  box-shadow: 0px 5px 1px {color_50};
60
 
  width: 100%;
 
56
/* GLOBAL MENU */
 
57
#globalmenu {
 
58
  background-color: {color_700};
 
59
  max-width: 200px;
 
60
  width: 11%;
 
61
  height: 100%;
61
62
  position: fixed;
62
63
  z-index: 999;
 
64
  float: left;
 
65
  box-shadow: 1px 0px 1px {color_300};
63
66
}
64
67

                                        
65
 
#header_basic {
66
 
  height: 25px;
67
 
  background-color: {color_600};
 
68
#globalmenu li a {
 
69
  color: {color_300};
 
70
  display: block;
 
71
  padding: 10px;
68
72
}
69
73

                                        
70
 
#header_basic_content {
71
 
  max-width: 80%;
72
 
  /*min-width: 1010px;*/
73
 
  margin-left: auto;
74
 
  margin-right: auto;
 
74
#globalmenu li a:hover {
 
75
  background-color: {color_800};
 
76
  text-decoration: none;
75
77
}
76
78

                                        
77
 

                                    
78
 
/* LEFT */
79
 
#header_basic_content_left {
80
 
  line-height: 25px;
 
79
#globalmenu li.title {
 
80
  background-color: {color_600};
 
81
  background-image: url('images/server.png');
 
82
  background-size: 28px 28px;
 
83
  background-position: 10px center;
 
84
  background-repeat: no-repeat;
 
85
  color: {color_300};
 
86
  padding: 0px 0px 0px 45px;
 
87
  line-height: 47px;
 
88
  font-weight: bold;
 
89
  height: 47px;
81
90
}
82
91

                                        
83
 
#header_basic_content_left #userlinks span {
84
 
  color: #fff;
85
 
  font-size: 0.95em;
86
 
  background-color: {color_900};
87
 
  border-radius: 5px;
88
 
  padding: 2px 3px 2px 3px;
 
92
#globalmenu li.user {
 
93
  margin-top: 20px;
 
94
  background-color: {color_600};
 
95
  background-size: 28px 28px;
 
96
  background-position: 10px center;
 
97
  background-repeat: no-repeat;
 
98
  color: {color_300};
 
99
  padding: 0px 0px 0px 45px;
 
100
  line-height: 47px;
 
101
  font-weight: bold;
 
102
  height: 47px;
89
103
}
90
104

                                        
91
 
#header_basic_content_left #userlinks a {
92
 
  padding-right: 5px;
93
 
  position: relative;
 
105
#globalmenu li.user a {
 
106
  display: inline;
 
107
  padding: 0;
94
108
}
95
109

                                        
96
 
#header_basic_content_left #userlinks a:hover {
97
 
  text-decoration: none;
 
110
#globalmenu li.user a:hover {
 
111
  background-color: {color_600};
98
112
}
99
113

                                        
100
 
#header_basic_content_left #userlinks a span.title, a#page_add_content span.title {
101
 
  position: absolute;
102
 
  top: 30px;
103
 
  right: -20px;
104
 
  margin-left: -150px;
105
 
  margin-top: -20px;
106
 
  padding-left: 10px;
107
 
  padding-right: 10px;
108
 
  color: #fff;
109
 
  font-size: 0.99em;
110
 
  background-color: #000;
111
 
  height: 21px;
112
 
  line-height: 20px;
113
 
  text-align: center;
114
 
  opacity: 0;
 
114
#globalmenu li.useractions div#up_dash_elem span, #globalmenu li.useractions div#up_mess_elem span {
 
115
  float: right;
 
116
  background-color: {color_600};
 
117
  padding: 2px 5px 2px 5px;
 
118
  font-size: 0.96em;
 
119
  line-height: 1.0em;
115
120
  border-radius: 5px;
116
 
  white-space: pre;
117
121
}
118
122

                                        
119
 
#header_page_content_buttons a span.title {
 
123
#globalmenu #footer {
 
124
  bottom: 0px;
120
125
  position: absolute;
121
 
  padding-left: 10px;
122
 
  padding-right: 10px;
123
 
  color: #fff;
124
 
  font-size: 0.99em;
125
 
  background-color: #000;
126
 
  height: 21px;
127
 
  line-height: 20px;
128
 
  text-align: center;
129
 
  opacity: 0;
130
 
  border-radius: 5px;
131
 
  white-space: pre;
132
 
  margin-left: -62px;
133
 
  margin-top: 35px;
 
126
  margin-bottom: 5px;
 
127
  font-size: 0.95em;
 
128
  line-height: 14px;
134
129
}
135
130

                                        
136
 
#header_basic_content_left #userlinks a span.title:after, #header_page_content_buttons a span.title:after, a#page_add_content span.title:after {
137
 
  content: '';
138
 
  position: absolute;
139
 
  top: -10px;
140
 
  right: 28px;
141
 
  margin-left: -8px;
142
 
  width: 0; height: 0;
143
 
  border-width: 5px;
144
 
  border-style: solid;
145
 
  border-color: transparent transparent #000 transparent;
 
131
#globalmenu #footer a {
 
132
  color: {color_300};
 
133
  display: block;
146
134
}
147
135

                                        
148
 
#header_page_content_buttons a span.title:after {
149
 
  left: 28px;
 
136
#globalmenu #footer a {
 
137
  text-decoration: none;
 
138
  color: {color_300};
150
139
}
151
140

                                        
152
 
#header_basic_content_left #userlinks a:hover span.title, #header_page_content_buttons a:hover span.title, a#page_add_content:hover span.title {
153
 
  opacity: 1;
154
 
  z-index: 999;
155
 
  animation: fadein 1s;
 
141
#globalmenu #footer img {
 
142
  width: 14px;
 
143
  height: 14px;
 
144
  float: left;
 
145
  margin-right: 5px;
 
146
  margin-left: 10px;
156
147
}
157
148

                                        
158
 
#header_basic_content_left #userlinks a span.title:hover, #header_page_content_buttons a span.title:hover, a#page_add_content span.title:hover {
159
 
  opacity: 0;
 
149
/* HEADER */
 
150
#header {
 
151
  box-shadow: 0px 1px 1px {color_300};
 
152
  width: 100%;
 
153
  position: fixed;
 
154
  z-index: 998;
160
155
}
161
156

                                        
162
 
#header_basic_content_left #userlinks #up_mess_elem, #header_basic_content_left #userlinks #up_dash_elem {
163
 
  display: inline;
 
157
/* GLOBAL MENU AND HEADER BAR */
 
158
#header_page {
 
159
  min-height: 47px;
 
160
  max-height: 96px;
 
161
  background-color: {color_100};
164
162
}
165
163

                                        
166
 
#header_basic_content_left #user {
167
 
  width: 20px;
168
 
  margin-right: 10px;
 
164
/* HEADER PAGE NAME */
 
165
#header_page h1 a {
 
166
  margin-left: 5px;
 
167
  line-height: 47px;
 
168
  font-size: 1.1em;
 
169
  font-weight: bold;
169
170
  float: left;
 
171
  color: {color_700};
170
172
}
171
173

                                        
172
 
#header_basic_content_left #user:hover ul {
173
 
  visibility: visible;
174
 
  opacity: 1;
175
 
  border-radius: 5px;
 
174
#header_page h1:first-child a {
 
175
  margin-left: 12%;
176
176
}
177
177

                                        
178
 
#header_basic_content_left #user ul {
179
 
  transition: all ease-in 0.2s;
180
 
  position: absolute;
181
 
  visibility: hidden;
182
 
  padding-right: 6px;
183
 
  z-index: 100;
184
 
  margin: -10px 0px 0px 0px;
185
 
  list-style-type: none;
186
 
  border: 1px {color_900} solid;
187
 
  border-radius: 5px;
188
 
  background-color: #fff;
189
 
  opacity: 0;
190
 
  box-shadow: 0px 2px 1px {color_50};
 
178
#header_page h1:nth-child(2) a:before {
 
179
  content: '/';
 
180
  margin-right: 5px;
191
181
}
192
182

                                        
193
 
#header_basic_content_left #user ul li a {
194
 
  font-size: 0.8em;
 
183
#header_page h1 a:hover {
 
184
  text-decoration: none;
 
185
}
 
186

                                    
 
187
#header_page img.logo {
 
188
  width: 40px;
 
189
  height: 40px;
195
190
  display: block;
196
 
  float: left;
197
 
  width: 100%;
198
 
  color: #000;
199
 
  border-radius: 0px;
200
 
  padding: 3px;
 
191
  margin-left: 50%;
 
192
  padding-top: 7px;
201
193
}
202
194

                                        
203
 
#header_basic_content_left #user ul li a:hover {
204
 
  background-color: {color_50};
 
195
/* HEADER SEARCH BAR */
 
196
#header_page form {
 
197
  float: right;
 
198
  margin-right: 20px;
 
199
  margin-top: 8px;
205
200
}
206
201

                                        
207
 
#header_basic_content_left #user ul li:first-child a {
208
 
  border-radius: 5px 5px 0px 0px;
 
202
#header_page form div.input {
 
203
  height: 29px;
 
204
  border: 1px {color_300} solid;
 
205
  background-color: {color_50};
 
206
  background-image: url('/public/images/icons/search.png');
 
207
  background-position: 98% center;
 
208
  background-repeat: no-repeat;
 
209
  line-height: 29px;
209
210
}
210
211

                                        
211
 
#header_basic_content_left #user ul li:last-child a {
212
 
  border-radius: 0px 0px 5px 5px;
 
212
#header_page form div.input label {
 
213
  background-color: {color_200};
 
214
  color: {color_600};
 
215
  padding: 3px 10px 3px 10px;
 
216
  margin-left: 2px;
213
217
}
214
218

                                        
215
 
#header_basic_content_left #user ul li a span {
216
 
  line-height: 25px;
217
 
  padding: 5px 10px 2px 2px;
 
219
#header_page form div.input input {
 
220
  background-color: transparent;
 
221
  width: 150px;
 
222
  padding-right: 25px;
218
223
}
219
224

                                        
220
 
#header_basic_content_left #user ul li a img {
221
 
  width: 16px;
222
 
  height: 16px;
223
 
  padding: 5px 10px 2px 2px;
224
 
  float: left;
 
225
/* HEADER MENU */
 
226
#header_menu {
 
227
  margin-left: 12%;
 
228
  clear: both;
 
229
  text-align: center;
225
230
}
226
231

                                        
227
 

                                    
228
 
/* RIGHT */
229
 
#header_basic_content_right ul {
230
 
  float: right;
 
232
#header_menu ul {
 
233
  display: inline-block;
231
234
  list-style-image: none;
232
235
  list-style-type: none;
233
 
  line-height: 25px;
 
236
  height: 48px;
234
237
}
235
238

                                        
236
 
#header_basic_content_right ul li {
 
239
#header_menu ul li {
237
240
  float: left;
238
 
  padding-left: 20px;
239
241
}
240
242

                                        
241
 
#header_basic_content_right ul li a {
242
 
  color: {color_200};
 
243
#header_menu ul li a {
 
244
  display: block;
 
245
  padding: 20px 10px 10px 10px;
 
246
  font-size: 1.0em;
 
247
  color: {color_700};
 
248
}
 
249

                                    
 
250
#header_menu ul li a.current {
 
251
  color: {color_900};
243
252
  font-weight: bold;
 
253
  border-bottom: 2px {color_500} solid;
244
254
}
245
255

                                        
246
 
#header_basic_content_right ul li a:hover {
 
256
#header_menu ul li a:hover {
 
257
  color: {color_900};
247
258
  text-decoration: none;
248
 
  color: {color_100};
249
259
}
250
260

                                        
 
261
#header_menu ul li a img {
 
262
  display: none;
 
263
}
251
264

                                        
252
 
/* GLOBAL MENU AND SECOND HEADER BAR */
253
 
#header_page {
254
 
  height: 50px;
255
 
  background-color: {color_500};
 
265
#header_menu ul li a span.info {
 
266
  font-weight: normal;
 
267
  font-size: 0.90em;
 
268
  background-color: {color_200};
 
269
  color: {color_600};
 
270
  padding: 2px 5px 2px 5px;
 
271
  border-radius: 5px;
256
272
}
257
273

                                        
258
 
#header_page_content {
259
 
  max-width: 80%;
 
274
/* CONTENT */
 
275
#content {
 
276
  /*max-width: 80%;*/
260
277
  /*min-width: 1010px;*/
261
 
  margin-left: auto;
262
 
  margin-right: auto;
263
 
  line-height: 50px;
 
278
  margin-left: 12%;
 
279
  animation: fadein 0.2s;
 
280
  /* padding-top: 90px; */
 
281
  padding-top: 92px;
264
282
}
265
283

                                        
266
 
#header_page_content_title {
267
 
  position: absolute;
268
 
  margin-left: 5px;
 
284
/* PAGE MENU */
 
285
#content #page_menu {
 
286
  background-color: {color_200};
 
287
  margin-left: -12%;
 
288
  text-align: center;
 
289
  border-bottom: 1px {color_300} solid;
269
290
}
270
291

                                        
271
 
div#header_page_content_title a:hover img.back {
272
 
  transform: rotate(360deg);
273
 
  transition: all 1s ease;
274
 
  opacity: 1;
 
292
#content #page_menu ul {
 
293
  display: inline-block;
 
294
  list-style-type: none;
 
295
  list-style-image: none;
275
296
}
276
297

                                        
277
 
div#header_page_content_title a:hover img.project {
278
 
  transition: all 1s ease;
279
 
  opacity: 0.5;
280
 
}
281
 

                                    
282
 
#header_page_content_title img {
283
 
  width: 40px;
284
 
  height: 40px;
285
 
  margin-top: 5px;
286
 
  margin-right: 15px;
 
298
#content #page_menu ul li {
287
299
  float: left;
288
 
  left: 0px;
289
 
  transition: all 0.5s ease;
 
300
  margin-top: 17px;
 
301
  margin-bottom: 10px;
290
302
}
291
303

                                        
292
 
#header_page_content_title img.back {
293
 
  margin-left: -55px;
294
 
  opacity: 0;
295
 
  transition-duration: 0.2s;
296
 
  transition-property: transform;
 
304
#content #page_menu ul li a {
 
305
  font-size: 1.1em;
 
306
  color: {color_700};
 
307
  padding: 10px;
297
308
}
298
309

                                        
299
 
#header_page_content_title h1 {
300
 
  font-size: 2.0em;
 
310
#content #page_menu ul li a.current {
 
311
  color: {color_500};
301
312
  font-weight: bold;
302
 
  color: #fff;
303
 
  float: left;
304
313
}
305
314

                                        
306
 
#header_page_content_title h1.page:before {
307
 
  content: '→';
308
 
  margin-right: 5px;
309
 
  margin-left: 5px;
310
 
  font-weight: normal;
311
 
  font-size: 0.80em;
 
315
#content #page_menu ul li a.current:hover {
 
316
  color: {color_500};
312
317
}
313
318

                                        
314
 
#header_page_content_buttons {
315
 
  float: right;
316
 
  height: 30px;
317
 
  margin-top: 10px;
 
319
#content #page_menu ul li a:hover {
 
320
  color: {color_900};
 
321
  text-decoration: none;
318
322
}
319
323

                                        
320
 
#header_page_content_buttons ul {
321
 
  list-style-image: none;
322
 
  list-style-type: none;
 
324
#content #page_menu ul li a span.info {
 
325
  font-weight: normal;
 
326
  font-size: 0.83em;
 
327
  background-color: {color_300};
 
328
  color: {color_600};
 
329
  padding: 2px 5px 2px 5px;
 
330
  border-radius: 5px;
323
331
}
324
332

                                        
325
 
#header_page_content_buttons ul li {
326
 
  float: left;
327
 
}
328
 

                                    
329
 
#header_page_content_buttons ul li a img {
330
 
  width: 30px;
331
 
  height: 30px;
332
 
  margin-right: 20px;
333
 
  opacity: 1;
334
 
  transition-duration: 0.5s;
335
 
  transition-property: opacity;
336
 
}
337
 

                                    
338
 
div#header_page_content_buttons ul li a:hover img {
339
 
  opacity: 0.8;
340
 
}
341
 

                                    
342
 
#header_page_content_buttons ul li a img.current {
343
 
  background-color: {color_600};
344
 
  padding: 5px;
345
 
  margin-top: -5px;
346
 
  border-radius: 10px;
347
 
}
348
 

                                    
349
 

                                    
350
 
/* CONTENT */
351
 
#content {
352
 
  max-width: 80%;
353
 
  /*min-width: 1010px;*/
 
333
/* PAGE CONTENT */
 
334
#content #page {
 
335
  width: 80%;
354
336
  margin-left: auto;
355
337
  margin-right: auto;
356
 
  /*animation: fadein 0.5s;*/
357
 
}
 
338
  /*padding-top: 90px;
 
339
  padding-left: 5px;
 
340
  padding-right: 5px;*/
 
341
  /* * */
358
342

                                        
359
 
#content #page {
360
 
  padding-top: 90px;
361
 
  padding-left: 5px;
362
 
  padding-right: 5px;
 
343
  background-color: {color_50};
 
344
  margin-bottom: 20px;
 
345
  padding: 10px;
363
346
}
364
347

                                        
365
348

                                        
366
 
/* FIXED BUTTON */
 
349
/* FIXED BOTTOM POST ACTION BUTTON */
367
350
a#page_add_content {
368
351
  background-color: {color_500};
369
352
  box-shadow: 0px 0px 10px {color_300};
373
356
  display: block;
374
357
  bottom: 20px;
375
358
  right: 10%;
376
 
  border-radius: 25px;
 
359
  border-radius: 30px;
377
360
  transition-duration: 0.5s;
378
361
  transition-property: background-color, box-shadow;
379
362
}
393
376
a#page_add_content span.title {
394
377
  position: absolute;
395
378
  top: 35px;
396
 
  right: 70px;
 
379
  right: 80px;
397
380
  padding: 5px;
 
381
  margin-left: -150px;
 
382
  margin-top: -20px;
 
383
  padding-left: 10px;
 
384
  padding-right: 10px;
 
385
  color: {color_50};
 
386
  font-size: 0.99em;
 
387
  background-color: {color_900};
 
388
  height: 21px;
 
389
  line-height: 20px;
 
390
  text-align: center;
 
391
  opacity: 0;
 
392
  border-radius: 5px;
 
393
  white-space: pre;
398
394
}
399
395

                                        
400
396
a#page_add_content span.title:after {
 
397
  content: '';
 
398
  position: absolute;
 
399
  top: -10px;
 
400
  right: 28px;
 
401
  margin-left: -8px;
 
402
  width: 0; height: 0;
 
403
  border-width: 5px;
 
404
  border-style: solid;
 
405
  border-color: transparent transparent {color_900} transparent;
401
406
  top: 10px;
402
407
  right: -9px;
403
 
  border-color: transparent transparent transparent #000;
 
408
  border-color: transparent transparent transparent {color_900};
404
409
}
 
410

                                    
 
411
a#page_add_content:hover span.title {
 
412
  opacity: 1;
 
413
  z-index: 999;
 
414
  animation: fadein 1s;
 
415
}
 
416

                                    
 
417
a#page_add_content span.title:hover {
 
418
  opacity: 0;
 
419
}
405
420

                                        

 

Old New Code
20
20
  margin-left: 51%;
21
21
}
22
22

                                        
 
23

                                    
23
24
/* MULTICOLORED GRIDS */
24
25
div.grid {
25
26
  margin: 10px;
229
230
}
230
231

                                        
231
232
#page div.bigtext {
232
 
  font-size: 1.1em;
 
233
  font-size: 1.05em;
233
234
  text-align: justify;
234
235
}
235
236

                                        
454
455
}
455
456

                                        
456
457

                                        
457
 
/* PROJECTS LIST EXPLORING */
458
 
div.projects_box {
 
458
/* PRETTY TABLE-LIKE LIST */
 
459
div.prettylist_box {
459
460
  margin-top: 20px;
460
461
  width: 98%;
461
462
  margin-left: auto;
463
464
}
464
465

                                        
465
466
@media (max-width: 640px) {
466
 
  div.projects_box {
 
467
  div.prettylist_box {
467
468
    width: 100%;
468
469
  }
469
470
}
470
471

                                        
471
 
div.projects_box div.project_order {
 
472
div.prettylist_box div.prettylist_order {
472
473
  text-align: right;
473
474
  margin-top: 0px;
474
475
  margin-bottom: 15px;
475
476
}
476
477

                                        
477
 
div.projects_box div.project_order div.criteria {
 
478
div.prettylist_box div.prettylist_order div.criteria {
478
479
  display: inline;
479
480
  margin-left: 10px;
480
481
  font-size: 0.9em;
482
483
}
483
484

                                        
484
485
@media (max-width: 640px) {
485
 
  div.projects_box div.project_order div.criteria {
 
486
  div.prettylist_box div.prettylist_order div.criteria {
486
487
    display: none;
487
488
  }
488
489
}
489
490

                                        
490
 
div.projects_box div.project_order div.current {
 
491
div.prettylist_box div.prettylist_order div.current {
491
492
  background-color: {color_50};
492
493
  border-radius: 5px;
493
494
}
494
495

                                        
495
 
div.projects_browsing {
 
496
div.prettylist_browsing {
496
497
  display: block;
497
498
  border-bottom: 1px solid {color_50};
498
499
  padding: 5px;
499
500
}
500
501

                                        
501
 
div.projects_browsing img {
 
502
div.prettylist_browsing img {
502
503
  float: left;
503
504
  width: 40px;
504
505
  height: 40px;
506
507
}
507
508

                                        
508
509
@media (max-width: 640px) {
509
 
  div.projects_browsing img {
 
510
  div.prettylist_browsing img {
510
511
    /*margin-top: 5px;*/
511
512
  }
512
513
}
513
514

                                        
514
 
#page div.projects_browsing h3 {
 
515
#page div.prettylist_browsing h3 {
515
516
  font-size: 1.2em;
516
517
}
517
518

                                        
518
 
div.projects_browsing span.desc {
 
519
div.prettylist_browsing span.desc {
519
520
  color: {color_400};
520
521
}
521
522

                                        
522
523
@media (max-width: 640px) {
523
 
  div.projects_browsing span.desc {
 
524
  div.prettylist_browsing span.desc {
524
525
    display: none;
525
526
  }
526
527
}
527
528

                                        
528
 
div.projects_browsing span.category {
 
529
div.prettylist_browsing span.category {
529
530
  float: right;
530
531
  padding-right: 2px;
531
532
  line-height: 14.5px;
532
533
}
533
534

                                        
534
535
@media (max-width: 640px) {
535
 
  div.projects_browsing span.category {
 
536
  div.prettylist_browsing span.category {
536
537
    float: none;
537
538
    display: block;
538
539
  }
539
540
}
540
541

                                        
541
 
div.projects_browsing span.date, div.projects_browsing span.download {
 
542
div.prettylist_browsing span.date, div.prettylist_browsing span.download {
542
543
  background-repeat: no-repeat;
543
544
  background-position: left center;
544
545
  padding-left: 20px;
547
548
}
548
549

                                        
549
550
@media (max-width: 640px) {
550
 
  div.projects_browsing span.date, div.projects_browsing span.download {
 
551
  div.prettylist_browsing span.date, div.prettylist_browsing span.download {
551
552
    margin-top: 0;
552
553
  }
553
554
}
554
555

                                        
555
 
div.projects_browsing span.download {
 
556
div.prettylist_browsing span.download {
556
557
  font-weight: bold;
557
558
  background-image: url('../../../public/images/icons/project-download.png');
558
559
}
559
560

                                        
560
 
div.projects_browsing span.date {
 
561
div.prettylist_browsing span.date {
561
562
  background-image: url('../../../public/images/icons/project-timeline.png');
562
563
}
563
564

                                        
564
565

                                        
565
566
/* PAGINATION STYLING */
566
567
div.pagination_box {
567
 
  width: 60%;
 
568
  width: 75%;
568
569
  margin-left: auto;
569
570
  margin-right: auto;
570
571
  margin-top: 10px;
612
613
}
613
614

                                        
614
615

                                        
 
616
/* PRIVATE MESSAGES */
 
617
#messages_list {
 
618
  height: 80%;
 
619
  width: 80%;
 
620
  margin-top: -10px;
 
621
  position: absolute;
 
622
  border-bottom: 3px solid {color_50};
 
623
}
615
624

                                        
 
625
#messages_list .users {
 
626
  width: 20%;
 
627
  min-width: 250px;
 
628
  height: 100%;
 
629
  float: left;
 
630
  overflow: auto;
 
631
}
616
632

                                        
 
633
#messages_list .users div {
 
634
  padding: 20px;
 
635
  border-bottom: 3px solid {color_50};
 
636
}
617
637

                                        
 
638
#messages_list .users div h3 {
 
639
  margin: 0;
 
640
}
618
641

                                        
 
642
#messages_list .users div:hover, #messages_list .users div.current, #messages_list .users div.new_message {
 
643
  background-color: {color_50};
 
644
  border-bottom: 3px solid {color_300};
 
645
}
619
646

                                        
 
647
#messages_list messages {
 
648
  height: 100%;
 
649
  width: 80%;
 
650
}
620
651

                                        
621
652

                                        
622
653

                                        
633
664

                                        
634
665

                                        
635
666

                                        
 
667

                                    
 
668

                                    
 
669

                                    
 
670

                                    
636
671
/* ??? -- reste de l'ancienne css --  */
637
672

                                        
638
673

                                        
639
674