Minor - format code.

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

@ -40,9 +40,7 @@ function home_tabs($file_logged_in)
fputs($fp, implode("\n", $data_logged_in)); fputs($fp, implode("\n", $data_logged_in));
fclose($fp); fclose($fp);
} }
/**
* Code
*/
$language_file = array('index','admin', 'accessibility'); $language_file = array('index','admin', 'accessibility');
$cidReset = true; $cidReset = true;
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
@ -258,7 +256,6 @@ if (!empty($action)) {
$fp = fopen($homep.$topf.'_'.$lang_name.$ext, 'w'); $fp = fopen($homep.$topf.'_'.$lang_name.$ext, 'w');
fputs($fp, $home_top); fputs($fp, $home_top);
fclose($fp); fclose($fp);
} }
} }
} }
@ -295,7 +292,6 @@ if (!empty($action)) {
} }
} }
} }
} else { } else {
fputs($fp, ''); fputs($fp, '');
@ -306,7 +302,6 @@ if (!empty($action)) {
$fp1 = fopen($homep.$noticef.'_'.$lang_name.$ext, 'w'); $fp1 = fopen($homep.$noticef.'_'.$lang_name.$ext, 'w');
fputs($fp1, ''); fputs($fp1, '');
fclose($fp1); fclose($fp1);
} }
} }
} }
@ -478,8 +473,6 @@ if (!empty($action)) {
break; 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>'; $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 { } else {
// If the request is about a link edition, change the link // If the request is about a link edition, change the link
@ -972,7 +965,6 @@ switch ($action) {
$html_langs .= '</tr><tr>'; $html_langs .= '</tr><tr>';
} }
$form->addElement('html', $html_langs); $form->addElement('html', $html_langs);
} }
} }
$form->addElement('html','</tr></table><br/>'); $form->addElement('html','</tr></table><br/>');
@ -1151,12 +1143,9 @@ switch ($action) {
echo '</div>'; echo '</div>';
?> ?>
</div> </div>
<div class="well sidebar-nav"> <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 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> <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> <h4><?php echo api_ucfirst(get_lang('General')); ?></h4>
<ul class="menulist"> <ul class="menulist">
<?php <?php
@ -1187,7 +1176,6 @@ switch ($action) {
?> ?>
</ul> </ul>
</div> </div>
</td> </td>
</tr> </tr>
</table> </table>

Loading…
Cancel
Save