diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -63,10 +63,10 @@ <?php if ($_SESSION["uid"]) { $theme = get_pref("USER_CSS_THEME", false, false); - if ($theme && theme_valid("$theme")) { - echo stylesheet_tag(get_theme_path($theme)); + if ($theme && theme_exists("$theme")) { + echo stylesheet_tag(get_theme_path($theme), 'theme_css'); } else { - echo stylesheet_tag("css/default.css"); + echo stylesheet_tag("css/default.css", 'theme_css'); } } ?> @@ -138,7 +138,7 @@ <div id="overlay" style="display : block"> <div id="overlay_inner"> - <div class="insensitive"><?php echo __("Loading, please wait...") ?></div> + <?php echo __("Loading, please wait...") ?> <div dojoType="dijit.ProgressBar" places="0" style="width : 300px" id="loading_bar" progress="0" maximum="100"> </div> @@ -161,6 +161,11 @@ <div id="toolbar-frame" dojoType="dijit.layout.ContentPane" region="top"> <div id="toolbar" dojoType="dijit.Toolbar"> + <div class="net-alert" style="display : none" + title="<?php echo __("Communication problem with server.") ?>"> + <i class="material-icons">error_outline</i> + </div> + <?php foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) { echo $p->hook_main_toolbar_button(); @@ -219,11 +224,6 @@ } ?> - <button id="net-alert" dojoType="dijit.form.Button" style="display : none" disabled="true" - title="<?php echo __("Communication problem with server.") ?>"> - <img src="images/error.png" /> - </button> - <div dojoType="dijit.form.DropDownButton"> <span><?php echo __('Actions...') ?></span> <div dojoType="dijit.Menu" style="display: none"> @@ -238,6 +238,7 @@ <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcShowOnlyUnread')"><?php echo __('(Un)hide read feeds') ?></div> <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Other actions:') ?></div> <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcToggleWidescreen')"><?php echo __('Toggle widescreen mode') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcToggleNightMode')"><?php echo __('Toggle night mode') ?></div> <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div> <?php @@ -252,9 +253,9 @@ </div> </div> - <button id="updatesIcon" dojoType="dijit.form.Button" style="display : none"> - <img src="images/new_version.png" title="<?php echo __('Updates are available from Git.') ?>"/> - </button> + <i id="updates-available" class="material-icons icon-new-version" + style="display : none" title="<?php echo __('Updates are available from Git.') ?>">new_releases</i> + </div> </div> <!-- toolbar --> </div> <!-- toolbar pane --> |