From: Steve Sutton Date: Thu, 20 Sep 2018 12:41:16 +0000 (-0400) Subject: Remove all file uploads and redo description field. X-Git-Tag: v1.0.32^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=ae01a39ff0a71e207591272f49355654588f9dad;p=WP-Themes%2Fwmta.git Remove all file uploads and redo description field. Field descr is now a textarea field and has a javascript check for any href. If found will alert user to use only plain text. --- diff --git a/glm-member-db-events/views/front/events/frontAdd.html b/glm-member-db-events/views/front/events/frontAdd.html index bf9a78c..4448dc7 100644 --- a/glm-member-db-events/views/front/events/frontAdd.html +++ b/glm-member-db-events/views/front/events/frontAdd.html @@ -243,39 +243,10 @@
Description:
- {php} - wp_editor('{$event.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'media_buttons' => false, - 'quicktags' => array( 'buttons' => 'strong,em,ul,ol,li,close'), - 'tinymce' => false, - 'textarea_name' => 'descr', - 'editor_height' => 200, // Height in px, overrides editor_rows - )); - {/php} + {if $event.fieldFail.descr}

{$event.fieldFail.descr}

{/if}
-
-
-
- - {if $event.fieldData.image} -
-
-
- -
-
-
- Delete Image
- {$event.fieldData.image}
-
-
- {/if} -
New image:
-
-
-
{if $memberOnly}
@@ -418,22 +389,6 @@
- - - - - - - - - - - - - - - - @@ -450,16 +405,9 @@ jQuery(document).ready(function($) { // Double check the form for valid entries before allowing it to be submitted. $('#frontForm').submit(function(){ - var introText = $('textarea[name=intro]').val(); - var descrText = get_tinymce_content(); - if ( introText.trim() === '' ) { - alert( 'Intro Text is empty' ); - location.href = '#glm-intro'; - return false; - } - if ( descrText.trim() === '' ) { - alert( 'Description is empty' ); - location.href = '#glm-descr'; + var descr = $('#glm-event-front-descr').val(); + if ( descr.indexOf( 'href' ) != -1 ) { + alert( 'Please use only plain text in the Description!' ); return false; } return true; diff --git a/style.css b/style.css index 103e24e..787090f 100644 --- a/style.css +++ b/style.css @@ -4,7 +4,7 @@ Theme URI: http://underscores.me/ Author: Underscores.me Author URI: http://underscores.me/ Description: Description -Version: 1.0.31 +Version: 1.0.32 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Text Domain: wmta