'Ajouter', 'Delete' => 'Supprimer' )); Markup('foxsectionend','")); Markup('foxsection','")); function FoxSection($m) { global $HTMLHeaderFmt, $HTMLFooterFmt, $HTMLStylesFmt;; $sClassName = $m[1]; $args = ParseArgs($m[2]); $dep = $args['dep']; $value = $args['value']; SDV($HTMLHeaderFmt['foxsection'], ""); $HTMLStylesFmt['draggable'] = " .dragging * {opacity:0 !important;} .movesectionicon {min-width:unset; cursor: grab; display:none; touch-action: none;} .movesectionicon svg {width:0px; height:0px;} .deletesectionbutton {display:none;} "; $ret = "
"; if ($dep && $value) { // section must be shown or hidden when: // 1) the page display the section is copied (by reNumber which set the section display based on the value of the source input element) // 2) the source input element is changed $ret .= ""; $HTMLFooterFmt[$sClassName] = ""; } else { $HTMLFooterFmt[$sClassName] = ""; } return Keep($ret); } function FoxSectionCopyButton($m) { $args = ParseArgs($m[2]); $text = isset($args['text']) ? $args['text'] : XL("Add"); $class = isset($args['class']) ? $args['class'] : ""; $sMaxCopy = isset($args['maxcopy']) ? $args['maxcopy'] : ""; $ret = ""; return Keep($ret); } function FoxSectionDeleteButton($m) { $args = ParseArgs($m[1]); $text = isset($args['text']) ? $args['text'] : XL("Delete"); $class = isset($args['class']) ? $args['class'] : ""; $ret = ""; return Keep($ret); } function FoxSectionMoveIcon($m) { $args = ParseArgs($m[1]); $size = isset($args['size']) ? ("width: ".$args['size']."px;") : ""; $class = isset($args['class']) ? $args['class'] : ""; $text = isset($args['text']) ? $args["text"] : ""; $ret = ""; return Keep($ret); } ?>