Skip to content

Commit

Permalink
formatting and contact info changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardog committed May 14, 2018
1 parent 4f64d85 commit 55f0265
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions mod/layout/inc/my_page.php
@@ -1,8 +1,7 @@
<?php

/**
* @version $Id$
* @author Matthew McNaney <mcnaney at gmail dot com>
* @author Matthew McNaney <mcnaneym@appstate.edu>
*/
function my_page()
{
Expand Down Expand Up @@ -47,7 +46,8 @@ function my_page()
return PHPWS_Template::process($tpl, 'layout', 'main.tpl');
}

class Layout_User_Settings {
class Layout_User_Settings
{

public static function user_form()
{
Expand All @@ -59,7 +59,8 @@ public static function user_form()
$css = Layout::getAlternateStyles();
if ($css) {
$form->addSelect('alternate', $css);
$form->setMatch('alternate', \phpws\PHPWS_Cookie::read('layout_style'));
$form->setMatch('alternate',
\phpws\PHPWS_Cookie::read('layout_style'));
$form->setLabel('alternate', 'Available styles');
$form->addSubmit('Save settings');
} else {
Expand All @@ -74,7 +75,7 @@ public static function user_form()
public function save_settings()
{
if (isset($_POST['alternate'])) {
\phpws\PHPWS_Cookie::write('layout_style', $_POST['alternate']);
\phpws\PHPWS_Cookie::write('layout_style', $_POST['alternate']);
return TRUE;
}
}
Expand Down

0 comments on commit 55f0265

Please sign in to comment.