Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename option no template to template, add option on page

  • Loading branch information...
commit f0ab7ac9abb9f9582ae9ba39c60495f0d5a37dde 1 parent ce1a548
@drublic drublic authored
Showing with 7 additions and 7 deletions.
  1. +1 −1  handler.methods.php
  2. +3 −3 handler.php
  3. +3 −3 index.html
View
2  handler.methods.php
@@ -263,7 +263,7 @@ function filter_options() {
$array[$key . 'nocss'] = isset($_GET['nocss']);
$array[$key . 'noresult'] = isset($_GET['noresult']);
$array[$key . 'noresults'] = isset($_GET['noresults']);
- $array[$key . 'notemplate'] = isset($_GET['notemplate']);
+ $array[$key . 'template'] = isset($_GET['template']);
$array[$key . 'style'] = (
isset($_GET['texticon']) || (isset($_GET['text']) && isset($_GET['icon'])) ? 'texticon' : (
isset($_GET['icon']) ? 'icon' : (
View
6 handler.php
@@ -72,7 +72,7 @@
}
if ($option_format === 'html' || $option_html) {
- $support_array['html'] = html_encode($support_array, $option_style, !$option_nocss, $option_notemplate);
+ $support_array['html'] = html_encode($support_array, $option_style, !$option_nocss, $option_template);
}
@@ -89,12 +89,12 @@
header('Content-Type: text/html;charset=UTF-8');
$string = file_get_contents('tpl/html.html');
- $string = preg_replace('/<%= content %>/', html_encode($support_array, $option_style, !$option_nocss, $option_notemplate), $string);
+ $string = preg_replace('/<%= content %>/', html_encode($support_array, $option_style, !$option_nocss, $option_template), $string);
} else if ($option_format === 'xml') {
header('Content-Type: text/xml;charset=UTF-8');
if ($option_html) {
- $support_array['html'] = html_encode($support_array, $option_style, !$option_nocss, $option_notemplate);
+ $support_array['html'] = html_encode($support_array, $option_style, !$option_nocss, $option_template);
}
$string = xml_encode($support_array);
View
6 index.html
@@ -79,10 +79,10 @@ <h1 class="logo">
<input type="checkbox" name="style" value="nocss" id="options-style">
<label for="options-style">without style</label>
</b>
- <!-- <b title="Inserts template-variables to use with Mustache rather than fixed text.">
- <input type="checkbox" name="template" value="notemplate" id="options-template">
+ <b title="Inserts template-variables to use with Mustache rather than fixed text.">
+ <input type="checkbox" name="template" value="template" id="options-template">
<label for="options-template">as a template</label>
- </b> -->
+ </b>
</p>
</div>
</div>
Please sign in to comment.
Something went wrong with that request. Please try again.