]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.php
Revert "update translations"
[tt-rss.git] / tt-rss.php
index 09e7d1bc9121692632df008b60c1e8b7a8ffe9b7..2dcc9ca1a4c1f4b22e9919876aa0121fc1b075f8 100644 (file)
@@ -48,6 +48,7 @@
        <script type="text/javascript" charset="utf-8" src="functions.js?<?php echo $dt_add ?>"></script>
        <script type="text/javascript" charset="utf-8" src="feedlist.js?<?php echo $dt_add ?>"></script>
        <script type="text/javascript" charset="utf-8" src="viewfeed.js?<?php echo $dt_add ?>"></script>
+       <script type="text/javascript" charset="utf-8" src="offline.js?<?php echo $dt_add ?>"></script>
 
        <script type="text/javascript" src="gears_init.js"></script>
 
@@ -112,7 +113,9 @@ window.onload = init;
 </div>
 
 <div id="header">
-       <div class="topLinks">
+       <div class="topLinks" id="topLinks">
+
+       <span id="topLinksOnline">
 
        <?php if (!SINGLE_USER_MODE) { ?>
                        <?php echo __('Hello,') ?> <b><?php echo $_SESSION["name"] ?></b> |
@@ -128,11 +131,41 @@ window.onload = init;
                        | <a href="logout.php"><?php echo __('Logout') ?></a>
        <?php } ?>
 
+       <img id="offlineModePic" 
+               onmouseover="enable_selection(false)" 
+               onmouseout="enable_selection(true)"
+               onclick="toggleOfflineModeInfo()"
+               src="images/offline.png" style="display:none"
+               title="<?php echo __('Offline reading') ?>"/>
+
+       <div id="offlineModeDrop" style="display : none">
+               <div id="offlineModeSyncMsg">---</div>
+
+               <div class="showWhenSyncing" style="display : none">
+                       <a href="javascript:offlineDownloadStop()">
+                       <?php echo __('Cancel synchronization') ?></a></div>
+               <div class="hideWhenSyncing">
+                       <a href="javascript:offlineDownloadStart()">
+                       <?php echo __('Synchronize') ?></a></div>
+               <div class="hideWhenSyncing"><a href="javascript:offlineClearData()">
+                       <?php echo __('Remove stored data') ?></a></div>
+               <div><a href="javascript:gotoOffline()">
+                       <?php echo __('Go offline') ?></a></div>
+       </div>
+
        <img id="newVersionIcon" style="display:none;" onclick="javascript:explainError(2)" 
                src="images/new_version.png" title="<?php echo __('New version of Tiny Tiny RSS is available!') ?>" 
                alt="new_version_icon"/>
 
+       </span>
+
+       <span id="topLinksOffline" style="display : none">
+               <img id="restartOnlinePic" src="images/online.png" 
+                       onclick="gotoOnline()" title="<?php echo __('Go online') ?>"/>
+       </span>
+
        </div>
+
        <img src="<?php echo $theme_image_path ?>images/ttrss_logo.png" alt="Tiny Tiny RSS"/>   
 </div>
 
@@ -155,27 +188,26 @@ window.onload = init;
                        <select id="quickMenuChooser" onchange="quickMenuChange()">
                                        <option value="qmcDefault" selected="selected"><?php echo __('Actions...') ?></option>
                                        <option value="qmcSearch"><?php echo __('Search...') ?></option>
-                                       <!-- <option value="qmcPrefs"><?php echo __('Preferences') ?></option> -->
-                                       <option disabled="disabled">--------</option>
-                                       <option style="color : #5050aa" disabled="disabled"><?php echo __('Feed actions:') ?></option>
-                                       <option value="qmcAddFeed">&nbsp;&nbsp;<?php echo __('Subscribe to feed...') ?></option>
-                                       <option value="qmcEditFeed">&nbsp;&nbsp;<?php echo __('Edit this feed...') ?></option>
-                                       <!-- <option value="qmcClearFeed">&nbsp;&nbsp;<?php echo __('Clear articles') ?></option> -->
-                                       <option value="qmcRescoreFeed">&nbsp;&nbsp;<?php echo __('Rescore feed') ?></option>
-                                       <option value="qmcRemoveFeed">&nbsp;&nbsp;<?php echo __('Unsubscribe') ?></option>
-                                       <option disabled="disabled">--------</option>
-                                       <option style="color : #5050aa" disabled="disabled"><?php echo __('All feeds:') ?></option>
-                                       <option value="qmcCatchupAll">&nbsp;&nbsp;<?php echo __('Mark as read') ?></option>
-                                       <option value="qmcShowOnlyUnread">&nbsp;&nbsp;<?php echo __('(Un)hide read feeds') ?></option>
-                                       <option disabled="disabled">--------</option>
-                                       <option style="color : #5050aa" disabled="disabled"><?php echo __('Other actions:') ?></option>                         
-
-                                       <option value="qmcAddLabel">&nbsp;&nbsp;<?php echo __('Create label...') ?></option>
-                                       <option value="qmcAddFilter">&nbsp;&nbsp;<?php echo __('Create filter...') ?></option>
-                                       <option value="qmcResetUI">&nbsp;&nbsp;<?php echo __('Reset UI layout') ?></option>
-                                       <option value="qmcResetCats">&nbsp;&nbsp;<?php echo __('Reset category order') ?></option>
-
-                                       <option value="qmcHKhelp"><?php echo __('&nbsp;&nbsp;Keyboard shortcuts') ?></option>
+                                       <optgroup label="<?php echo __('Feed actions:') ?>">
+                                       <option value="qmcAddFeed"><?php echo __('Subscribe to feed...') ?></option>
+                                       <option value="qmcEditFeed"><?php echo __('Edit this feed...') ?></option>
+                                       <!-- <option value="qmcClearFeed"><?php echo __('Clear articles') ?></option> -->
+                                       <option value="qmcRescoreFeed"><?php echo __('Rescore feed') ?></option>
+                                       <option value="qmcRemoveFeed"><?php echo __('Unsubscribe') ?></option>
+                                       </optgroup>
+                                       <optgroup label="<?php echo __('All feeds:') ?>">
+                                       <option value="qmcCatchupAll"><?php echo __('Mark as read') ?></option>
+                                       <option value="qmcShowOnlyUnread"><?php echo __('(Un)hide read feeds') ?></option>
+                                       </optgroup>
+                                       <optgroup label="<?php echo __('Other actions:') ?>">
+
+                                       <option value="qmcAddLabel"><?php echo __('Create label...') ?></option>
+                                       <option value="qmcAddFilter"><?php echo __('Create filter...') ?></option>
+                                       <option value="qmcResetUI"><?php echo __('Reset UI layout') ?></option>
+                                       <option value="qmcResetCats"><?php echo __('Reset category order') ?></option>
+                                       <option value="qmcHKhelp"><?php echo __('Keyboard shortcuts') ?></option>
+                                       </optgroup>
+
                        </select>
                </div>
 
@@ -242,7 +274,7 @@ window.onload = init;
 
                &nbsp;
 
-               <input class="button" type="submit"
+               <input class="button" type="submit" name="update"
                        onclick="return viewCurrentFeed('ForceUpdate')" 
                        value="<?php echo __('Update') ?>"/>