[mythtv] [PATCH][mythweb] Non-breaking spaces in menu items

Petter Gundersen pettergundersen at gmail.com
Wed Apr 6 15:37:38 UTC 2005


This patch for the default theme replaces the spaces in the menu items
with non-breaking
spaces. This is to avoid a menu item link from being divided over to lines.

Regards,
Petter
-------------- next part --------------
Index: mythweb/themes/Default/theme.php
===================================================================
RCS file: /var/lib/mythcvs/mythweb/themes/Default/theme.php,v
retrieving revision 1.53
diff -u -r1.53 theme.php
--- mythweb/themes/Default/theme.php	3 Apr 2005 07:16:48 -0000	1.53
+++ mythweb/themes/Default/theme.php	6 Apr 2005 15:28:42 -0000
@@ -151,21 +151,21 @@
 
     function print_menu_content() {
         ?><a id="category_legend" onmouseover="popup('category_legend'); return true;">MythTV:</a> &nbsp; &nbsp;
-                <a href="program_listing.php"><?php echo t('Listings') ?></a>
+                <a href="program_listing.php"><?php echo str_replace(' ','&nbsp;',t('Listings')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="canned_searches.php"><?php echo t('Searches') ?></a>
+                <a href="canned_searches.php"><?php echo str_replace(' ','&nbsp;',t('Searches')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="schedule_manually.php"><?php echo t('Manually Schedule') ?></a>
+                <a href="schedule_manually.php"><?php echo str_replace(' ','&nbsp;',t('Manually Schedule')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="recording_schedules.php"><?php echo t('Recording Schedules') ?></a>
+                <a href="recording_schedules.php"><?php echo str_replace(' ','&nbsp;',t('Recording Schedules')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="scheduled_recordings.php"><?php echo t('Scheduled Recordings') ?></a>
+                <a href="scheduled_recordings.php"><?php echo str_replace(' ','&nbsp;',t('Scheduled Recordings')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="recorded_programs.php"><?php echo t('Recorded Programs') ?></a>
+                <a href="recorded_programs.php"><?php echo str_replace(' ','&nbsp;',t('Recorded Programs')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="status.php"><?php echo t('Backend Status') ?></a>
+                <a href="status.php"><?php echo str_replace(' ','&nbsp;',t('Backend Status')) ?></a>
                 &nbsp; | &nbsp;
-                <a href="log.php"><?php echo ('Backend Logs') ?></a><?php
+                <a href="log.php"><?php echo str_replace(' ','&nbsp;',('Backend Logs')) ?></a><?php
     // Create the category legend popup
         global $Categories, $Footnotes;
         $legend = <<<EOF


More information about the mythtv-dev mailing list