소스 검색

Better white space and wrapping

pdontthink 8 년 전
부모
커밋
ed796ef790
2개의 변경된 파일30개의 추가작업 그리고 52개의 파일을 삭제
  1. 14 25
      templates/default/read_menubar_nav.tpl
  2. 16 27
      templates/default_advanced/read_menubar_nav.tpl

+ 14 - 25
templates/default/read_menubar_nav.tpl

@@ -66,13 +66,11 @@ if ($nav_on_top) {
  <tr class="nav">
  <tr class="nav">
   <td class="nav">
   <td class="nav">
    <small>
    <small>
-   [
-   <?php
+   [&nbsp;<?php
     if (empty($prev_href)) {
     if (empty($prev_href)) {
         echo _("Previous");
         echo _("Previous");
     } else {
     } else {
-        ?>
-   <a href="<?php echo $prev_href; ?>"><?php echo _("Previous"); ?></a>
+        ?><a href="<?php echo $prev_href; ?>"><?php echo _("Previous"); ?></a>
         <?php
         <?php
     }
     }
    ?> | 
    ?> | 
@@ -89,56 +87,47 @@ if ($nav_on_top) {
         echo _("Next");
         echo _("Next");
     } else {
     } else {
         ?>
         ?>
-   <a href="<?php echo $next_href; ?>"><?php echo _("Next"); ?></a>
-        <?php
+   <a href="<?php echo $next_href; ?>"><?php echo _("Next"); ?></a><?php
     }
     }
-   ?>
-   ]
+   ?>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
    <?php
    <?php
     if (!empty($del_prev_href) || !empty($del_next_href)) {
     if (!empty($del_prev_href) || !empty($del_next_href)) {
         ?>
         ?>
-        [
-        <?php        
+        [&nbsp;<?php        
         if (empty($del_prev_href)) {
         if (empty($del_prev_href)) {
-            echo _("Delete &amp; Previous");
+            echo '<span style="white-space: nowrap;">' . _("Delete &amp; Previous") . '</span>';
         } else {
         } else {
-            ?>
-   <a href="<?php echo $del_prev_href; ?>"><?php echo _("Delete &amp; Previous"); ?></a>
+            ?><a href="<?php echo $del_prev_href; ?>" style="white-space: nowrap"><?php echo _("Delete &amp; Previous"); ?></a>
             <?php
             <?php
         }
         }
         ?>
         ?>
         | 
         | 
         <?php
         <?php
         if (empty($del_next_href)) {
         if (empty($del_next_href)) {
-            echo _("Delete &amp; Next");
+            echo '<span style="white-space: nowrap;">' . _("Delete &amp; Next") . '</span>';
         } else {
         } else {
             ?>
             ?>
-   <a href="<?php echo $del_next_href; ?>"><?php echo _("Delete &amp; Next"); ?></a>
-            <?php
+   <a href="<?php echo $del_next_href; ?>" style="white-space: nowrap"><?php echo _("Delete &amp; Next"); ?></a><?php
         }
         }
-        ?>
-        ]
+        ?>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
         <?php
         <?php
     }
     }
    
    
     if (!empty($view_msg_href)) {
     if (!empty($view_msg_href)) {
         ?>
         ?>
-   [ <a href="<?php echo $view_msg_href; ?>"><?php echo _("View Message"); ?></a> ]
+   [&nbsp;<a href="<?php echo $view_msg_href; ?>" style="white-space: nowrap"><?php echo _("View Message"); ?></a>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
         <?php
         <?php
     }
     }
    ?>
    ?>
-   [ <a href="<?php echo $message_list_href; ?>"><?php echo _("Message List"); ?></a>
-   <?php
+   [&nbsp;<a href="<?php echo $message_list_href; ?>" style="white-space: nowrap"><?php echo _("Message List"); ?></a><?php
     if (!empty($search_href)) {
     if (!empty($search_href)) {
         ?>
         ?>
-   | <a href="<?php echo $search_href; ?>"><?php echo _("Search Results"); ?></a>
-        <?php
+   | <a href="<?php echo $search_href; ?>" style="white-space: nowrap"><?php echo _("Search Results"); ?></a><?php
     }
     }
-   ?>
-   ]
+   ?>&nbsp;]
    </small>
    </small>
    <?php if(!empty($plugin_output[$plugin_hook])) echo $plugin_output[$plugin_hook]; ?>
    <?php if(!empty($plugin_output[$plugin_hook])) echo $plugin_output[$plugin_hook]; ?>
   </td>
   </td>

+ 16 - 27
templates/default_advanced/read_menubar_nav.tpl

@@ -75,13 +75,11 @@ if ($nav_on_top) {
  <tr class="nav">
  <tr class="nav">
   <td class="nav">
   <td class="nav">
    <small>
    <small>
-   [
-   <?php
+   [&nbsp;<?php
     if (empty($prev_href)) {
     if (empty($prev_href)) {
         echo _("Previous");
         echo _("Previous");
     } else {
     } else {
-        ?>
-   <a href="<?php echo $prev_href; ?><?php
+        ?><a href="<?php echo $prev_href; ?><?php
 
 
 /** if preview pane turned on with "always refresh message list", 
 /** if preview pane turned on with "always refresh message list", 
     refresh message list frame too, but only if we are in the bottom frame! 
     refresh message list frame too, but only if we are in the bottom frame! 
@@ -122,22 +120,18 @@ if ($show_preview_pane && $pp_refresh_message_list)
    echo '&amp;pp_rr=1';
    echo '&amp;pp_rr=1';
 
 
 
 
-echo '">' . _("Next"); ?></a>
-        <?php
+echo '">' . _("Next"); ?></a><?php
     }
     }
-   ?>
-   ]
+   ?>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
    <?php
    <?php
     if (!empty($del_prev_href) || !empty($del_next_href)) {
     if (!empty($del_prev_href) || !empty($del_next_href)) {
         ?>
         ?>
-        [
-        <?php        
+        [&nbsp;<?php        
         if (empty($del_prev_href)) {
         if (empty($del_prev_href)) {
-            echo _("Delete &amp; Previous");
+            echo '<span style="white-space: nowrap;">' . _("Delete &amp; Previous") . '</span>';
         } else {
         } else {
-            ?>
-   <a href="<?php echo $del_prev_href; ?>"<?php
+            ?><a href="<?php echo $del_prev_href; ?>"<?php
 
 
 /** if preview pane turned on with "always refresh message list", 
 /** if preview pane turned on with "always refresh message list", 
     refresh message list frame too, but only if we are in the bottom frame! */
     refresh message list frame too, but only if we are in the bottom frame! */
@@ -145,14 +139,14 @@ if ($show_preview_pane && $pp_refresh_message_list)
    echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
    echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
 
 
 
 
-echo '>' . _("Delete &amp; Previous"); ?></a>
+echo ' style="white-space: nowrap;">' . _("Delete &amp; Previous"); ?></a>
             <?php
             <?php
         }
         }
         ?>
         ?>
         | 
         | 
         <?php
         <?php
         if (empty($del_next_href)) {
         if (empty($del_next_href)) {
-            echo _("Delete &amp; Next");
+            echo '<span style="white-space: nowrap;">' . _("Delete &amp; Next") . '</span>';
         } else {
         } else {
             ?>
             ?>
    <a href="<?php echo $del_next_href; ?>"<?php
    <a href="<?php echo $del_next_href; ?>"<?php
@@ -163,23 +157,21 @@ if ($show_preview_pane && $pp_refresh_message_list)
    echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
    echo ' onclick="if (self.name == \'bottom\') { refresh_message_list(); } "';
 
 
 
 
-echo '>' . _("Delete &amp; Next"); ?></a>
-            <?php
+echo ' style="white-space: nowrap;">' . _("Delete &amp; Next"); ?></a><?php
         }
         }
-        ?>
-        ]
+        ?>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
         <?php
         <?php
     }
     }
    
    
     if (!empty($view_msg_href)) {
     if (!empty($view_msg_href)) {
         ?>
         ?>
-   [ <a href="<?php echo $view_msg_href; ?>"><?php echo _("View Message"); ?></a> ]
+   [&nbsp;<a href="<?php echo $view_msg_href; ?>" style="white-space: nowrap;"><?php echo _("View Message"); ?></a>&nbsp;]
    &nbsp;&nbsp;&nbsp;&nbsp;
    &nbsp;&nbsp;&nbsp;&nbsp;
         <?php
         <?php
     }
     }
    ?>
    ?>
-   [ <a href="<?php echo $message_list_href; ?>"<?php
+   [&nbsp;<a href="<?php echo $message_list_href; ?>"<?php
 
 
 /** if preview pane turned on, retarget to message list frame & clear 
 /** if preview pane turned on, retarget to message list frame & clear 
     bottom frame, but only if we are in the bottom frame! */
     bottom frame, but only if we are in the bottom frame! */
@@ -187,15 +179,12 @@ if ($show_preview_pane)
    echo ' onclick="if (self.name == \'bottom\') { parent.right.document.location=\'' . $message_list_href . '\'; document.location=\'' . $empty_frame_uri . '\'; return false; } "';
    echo ' onclick="if (self.name == \'bottom\') { parent.right.document.location=\'' . $message_list_href . '\'; document.location=\'' . $empty_frame_uri . '\'; return false; } "';
 
 
 
 
-echo '>' . _("Message List"); ?></a>
-   <?php
+echo ' style="white-space: nowrap;">' . _("Message List"); ?></a><?php
     if (!empty($search_href)) {
     if (!empty($search_href)) {
         ?>
         ?>
-   | <a href="<?php echo $search_href; ?>"><?php echo _("Search Results"); ?></a>
-        <?php
+   | <a href="<?php echo $search_href; ?>" style="white-space: nowrap;"><?php echo _("Search Results"); ?></a><?php
     }
     }
-   ?>
-   ]
+   ?>&nbsp;]
    </small>
    </small>
    <?php if(!empty($plugin_output[$plugin_hook])) echo $plugin_output[$plugin_hook]; ?>
    <?php if(!empty($plugin_output[$plugin_hook])) echo $plugin_output[$plugin_hook]; ?>
   </td>
   </td>