From fcbbe1d8a8b28735276dd07ea32be00c2808717e Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 19 Dec 2014 14:20:29 -0500 Subject: [PATCH] Minor cleanup --- models/admin/prototypes/edit.php | 2 +- views/admin/add/index.html | 13 ++++++++++++- views/admin/prototypes/edit.html | 13 ++++++++++++- 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/models/admin/prototypes/edit.php b/models/admin/prototypes/edit.php index 3c61a66..b1ec886 100644 --- a/models/admin/prototypes/edit.php +++ b/models/admin/prototypes/edit.php @@ -152,7 +152,7 @@ class glmProtoAdmin_prototypes_edit $_REQUEST['glm_proto_width']); $content['glm_proto_height'] = sanitize_text_field( $_REQUEST['glm_proto_height']); - $content['glm_proto_html'] = $_REQUEST['glm_proto_html']; + $content['glm_proto_html'] = stripslashes($_REQUEST['glm_proto_html']); $content['glm_proto_background'] = sanitize_text_field( $_REQUEST['glm_proto_background']); $content['glm_proto_prototype'] = sanitize_text_field( diff --git a/views/admin/add/index.html b/views/admin/add/index.html index f4018d9..51fa337 100644 --- a/views/admin/add/index.html +++ b/views/admin/add/index.html @@ -31,7 +31,18 @@ {if $content.glm_proto_html_error != ''}
{$content.glm_proto_html_error}{/if} -
Optional. If not supplied a standard page for background and foreground prototype will be used. +

+ Optional. If not supplied a standard page for background and foreground prototype will be used. + Use the following syntax to include parameters in this page.
+ Title - {$content.title}
+ Width - {$content.width}
+ Height - {$content.height}
+ Background Image - {$content.background}
+ Prototype Image - {$content.prototype}
+ Image #3 - {$content.image 3}
+ Image #4 - {$content.image 4}
+ Image #5 - {$content.image 5}
+

diff --git a/views/admin/prototypes/edit.html b/views/admin/prototypes/edit.html index 636db31..95c27d1 100644 --- a/views/admin/prototypes/edit.html +++ b/views/admin/prototypes/edit.html @@ -30,7 +30,18 @@ {if $content.glm_proto_html_error != ''}
{$content.glm_proto_html_error}{/if} -
Optional. If not supplied a standard page for background and foreground prototype will be used. +

+ Optional. If not supplied a standard page for background and foreground prototype will be used. + Use the following syntax to include parameters in this page.
+ Title - {$content.title}
+ Width - {$content.width}
+ Height - {$content.height}
+ Background Image - {$content.background}
+ Prototype Image - {$content.prototype}
+ Image #3 - {$content.image 3}
+ Image #4 - {$content.image 4}
+ Image #5 - {$content.image 5}
+

-- 2.17.1