[geeklog-cvs] geeklog-1.3/public_html article.php,1.52,1.53

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


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

Modified Files:
	article.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: article.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/article.php,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** article.php	22 Aug 2004 17:53:20 -0000	1.52
--- article.php	27 Aug 2004 10:08:40 -0000	1.53
***************
*** 174,180 ****
              $story_options = array ();
              if ($_CONF['hideemailicon'] == 0) {
!                 $story_options[] = '<a href="' . $_CONF['site_url']
!                     . '/profiles.php?sid=' . $story . '&what=emailstory">'
!                     . $LANG11[2] . '</a>';
              }
              $printUrl = COM_buildUrl ($_CONF['site_url']
--- 174,183 ----
              $story_options = array ();
              if ($_CONF['hideemailicon'] == 0) {
!                 $emailUrl = $_CONF['site_url'] . '/profiles.php?sid=' . $story
!                           . '&what=emailstory';
!                 $story_options[] = '<a href="' . $emailUrl . '">' . $LANG11[2]
!                                  . '</a>';
!                 $story_template->set_var ('email_story_url', $emailUrl);
!                 $story_template->set_var ('lang_email_story', $LANG11[2]);
              }
              $printUrl = COM_buildUrl ($_CONF['site_url']
***************
*** 183,191 ****
                  $story_options[] = '<a href="' . $printUrl . '">' . $LANG11[3]
                                   . '</a>';
              }
              if ($_CONF['pdf_enabled'] == 1) {
!                 $story_options[] = '<a href="' . $_CONF['site_url']
                          . '/pdfgenerator.php?pageType=2&pageData='
!                         . urlencode ($printUrl) . '">' . $LANG11[5] . '</a>';
              }
              $related = STORY_whatsRelated ($A['related'], $A['uid'], $A['tid']);
--- 186,200 ----
                  $story_options[] = '<a href="' . $printUrl . '">' . $LANG11[3]
                                   . '</a>';
+                 $story_template->set_var ('print_story_url', $printUrl);
+                 $story_template->set_var ('lang_print_story', $LANG11[3]);
              }
              if ($_CONF['pdf_enabled'] == 1) {
!                 $pdfUrl = $_CONF['site_url']
                          . '/pdfgenerator.php?pageType=2&pageData='
!                         . urlencode ($printUrl);
!                 $story_options[] = '<a href="' . $pdfUrl . '">' . $LANG11[5]
!                                  . '</a>';
!                 $story_template->set_var ('pdf_story_url', $printUrl);
!                 $story_template->set_var ('lang_pdf_story', $LANG11[5]);
              }
              $related = STORY_whatsRelated ($A['related'], $A['uid'], $A['tid']);




More information about the geeklog-cvs mailing list