Contributors: the_webist
Requires at least: 4.5
Tested up to: 5.4
Stable tag: 2.7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Helper code for the NCC website.
I've built the NCC website using Elementor and the Hello Elementor theme. This is where I add additional code and CSS.
- Product Finder tweaks:
- Adding review dates.
- Adding "Issue ages..." to top of product description.
- Adding "Some information may vary by state..." note to Medicare products.
- Adding extra links below Product description.
- Styling adjustments to the Product Kit Request CTA.
- Clearing a saved Carrier when using the "Plan by State" drop down.
- Moving Standard Carriers above SureLC Carriers message on thank you page for signing up for Online Contracting.
- Updating the navigation note above the Carrier Documents Library.
- Updating
lib/fns/utilities.php::ncc_get_alert()
to support an emptytitle
.
- Updating Carrier Documents Library to "smooth scroll" to the top of the page every time we load a new directory listing.
- Adding Company field to user registration and displaying Company field on user profile.
- Adjusting Carrier > Products code to remove unpublished product prior to building the HTML output.
- Turning off "email change" notification when importing users via
wp ncc users import
.
- Adding switch to disable "Delete User" message upon user deletion.
- Checking to see if a variable exists before trying to add associated user meta field to DB.
- HOTFIX: Checking for a variable before doing a comparison inside
custom_id_attribute()
function for WP Nav Menu.
- Updating user import:
- Setting NPN as username.
- Saving all additional user meta provided in CSV.
- Adding HTML id attribute to
mobile-mega-menu-extra-links
menu items.
- Adding
Alt_Product_Name_2
option towp ncc carriers import/export
.
- Adjusting Top Bar "Log In or Register" link to point to
/login-register/
.
- Removing unpublished Carriers from
acf_get_product_carriers()
.
- Dequeuing Font Awesome icons from Elementor.
- Adding
[custom_loop_post_excerpt]
for use inside an Ele Custom Skin.
- Updating bottom margin for
ul > li
elements. - Adding
Desc_Review_Date
andStates_Review_Date
to Carrier > Products. - Removing
Review_Date
from Carrier > Products.
- Adding "Select a state..." default option for Plan by State selector when user is not logged in.
- Adjusting blog breadcrumbs to include a link to the "blog" and not show the title of the post when viewing a post single.
- Removing Contract Online CTA from the top of Carrier pages.
- Adding Quick Links to main Carrier page.
- Reworking layout of Product Finder results to function like an accordion (titles only).
- Note to <= IE 11 users about the Product Finder not working in their browser.
- Adjusting bullets for lists such that they don't scale down for each subsequent list item.
- Bumping Carrier Documents Library min-height to 1200px.
- Setting
min-height: 800px
for the Carrier Documents Library to prevent "page jump to footer" on "shorter" listing views. - Updating "log in" link for logged out users who access the Carrier Documents Library.
- Setting "Cigna - Medicare Advantage Only" to "Standard Contracting" and "Cigna - All but Medicare Advantage" to "SureLC".
- Product Finder: Moving "State Availability" inside "Plan Details".
- Adding navigation note for Document Library users.
- Added CSS to prevent background/ scroll while JetMenu mega menu is open.
- Added CSS utility classes for showing/hiding mobile mega menu items based on user's logged-in status.
- Setting ul > li bullets to "chevron-circle-right".
- Left aligning text for Product Finder dropdowns and Marketer Display.
- Removing transient for
[team_member_list/]
query.
- Changing bulleted list bullets to NCC Navy.
- Updating link text from "Permalink:..." to "View this information as a web page."
- Changing "Log In" link text to "Log In or Register".
- Adding a transient for
[team_member_list/]
query. - Adding bulleted list options.
- Allow Plan by State Selector to function when the user has not selected a "State", but we have a saved "State".
- Pre-select the Plan Selector when we have a saved "State".
- Making chiclets look less "clickable".
- Product Finder: Made Market's telephone number a clickable link.
- Adding Product Kit Request and Online Contracting CTAs to Carrier pages.
- Skipping non-published products during Carrier export.
- Not showing non-published products in Carrier accordion.
- Adding the Online Contracting settings.
- Preventing Product Finder Selector from redirecting when a "State" has not been selected.
- Adding Product Finder Selector notification message below drop down.
- Adding "by State" to the Product Finder Selector heading.
- Plan by State Selector which facilitates loading the Product Finder with the State and Product selected.
- Updating Kit Request URL.
- Adding Product Kit CTA to Product Finder product descriptions.
- Adding scroll to top when user changes the page for the Product Finder.
- Updating the sort for the Product Finder > Product dropdown (Medicare products first followed by all other products in alphabetical order).
- Updating Product Finder "See more information right here" link text to "See plan details right here".
- HOTFIX: Marketer avatar was overflowing Product Finder.
- Updating Quick Links:
- Restoring link back to Carrier and setting link text to "All ${carrier_name} Products".
- Updating link text for online contracting to "Contract with ${carrier_name} Online".
- Styling for Marketer Testimonials.
- Adding Marketer's state to the marketer title displayed in the Product Finder.
- Mobile styling tweaks to the marketer display in the Product Finder.
- Adding a
create_user_message
.
- Removing
ncc_set_html_mail_content_type()
and setting the content type directly in calls towp_mail()
with the proper email header.
- Adding an NCC Settings > Email page for defining the "Delete User Message" sent to a user whose account has been deleted/unapproved.
- Implementing ACF JSON storage for keeping ACF settings in sync.
- Have WordPress generate the user password when submitting the Elementor form named
wordpress_and_hubspot_registration
. - Updating link for "Register". Changing from
/login
to/register
. - Alerting user when trying to register with an email that already exists.
- Updating
.details-link
and#reset-form
links to match heading font.
- Updating "Free Carrier Contracting Kit" to "Free Carrier Product Kit".
- Styling for Product Finder: adjusting
font-family
for various elements.
- Square aspect ratio for Team Member photos.
- Matching Marketer Testimonial display to Elementor Testimonial.
- HOTFIX: Moving
preventDefault()
call in accordion click handler so that Carrier > Product permalinks will work.
- Adding Carrier Docs link to Quick Links.
- Adding transient caching to
ncc_get_template()
. - Refactoring
.accordion-toggle
JS to work with all child elements.
- Removing
<code/>
around state chiclets. - Disabling loading of fonts via
main.scss
to allow theme/Elementor to handle this. Doing so restores<strong/>
to proper font-weight. - Updating Font Awesome icons.
- Supercrumbs: Adding Carrier name on Carrier and Carrier > Product pages.
- HOTFIX: Commiting compiled SCSS.
- Product Finder design updates:
- Removed underline of product titles.
- Removed zebra striping of product results.
- Added Carrier > Product permalink to "More information" child row.
- Increased cell padding for result rows.
- Updated state "chiclet" color scheme.
- Changed "Product Details" link text to "See more information right here".
- Removed parent product table cell's bottom border which child row is displayed.
- Repositioned "reset form" link next to "Product Finder" header.
- Quick Links updates:
- Removed "Back to ${carrier}" link.
- Changed "Contacting Kit" link text to "Product Kit".
- Fixed "Online Contracting" link.
- Capitalizing Carrier Document Library breadcrumbs.
- Standardizing HTML heading elements for Carrier > Product pages.
- Displaying Carrier Document Library link on Carrier > Products pages.
- Adding
<meta http-equiv="X-UA-Compatible" content="IE=edge;" />
for IE11 compatibility.
- Adding "reset form" link to Product Finder.
- Updating Carrier Documents library to use secure links (i.e. https).
- Adding
HS_AGENT_REGISTRATION_FORM_ID
towp-config.php
. - Adding
alternate_product_name
towp ncc carriers import
. - Testing for empty "date" fields inside
_map_row_values()
to prevent "Review Date" and "Source File Date" from being set as the current day's date when that field is empty in the CSV.
- Updating labels for Cigna in the "Contract Online" GravityForm.
- Updating all trailing supercrumbs to turquoise.
- Removing "Carrier", "Product", and "Carrier > Product" breadcrumb when we are on one of those pages.
- Adding Carrier name to Product permalink text.
- Translating "Lost your password?" to "Forgot password?"
- Changing
/my-profile/
to/dashboard/
. - Filtering Top Bar nav with
add_dashboard_link()
to provide "My Dashboard" link to logged in users. - Adding
[logouturl]
shortcode for use in Elementor buttons or anywhere else we need to add a logout link. - Updating supercrumbs on Team Member pages to display "About > Staff".
- BUGFIX: Correcting reference to Product Finder API.
- Changing "Plan Finder" to "Product Finder".
- Updating
Register
link to redirect to/login/
. - Updating Supercrumbs to only show the current page if that page has child elements.
- Updating Plan Finder product links to use
/carrier/${carrier}/${product}
permalinks. - Updating current item for Supercrubms to use
<span/>
instead of<strong/>
. - Updating
ul > li
chevrons to#26ace2
. - Handling links to
/product/${product}/${carrier}
. Showing a list of products under a category when there are multple ones for a Carrier or redirecting to the/carrier/${carrier}/${product}/
page if there is only one.
- Styling for Supercrumbs: increasing right margin from 5 to 8px, updating down chevron to NCC Blue
#26ACE2
.
- Accouting for multiple names in a Team Member's first name.
- Updating default Avatar.
- Plan Finder: Updating styles for plans.
- Plan Finder: Updating styles for marketer display.
- Added
permalink
to Team Member REST API.
- Online Contracting: Adding options for Aetna/Cigna SureLC & Standard sign ups.
- Supercrumbs: Removing "bold" text from last breadcrumb.
- Updating the breadcrumb separator to a slash.
- Removing hyperlink URL display from print CSS.
- Adjusting CSS for ul > li with chevrons.
- Updating Plan Finder accordion control.
- Updating CSS for Carrier products accordion.
- Updating link text for meeting schedule link (e.g. "Book a time with
$firstname
") ncc_get_template()
now acceptssearch
andreplace
arguments.- Adding
npm run devbuild
for building dev CSS. - FIX: Removing chevrons from Gravity Forms checkbox.
- FIX: Removing chevrons from
.elementor-icon-list-items
.
- FIX: Removing chevrons from Gravity Forms forms.
- FIX: Removing chevrons from directory lister.
- Updating Agent Docs login link to point to
/login/
.
- Adding "Quick Links" for display at the bottom of "Product > Carrier" and "Carrier > Product" pages.
- Adding chevron SVG as list item image for unordered lists.
- NEW: Saved
state
for Plan Finder. Plan Finder now remembers your search settings after you browse to another page on the site.
- NEW:
ncc_get_template()
for loading templates fromlib/html/
. - Converting
lib/fns/utilities.php
to function name-based namespacing. - Adding templates for "Contract Online CTA" and "Free Carrier Contracting Kit CTA".
- NEW:
[carrierproduct]
shortcode. - NEW:
[productcarrier]
shortcode. - Added permalink to
[acf_carrier_products]
product descriptions. - FIX: Updating the column number for sorting in the Plan Finder product dropdown.
- Adding rewrite tag for
carrierproduct
. [carrierdocs]
shortcode.[carrierproduct]
shortcode.
- Adding rewrites for
/carrier/${carrier}/${product}
paths.
- Disabling Custom Login URL to allow for functioning of iThemes Security Plugin.
- Adding login redirect to user dashboard after login.
- Updating
wp ncc carriers import
to handle Lower/Upper Issue Age import
- Plan Finder: Updating drop down placeholder styling (
color: #000; font-weight: normal
). - Plan Finder: Updating
plan-finder.js
to reference the correct column when ordering Products. - Updating
[mymarketer]
to show nothing when no Marketer is assigned to the user. - Adding
global.js
withe.preventDefault()
for main menu link clicks wherehref="#"
. - Updating
[team_member_list]
to link to all Marketers.
- Adjusting the CSS for Marketer photos.
- Adding a "No Marketer Found" alert to
[mymarketer]
when a user either doesn't have a Marketer assigned or their assigned Marketer has apost_status
other than "publish".
- Adding calendar link to Marketer's display
- Adding import/export of "Review Date", "Source File Name", and "Source File Date" for
wp ncc carriers import/export
.
- Adding
wp ncc users import
. - Updating user import to include
NPN
andMarketer
. - Adding
Email
column for admin Team Member CPT list.
- Adjusting CSS for Marketer Display in Product Finder.
wp ncc import
now creates new Carrier Products when noRow_ID
is provided.- Added
_states_to_array()
towp ncc
to handle cleaning States data.
- Removing
title
attribute from page in[supercrumbs]
. - Adding
--carrier=<carrier_name>
option towp ncc export
.
- Adding
[team_member_list]
.
- Adding
[marketer_contact_details]
.
- Adding
[marketer_testimonials]
.
- Moving user's Team Member/Marketer association to the user's meta.
- Responsive styling for
[mymarketer /]
.
- Styling for Team Member photos in admin listing.
- Initial implementation of
[mymarketer /]
shortcode for displaying Marketer information on the My Profile page.
- Adding
Staff Type(s)
andPhoto
columns to Team Members admin listing. - Adding
admin.css
for styling Team Members columns admin listing.
- Adding dropdown to last page in breadcrumb for
[supercrumbs]
. - Refactoring "down chevron" for
[supercrumbs]
.
- Adding
[supercrumbs]
shortcode for "Super Breadcrumbs" with dropdown menus for child pages.
- Removing unpublished products from the Plan Finder.
- Adding Marketer Database
- Adding Plan Finder Help Graphic option
- Adding
wp ncc export
for exporting a CSV of Carriers and Products - Adding
wp ncc import
for importing a CSV of Carriers and Products
- Bug fix: Striping HTML from DataTables
<select />
options.
- Linking Carriers and Products in search results
- Updating NPM packages
- Adding
GitHub Plugin URI
to plugin header for compatibility with the GitHub Updater plug
- Initial release