<?xml version='1.0' encoding='UTF-8'?><uidget><metadata><name>Forum</name><api_version>1.0</api_version><size height='350' width='600' /><server>local://ForumCptServer</server><blog en='232' /><max bg='0' fg='1' url='1' /><gdpr default='&apos;En soumettant ce formulaire, j’accepte que les données saisies soient collectées dans le but d’afficher un message sur ce site.&apos;' enabled='true' /></metadata><view><content>&lt;div class=uif_main&gt;
&lt;div class=uif_header&gt;
  &lt;div class=&quot;uif_search&quot;&gt;
    &lt;div class=&quot;site_search&quot;&gt;
      &lt;div&gt;
        &lt;input class=&quot;site_textbox&quot; placeholder=&quot;Chercher&quot; type=&quot;text&quot;&gt;
        &lt;span id=&quot;uif_search_loading&quot;&gt;&lt;/span&gt;
      &lt;/div&gt;
      &lt;div class=&quot;uif_search_btn site_button&quot;&gt;&lt;span class=&quot;fonticon&quot;&gt;&lt;/span&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div&gt;
    &lt;a href=&quot;#&quot; class=&quot;uif_all_topics site_button&quot;&gt;Tous les sujets&lt;/a&gt;
    &lt;a href=&quot;#&quot; class=&quot;uif_new_topic site_button&quot;&gt;Nouveau sujet&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;uif_page uif_topics&quot;&gt;
