{* Use the files copied from admin/themes/default/template/include *} {* Need: $template->set_template_dir(ICY_PICTURE_MODIFY_PATH.'template/'); *} {include file="autosize.inc.tpl"} {include file="datepicker.inc.tpl"} {include file="dbselect.inc.tpl"} {* Use some default stylesheets *} {* The 'datepicker.css' is copied from ./admin/themes/roma/theme.css *} {combine_css path= 'admin/themes/default/'|@cat:'theme.css'} {combine_css path= 'themes/default/js/ui/theme/'|@cat:'jquery.ui.datepicker.css'} {combine_css path= "$ICY_PICTURE_MODIFY_PATH/template/"|@cat:'datepicker.css'} {combine_css path= "$ICY_PICTURE_MODIFY_PATH/template/"|@cat:'ui-resizable.css'} {* Heavily copied from Piwigo distribution: picture_modify.tpl *} {combine_script id='jquery.tokeninput' load='async' require='jquery' path='themes/default/js/plugins/jquery.tokeninput.js'} {footer_script require='jquery.tokeninput'} jQuery(document).ready(function() {ldelim} jQuery("#tags").tokenInput( [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], {ldelim} hintText: '{'Type in a search term'|@translate}', noResultsText: '{'No results'|@translate}', searchingText: '{'Searching...'|@translate}', newText: ' ({'new'|@translate})', animateDropdown: false, preventDuplicates: true, allowCreation: true } ); }); {/footer_script} {footer_script} pwg_initialization_datepicker("#date_creation_day", "#date_creation_month", "#date_creation_year", "#date_creation_linked_date", "#date_creation_action_set"); {/footer_script}