From fcf42802a3122def268e547d0cd6efea5458ad3e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 27 Dec 2017 21:13:42 +0100 Subject: [PATCH] More example for website --- htdocs/website/index.php | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 70b92dabc71..f823c5158a9 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -610,6 +610,12 @@ if ($action == 'addcontainer') $htmlheadercontent ="\n"; $htmlheadercontent.=''."\n"; $htmlheadercontent.=''."\n"; + + $htmlheadercontent.=''."\n"; + $htmlheadercontent.=''."\n"; + + $htmlheadercontent.=''."\n"; + $htmlheadercontent.=''."\n"; $htmlheadercontent.=""; $result=dolSaveHtmlHeader($filehtmlheader, $htmlheadercontent); @@ -1749,9 +1755,17 @@ if ($action == 'editcss') // Common HTML header print ''; $htmlhelp=$langs->trans("Example").' :
'; + $htmlhelp.='
'; $htmlhelp.='<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous" ></script>
'; $htmlhelp.='<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous" ></script>
'; + $htmlhelp.='
'; $htmlhelp.='<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
'; + $htmlhelp.='
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" ></script>
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.13.0/umd/popper.min.js" ></script>
'; + $htmlhelp.='
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/js/bootstrap.min.js" ></script>
'; + print $form->textwithpicto($langs->trans('WEBSITE_HTML_HEADER'), $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip'); print ''; @@ -1977,10 +1991,19 @@ if ($action == 'editmeta' || $action == 'createcontainer') print ''; $htmlhelp=$langs->trans("EditTheWebSiteForACommonHeader").'

'; - $htmlhelp.=$langs->trans("Example").' :
'; + + $htmlhelp=$langs->trans("Example").' :
'; + $htmlhelp.='
'; $htmlhelp.='<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous" ></script>
'; $htmlhelp.='<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js" integrity="sha256-T0Vest3yCU7pafRw9r+settMBX6JkKN06dqBnpQ8d30=" crossorigin="anonymous" ></script>
'; + $htmlhelp.='
'; $htmlhelp.='<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" />
'; + $htmlhelp.='
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" ></script>
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.13.0/umd/popper.min.js" ></script>
'; + $htmlhelp.='
'; + $htmlhelp.='<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/js/bootstrap.min.js" ></script>
'; + print $form->textwithpicto($langs->trans('HtmlHeaderPage'), $htmlhelp, 1, 'help', '', 0, 2, 'htmlheadertooltip'); print ''; $doleditor=new DolEditor('htmlheader', $pagehtmlheader, '', '220', 'ace', 'In', true, false, 'ace', 0, '100%', '');