phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: wiki/template preview.php,1.3,1.4


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: wiki/template preview.php,1.3,1.4
Date: Tue, 04 Mar 2003 17:56:13 -0500

Update of /cvsroot/phpgroupware/wiki/template
In directory subversions:/tmp/cvs-serv19538/template

Modified Files:
        preview.php 
Log Message:
added option to always have the Preview under the Editor

Index: preview.php
===================================================================
RCS file: /cvsroot/phpgroupware/wiki/template/preview.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** preview.php 3 Mar 2003 14:16:25 -0000       1.3
--- preview.php 4 Mar 2003 22:56:10 -0000       1.4
***************
*** 17,25 ****
  function template_preview($args)
  {
!   global $EditRows, $EditCols, $categories, $UserName, $comment, $PrefsScript;
  
    template_common_prologue(array('norobots' => 1,
!                                  'title'    => 'Previewing ' . $args['page'],
!                                  'heading'  => 'Previewing ',
                                   'headlink' => $args['page'],
                                   'headsufx' => '',
--- 17,27 ----
  function template_preview($args)
  {
!   global $EditRows, $EditCols, $categories, $UserName, $comment, 
$PrefsScript, $EditWithPreview;
!   
!   $title = $EditWithPreview ? 'Editing' : 'Previewing';
  
    template_common_prologue(array('norobots' => 1,
!                                  'title'    => $title . ' ' . $args['page'],
!                                  'heading'  => $title . ' ',
                                   'headlink' => $args['page'],
                                   'headsufx' => '',
***************
*** 65,69 ****
  </div>
  </form>
! <h1>Preview</h1>
  <hr align=left width=99% />
  <?php print $args['html']; ?>
--- 67,75 ----
  </div>
  </form>
! <?php global $EditWithPreview;
!   if (!$EditWithPreview) {
!     echo "<h1>Preview</h1>\n";
!   }
! ?>
  <hr align=left width=99% />
  <?php print $args['html']; ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]