&lt;div&gt;
	&lt;div class=uif_topic_list&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;uif_post_form_top uif_page&quot;&gt;
  &lt;div&gt;
    &lt;div uitype=&quot;member&quot; noregisterform=&quot;true&quot;&gt;&lt;/div&gt;
    &lt;div class=uif_data&gt;
      &lt;div class=uif_subject_field&gt;&lt;input type=text class=&quot;site_textbox&quot; name=&quot;topic_subject&quot; value=&quot;&quot; placeholder=&quot;Titre du sujet&quot;/&gt;&lt;/div&gt;
      &lt;textarea class=&quot;uif_post_body site_textbox&quot; name=&quot;post_body&quot; placeholder=&quot;Message à publier&quot;&gt;&lt;/textarea&gt;
      &lt;div class=&quot;component_gdpr_container uif_gdpr&quot;&gt;&lt;/div&gt;
      &lt;div style=&quot;text-align:center&quot;&gt;&lt;input class=&apos;uif_add_post site_button&apos; type=submit value=&quot;Envoyer un nouveau message&quot;/&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;div class=uif_post_page&gt;
  &lt;div class=&quot;uif_posts uif_page&quot;&gt;
    &lt;div class=&quot;uif_subject&quot;&gt;&lt;/div&gt;
    &lt;div class=uif_posts_container&gt;
      &lt;div class=uif_post_list&gt;&lt;/div&gt;
      &lt;div class=&quot;uif_post_form_bottom uif_page&quot;&gt;
      &lt;div uitype=&quot;member&quot; noregisterform=&quot;true&quot;&gt;&lt;/div&gt;
      &lt;div class=uif_data&gt;
        &lt;div class=uif_subject_field&gt;
          &lt;input type=text class=&quot;site_textbox&quot; name=&quot;topic_subject&quot; value=&quot;&quot; placeholder=&quot;Titre du sujet&quot;/&gt;
        &lt;/div&gt;
        &lt;textarea class=&quot;uif_post_body site_textbox&quot; name=&quot;post_body&quot; placeholder=&quot;Message à publier&quot;&gt;&lt;/textarea&gt;
        &lt;div class=&quot;component_gdpr_container uif_gdpr&quot;&gt;&lt;/div&gt;
        &lt;div style=&quot;text-align:center&quot;&gt;&lt;input class=&quot;uif_add_post site_button&quot; type=submit value=&quot;Envoyer un nouveau message&quot;/&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=uif_footer&gt;
	  &lt;a href=&quot;#&quot; class=&quot;uif_all_topics site_button&quot;&gt;Tous les sujets&lt;/a&gt;&lt;a href=&quot;#&quot; class=&quot;uif_new_topic site_button&quot;&gt;Nouveau sujet&lt;/a&gt;
  &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</content><properties><checkbox default='true' help='Si coché, vous recevrez un email chaque fois qu&apos;un visiteur poste un message ou un nouveau sujet sur le forum. Vous pouvez configurer l&apos;adresse email de notification en vous rendant sur les pages &lt;i&gt;Mon compte&lt;/i&gt; puis &lt;i&gt;Mes emails&lt;/i&gt;.' name='notification' value='Notification' /><checkbox default='false' help='Si coché, quand un visiteur poste un message ou un nouveau sujet sur le forum, le message ne sera pas affiché tant que vous le publierez pas. Ceci permet de filtrer les messages envoyés.' name='validation' value='Validation' /><checkbox default='false' help='Pendant l&apos;inscription, le visiteur pourra s&apos;inscrire à la newsletter de votre site.' name='signup_with_nl' value='Proposer la newsletter' /></properties><design_properties><tabs display='Module|Éléments'><tab><number default='20' help='Ce paramètre permet de gérer le nombre de messages affichés sur chaque page.' minimum='1' name='post_nbr_per_page' title='Messages par page' /><number default='20' help='Ce paramètre permet de gérer le nombre de sujets affichés sur chaque page.' minimum='1' name='topic_nbr_per_page' title='Sujets par page' /><checkbox default='false' help='En activant cette fonction, vos visiteurs pourront &lt;b&gt;chercher sur votre forum&lt;/b&gt;.' name='search_field' value='Champ de recherche' /><trigger_preset class='gtsearchbox_prop_custom' gt_type='searchbox' help='Sélectionnez un style prédéfini pour le champ de recherche de la boutique' icon='palette' mode='select' name='searchbox_preset' text='Style de la recherche' /><option class='form_position' default='&apos;bottom&apos;' display='En haut|En bas' help='Sélectionnez ou afficher le formulaire d&apos;envoi.' name='form_position' title='Formulaire' values='top|bottom' /><checkbox default='true' help='Si cette option est cochée, la hauteur du module sera automatiquement adaptée au nombre de messages (ceci pourra éventuellement cacher des modules placés sous ce module). Sans cette option des barres de défilement permettent de parcourir tous les messages.' name='auto_size' value='Taille auto' /></tab><tab><trigger_preset class='gtbackdrop_prop_custom' gt_type='backdrop' help='Sélectionnez un style prédéfini de fond' icon='palette' mode='select' name='backdrops_preset' text='Style de fond' /><trigger_preset class='gtbutton_prop_custom' gt_type='buttonsgroup' help='Sélectionnez un style prédéfini pour la pagination' icon='palette' mode='select' name='pagination_preset' text='Style de la pagination' /><trigger_preset class='gtbutton_prop_custom' gt_type='button' help='Sélectionnez un style prédéfini pour les boutons' icon='palette' mode='select' name='buttons_preset' text='Style des boutons' /><trigger_preset class='gttextbox_prop_custom' gt_type='textbox' help='Sélectionnez un style prédéfini pour les champs texte du formulaire' icon='palette' mode='select' name='textboxes_preset' text='Style de champ texte' /></tab></tabs></design_properties></view><script>UI_Forum={cpts:[],addCpt:function(t){this.cpts.push(t)
;!this.cpts[0].idserver&amp;&amp;t.idserver&amp;&amp;this.cpts.reverse()},
remCpt:function(t){this.cpts.remove(t)},cptServer:function(){
return this.cpts.find(function(t){return t.idserver})}}
;UI_List.UI_Forum={initialize:function(t){this.cpt=t
;this.current_topic=null;this.current_page=null
;t.setOptions([&quot;locked&quot;]);UI_Forum.addCpt(t)},
onDisplay:function(t){var e=this;this.no_scroll=!0
;this.newly_created=this.cpt.newlyCreated;this.n={main:t}
;$.extend(this,componentGdpr)
;[&quot;topics&quot;,&quot;topic_list&quot;,&quot;posts&quot;,&quot;post_list&quot;,&quot;add_post&quot;,&quot;page&quot;,&quot;subject_field&quot;,&quot;new_topic&quot;,&quot;all_topics&quot;,&quot;post_body&quot;,&quot;footer&quot;,&quot;search&quot;,&quot;search_btn&quot;,&quot;gdpr&quot;,&quot;post_page&quot;,&quot;subject&quot;,&quot;posts_container&quot;].each(function(t){
e.n[t]=$(&quot;.uif_&quot;+t,e.n.main)});this._updateDisplayNewsletter()
;this.updateForm()
;this.size_getter_el=$(&quot;&lt;div&gt;&lt;/div&gt;&quot;).appendTo(this.n.main)[0]
;this.cpt.data.search_field=this.cpt.data.search_field||!1
;this.n.search.find(&quot;.uif_search_btn .fonticon&quot;).setIcon({
service:&quot;Google-material-icons&quot;,name:&quot;search&quot;})
;this.display_page_current_request=$.Deferred().resolve()
;this.displayPage({page:&quot;topics&quot;});this.onHashChange()
;this.n.new_topic.click(function(){e.displayPage({
page:&quot;new_topic&quot;});return!1});t.css(&quot;overflow&quot;,&quot;visible&quot;)
;this.n.all_topics.click(function(){e.displayPage({page:&quot;topics&quot;
});return!1});this.initGdpr()
;this.n.add_post.bind(&quot;click&quot;,function(){
var t=e.cpt.statusLoading(),i=e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?$(this).closest(&quot;.uif_data&quot;).parent():$(this).closest(&quot;.uif_post_form_top, .uif_post_form_bottom&quot;)
;if(e.testFormGdpr(i)){e.n.add_post.hide();var s={
request:&quot;add_post&quot;,post:{},topic_id:e.current_topic,
gdpr:e.getGdpr(e.n.gdpr)}
;i.find(&quot;.uif_data input,.uif_data textarea&quot;).not(&quot;[name=gdpr_checkbox]&quot;).each(function(t,e){
s.post[e.name]=e.value});e.cpt.ask(s,function(i){t.update(100)
;i.current_topic?e.displayPage({page:&quot;posts&quot;,
topic_id:i.current_topic,page_no:-1}):e.displayPage({
page:&quot;topics&quot;});e.n.post_body.val(&quot;&quot;)
;$(&quot;input&quot;,e.n.subject_field).val(&quot;&quot;)
;e.n.add_post.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.member_controller.showForm();e.updateCptSize()
;alert(&quot;Votre message a \xe9t\xe9 envoy\xe9.&quot;+(i.published?&quot;&quot;:&quot; Celui-ci sera publi\xe9 en ligne apr\xe8s validation.&quot;))
},function(i){t.update(100)
;e.n.add_post.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.member_controller.showForm();e.updateCptSize()
;alert(&quot;Votre message n&apos;a pas \xe9t\xe9 post\xe9 :\n&quot;+i.join(&quot;\n&quot;))
},i)}});this.n.search_btn.click(function(){e.displayPage({
page:&quot;search&quot;,query:$(&quot;input&quot;,e.n.search).val()})})
;$(&quot;input&quot;,this.n.search).on($.change_events,function(t){
13==t.which&amp;&amp;e.n.search_btn.click()})
;this.member_controller=new MemberController(this.n.main);e=this
;sigCtl.connect(&quot;Theme.changed&quot;,function(){e.updateCptSize()})
;sigCtl.connect(&quot;Member.connection_state_changed&quot;,function(){
e.member_controller.showForm();e.updateCptSize()})
;this.cpt.use_graphical_preset(&quot;button&quot;,[&quot;buttons_preset&quot;])
;this.cpt.use_graphical_preset(&quot;textbox&quot;,[&quot;textboxes_preset&quot;])
;this.cpt.use_graphical_preset(&quot;searchbox&quot;,[&quot;searchbox_preset&quot;])
;this.cpt.use_graphical_preset(&quot;backdrop&quot;,[&quot;backdrops_preset&quot;])
;this.cpt.use_graphical_preset(&quot;buttonsgroup&quot;,[&quot;pagination_preset&quot;])
;this.applyPreset();this.no_scroll=!1},displayPage:function(t){
var e=this;e.display_page_current_request.always(function(){
var i=e.cpt.statusLoading();e.n.page.hide();e.n.footer.hide()
;e.current_topic=null;e.n.search.toggle(e.cpt.data.search_field)
;e.no_scroll||&quot;viewer&quot;!=v.mode||e.n.main.scrollIntoView()
;switch(t.page){case&quot;posts&quot;:e.current_topic=t.topic_id
;e.display_page_current_request=e.cpt.ask({
request:&quot;display_page&quot;,page:t},function(i){t.page_no=i.page_no
;e.n.post_list.html(i.html);e.n.subject.html(i.subject)
;e.cpt.page.setCptUrl(&quot;/fp&quot;+t.topic_id+&quot;.&quot;+t.page_no+&quot;/&quot;+i.subject.to_alphanumeric(),i.subject,!0)
;e.n.subject_field.hide()
;e.n.posts.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.n.footer.toggle(e.n.post_list.find(&quot;fieldset&quot;).length&gt;2)
;e.member_controller.showForm()
;e.n.post_form.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.buildLinks();e.updateCptSize();e.applyPreset()
}).always(function(){i.update(100)});break;case&quot;topics&quot;:
e.display_page_current_request=e.cpt.ask({
request:&quot;display_page&quot;,page:t},function(i){t.page_no=i.page_no
;e.cpt.page.setCptUrl(null,null,!0);e.n.topic_list.html(i.html)
;e.n.topics.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.n.footer.toggle(e.n.topic_list.find(&quot;tr&quot;).length&gt;10)
;e.applyPreset();e.buildLinks();e.updateCptSize()
}).always(function(){
e.n.topics.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;i.update(100)});break;case&quot;new_topic&quot;:
e.display_page_current_request=$.Deferred().resolve()
;e.member_controller.showForm()
;e.n.main.find(&quot;.uif_post_form_top&quot;).css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.n.subject_field.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;i.update(100);e.updateCptSize();break;case&quot;search&quot;:
e.display_page_current_request=e.cpt.ask({
request:&quot;display_page&quot;,page:t},function(i){t.page_no=i.page_no
;e.n.post_list.html(i.html);e.n.subject_field.hide()
;e.n.posts.css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;e.n.post_form.hide();e.buildLinks();e.updateCptSize()
}).always(function(){i.update(100)})}e.current_page=t})},
onHashChange:function(){
var t=this,e=(this.cpt.page.cptUrl||&quot;&quot;).match(/f([pt])(\d+)(\.(\d+))?/)
;e&amp;&amp;(&quot;p&quot;==e[1]?t.displayPage({page:&quot;posts&quot;,
topic_id:parseInt(e[2]),page_no:parseInt(e[4])}):e[1])},
buildLinks:function(){var t=this
;$(&quot;.uif_a_topic&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(e){
if($(e.target).is(&quot;input&quot;))return!1;t.displayPage({page:&quot;posts&quot;,
topic_id:$(this).closest(&quot;[data-topic_id]&quot;).attr(&quot;data-topic_id&quot;),
page_no:$(this).closest(&quot;[data-page_no]&quot;).length?$(this).closest(&quot;[data-page_no]&quot;).data(&quot;page_no&quot;):1
})})
;$(&quot;.uif_last_reply:gt(0)&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(){
t.displayPage({page:&quot;posts&quot;,
topic_id:$(this).parents(&quot;tr:first&quot;).attr(&quot;data-topic_id&quot;),
page_no:-1})})
;$(&quot;.uif_delete_topic&quot;,this.n.main).addClass(&quot;uif_clickable site_link&quot;).click(function(){
confirm(&quot;Voulez-vous vraiment supprimer ce sujet ainsi que les messages associ\xe9s ?&quot;)&amp;&amp;t.cpt.ask({
request:&quot;delete_topic&quot;,
topic_id:$(this).parents(&quot;tr:first&quot;).attr(&quot;data-topic_id&quot;)
},function(){statusController.message(&quot;Sujet supprim\xe9&quot;)
;t.displayPage(t.current_page)},function(){
statusController.message(&quot;Impossible de supprimer le sujet&quot;,&quot;error&quot;)
})})
;$(&quot;.uif_edit_topic&quot;,this.n.main).addClass(&quot;uif_clickable site_link&quot;).unbind(&quot;click&quot;).click(function(){
$(&quot;.uif_edit_topic,.uif_delete_topic&quot;,t.n.main).hide()
;var e=$(this).parents(&quot;tr:first&quot;).attr(&quot;data-topic_id&quot;),i=$(this).closest(&quot;tr&quot;).find(&quot;.uif_subject&quot;)
;i.click(function(){return!1});var s=i.text()
;i.html(&quot;&lt;input type=text class=&apos;site_textbox&apos;&gt;&quot;)
;i.find(&quot;input&quot;).val(s)
;t.n.topic_list.find(&quot;.uif_save_edit_subject&quot;).off(&quot;click&quot;).css(&quot;display&quot;,t.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;).addClass(&quot;uif_clickable site_link&quot;).click(function(){
&quot;&quot;!=i.find(&quot;input&quot;).val()&amp;&amp;t.cpt.ask({request:&quot;update_subject&quot;,
topic_id:e,subject:i.find(&quot;input&quot;).val()},function(e){
if(e.success){var s=i.find(&quot;input&quot;).val()
;i.text(s).css(&quot;background-color&quot;,&quot;#C4F2C8&quot;);t.updateCptSize()
;setTimeout(function(){i.css(&quot;background-color&quot;,&quot;&quot;)},3e3)
;$(&quot;.uif_cancel_edit_subject,.uif_save_edit_subject&quot;,t.n.topic_list).hide()
;$(&quot;.uif_edit_topic,.uif_delete_topic&quot;,t.n.topic_list).css(&quot;display&quot;,t.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
}})})
;t.n.topic_list.find(&quot;.uif_cancel_edit_subject&quot;).off(&quot;click&quot;).css(&quot;display&quot;,t.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;).addClass(&quot;uif_clickable&quot;).click(function(){
i.text(s)
;$(&quot;.uif_cancel_edit_subject,.uif_save_edit_subject&quot;,t.n.topic_list).hide()
;$(&quot;.uif_edit_topic,.uif_delete_topic&quot;,t.n.topic_list).css(&quot;display&quot;,t.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
})})
;$(&quot;.uif_delete_post&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(){
var e=$(this).attr(&quot;post_id&quot;)
;$(&quot;.post_&quot;+e).find(&quot;.uif_body&quot;).css(&quot;background&quot;,&quot;#EFC2C2&quot;)
;confirm(&quot;Voulez-vous vraiment supprimer ce message ?&quot;)?t.cpt.ask({
request:&quot;delete_post&quot;,post_id:e},function(e){
statusController.message(&quot;Message supprim\xe9&quot;)
;e.topic_deleted?t.displayPage({page:&quot;topics&quot;
}):t.displayPage(t.current_page)},function(){
statusController.message(&quot;Impossible de supprimer ce message&quot;,&quot;error&quot;)
}):$(&quot;.post_&quot;+e).find(&quot;.uif_body&quot;).css(&quot;background&quot;,&quot;transparent&quot;)
})
;$(&quot;.uif_hide_post&quot;,this.n.main).unbind(&quot;click&quot;).click(function(){
var t=$($(this).parents()[1]).attr(&quot;class&quot;).match(/post_[\d]+/)[0],e=$(&quot;.&quot;+t).find(&quot;.uif_body, .uif_margin_left&quot;)
;if(&quot;-&quot;==$(this).text()){$(this).text(&quot;+&quot;)
;e.slideUp(600,function(){
$(&quot;.&quot;+t).find(&quot;.uif_header_member&quot;).text($(&quot;.&quot;+t+&quot; .uif_name&quot;).text())
})}else{$(this).text(&quot;-&quot;)
;$(&quot;.&quot;+t).find(&quot;.uif_header_member&quot;).text(&quot;&quot;);e.slideDown(600)}
})
;$(&quot;.uif_edit_post&quot;,this.n.main).unbind(&quot;click&quot;).click(function(){
var e=$(this).attr(&quot;post_id&quot;),i=$(&quot;.uif_post_holder.post_&quot;+e,t.n.main),s=i.find(&quot;.uif_body&quot;).html()
;i.find(&quot;.uif_body&quot;).html(&quot;&lt;textarea class=&apos;site_textbox&apos;&gt;&lt;/textarea&gt;&quot;)
;i.find(&quot;textarea&quot;).val(i.find(&quot;.uif_body&quot;).data(&quot;body_text&quot;))
;i.find(&quot;.manage_post&quot;).fadeOut(function(){
i.find(&quot;.uif_body_edit&quot;).fadeIn()});t.updateCptSize()
;i.find(&quot;.uif_save_edit&quot;).parent().unbind(&quot;click&quot;).click(function(){
&quot;&quot;!=i.find(&quot;textarea&quot;).val()&amp;&amp;t.cpt.ask({
request:&quot;update_message&quot;,post_id:e,
message:i.find(&quot;textarea&quot;).val()},function(e){if(e.success){
i.find(&quot;.uif_body&quot;).html(e.post_body).data(&quot;body_text&quot;,e.post_body_text).css(&quot;background-color&quot;,&quot;#C4F2C8&quot;)
;i.find(&quot;.uif_body_edit&quot;).fadeOut(function(){
i.find(&quot;.manage_post&quot;).fadeIn()});t.updateCptSize()
;setTimeout(function(){
i.find(&quot;.uif_body&quot;).css(&quot;background-color&quot;,&quot;transparent&quot;)},1500)
}})})
;i.find(&quot;.uif_cancel_edit&quot;).parent().unbind(&quot;click&quot;).click(function(){
i.find(&quot;.uif_body_edit&quot;).fadeOut(function(){
i.find(&quot;.manage_post&quot;).fadeIn()});t.updateCptSize()
;i.find(&quot;.uif_body&quot;).html(s)})})
;$(&quot;.uif_publish_post&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(){
t.cpt.ask({request:&quot;publish_post&quot;,
post_id:$(this).attr(&quot;post_id&quot;)},function(){
statusController.message(&quot;Message publi\xe9&quot;)
;t.displayPage(t.current_page)},function(){
statusController.message(&quot;Impossible de publier ce message&quot;,&quot;error&quot;)
})})
;$(&quot;.uif_page_no&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(){
t.displayPage(Object.extend(Object.extend({},t.current_page),{
page_no:parseInt($(this).attr(&quot;data-pageno&quot;))}))})
;$(&quot;.uif_page_no&quot;,this.n.main).addClass(&quot;uif_clickable&quot;).click(function(){
t.displayPage(Object.extend(Object.extend({},t.current_page),{
page_no:parseInt($(this).attr(&quot;data-pageno&quot;))}))})
;t.current_page.page_no&amp;&amp;$(&quot;.uif_page_no[data-pageno=&quot;+(this.current_page.page_no||1)+&quot;]&quot;,this.n.main).removeClass(&quot;uif_clickable&quot;).addClass(&quot;selected&quot;)
},onShow:function(){this.updateCptSize()},onRemove:function(){
UI_Forum.remCpt(this.cpt)},onSelect:function(){this.updateGdpr()
;this._showProp()},onSave:function(){
this.newly_created&amp;&amp;this.displayPage(this.current_page)
;this.newly_created=!1},updateCptSize:function(){
if(this.cpt.data.auto_size){this.cpt.setSize({h:1e4})
;this.cpt.setSize({h:this.size_getter_el.offsetTop})}},
updateForm:function(){
var t=this.cpt.data.form_position||&quot;bottom&quot;;this.n.post_form=$()
;-1==t.indexOf(&quot;top&quot;)||this.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)||(this.n.post_form=this.n.post_form.add($(&quot;.uif_post_form_top&quot;,this.n.main)))
;-1!=t.indexOf(&quot;bottom&quot;)&amp;&amp;(this.n.post_form=this.n.post_form.add($(&quot;.uif_post_form_bottom&quot;,this.n.main)))
},onPropertyChanged:function(t){
t.include(&quot;signup_with_nl&quot;)&amp;&amp;this._updateDisplayNewsletter()
;t.include(&quot;form_position&quot;)&amp;&amp;this.updateForm()
;if(t.include(&quot;buttons_preset&quot;)||t.include(&quot;backdrops_preset&quot;)||t.include(&quot;searchbox_preset&quot;)||t.include(&quot;search_field&quot;)||t.include(&quot;pagination_preset&quot;)){
this.updateForm();this.applyPreset()}
this.displayPage(this.current_page);this._showProp()},
onResizeStop:function(){this.updateCptSize()},
onFontFamilyUpdate:function(){this.updateCptSize()},
_showProp:function(){
var t=$(this.cpt.propertyNode).add(this.cpt.propertyDesignNode),e=this
;this.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?$(&quot;.form_position&quot;,t).hide():$(&quot;.form_position&quot;,t).css(&quot;display&quot;,e.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)?&quot;inline-block&quot;:&quot;block&quot;)
;$(&quot;.gtbutton_prop_custom, .gttextbox_prop_custom, .gtbackdrop_prop_custom, .gtsearchbox_prop_custom&quot;,t).toggle(GraphicalType.available)
;$(&quot;.gtsearchbox_prop_custom&quot;,t).toggle(this.cpt.data.search_field&amp;&amp;GraphicalType.available)
},_updateDisplayNewsletter:function(){
$(&quot;.mbm_nl&quot;).toggle(this.cpt.data.signup_with_nl)},
applyPreset:function(){if(GraphicalType.available){
var t=GraphicalType.graphical_types.button.preset_data.prefix
;(i=$().add(this.cpt.node.find(&quot;.uif_header, .member_unlogged div, .manage_post ul, .uif_header &gt; div&quot;)).add(this.cpt.node.find(&quot;.uif_add_post&quot;).parent()).add(this.cpt.node.find(&quot;.manage_post ul&quot;)).add(this.n.post_list.find(&quot;.uif_body_edit .uif_save_edit, .uif_body_edit .uif_cancel_edit&quot;).parent())).removeClassMatch(new RegExp(t))
;(e=this.cpt.getGTPreset(&quot;button&quot;,&quot;buttons_preset&quot;))&amp;&amp;i.addClass(&quot;gtbutton_preset &quot;+t+&quot;_&quot;+e)
;t=GraphicalType.graphical_types.textbox.preset_data.prefix
;this.n.page.removeClassMatch(new RegExp(t))
;(e=this.cpt.getGTPreset(&quot;textbox&quot;,&quot;textboxes_preset&quot;))&amp;&amp;this.n.page.addClass(t+&quot; &quot;+t+&quot;_&quot;+e)
;t=GraphicalType.graphical_types.backdrop.preset_data.prefix
;(i=this.n.topics.add(this.n.posts).add(this.n.main.find(&quot;.uif_post_form_top&quot;))).removeClassMatch(new RegExp(t))
;if(e=this.cpt.getGTPreset(&quot;backdrop&quot;,&quot;backdrops_preset&quot;)){
this.n.topic_list.parent().add(this.n.posts_container).add(this.n.main.find(&quot;.uif_post_form_top &gt; div&quot;)).addClass(&quot;gt_backdrop_content&quot;)
;this.n.post_page.find(&quot;.uif_subject&quot;).addClass(&quot;gt_backdrop_title&quot;)
;i.addClass(t+&quot; &quot;+t+&quot;_&quot;+e)
}else this.n.main.find(&quot;*&quot;).removeClass(&quot;gt_backdrop_content&quot;)
;t=GraphicalType.graphical_types.searchbox.preset_data.prefix
;var e=this.cpt.getGTPreset(&quot;searchbox&quot;,&quot;searchbox_preset&quot;)
;this.n.main.find(&quot;.uif_search&quot;).removeClassMatch(new RegExp(t))
;e&amp;&amp;this.cpt.data.search_field&amp;&amp;this.n.main.find(&quot;.uif_search&quot;).addClass(t+&quot; &quot;+t+&quot;_&quot;+e)
;var i
;t=GraphicalType.graphical_types.buttonsgroup.preset_data.prefix,e=this.cpt.getGTPreset(&quot;buttonsgroup&quot;,&quot;pagination_preset&quot;)
;(i=$().add(this.n.topic_list.find(&quot;.uif_pages_list&quot;)).add(this.n.post_list.find(&quot;.uif_pages_list&quot;))).removeClassMatch(t)
;e&amp;&amp;i.addClass(t+&quot; &quot;+t+&quot;_&quot;+e);this.updateCptSize()}}};</script><style>div.UI_Forum div.uif_header,div.UI_Forum div.uif_footer{margin-bottom:11px;text-align:right;padding-top:6px}
div.UI_Forum .uif_header{display:flex;grid-template-columns:1fr 1fr}
div.UI_Forum .uif_header&gt;div{width:100%}
div.UI_Forum div.uif_header{margin-bottom:20px}
div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=text],div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=password],div.UI_Forum .uif_page:not(.gttextbox_preset) textarea{background-color:#F8F8F8;border:1px solid #CCC}
div.UI_Forum .uif_page:not(.gttextbox_preset) textarea:focus,div.UI_Forum .uif_page:not(.gttextbox_preset) textarea:active,div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=password]:focus,div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=password]:active,div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=text]:focus,div.UI_Forum .uif_page:not(.gttextbox_preset) input[type=text]:active{background-color:#F9EED4}
.uif_data [name=topic_subject],.uif_data textarea{box-sizing:border-box;width:100%}
.uif_subject_field{margin-bottom:10px}
.uif_data textarea{height:300px}
div.UI_Forum table{width:100%}
div.UI_Forum div.uif_name{font-weight:700;text-transform:capitalize}
div.UI_Forum div.uif_post_stats{border:1px solid transparent;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;margin:5px;overflow:hidden}
div.UI_Forum div.uif_posts{margin:0}
div.UI_Forum .uif_post_holder{padding:0;border-width:1px;border-style:solid;position:relative}
div.UI_Forum .uif_posts_container:not(.gt_backdrop_content) .uif_post_holder{margin:5px}
div.UI_Forum .uif_posts_container.gt_backdrop_content .uif_post_holder{margin-bottom:5px}
div.UI_Forum div.uif_body{min-height:140px;padding:5px;margin:5px 0 0 120px;position:relative;text-align:justify;overflow-wrap:break-word;transition:background-color .5s linear;-moz-transition:background-color .5s linear;-o-transition:background-color .5s linear;-webkit-transition:background-color .5s linear}
div.UI_Forum .uif_replies{text-align:center}
div.UI_Forum .uif_last_reply{text-align:right}
div.UI_Forum .uif_topic_creation,div.UI_Forum tbody .uif_last_reply{font-size:.9em;font-style:italic}
.manage_post{float:right;padding:5px;width:100%}
.uif_body_edit{text-align:center;padding:10px 0;display:none}
.manage_post&gt;ul,.uif_body_edit&gt;ul{display:inline;list-style:none outside none}
.uif_body_edit li{display:inline}
.manage_post li{float:right}
.manage_post li,.uif_body_edit li,.uif_add_post{border:1px solid transparent;cursor:pointer;margin:0 3px;padding:4px 10px;transition:background-color .3s linear,color .3s linear,border-color .3s linear;-moz-transition:background-color .5s linear,color .3s linear,border-color .3s linear;-o-transition:background-color .3s linear,color .3s linear,border-color .3s linear;-webkit-transition:background-color .3s linear,color .3s linear,border-color .3s linear}
div.UI_Forum .uif_cancel_edit,div.UI_Forum .uif_save_edit{cursor:pointer}
div.UI_Forum .uif_delete_topic,div.UI_Forum .uif_edit_topic,div.UI_Forum .uif_cancel_edit_subject,div.UI_Forum .uif_save_edit_subject{float:right;margin-left:10px;color:#888;cursor:pointer}
div.UI_Forum .uif_cancel_edit_subject,div.UI_Forum .uif_save_edit_subject{display:none}
div.UI_Forum .uif_body textarea{width:calc(100% - 10px);min-height:200px}
div.UI_Forum .uif_delete_topic:hover{color:#AA0505}
div.UI_Forum .tpl_table td{padding:5px}
div.UI_Forum .uif_pages_list{text-align:center;margin:5px 0}
div.UI_Forum .uif_page div[uitype=member]{margin-bottom:5px}
div.UI_Forum :not(.gtbutton_preset):not(.gtbuttonsgroup_preset)&gt;.uif_clickable,div.UI_Forum .uif_clickable:not(.site_button):not(.site_pagination){cursor:pointer}
div.UI_Forum div.uif_margin_left{border-right:1px solid transparent;bottom:0;position:absolute;top:30px;max-width:120px;width:20%;min-width:65px}
div.UI_Forum div.header_post{height:30px;width:100%}
div.UI_Forum span.uif_date{font-size:.9em;font-style:italic;padding-left:10px;line-height:30px}
div.UI_Forum span.uif_header_member{padding-left:10px}
div.UI_Forum .uif_margin_left&gt;table{margin-top:20px;text-align:center}
div.UI_Forum .uif_all_topics,div.UI_Forum .uif_new_topic{margin:0 3px;padding:3px 8px;text-decoration:none}
div.UI_Forum .uif_hide_post{border:1px solid;float:right;font-family:monospace;font-size:12px;margin-right:7px;margin-top:7px;text-align:center;width:15px;cursor:pointer}
div.UI_Forum .uif_a_topic{padding:1px 0 3px}
div.UI_Forum .uif_subject:not(.gt_backdrop_title):hover{text-decoration:underline}
.uif_search{border-left:3px solid transparent;border-top:3px solid transparent;margin-top:-8px}
.uif_search div{text-align:left}
.uif_search&gt;div:first-child{display:flex}
.uif_search&gt;div:first-child&gt;div:first-child{width:100%}
.uif_search.uif_search_result{border-top-color:#ededed;border-left-color:#ededed}
.uif_search.gtsearchbox_preset .uif_search_btn{display:inherit}
.uif_search.gtsearchbox_preset .uif_search_btn .fonticon{vertical-align:middle}
.uif_search input{height:30px;width:100%}
.uif_search .site_search{box-sizing:border-box}
.uif_goto_topic a{float:right}
.UI_Forum .uif_header:not(.gtbutton_preset) .site_button{border:1px solid}
.uif_post_form_bottom{width:100%}</style></uidget>