diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 2099102cced..379e5d2e05c 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -56,6 +56,7 @@ $type_container=GETPOST('WEBSITE_TYPE_CONTAINER', 'alpha'); $section_dir = GETPOST('section_dir', 'alpha'); $file_manager = GETPOST('file_manager', 'alpha'); +$replacesite = GETPOST('replacesite', 'alpha'); if (GETPOST('deletesite', 'alpha')) { $action='deletesite'; } if (GETPOST('delete', 'alpha')) { $action='delete'; } @@ -73,6 +74,7 @@ if (GETPOST('importsite', 'alpha')) { $action='importsite'; } if (GETPOST('createfromclone', 'alpha')) { $action='createfromclone'; } if (GETPOST('createpagefromclone', 'alpha')) { $action='createpagefromclone'; } if (empty($action) && $file_manager) $action='file_manager'; +if (empty($action) && $replacesite) $action='replacesite'; // Load variable for pagination $limit = GETPOST('limit', 'int')?GETPOST('limit', 'int'):$conf->liste_limit; @@ -1745,6 +1747,10 @@ if ($action == 'file_manager') { print ''; } +if ($action == 'replacesite') +{ + print ''; +} print '
'; @@ -1817,9 +1823,7 @@ if (! GETPOST('hide_websitemenu')) print '   '; print ''; - //print ''; - print ''; - print ''; + if (! $atleastonepage) { print ''; @@ -1829,11 +1833,16 @@ if (! GETPOST('hide_websitemenu')) print ''; } + //print ''; + print ''; + print ''; + print ''; print '   '; - print ''; + print 'ref.'" class="button nobordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("MediaFiles")).'">'; + //print ''; /*print ''.dol_escape_htmltag($langs->trans("MediaFiles")).''; print ''; */ + + //print ''.dol_escape_htmltag($langs->trans("Replace")).'" name="replacesite">'; + print 'ref.'" class="button nobordertransp"'.$disabled.' title="'.dol_escape_htmltag($langs->trans("ReplaceWebSiteContent")).'">'; } print '
'; @@ -1900,10 +1912,10 @@ if (! GETPOST('hide_websitemenu')) print ''; } - if (in_array($action, array('editcss','editmenu','file_manager'))) + if (in_array($action, array('editcss','editmenu','file_manager','replacesite'))) { - if (preg_match('/^create/', $action) && $action != 'file_manager') print ''; - if (preg_match('/^edit/', $action) && $action != 'file_manager') print ''; + if (preg_match('/^create/', $action) && $action != 'file_manager' && $action != 'replacesite') print ''; + if (preg_match('/^edit/', $action) && $action != 'file_manager' && $action != 'replacesite') print ''; if ($action != 'preview') print ''; } @@ -2155,7 +2167,7 @@ if (! GETPOST('hide_websitemenu')) // TODO Add js to save alias like we save virtual host name and use dynamic virtual host for url of id=previewpageext } - if (! in_array($action, array('editcss','editmenu','file_manager','createsite','createcontainer','createpagefromclone'))) + if (! in_array($action, array('editcss','editmenu','file_manager','replacesite','createsite','createcontainer','createpagefromclone'))) { if (preg_match('/^create/', $action)) print ''; if (preg_match('/^edit/', $action)) print ''; @@ -2815,7 +2827,7 @@ if ($action == 'editmeta' || $action == 'createcontainer') if ($action == 'editfile' || $action == 'file_manager') { print ''."\n"; - print '


'; + print '

'; //print '
'.$langs->trans("FeatureNotYetAvailable").''; $module = 'medias'; @@ -2825,6 +2837,18 @@ if ($action == 'editfile' || $action == 'file_manager') print '
'; } +if ($action == 'replacesite') +{ + print ''."\n"; + print '

'; + + print load_fiche_titre($langs->trans("ReplaceWebSiteContent")); + + print '
'.$langs->trans("FeatureNotYetAvailable").''; + + print '
'; +} + if ($action == 'editmenu') { print ''."\n";