From 36af5f33bae675866b4e147b9bb53abaaebe8cb0 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 4 Dec 2018 12:41:50 -0500 Subject: [PATCH] Converted wp_editor regerences to not use {php}. Also removed contacts--POS_OLD.htm. Apparently no longer needed. --- views/admin/contacts/edit.html | 40 +- views/admin/member/contacts--POS_OLD.html | 671 ---------------------- views/admin/profile/index.html | 20 +- 3 files changed, 30 insertions(+), 701 deletions(-) delete mode 100644 views/admin/member/contacts--POS_OLD.html diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 4d0fcc1..0d53402 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -337,16 +337,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} @@ -553,16 +553,16 @@ Notes: - {php} - wp_editor('{$contactInfo.fieldData.notes|escape:quotes}', 'glm_notes', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'notes', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.notes, + 'glm_notes', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "notes", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.notes}

{$contactInfo.fieldFail.notes}

{/if} diff --git a/views/admin/member/contacts--POS_OLD.html b/views/admin/member/contacts--POS_OLD.html deleted file mode 100644 index 4d90702..0000000 --- a/views/admin/member/contacts--POS_OLD.html +++ /dev/null @@ -1,671 +0,0 @@ -{include file='admin/member/header.html'} - -{if $userDeleted} -

Contact Deleted:

- -{/if} - -{if $haveMember} - {if $option == 'list'} - - {if apply_filters('glm_members_permit_admin_member_contacts_add_contact', true)} - Add New {$terms.term_member_cap} Contact - {/if} -
- List Filters:   - Show Archived   -    - Search -      - -

 

- - - - - - - - - - - - - - -{if $haveContacts} - {foreach $contacts as $c} - - - - - - - - - - - {/foreach} -{else} - -{/if} - -
NameActiveTypeAccessUserContact ForOrganizationLocation
- {if apply_filters('glm_members_permit_admin_member_contacts_view_contact', true)} - {$c.lname}, {$c.fname} - {else} - {$c.lname}, {$c.fname} - {/if} - {$c.active.name}{$c.contact_type.name}{$c.access.name}{$c.contact_role_short.name}{$c.ref_type.name} - {$c.ref_dest_name}{$c.org}{$c.city.name}, {$c.state.name}
(no contacts listed)
- - - {elseif $option == 'edit' && !$contactID} - -

ERROR: Specified contact not found!

- - {elseif $newContactExists} - -

NOTE: The Email address or username for this contact is already in use. Please check if they already are a contact in this system.

- - {elseif $misMatchedWpUsers} - -

- NOTE: - The Email address for this contact is already in use by an existing system user but the username is in use by a different - system user. As such we are unable to match this request to a specific existing system user. We suggest you determine what - the "Username" is for the existing Wordpress user with the Email address you requested. Please call for assistance if needed. -

- - {elseif $newContactCreated} - -

New Contact Created: {$contactInfo.fieldData.fname} {$contactInfo.fieldData.lname} - {$contactInfo.fieldData.email}

- {if $usernameChangedToWP || $usingExistingWPContact} -

NOTE:

-
    - {/if} - {if $usingExistingWPContact} -
  • An existing system user was found with the same Email address. This contact will be associated with that system user.
  • -
  • The password of the existing system user was not updated. The system user will continue to use their existing password.
  • - {/if} - {if $usernameChangedToWP} -
  • The username was changed to match the username of the system user found with the specified Email address.
  • -
  • The username for this contact is: {$contactInfo.fieldData.username}
  • - {/if} - {if $usernameChangedToWP || $usingExistingWPContact} -
- {/if} - - {else} - - - {if apply_filters('glm_members_permit_admin_member_contacts_edit_contact', true)} - - {if $option == 'create' || $option == 'edit'} - - Return to Contact List - - {if $option == 'create'} -

Add New Contact

- {else} - {if $contactUpdated}

Contact Updated

{/if} - Delete this Contact -
-
-

Cancel

-

-
-
-

WARNING:

-

- Clicking the "Delete this Contact" button above will - delete all of the data and images associated with this contact. - -

-

- Once deleted, this information will no longer be available and cannot be retrieved! -

-
-

- This contact may instead be "Archived" rather than deleted using the "Contact Display:" pick-list. When archived, the contact is not displayed on the front-end - of the Web site, any login assoicated with this contact is deactivated, and the contact will not show on contact lists unless "Archived" is selected. - Unlike delete, an archived contact may be changed back to normal use. -

-
-

Edit Contact

- {/if} - - -
- - - {if $option == 'create'} - - - - - {else} - - - - - {/if} - - - - - - - - - - - {if $option != 'create'} - - - - - - - - - {/if} - - - - - - - - - - - - - - - - - - - - - - {if $option == 'create'} - - - {else} - - - {/if} - - - - {if $option == 'create'} - - - {else} - - - {/if} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Contact For:{if $option=='create'}{$refTypeName}{else}{$contactInfo.fieldData.ref_type.name}{/if} - {$memberData.name}
Active: - -
Created:{$contactInfo.fieldData.create_time.datetime}
Last Updated:{$contactInfo.fieldData.modify_time.datetime}
First Name: - - {if $contactInfo.fieldFail.fname}

{$contactInfo.fieldFail.fname}

{/if} -
Last Name: - - {if $contactInfo.fieldFail.lname}

{$contactInfo.fieldFail.lname}

{/if} -
Contact Type: - - {if $contactInfo.fieldFail.contact_type}

{$contactInfo.fieldFail.contact_type}

{/if} -
Permissions: - - {if $contactInfo.fieldFail.contact_role}

{$contactInfo.fieldFail.contact_role}

{/if} -
Display/Moderate/Archive: - - {if $contactInfo.fieldFail.access}

