diff --git a/htdocs/website/index.php b/htdocs/website/index.php index c3facf51551..19c9c31da71 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -1937,16 +1937,15 @@ if (count($object->records) > 0) // There is at least one web site print '
'; print '
'; + print $langs->trans("EditInLine"); if ($websitepage->grabbed_from) { //print ''; - $langs->trans("EditInLine"); - print ''.img_picto($langs->trans("EditInLineOff"),'switch_off','',false,0,0,'','nomarginleft').''; + print ''.img_picto($langs->trans("OnlyEditionOfSourceForGrabbedContent"),'switch_off','',false,0,0,'','nomarginleft').''; } else { //print ''; - print $langs->trans("EditInLine"); if (empty($conf->global->WEBSITE_EDITINLINE)) { print ''.img_picto($langs->trans("EditInLineOff"),'switch_off','',false,0,0,'','nomarginleft').''; @@ -1959,13 +1958,20 @@ if (count($object->records) > 0) // There is at least one web site print '
'; print '
'; print $langs->trans("ShowSubcontainers"); - if (empty($conf->global->WEBSITE_SUBCONTAINERSINLINE)) + if ($websitepage->grabbed_from) { - print ''.img_picto($langs->trans("ShowSubContainersOff"),'switch_off','',false,0,0,'','nomarginleft').''; + print ''.img_picto($langs->trans("OnlyEditionOfSourceForGrabbedContent"),'switch_off','',false,0,0,'','nomarginleft').''; } else { - print ''.img_picto($langs->trans("ShowSubContainersOn"),'switch_on','',false,0,0,'','nomarginleft').''; + if (empty($conf->global->WEBSITE_SUBCONTAINERSINLINE)) + { + print ''.img_picto($langs->trans("ShowSubContainersOff"),'switch_off','',false,0,0,'','nomarginleft').''; + } + else + { + print ''.img_picto($langs->trans("ShowSubContainersOn"),'switch_on','',false,0,0,'','nomarginleft').''; + } } print '
'; print '
';