Ignore:
Timestamp:
Dec 2, 2010, 8:46:30 PM (13 years ago)
Author:
rvelices
Message:

new template features: combine_script, footer_script and get_combined_scripts
migrated public templates only; need more code doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/default/template/include/datepicker.inc.tpl

    r7798 r7975  
    11
    2 {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
    3 {known_script id="jquery.ui" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.core.packed.js"}
    4 {known_script id="jquery.ui.datepicker" src=$ROOT_URL|@cat:"themes/default/js/ui/packed/ui.datepicker.packed.js"}
    5 {known_script id="datepicker.js" src=$ROOT_URL|@cat:"themes/default/js/datepicker.js"}
     2{combine_script id='jquery' load='footer' path='themes/default/js/jquery.packed.js'}
     3{combine_script id='jquery.ui' load='footer' require='jquery' path='themes/default/js/ui/packed/ui.core.packed.js'}
     4{combine_script id='jquery.ui.datepicker' load='footer' require='jquery.ui' path='themes/default/js/ui/packed/ui.datepicker.packed.js'}
     5{combine_script id='datepicker.js' load='footer' require='jquery.ui.datepicker' path='themes/default/js/datepicker.js'}
    66
    77{assign var="datepicker_language" value="themes/default/js/ui/i18n/ui.datepicker-"|@cat:$lang_info.code|@cat:".js"}
    88
    99{if "PHPWG_ROOT_PATH"|@constant|@cat:$datepicker_language|@file_exists}
    10 {known_script id="jquery.ui.datepicker-$lang_info.code" src=$ROOT_URL|@cat:$datepicker_language}
     10{combine_script id="jquery.ui.datepicker-$lang_info.code" path=$datepicker_language}
    1111{/if}
    1212
     
    1515{/html_head}
    1616
    17 <script type="text/javascript">
     17{footer_script}
    1818function pwg_initialization_datepicker(day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date)
    1919{ldelim}
     
    2222    day, month, year, linked_date, checked_on_change, min_linked_date, max_linked_date);
    2323}
    24 </script>
     24{/footer_script}
Note: See TracChangeset for help on using the changeset viewer.