|
From: Verdon V. <ve...@us...> - 2009-02-11 15:54:36
|
Update of /cvsroot/phpwebsite-comm/modules/whatsnew/class In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv2436/class Modified Files: Whatsnew_Forms.php Log Message: new features prepping for 1.0.0 Index: Whatsnew_Forms.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/whatsnew/class/Whatsnew_Forms.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Whatsnew_Forms.php 10 Feb 2009 23:11:54 -0000 1.4 --- Whatsnew_Forms.php 11 Feb 2009 15:54:27 -0000 1.5 *************** *** 101,115 **** { $tpl['TITLE'] = dgettext('whatsnew', 'Important Information'); ! $tpl['INFO_1_LABEL'] = dgettext('whatsnew', 'About this module:'); ! $tpl['INFO_1'] = dgettext('whatsnew', 'This is the first release of whatsnew. It\'s pretty simple and there may not be any need further releases, unless bugs are found. That said, I am considering further setup options. I wrote this for a specific need I had and thought it may be of use to others also.'); ! $tpl['INFO_2_LABEL'] = null; ! $tpl['INFO_2'] = null; ! $tpl['INFO_3_LABEL'] = null; ! $tpl['INFO_3'] = null; ! $tpl['INFO_4_LABEL'] = null; ! $tpl['INFO_4'] = null; ! $tpl['INFO_5_LABEL'] = null; ! $tpl['INFO_5'] = null; $tpl['DONATE'] = sprintf(dgettext('whatsnew', 'If you would like to help out with the ongoing development of whatsnew, or other modules by Verdon Vaillancourt, %s click here to donate %s (opens in new browser window).'), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donations%40verdon%2eca&item_name=Whatsnew%20Module%20Development&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="new">', '</a>'); --- 101,115 ---- { + $filename = 'mod/whatsnew/docs/README'; + if (@fopen($filename, "rb")) { + $handle = fopen($filename, "rb"); + $readme = fread($handle, filesize($filename)); + fclose($handle); + } else { + $readme = dgettext('whatsnew', 'Sorry, the readme file does not exist.'); + } + $tpl['TITLE'] = dgettext('whatsnew', 'Important Information'); ! $tpl['INFO'] = $readme; $tpl['DONATE'] = sprintf(dgettext('whatsnew', 'If you would like to help out with the ongoing development of whatsnew, or other modules by Verdon Vaillancourt, %s click here to donate %s (opens in new browser window).'), '<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=donations%40verdon%2eca&item_name=Whatsnew%20Module%20Development&no_shipping=0&no_note=1&tax=0¤cy_code=USD&lc=CA&bn=PP%2dDonationsBF&charset=UTF%2d8" target="new">', '</a>'); |