What is $css_class in portal_normal.vm

2364382, modified 16 Years ago. Liferay Master Posts: 660 Join Date: 3/3/09 Recent Posts
Hi,

I am going to create my theme by modifying an existing theme in liferay (5.2.3).
In the portal_normal.vm file, can anybody tell me what $css_class should be?
Here is a portion of the code I copied from the existing portal_normal.vm file:



        <title>$company_name - $the_title</title>

        $theme.include($top_head_include)

        #css ($css_main_file)

        <script type="text/javascript">
                // <![CDATA[
                        $page_javascript_1
                        $page_javascript_2
                        $page_javascript_3
                // ]]>
        </script>

        #if ($company_logo != "")
                <style type="text/css">
                        /* <![CDATA[ */
                                #banner-fol .logo-fol a {
                                        background: url($company_logo) no-repeat;
                                        display: block;
                                        font-size: 0;
                                        height: ${company_logo_height}px;
                                        text-indent: -9999em;
                                        width: ${company_logo_width}px;
                                }

                                #ie6_png_fix()
                        /* ]]> */
                </style>
        #end


[color=#CC2525][/color]



Thanks
Sam
1648842, modified 16 Years ago.
Hi Sam Wan,

$css_class is a variable. They mentioned in

_unstyled/templates/init.vm

Just check in init.vm file.

#set ($css_class = $theme_display.getColorScheme().getCssClass())



Thanks in Advance,

V.C.Vijayan
Software Developer, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.