Answer according updated question:
Use this function in template.php
.
/**
* Implements hook_form_alter().
*/
function THEMENAME_form_alter(&$form, &$form_state, $form_id) {
global $user;
$is_administrator = in_array('administrator', array_values($user->roles));
if($form_id == 'my_form_id'){
// if $user does NOT have the administrator role.
if (!$is_administrator) {
// disable vertical tabs for this form
form_disable_vertical_tabs($form);
}
}
}
Answer before updating question:
You may use this snippet in page.tpl
of your currently active theme.
global $user;
$roleid = paste_role_id_of_admin; //
if(user_has_role($roleid, $user)) {
<?php print $sidebar_first; ?>
}
OR
if($is_admin){
<?php print $sidebar_first; ?>
}