From: <ada...@us...> - 2003-07-19 18:05:22
|
Update of /cvsroot/phpwebsite-comm/modules/article/inc In directory sc8-pr-cvs1:/tmp/cvs-serv436/inc Modified Files: editconfig.php saveconfig.php Log Message: Printable version can now show site header & footer if set in the Configuration menu Index: editconfig.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/editconfig.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** editconfig.php 14 Jul 2003 20:46:25 -0000 1.2 --- editconfig.php 19 Jul 2003 18:05:19 -0000 1.3 *************** *** 188,191 **** --- 188,196 ---- . $_SESSION['OBJ_help']->show_link('configmanager', 'make_metatags'); + /* make_metatags */ + $tags['BRAND_PRINTABLE'] = $GLOBALS['core']->formCheckBox('CONFIG_brand_printable',1 + ,$this->val['brand_printable'],NULL + ,$_SESSION['translate']->it('Show page headers and footers on printable versions of articles')); + $tags['SAVE'] = $GLOBALS['core']->formSubmit($_SESSION['translate']->it('Save Settings'), 'ARTICLE_vars[config:save]'); $tags['RESET'] = $GLOBALS['core']->formSubmit($_SESSION['translate']->it('Reset Settings'), 'ARTICLE_vars[config:reset]'); Index: saveconfig.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/inc/saveconfig.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** saveconfig.php 9 Jul 2003 20:24:26 -0000 1.1 --- saveconfig.php 19 Jul 2003 18:05:19 -0000 1.2 *************** *** 43,46 **** --- 43,47 ---- $query_data['lock_expiration_time'] = $_POST['CONFIG_lock_expiration_time']; $query_data['make_metatags'] = ($_POST['CONFIG_make_metatags'])?1:0; + $query_data['brand_printable'] = ($_POST['CONFIG_brand_printable'])?1:0; $GLOBALS['core']->sqlUpdate($query_data, "mod_article_config"); |