Browse the code

 

Differences between 597 and 598 on /.
Number of edited files: 5 (0 added, 0 deleted and 5 modified)
Revision 598

About 8 months and 28 days ago.

* Added support for color palettes in the new webdesign
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
84
84

                                        
85
85
        // Set the template theme (CSS)
86
86
        define('CT_TEMPLATE_THEME', $xml->config->theme);
 
87
        define('CT_TEMPLATE_COLORPALETTE', $xml->config->colorpalette);
87
88

                                        
88
89
        // Request URI datas
89
90
        $ct_get_uri = $_SERVER['REQUEST_URI'];
90
91

                                        

 

Old New Code
979
979
     * 8    orange
980
980
     * 9    black & white
981
981
     */
982
 
    function parseCSS ($colorpalette=0)
 
982
    function parseCSS ()
983
983
    {
 
984
        $colorpalette = CT_TEMPLATE_COLORPALETTE;
984
985
        $input_css = file_get_contents(CT_BASEDIR.implode('/', $this->page));
985
986

                                        
986
987
        if ($colorpalette == 0) //Default color palette
987
988

                                        

 

Old New Code
60
60
                    <xs:complexType>
61
61
                        <xs:sequence>
62
62
                            <xs:element name='theme' type='xs:string'/>
 
63
                            <xs:element name='colorpalette' type='xs:int'/>
63
64
                            <xs:element name='timezone' type='xs:string'/>
64
65
                            <xs:element name='mldomain' type='xs:string'/>
65
66
                        </xs:sequence>
68
69
            </xs:sequence>
69
70
        </xs:complexType>
70
71
    </xs:element>
71
 
</xs:schema>
 
72
</xs:schema>
72
73

                                        

 

Old New Code
31
31
    </errors>
32
32
    <config>
33
33
        <theme>default</theme>
 
34
        <colorpalette>0</colorpalette>
34
35
        <timezone>Europe/Paris</timezone>
35
36
        <mldomain>lists.example.org</mldomain>
36
37
    </config>
37
 
</codingteam>
 
38
</codingteam>
38
39

                                        

 

Old New Code
220
220
  background-color: transparent;
221
221
  width: 150px;
222
222
  padding-right: 25px;
 
223
  color: {color_900};
223
224
}
224
225

                                        
225
226
/* HEADER MENU */
226
227