Contributors: thewebist
Donate link: https://mwender.com/
Tags: shortcodes
Requires at least: 6.0
Tested up to: 6.2
Requires PHP: 7.4
Stable tag: 1.9.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Extras for the The Chef's Kitchen website.
This plugin provides extra functionality for The Chef's Kitchen website.
Use [button/]
to render an "Elementor-style" button.
/**
* Renders an Elementor button.
*
* @param array $atts {
* @type string $icon Font Awesome icon class name.
* @type string $icon_align Aligns the icon `left` or `right`. Default `left`.
* @type string $link The URL the button will point to.
* @type string $target Value of the target attribute for the anchor tag. Defaults to `_self`.
* @type string $text The text for the button. Default "Click Here".
* @type string $size The size of the button ( xs, sm, md, lg, xl ). Defaults to `sm`.
* @type string $style Styling applied to the style attribute of the parent anchor.
* }
*
* @return string The HTML for the button.
*/
Use [event_list]
to render a responsive Event List/Calendar.
/**
* Renders the Event Calendar
*
* @return string HTML and CSS for the Event Calendar.
*/
/**
* Renders a handlebars template
*
* @param array $atts {
* @type string $data Key/Value pairs of data to send to the template. Formatted like
* so `key1|value1::key2|value2`. `meta` is a special key which causes the
* shortcode to check the current post for a custom field with the
* name given by the "value". Example: `meta|radius_scheduler` will
* check the current post for a meta field called `radius_scheduler`.
* If found, the $data array passed to the template will have a key
* called `radius_scheduler` with the value of the custom field.
* @type string $hidecss CSS selector used to hide this element if $hideifempty is TRUE.
* Default null.
* @type bool $hideifempty Used with the special key `meta` in $data. If any meta
* meta values are emtpy, hide this template if `true`.
* Defaults to TRUE.
* @type string $hideelement ID of an element to hide when the template rendered by
* this shortcode is shown. Default NULL.
* @type string $template The template we are rendering. Default NULL.
* }
*
* @return string HTML for the template.
*/
Add [subpage_list/]
to display a list of sub pages.
/**
* Show a listing of child pages.
*
* @param array $atts {
* @type string $orderby The column we are ordering by. Defaults to "menu_order".
* @type string $sort How we are ordering the results. Defaults to ASC.
* @type string $parent The post_title of the parent page whose child pages we want to list. Defaults to `null`.
* }
*
* @return string HTML for the subpage list.
*/
- Adding
color
attribute to the[event_list/]
shortcode. This attribue is currently working whentemplate="event-list-02"
. Specify a valid CSS color keyword or a hex color value including the#
. Example:color="#009900"
.
- Adding "Click Here to Share" for each event for
[event_list template="event-list-02"]
.
- Purging page cache before Event Thumbnail generation and after assigning that image as the Post Thumbnail.
- Purging page cache when saving Event thumbnail.
- Adding auto-generation of Event thumbnails.
- Updating admin listing for Event CPTs. Listing Food Trucks via their Featured Images and adjusting the column widths.
- Adding Featured Image to the admin listing for Event CPTs.
- Updating
[event_list/]
shortcode to add.past-event
to events based on the event's End Date.
- Adding
.past-event
to events older than today along with CSS for indicating old events.
- Adding
weeks
attribute to[event_list/]
to allow for setting the number of weeks back the shortcode displays events.
- Removing comma between month and year in minimized
caleandar.min.js
.
- Updating calendar to show events starting 360 days in the past.
- Removing comma between month and year in calendar title.
- BUGFIX: Ensuring variable is an array.
- Updating the
[single_event_template]
shortcode to retrieve the "Single Event Template" from the current location if used in thepost_content
for a Location CPT.
- BUGFIX: Updating
[event_list]
to query by the current Post ID if we are using it on an Event CPT.
- BUGFIX: Dynamically generating Events API endpoint URL for
caleandar.init.js
.
- New
[eventcalendar]
shortcode powered bycalenandar.js
. - Backend support for Single Event views.
- Added "Single Event Template" option for Location CPTs.
[single_event_template]
shortcode for displaying a Location's Elementor template on a Single Event.
- Adding
is_elementor_edit_mode()
for checking if Elementor is in Edit Mode.
- Adding
parent_col_class
for sizingevent-list-03.hbs
according to number of Food Trucks.
- Adding "Social Graphic Page" option to "Locations" ACF Options.
- Adding
event-list-03.hbs
template with auto-sizing food truck logos.
- Adjusting vertical alignment of "Cancelled" banner on
.event-list-two
layout.
- Adding "Cancelled" banner option to
.event-list-two
layout for events.
- BUGFIX: Running
wp_reset_postdata()
inside[event_list]
.
- BUGFIX: Removing
is_int
check onlimit
option for[event_list]
shortcode.
- Adding
limit
option for[event_list]
shortcode.
- Setting
.event
content to full height of columns.
- Adjusting
.event
layout to be full width on mobile.
- BUGFIX: Adding
\\
to properly callget_alt_heading()
inside NAMESPACE.
- Adding
[altheading]
shortcode for retreiving a post's "Alternate Heading" custom field.
- "Location Tag" support for Location CPTs.
- Updating Clinton event styling.
- Adding "Thumbnail" column for admin Food Trucks CPT listing.
- Updating namespace.
- Adding
template
attribute for[event_list]
shortcode to allow for selecting the shortcode's template. - New Event List display option which includes Food Truck logos.
- Adding
elementor-tab-enhancers.js
. - Adding flex styling for Elementor tabs.
- Adding "tag" attribute to
[event_list]
shortcode. - Automatically saving Event titles in
<date>, <time> at <location>
format/
- Bottom margin for Food Truck entries on desktop.
- Tags are now included as CSS class names in the parent element for events.
- Adding a tag of
cancelled
to an event will display a "Cancelled - Inclement Weather" banner on the event.
- Adding
draft
post_status as a possible option for showing "all" events in admin Event listing.
- Adding message to
[event_list]
shortcode when no upcoming events are found. - Updating default Event admin listing to only show future events.
- Hyperlinking Food Truck name to website in the Event Calendar.
- Removing Team Member List shortcode.
- Removing Webinar Link shortcode.
- Documenting
[event_list]
shortcode.
- Updating Event Calendar layout.
- Adding display for Location Featured Images.
- Bugfix: Proper check for
GOOGLE_MAPS_API_KEY
.
- Mobile styling for Event Calendar.
- Updating composer lock file.
- Removing Google Maps API key.
- Initial setup. Porting from the "TKA Extras" plugin.
- Updating namespaces, constants, etc to reference "The Chef's Kitchen".