Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to load default templates #487

merged 15 commits into from Mar 8, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to鈥
Jump to file or symbol
Failed to load files and symbols.


Just for now

Made template names regular case

  • Loading branch information...
samtuke committed Mar 8, 2019
commit 6c6c898d60ba4d289bc1d864898d9ef60f8786bb
@@ -409,9 +409,9 @@
echo formStart();
echo '
<input type="radio" name="template" value="systemtemplate" checked> System Template<br>
<input type="radio" name="template" value="template1"> Template with Logo<br>
<input type="radio" name="template" value="template2"> Simple Responsive Template<br>
<input type="radio" name="template" value="systemtemplate" checked>System template<br>
<input type="radio" name="template" value="template1">Template with logo<br>
<input type="radio" name="template" value="template2">Simple responsive template<br>
<input type="submit" value="Select" name="Submit">
@@ -420,15 +420,15 @@
$radioVal = $_POST['template'];
switch ($radioVal) {
case 'systemtemplate':
$title = "System Template";
$title = "System template";

This comment has been minimized.

Copy link

xh3n1 Mar 29, 2019

Author Member

@samtuke this should be reverted to "System Template" as otherwise won't be a system template by default when added.

$content = $systemtemplate;
case 'template1':
$title = "Template with Logo";
$title = "Template with logo";
$content = $template1;
case 'template2':
$title = "Simple Responsive Template";
$title = "Simple responsive template";
$content = $template2;
ProTip! Use n and p to navigate between commits in a pull request.
You can鈥檛 perform that action at this time.