Skip to content

Commit 4bb9ae7

Browse files
samtukeSam Tuke
authored andcommitted
Make template system names camelcase
1 parent 89b356f commit 4bb9ae7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

public_html/lists/admin/defaultsystemtemplate.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
echo '<h2>'.s('Default templates suit').'</h2>';
77

8-
$systemtemplate = <<<EOD
8+
$systemTemplate = <<<EOD
99
<div style="margin:0; text-align:center; width:100%; background:#EEE;min-width:240px;height:100%;"><br />
1010
<div style="width:96%;margin:0 auto; border-top:6px solid #369;border-bottom: 6px solid #369;background:#DEF;" >
1111
<h3 style="margin-top:5px;background-color:#69C; font-weight:normal; color:#FFF; text-align:center; margin-bottom:5px; padding:10px; line-height:1.2; font-size:21px; text-transform:capitalize;">[SUBJECT]</h3>
@@ -15,7 +15,7 @@
1515
<br /></div>
1616
EOD;
1717

18-
$template1 = <<<EOD
18+
$templateWithLogo = <<<EOD
1919
<!doctype html>
2020
<html>
2121
<head>
@@ -79,7 +79,7 @@
7979
</html>
8080
EOD;
8181

82-
$template2 = <<<EOD
82+
$simpleResponsiveTemplate = <<<EOD
8383
<!doctype html>
8484
<html>
8585
<head><meta name="viewport" content="width=device-width" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@@ -409,27 +409,27 @@
409409
echo formStart();
410410
echo '
411411
<div>
412-
<input type="radio" name="template" value="systemtemplate" checked>System template<br>
413-
<input type="radio" name="template" value="template1">Template with logo<br>
414-
<input type="radio" name="template" value="template2">Simple responsive template<br>
412+
<input type="radio" name="template" value="systemTemplate" checked>System template<br>
413+
<input type="radio" name="template" value="templateWithLogo">Template with logo<br>
414+
<input type="radio" name="template" value="simpleResponsiveTemplate">Simple responsive template<br>
415415
<input type="submit" value="Select" name="Submit">
416416
</form>
417417
</div>';
418418

419419
if (isset($_POST['Submit'])) {
420420
$radioVal = $_POST['template'];
421421
switch ($radioVal) {
422-
case 'systemtemplate':
422+
case 'systemTemplate':
423423
$title = "System template";
424-
$content = $systemtemplate;
424+
$content = $systemTemplate;
425425
break;
426-
case 'template1':
426+
case 'templateWithLogo':
427427
$title = "Template with logo";
428-
$content = $template1;
428+
$content = $templateWithLogo;
429429
break;
430-
case 'template2':
430+
case 'simpleResponsiveTemplate':
431431
$title = "Simple responsive template";
432-
$content = $template2;
432+
$content = $simpleResponsiveTemplate;
433433
break;
434434
}
435435
$exists = Sql_Fetch_Row_Query(sprintf('select * from %s where title = "%s"',

0 commit comments

Comments
 (0)