[geeklog-cvs] geeklog-1.3/system lib-story.php,1.5,1.6

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Fri Aug 27 06:08:43 EDT 2004


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv496/system

Modified Files:
	lib-story.php 
Log Message:
Introduced some additional variables: {email_story_url}, {lang_email_story}, {print_story_url}, {lang_print_story}, {pdf_story_url}, {lang_pdf_story}. Those are only available when the respective option (emailing, printing, saving story as a pdf) is activated.


Index: lib-story.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-story.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** lib-story.php	26 Aug 2004 19:13:28 -0000	1.5
--- lib-story.php	27 Aug 2004 10:08:39 -0000	1.6
***************
*** 242,250 ****
          else
          {
!             $article->set_var( 'email_icon', '<a href="' . $_CONF['site_url']
!                 . '/profiles.php?sid=' . $A['sid'] . '&what=emailstory">'
                  . '<img src="' . $_CONF['layout_url']
                  . '/images/mail.gif" alt="' . $LANG01[64]
                  . '" title="' . $LANG11[2] . '" border="0"></a>' );
          }
          $printUrl = COM_buildUrl( $_CONF['site_url'] . '/article.php?story='
--- 242,253 ----
          else
          {
!             $emailUrl = $_CONF['site_url'] . '/profiles.php?sid=' . $A['sid']
!                       . '&what=emailstory';
!             $article->set_var( 'email_icon', '<a href="' . $emailUrl . '">'
                  . '<img src="' . $_CONF['layout_url']
                  . '/images/mail.gif" alt="' . $LANG01[64]
                  . '" title="' . $LANG11[2] . '" border="0"></a>' );
+             $article->set_var( 'email_story_url', $emailUrl );
+             $article->set_var( 'lang_email_story', $LANG11[2] );
          }
          $printUrl = COM_buildUrl( $_CONF['site_url'] . '/article.php?story='
***************
*** 260,270 ****
                  . '/images/print.gif" alt="' . $LANG01[65] . '" title="'
                  . $LANG11[3] . '"></a>' );
          }
          if( $_CONF['pdf_enabled'] == 1 )
          {
              $article->set_var( 'pdf_icon',
!                 sprintf( '<a href="%s/pdfgenerator.php?pageType=2&pageData=%s"><img border="0" src="%s/images/pdf.gif" alt="%s" title="%s"></a>',
!                     $_CONF['site_url'], urlencode( $printUrl ),
!                     $_CONF['layout_url'], $LANG01[111], $LANG11[5] ));
          }
          else
--- 263,277 ----
                  . '/images/print.gif" alt="' . $LANG01[65] . '" title="'
                  . $LANG11[3] . '"></a>' );
+             $article->set_var( 'print_story_url', $printUrl );
+             $article->set_var( 'lang_print_story', $LANG11[3] );
          }
          if( $_CONF['pdf_enabled'] == 1 )
          {
+             $pdfUrl = $_CONF['site_url'] . '/pdfgenerator.php?pageType=2&'
+                     . 'pageData=' . urlencode( $printUrl );
              $article->set_var( 'pdf_icon',
!                 sprintf( '<a href="%s"><img border="0" src="%s/images/pdf.gif" alt="%s" title="%s"></a>', $pdfUrl, $_CONF['layout_url'], $LANG01[111], $LANG11[5] ));
!             $article->set_var( 'pdf_story_url', $pdfUrl );
!             $article->set_var( 'lang_pdf_story', $LANG11[5] );
          }
          else
***************
*** 453,455 ****
  }
  
! ?>
\ No newline at end of file
--- 460,462 ----
  }
  
! ?>




More information about the geeklog-cvs mailing list