{strip} {combine_css path=$USER_COLLEC_PATH|cat:'template/style_collections.css'} {include file=$USER_COLLEC_ABS_PATH|cat:'template/thumbnails_colorbox.tpl'} {**} {combine_script id='jquery.ui.datepicker' load='footer' path='themes/default/js/ui/jquery.ui.datepicker.js'} {combine_script id='jquery.ui.timepicker' load='footer' require='jquery.ui.slider' path=$USER_COLLEC_PATH|cat:'template/resources/jquery-timepicker/jquery-ui-timepicker-addon.js'} {assign var=datepicker_language value='themes/default/js/ui/i18n/jquery.ui.datepicker-'|cat:$lang_info.code|cat:'.js'} {if 'PHPWG_ROOT_PATH'|constant|cat:$datepicker_language|file_exists} {combine_script id='jquery.ui.datepicker-'|cat:$lang_info.code load='footer' require='jquery.ui.datepicker' path=$datepicker_language} {/if} {assign var=timepicker_language value=$USER_COLLEC_PATH|cat:'template/resources/jquery-timepicker/i18n/jquery-ui-timepicker-'|cat:$lang_info.code|cat:'.js'} {if 'PHPWG_ROOT_PATH'|constant|cat:$timepicker_language|file_exists} {combine_script id='jquery.ui.timepicker-'|cat:$lang_info.code load='footer' require='jquery.ui.timepicker' path=$timepicker_language} {/if} {combine_css path='themes/default/js/ui/theme/jquery.ui.core.css'} {combine_css path='themes/default/js/ui/theme/jquery.ui.theme.css'} {combine_css path='themes/default/js/ui/theme/jquery.ui.datepicker.css'} {combine_css path='themes/default/js/ui/theme/jquery.ui.slider.css'} {combine_css path=$USER_COLLEC_PATH|cat:'template/resources/jquery-timepicker/jquery-ui-timepicker-addon.css'} {/strip} {footer_script require='jquery'} var bg_color = jQuery('#the_page #content').css('background-color'); if (!bg_color || bg_color=='transparent') { bg_color = jQuery('body').css('background-color'); } {if isset($U_SHARE)} var $share_form = jQuery('#share_form'); // functions jQuery.fn.extend({ hideVis: function() { jQuery(this).css('visibility', 'hidden'); return this; }, showVis: function() { jQuery(this).css('visibility', 'visible'); return this; }, toggleVis: function(toggle) { if (jQuery(this).css('visibility')=='hidden' || toggle === true){ return jQuery(this).showVis(); } else { return jQuery(this).hideVis(); } } }); function enterShareKeyEdit() { $share_form.find('.url-edit').show(); $share_form.find('.url-normal').hide(); jQuery('.share_colorbox_open').colorbox.resize({ldelim}speed:0}); } function exitShareKeyEdit() { $share_form.find('.url-edit').hide(); $share_form.find('.url-normal').show(); jQuery('.share_colorbox_open').colorbox.resize({ldelim}speed:0}); } // hide some inputs exitShareKeyEdit(); // display key $share_form.find('.url-more').text($share_form.find('input[name="share_key"]').val()); // url edition $share_form.find('.edit_share_key').on('click', function(e) { enterShareKeyEdit(); e.preventDefault(); }); $share_form.find('.set_share_key').on('click', function(e) { if ($share_form.find('input[name="share_key"]').val().length < 8) { alert('{'The key must be at least 8 characters long'|translate|escape:javascript}'); } else { $share_form.find('.url-more').text($share_form.find('input[name="share_key"]').val()); exitShareKeyEdit(); } e.preventDefault(); }); $share_form.find('.cancel_share_key').on('click', function(e) { $share_form.find('input[name="share_key"]').val($share_form.find('.url-more').text()); exitShareKeyEdit(); e.preventDefault(); }); $share_form.find('.url-more').on('dblclick', function() { enterShareKeyEdit(); }); // optional inputs $share_form.find('.share-option').each(function() { $share_form.find('input[name="'+ jQuery(this).data('for') +'"]').hideVis(); }).on('change', function() { $share_form.find('input[name="'+ jQuery(this).data('for') +'"]').toggleVis($(this).is(':checked')); }); // datetime picker $share_form.find('input[name="share_deadline"]').datetimepicker({ dateFormat: 'yy-mm-dd', minDate: new Date() }); // popup jQuery('.share_colorbox_open').colorbox({ {if isset($share.open)}open: true, transition:"none",{/if} inline:true }); jQuery('.share_colorbox_close').click(function(e) { jQuery('.share_colorbox_open').colorbox.close(); e.preventDefault(); }); jQuery('#share_form').css('background-color', bg_color); {/if} {if isset($U_MAIL)} jQuery('.mail_colorbox_open').colorbox({ {if isset($contact.open)}open: true, transition:"none",{/if} inline:true }); jQuery('.mail_colorbox_close').click(function(e) { jQuery('.mail_colorbox_open').colorbox.close(); e.preventDefault(); }); jQuery('#mail_form').css('background-color', bg_color); {/if} jQuery('#edit_form_show').click(function() { jQuery('#edit_form_show').hide(); jQuery('.additional_info').hide(); jQuery('#edit_form').show(); }); jQuery('#edit_form_hide').click(function() { jQuery('#edit_form_show').show(); jQuery('.additional_info').show(); jQuery('#edit_form').hide(); }); {/footer_script} {if isset($collection)}

{* *} {**} {if isset($U_SHARE)}
{include file='infos_errors.tpl' errors=$share.errors infos=$share.infos}
{$U_SHARE} {'Cancel'|translate}
 
{if not empty($collection.SHARES)} {foreach from=$collection.SHARES item=share} {/foreach}
{'Share key'|translate} {'Creation date'|translate} {'Password'|translate} {'Expiration date'|translate}
{$share.share_key} {$share.add_date_readable} {if $share.params.password}{'Yes'|translate}{else}{'No'|translate}{/if} {if $share.params.deadline}{$share.params.deadline_readable}{else}{'No'|translate}{/if}
{/if}
{/if} {**} {if isset($U_MAIL)}
{include file='infos_errors.tpl' errors=$contact.errors}
  {'Cancel'|translate}
{/if} {if empty($THUMBNAILS)}

{'This collection is empty'|translate}

{/if} {/if}