{$contactInfo.fieldFail.access}

{/if} -
Email Address: - -
NOTE: This field is required for users who will have login privileges. - {if $contactInfo.fieldFail.email}

{$contactInfo.fieldFail.email}

{/if} -
Email Address::{$contactInfo.fieldData.email}
Login Username: - -
NOTE: The username cannot be changed once the contact is created. - {if $contactInfo.fieldFail.username}

{$contactInfo.fieldFail.username}

{/if} -
Login Username:{$contactInfo.fieldData.username}
Login password: - - {if $option == 'create'} - Save this password. -
A randomly generated password has been supplied. You may change this as desired. - There is no way to view a password once it's set. However, a user may recover a password using their - Email address at the login page. - {else} -
NOTE: Enter a password here only if you need to change it. - {/if} -
The password must be at least 8 characters and include at least one number, one letter, and at least one - special character. (# . - _ , $ % & !) - {if $contactInfo.fieldFail.password}

{$contactInfo.fieldFail.password}

{/if} -
Alternate Email Address: - - {if $contactInfo.fieldFail.alt_email}

{$contactInfo.fieldFail.alt_email}

{/if} -
Organization: - - {if $contactInfo.fieldFail.org}

{$contactInfo.fieldFail.org}

{/if} -
Title/Position: - - {if $contactInfo.fieldFail.title}

{$contactInfo.fieldFail.title}

{/if} -
Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} - {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} -
Image: - {if $contactInfo.fieldData.image} -
- - Close
-
- - - - - - -
- Delete Image
- {$contactInfo.fieldData.image}
-

Show Large Image

-
- {/if} - - {if $contactInfo.fieldFail.image}

{$contactInfo.fieldFail.image}

{/if} -
Address Line 1: - - {if $contactInfo.fieldFail.addr1}

{$contactInfo.fieldFail.addr1}

{/if} -
Address Line 2: - - {if $contactInfo.fieldFail.addr2}

{$contactInfo.fieldFail.addr2}

{/if} -
City - -
Add a new City
-
- - - - - -
City Name: - -
-
-

* Required

- Cancel - -
- - - -
State: - - {if $contactInfo.fieldFail.state}

{$contactInfo.fieldFail.state}

{/if} -
ZIP / Postal Code: - - {if $contactInfo.fieldFail.zip}

{$contactInfo.fieldFail.zip}

{/if} -
Country: - - {if $contactInfo.fieldFail.country}

{$contactInfo.fieldFail.country}

{/if} -
Web Address (URL): - {if $contactInfo.fieldData.url} - Test Link - {/if} - http:// - {if $contactInfo.fieldFail.url}

{$contactInfo.fieldFail.url}

{/if} -
Office Phone #: - - {if $contactInfo.fieldFail.office_phone}

{$contactInfo.fieldFail.office_phone}

{/if} -
Home Phone #: - - {if $contactInfo.fieldFail.home_phone}

{$contactInfo.fieldFail.home_phone}

{/if} -
Mobile Phone #: - - {if $contactInfo.fieldFail.mobile_phone}

{$contactInfo.fieldFail.mobile_phone}

{/if} -
Alternate Phone #: - - {if $contactInfo.fieldFail.alt_phone}

{$contactInfo.fieldFail.alt_phone}

{/if} -
FAX #: - - {if $contactInfo.fieldFail.fax}

{$contactInfo.fieldFail.fax}

{/if} -
Notes: - {php} - wp_editor('{$contactInfo.fieldData.notes}', 'glm_notes', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'notes', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} - {if $contactInfo.fieldFail.notes}

{$contactInfo.fieldFail.notes}

{/if} -
-

* Required

- -
- - {/if} - - {else} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Contact For:{$contactInfo.fieldData.ref_type.name} - {$memberData.name}
Active:{$contactInfo.fieldData.active.name}
Created:{$contactInfo.fieldData.create_time.datetime}
Last Updated:{$contactInfo.fieldData.modify_time.datetime}
First Name:{$contactInfo.fieldData.fname}
Last Name:{$contactInfo.fieldData.lname}
Contact Type:{$contactInfo.fieldData.contact_type.name}
Email Address::{$contactInfo.fieldData.email}
Alternate Email Address:{$contactInfo.fieldData.alt_email}
Organization:{$contactInfo.fieldData.org}
Title/Position:{$contactInfo.fieldData.title}
Position/Responsibilities:{$contactInfo.fieldData.descr}
Image: - {if $contactInfo.fieldData.image} - - {/if} -
Address Line 1:{$contactInfo.fieldData.addr1}
Address Line 2:{$contactInfo.fieldData.addr2}
City{$contactInfo.fieldData.city.name}
State:{$contactInfo.fieldData.state.name}
ZIP / Postal Code:{$contactInfo.fieldData.zip}
Country:{$contactInfo.fieldData.country.name}
Web Address (URL): - {if $contactInfo.fieldData.url} - {$contactInfo.fieldData.url} - {/if} -
Office Phone #:{$contactInfo.fieldData.office_phone}
Home Phone #:{$contactInfo.fieldData.home_phone}
Mobile Phone #:{$contactInfo.fieldData.mobile_phone}
Alternate Phone #:{$contactInfo.fieldData.alt_phone}
FAX #:{$contactInfo.fieldData.fax}
Notes:{$contactInfo.fieldData.notes}
- {/if} - - {/if} - -{else} -

No current {$terms.term_member}.

-{/if} - - - - -{include file='admin/footer.html'} diff --git a/views/admin/profile/index.html b/views/admin/profile/index.html index 79201e0..f594b44 100644 --- a/views/admin/profile/index.html +++ b/views/admin/profile/index.html @@ -126,16 +126,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} -- 2.17.1