Minor - format code.

1.9.x
Julio Montoya 11 years ago
parent 8dd695ebcf
commit a7fa99fa04
  1. 16
      main/admin/configure_homepage.php

@ -40,9 +40,7 @@ function home_tabs($file_logged_in)
fputs($fp, implode("\n", $data_logged_in));
fclose($fp);
}
/**
* Code
*/
$language_file = array('index','admin', 'accessibility');
$cidReset = true;
require_once '../inc/global.inc.php';
@ -258,7 +256,6 @@ if (!empty($action)) {
$fp = fopen($homep.$topf.'_'.$lang_name.$ext, 'w');
fputs($fp, $home_top);
fclose($fp);
}
}
}
@ -295,7 +292,6 @@ if (!empty($action)) {
}
}
}
} else {
fputs($fp, '');
@ -306,7 +302,6 @@ if (!empty($action)) {
$fp1 = fopen($homep.$noticef.'_'.$lang_name.$ext, 'w');
fputs($fp1, '');
fclose($fp1);
}
}
}
@ -478,8 +473,6 @@ if (!empty($action)) {
break;
}
}
$home_menu[$insert_where + 1] = '<li '.$class_add_in_tab.'><a href="'.$link_url.'" target="'.($target_blank ? '_blank' : '_self').'"><span>'.$link_name.'</span></a></li>';
} else {
// If the request is about a link edition, change the link
@ -931,7 +924,7 @@ switch ($action) {
$renderer->setRequiredNoteTemplate('');
$form->addElement('hidden', 'formSent', '1');
if ($action == 'edit_news'){
if ($action == 'edit_news') {
$_languages = api_get_languages();
$html = '<tr><td>'.get_lang('ChooseNewsLanguage').' : ';
$html .= '<select name="news_languages">';
@ -972,7 +965,6 @@ switch ($action) {
$html_langs .= '</tr><tr>';
}
$form->addElement('html', $html_langs);
}
}
$form->addElement('html','</tr></table><br/>');
@ -1151,12 +1143,9 @@ switch ($action) {
echo '</div>';
?>
</div>
<div class="well sidebar-nav">
<a href="<?php echo api_get_self(); ?>?action=insert_link"><?php Display::display_icon('addd.gif', get_lang('InsertLink')); ?></a>
<a href="<?php echo api_get_self(); ?>?action=insert_link"><?php echo get_lang('InsertLink'); ?></a>
<h4><?php echo api_ucfirst(get_lang('General')); ?></h4>
<ul class="menulist">
<?php
@ -1187,7 +1176,6 @@ switch ($action) {
?>
</ul>
</div>
</td>
</tr>
</table>

Loading…
Cancel
Save