From 4d8618fa590e4ff1c6a396cd6015e9130f270c0a Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 2 Oct 2017 16:07:07 +0200 Subject: [PATCH] Fixed the position of items in the 'New revision' fieldset when user clone a node --- themes/zuitedesk/template.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/themes/zuitedesk/template.php b/themes/zuitedesk/template.php index 56896f5..1a413a0 100644 --- a/themes/zuitedesk/template.php +++ b/themes/zuitedesk/template.php @@ -147,6 +147,11 @@ function zuitedesk_preprocess_page(&$vars, $hook) { $vars['head_title'] = str_replace(array('°', 'ª', '⁻'), '', $vars['head_title']); } + // Body class for node clone: + if (is_numeric(arg(1)) && arg(2) == 'clone' && arg(3) == '') { + $vars['classes_array'][] = 'section-node-clone'; + } + // We need to re-do the $layout and body classes because // template_preprocess_page() assumes sidebars are named 'left' and 'right'. if (!empty($vars['sidebar_main'])) {