diff options
author | Andrew Dolgov <[email protected]> | 2018-12-05 21:44:26 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-12-05 21:44:26 +0300 |
commit | f905c2a9436581f74355815a0ba0e2fad56d6c34 (patch) | |
tree | 5c00e2b1378e4f5f4b30a8aa5463dc286ee547e7 /index.php | |
parent | 1d334b9762249c78461b3ef5d496a060d1ded78e (diff) | |
parent | a0b1664620abb096ac21de8f2e680e383c34a0e1 (diff) |
Merge branch 'material-icons' into weblate-integration
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 249 |
1 files changed, 120 insertions, 129 deletions
@@ -150,135 +150,126 @@ <div id="cmdline" style="display : none"></div> <div id="main" dojoType="dijit.layout.BorderContainer"> - -<div id="feeds-holder" dojoType="dijit.layout.ContentPane" region="leading" style="width : 20%" splitter="true"> - <div id="feedlistLoading"> - <img src='images/indicator_tiny.gif'/> - <?php echo __("Loading, please wait..."); ?></div> - <div id="feedTree"></div> -</div> - -<div dojoType="dijit.layout.BorderContainer" region="center" id="header-wrap" gutters="false"> -<div dojoType="dijit.layout.BorderContainer" region="center" id="content-wrap"> - -<div id="toolbar" dojoType="dijit.layout.ContentPane" region="top"> - <div id="main-toolbar" dojoType="dijit.Toolbar"> - - <?php - foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) { - echo $p->hook_main_toolbar_button(); - } - ?> - - <form id="headlines-toolbar" action="" onsubmit='return false'> - - </form> - - <form id="main_toolbar_form" action="" onsubmit='return false'> - - <select name="view_mode" title="<?php echo __('Show articles') ?>" - onchange="App.onViewModeChanged()" - dojoType="dijit.form.Select"> - <option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option> - <option value="all_articles"><?php echo __('All Articles') ?></option> - <option value="marked"><?php echo __('Starred') ?></option> - <option value="published"><?php echo __('Published') ?></option> - <option value="unread"><?php echo __('Unread') ?></option> - <option value="has_note"><?php echo __('With Note') ?></option> - <!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> --> - </select> - - <select title="<?php echo __('Sort articles') ?>" - onchange="App.onViewModeChanged()" - dojoType="dijit.form.Select" name="order_by"> - <option selected="selected" value="default"><?php echo __('Default') ?></option> - <option value="feed_dates"><?php echo __('Newest first') ?></option> - <option value="date_reverse"><?php echo __('Oldest first') ?></option> - <option value="title"><?php echo __('Title') ?></option> - </select> - - <div dojoType="dijit.form.ComboButton" onclick="Feeds.catchupCurrent()"> - <span><?php echo __('Mark as read') ?></span> - <div dojoType="dijit.DropDownMenu"> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')"> - <?php echo __('Older than one day') ?> - </div> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1week')"> - <?php echo __('Older than one week') ?> - </div> - <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('2week')"> - <?php echo __('Older than two weeks') ?> - </div> - </div> - </div> - - </form> - - <div class="actionChooser"> - - <?php - foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_TOOLBAR_BUTTON) as $p) { - echo $p->hook_toolbar_button(); - } - ?> - - <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"> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcPrefs')"><?php echo __('Preferences...') ?></div> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcSearch')"><?php echo __('Search...') ?></div> - <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Feed actions:') ?></div> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcAddFeed')"><?php echo __('Subscribe to feed...') ?></div> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcEditFeed')"><?php echo __('Edit this feed...') ?></div> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcRemoveFeed')"><?php echo __('Unsubscribe') ?></div> - <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('All feeds:') ?></div> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcCatchupAll')"><?php echo __('Mark as read') ?></div> - <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('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div> - - <?php - foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ACTION_ITEM) as $p) { - echo $p->hook_action_item(); - } - ?> - - <?php if (!$_SESSION["hide_logout"]) { ?> - <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcLogout')"><?php echo __('Logout') ?></div> - <?php } ?> - </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> - </div> - </div> <!-- toolbar --> -</div> <!-- toolbar pane --> - - <div id="headlines-wrap-inner" dojoType="dijit.layout.BorderContainer" region="center"> - - <div id="floatingTitle" style="display : none"></div> - - <div id="headlines-frame" dojoType="dijit.layout.ContentPane" tabindex="0" - region="center"> - <div id="headlinesInnerContainer"> - <div class="whiteBox"><?php echo __('Loading, please wait...') ?></div> - </div> - </div> - - <div id="content-insert" dojoType="dijit.layout.ContentPane" region="bottom" - style="height : 50%" splitter="true"></div> - - </div> -</div> -</div> + <div id="feeds-holder" dojoType="dijit.layout.ContentPane" region="leading" style="width : 20%" splitter="true"> + <div id="feedlistLoading"> + <img src='images/indicator_tiny.gif'/> + <?php echo __("Loading, please wait..."); ?></div> + <div id="feedTree"></div> + </div> + + <div dojoType="dijit.layout.BorderContainer" region="center" id="content-wrap"> + <div id="toolbar-frame" dojoType="dijit.layout.ContentPane" region="top"> + <div id="toolbar" dojoType="dijit.Toolbar"> + + <?php + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_MAIN_TOOLBAR_BUTTON) as $p) { + echo $p->hook_main_toolbar_button(); + } + ?> + + <form id="toolbar-headlines" action="" onsubmit='return false'> + + </form> + + <form id="toolbar-main" action="" onsubmit='return false'> + + <select name="view_mode" title="<?php echo __('Show articles') ?>" + onchange="App.onViewModeChanged()" + dojoType="dijit.form.Select"> + <option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option> + <option value="all_articles"><?php echo __('All Articles') ?></option> + <option value="marked"><?php echo __('Starred') ?></option> + <option value="published"><?php echo __('Published') ?></option> + <option value="unread"><?php echo __('Unread') ?></option> + <option value="has_note"><?php echo __('With Note') ?></option> + <!-- <option value="noscores"><?php echo __('Ignore Scoring') ?></option> --> + </select> + + <select title="<?php echo __('Sort articles') ?>" + onchange="App.onViewModeChanged()" + dojoType="dijit.form.Select" name="order_by"> + <option selected="selected" value="default"><?php echo __('Default') ?></option> + <option value="feed_dates"><?php echo __('Newest first') ?></option> + <option value="date_reverse"><?php echo __('Oldest first') ?></option> + <option value="title"><?php echo __('Title') ?></option> + </select> + + <div dojoType="dijit.form.ComboButton" onclick="Feeds.catchupCurrent()"> + <span><?php echo __('Mark as read') ?></span> + <div dojoType="dijit.DropDownMenu"> + <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')"> + <?php echo __('Older than one day') ?> + </div> + <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1week')"> + <?php echo __('Older than one week') ?> + </div> + <div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('2week')"> + <?php echo __('Older than two weeks') ?> + </div> + </div> + </div> + + </form> + + <div class="action-chooser"> + + <?php + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_TOOLBAR_BUTTON) as $p) { + echo $p->hook_toolbar_button(); + } + ?> + + <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"> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcPrefs')"><?php echo __('Preferences...') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcSearch')"><?php echo __('Search...') ?></div> + <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('Feed actions:') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcAddFeed')"><?php echo __('Subscribe to feed...') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcEditFeed')"><?php echo __('Edit this feed...') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcRemoveFeed')"><?php echo __('Unsubscribe') ?></div> + <div dojoType="dijit.MenuItem" disabled="1"><?php echo __('All feeds:') ?></div> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcCatchupAll')"><?php echo __('Mark as read') ?></div> + <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('qmcHKhelp')"><?php echo __('Keyboard shortcuts help') ?></div> + + <?php + foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_ACTION_ITEM) as $p) { + echo $p->hook_action_item(); + } + ?> + + <?php if (!$_SESSION["hide_logout"]) { ?> + <div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcLogout')"><?php echo __('Logout') ?></div> + <?php } ?> + </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> + </div> + </div> <!-- toolbar --> + </div> <!-- toolbar pane --> + <div id="headlines-wrap-inner" dojoType="dijit.layout.BorderContainer" region="center"> + <div id="floatingTitle" style="display : none"></div> + <div id="headlines-frame" dojoType="dijit.layout.ContentPane" tabindex="0" + region="center"> + <div id="headlinesInnerContainer"> + <div class="whiteBox"><?php echo __('Loading, please wait...') ?></div> + </div> + </div> + <div id="content-insert" dojoType="dijit.layout.ContentPane" region="bottom" + style="height : 50%" splitter="true"></div> + </div> + </div> </div> </body> |