29if (empty($conf) || !is_object($conf)) {
30 print
"Error, template page can't be called as URL";
35<!-- BEGIN PHP TEMPLATE formlayoutai.tpl.php -->
39if ($showlinktolayout) {
40 $out .=
'<a href="#" id="linkforlayouttemplates" class="reposition notasortlink inline-block alink marginrightonly">';
41 $out .=
img_picto($showlinktolayoutlabel,
'layout',
'class="paddingrightonly"');
42 $out .= $showlinktolayoutlabel.
'...';
43 $out .=
'</a> ';
46 $(document).ready(function() {
47 $("#linkforlayouttemplates").click(function() {
48 console.log("We click on linkforlayouttemplates");
49 event.preventDefault();
50 jQuery("#template-selector").toggle();
51 jQuery("#ai_input").hide();
52 jQuery("#pageContent").show(); // May exists for website page only
60 $out .=
'<a href="#" id="linkforaiprompt" class="reposition notasortlink inline-block alink marginrightonly">';
61 $out .=
img_picto($showlinktoailabel,
'ai',
'class="paddingrightonly"');
62 $out .= $showlinktoailabel.
'...';
66 $(document).ready(function() {
67 $("#linkforaiprompt").click(function() {
68 console.log("We click on linkforaiprompt");
69 event.preventDefault();
70 jQuery("#ai_input").toggle();
71 jQuery("#template-selector").hide();
72 if (!jQuery("ai_input").is(":hidden")) {
73 console.log("Set focus on input field");
74 jQuery("#ai_instructions").focus();
75 if (!jQuery("pageContent").is(":hidden")) { // May exists for website page only
76 jQuery("#pageContent").show();
84if ($showlinktolayout) {
85 if (!empty($formwebsite) && is_object($formwebsite)) {
86 $out .= $formwebsite->getContentPageTemplate($htmlname);
88 $out .= $formmail->getModelEmailTemplate($htmlname);
92 $out .= $formmail->getSectionForAIPrompt($showlinktoai, $formmail->withaiprompt, $htmlname);
96<!-- END PHP TEMPLATE commonfields_edit.tpl.php -->
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)