Skip to content

Commit

Permalink
Update Layout.php
Browse files Browse the repository at this point in the history
icons to miniadmin. because there must be more icons!
  • Loading branch information
trf000 committed Oct 6, 2014
1 parent 4c9687f commit cbd667d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mod/layout/class/Layout.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function addBox($content_var, $module, $theme_var = NULL, $theme =
}

/**
* Path to javascript file you want included. PHPWS_SOURCE_HTTP is added automatically.
* Path to javascript file you want included. Does not include PHPWS_SOURCE_HTTP
* @param string $file
*/
public static function includeJavascript($file)
Expand Down Expand Up @@ -417,8 +417,8 @@ public static function display()
ksort($unsortedLayout[$theme_var]);
$upper_theme_var = strtoupper($theme_var);
if (Layout::isMoveBox() && !isset($GLOBALS['Layout_Plugs'][$theme_var])) {
$bodyLayout[$upper_theme_var] = '<fieldset class="layout-variable"><legend>' . $theme_var . '</legend>' . implode('',
$unsortedLayout[$theme_var]) . '</fieldset>';
$bodyLayout[$upper_theme_var] = $theme_var . '' . implode('',
$unsortedLayout[$theme_var]);
} else {
$bodyLayout[$upper_theme_var] = implode('',
$unsortedLayout[$theme_var]);
Expand Down Expand Up @@ -869,18 +869,18 @@ public static function miniLinks()
$vars['action'] = 'admin';
if (Layout::isMoveBox()) {
$vars['command'] = 'turn_off_box_move';
$links[] = PHPWS_Text::moduleLink(dgettext('layout', 'Box move off'),
$links[] = PHPWS_Text::moduleLink(dgettext('layout', '<span class="fa fa-toggle-on"></span> Box move off'),
'layout', $vars);
} else {
$vars['command'] = 'move_boxes_on';
$links[] = PHPWS_Text::secureLink(dgettext('layout', 'Box move on'),
$links[] = PHPWS_Text::secureLink(dgettext('layout', '<span class="fa fa-toggle-off"></span> Box move on'),
'layout', $vars);
}

unset($vars['command']);
$vars['tab'] = 'meta';
$links[] = PHPWS_Text::secureLink(dgettext('layout',
'Change Website Title'), 'layout', $vars);
'<span class="fa fa-edit"></span> Change Website Title'), 'layout', $vars);

$key = Key::getCurrent();
if (javascriptEnabled() && Layout::getExtraStyles() &&
Expand All @@ -892,7 +892,7 @@ public static function miniLinks()
$vars['key_id'] = $key->id;
$vars['action'] = 'admin';

$js_vars['label'] = dgettext('layout', 'Change style');
$js_vars['label'] = dgettext('layout', '<span class="fa fa-paint-brush"></span> Change style');
$vars['command'] = 'js_style_change';

$js_vars['address'] = PHPWS_Text::linkAddress('layout', $vars, TRUE);
Expand Down

0 comments on commit cbd667d

Please sign in to comment.