Minor cleanup
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 19 Dec 2014 19:20:29 +0000 (14:20 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 19 Dec 2014 19:20:29 +0000 (14:20 -0500)
models/admin/prototypes/edit.php
views/admin/add/index.html
views/admin/prototypes/edit.html

index 3c61a66..b1ec886 100644 (file)
@@ -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(
index f4018d9..51fa337 100644 (file)
                 <td>
                     <textarea name="glm_proto_html" rows="4" cols="50" id="glm_proto_html" />{$content.glm_proto_html|escape:'html'}</textarea>
                     {if $content.glm_proto_html_error != ''}<br><span class="glm-proto-error">{$content.glm_proto_html_error}</span>{/if}
-                    <br>Optional. If not supplied a standard page for background and foreground prototype will be used. 
+                    <p>
+                      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.<br>
+                        <b>Title</b> - &#123;$content.title&#125;<br>
+                        <b>Width</b> - &#123;$content.width&#125;<br>
+                        <b>Height</b> - &#123;$content.height&#125;<br>
+                        <b>Background Image</b> - &#123;$content.background&#125;<br>
+                        <b>Prototype Image</b> - &#123;$content.prototype&#125;<br>
+                        <b>Image #3</b> - &#123;$content.image 3&#125;<br>
+                        <b>Image #4</b> - &#123;$content.image 4&#125;<br>
+                        <b>Image #5</b> - &#123;$content.image 5&#125;<br>
+                    </p>
                 </td>
             </tr>
             <tr>
index 636db31..95c27d1 100644 (file)
                 <td>
                     <textarea name="glm_proto_html" rows="4" cols="50" id="glm_proto_html" />{$content.glm_proto_html|escape:'html'}</textarea>
                     {if $content.glm_proto_html_error != ''}<br><span class="glm-proto-error">{$content.glm_proto_html_error}</span>{/if}
-                    <br>Optional. If not supplied a standard page for background and foreground prototype will be used.
+                    <p>
+                      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.<br>
+                        <b>Title</b> - &#123;$content.title&#125;<br>
+                        <b>Width</b> - &#123;$content.width&#125;<br>
+                        <b>Height</b> - &#123;$content.height&#125;<br>
+                        <b>Background Image</b> - &#123;$content.background&#125;<br>
+                        <b>Prototype Image</b> - &#123;$content.prototype&#125;<br>
+                        <b>Image #3</b> - &#123;$content.image 3&#125;<br>
+                        <b>Image #4</b> - &#123;$content.image 4&#125;<br>
+                        <b>Image #5</b> - &#123;$content.image 5&#125;<br>
+                    </p>
                 </td>
             </tr>
             <tr>