Fixed missing "print page" link in printable theme
authorDan
Wed, 13 Aug 2008 08:46:46 -0400
changeset 689 13f8383a7538
parent 688 f2a824ce5f18
child 690 aeac05b5b7ca
Fixed missing "print page" link in printable theme
includes/template.php
themes/printable/css/default.css
themes/printable/header.tpl
--- a/includes/template.php	Tue Aug 12 00:06:35 2008 -0400
+++ b/includes/template.php	Wed Aug 13 08:46:46 2008 -0400
@@ -1053,6 +1053,7 @@
     $this->sidebar_extra = $this->sidebar_extra . $this->sidebar_widgets;
     
     $this->tpl_bool['fixed_menus'] = false;
+    $this->tpl_bool['export'] = false;
     $this->tpl_bool['right_sidebar'] = true;
     $this->tpl_bool['auth_rename'] = ( $local_page_exists && $session->check_acl_scope('rename', $local_namespace) && ( $perms->get_permissions('rename') && ( $paths->page_protected && $perms->get_permissions('even_when_protected') || !$paths->page_protected ) ));
     $this->tpl_bool['enable_uploads'] = ( getConfig('enable_uploads') == '1' && $session->get_permissions('upload_files') ) ? true : false;
@@ -1650,21 +1651,7 @@
     return $text;
   }
   
-  // Steps to turn this:
-  //   [[Project:Community Portal]]
-  // into this:
-  //   <a href="/Project:Community_Portal">Community Portal</a>
-  // Must be done WITHOUT creating eval'ed code!!!
-  
-  // 1. preg_replace \[\[([a-zA-Z0-9 -_:]*?)\]\] with <a href="'.contentPath.'\\1">\\1</a>
-  // 2. preg_match_all <a href="'.preg_quote(contentPath).'([a-zA-Z0-9 -_:]*?)">
-  // 3. For each match, replace matches with identifiers
-  // 4. For each match, str_replace ' ' with '_'
-  // 5. For each match, str_replace match_id:random_val with $matches[$match_id]
-  
-  // The template language is really a miniature programming language; with variables, conditionals, everything!
-  // So you can implement custom logic into your sidebar if you wish.
-  // "Real" PHP support coming soon :-D
+  // n00bish comments removed from here. 2008-03-13 @ 12:02AM when I had nothing else to do.
   
   /**
    * Takes a blob of HTML with the specially formatted template-oriented wikitext and formats it. Does not use eval().
--- a/themes/printable/css/default.css	Tue Aug 12 00:06:35 2008 -0400
+++ b/themes/printable/css/default.css	Wed Aug 13 08:46:46 2008 -0400
@@ -350,9 +350,6 @@
   padding-right: 5px;
 }
 
-span.normallink {
-  display: none;
-}
 div.mdg-comment {
   display: none;
 }
--- a/themes/printable/header.tpl	Tue Aug 12 00:06:35 2008 -0400
+++ b/themes/printable/header.tpl	Wed Aug 13 08:46:46 2008 -0400
@@ -7,6 +7,11 @@
     <link id="mdgCss" rel="stylesheet" href="{CDNPATH}/themes/{THEME_ID}/css/{STYLE_ID}.css" type="text/css" />
     {ADDITIONAL_HEADERS}
     
+    <style type="text/css" media="print">
+    span.normallink {
+      display: none;
+    }
+    </style>
   </head>
   <body>
     <div class="pad"><div class="contentDiv">