Changeset 3824892
- Timestamp:
- 11/26/2026 12:54:22 AM (less than one hour ago)
- Location:
- taybl-connect
- Files:
-
- 14 added
- 18 edited
- 1 copied
-
tags/0.4.0 (copied) (copied from taybl-connect/trunk )
-
tags/0.4.0/blocks/booking/block.json (modified) (1 diff)
-
tags/0.4.0/blocks/booking/index.js (modified) (1 diff)
-
tags/0.4.0/blocks/functions (added)
-
tags/0.4.0/blocks/functions/block.json (added)
-
tags/0.4.0/blocks/functions/editor.css (added)
-
tags/0.4.0/blocks/functions/index.asset.php (added)
-
tags/0.4.0/blocks/functions/index.js (added)
-
tags/0.4.0/elementor/class-taybl-style-controls.php (added)
-
tags/0.4.0/elementor/class-widget-booking.php (modified) (2 diffs)
-
tags/0.4.0/elementor/class-widget-functions.php (added)
-
tags/0.4.0/elementor/class-widget-menu.php (modified) (1 diff)
-
tags/0.4.0/includes/class-taybl-blocks.php (modified) (4 diffs)
-
tags/0.4.0/includes/class-taybl-elementor.php (modified) (2 diffs)
-
tags/0.4.0/includes/class-taybl-render.php (modified) (3 diffs)
-
tags/0.4.0/readme.txt (modified) (3 diffs)
-
tags/0.4.0/taybl-connect.php (modified) (2 diffs)
-
trunk/blocks/booking/block.json (modified) (1 diff)
-
trunk/blocks/booking/index.js (modified) (1 diff)
-
trunk/blocks/functions (added)
-
trunk/blocks/functions/block.json (added)
-
trunk/blocks/functions/editor.css (added)
-
trunk/blocks/functions/index.asset.php (added)
-
trunk/blocks/functions/index.js (added)
-
trunk/elementor/class-taybl-style-controls.php (added)
-
trunk/elementor/class-widget-booking.php (modified) (2 diffs)
-
trunk/elementor/class-widget-functions.php (added)
-
trunk/elementor/class-widget-menu.php (modified) (1 diff)
-
trunk/includes/class-taybl-blocks.php (modified) (4 diffs)
-
trunk/includes/class-taybl-elementor.php (modified) (2 diffs)
-
trunk/includes/class-taybl-render.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/taybl-connect.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
taybl-connect/tags/0.4.0/blocks/booking/block.json
r3667910 r3824892 12 12 "venueSlug": { "type": "string", "default": "" }, 13 13 "venueName": { "type": "string", "default": "" }, 14 "bookingTypeId": { "type": "string", "default": "" } 14 "bookingTypeId": { "type": "string", "default": "" }, 15 "layout": { "type": "string", "default": "" } 15 16 }, 16 17 "supports": { -
taybl-connect/tags/0.4.0/blocks/booking/index.js
r3667910 r3824892 71 71 onChange: onVenueChange, 72 72 } ), 73 el( SelectControl, { 74 label: __( 'Layout', 'taybl-connect' ), 75 help: __( 'The horizontal bar needs a wide space; narrow columns show the compact card.', 'taybl-connect' ), 76 value: attributes.layout, 77 options: [ 78 { label: __( 'Layout saved in Taybl', 'taybl-connect' ), value: '' }, 79 { label: __( 'Compact card', 'taybl-connect' ), value: 'compact' }, 80 { label: __( 'Open calendar', 'taybl-connect' ), value: 'calendar' }, 81 { label: __( 'Step by step', 'taybl-connect' ), value: 'steps' }, 82 { label: __( 'Horizontal bar', 'taybl-connect' ), value: 'bar' }, 83 ], 84 onChange: function ( layout ) { 85 setAttributes( { layout: layout } ); 86 }, 87 } ), 73 88 el( 'p', { className: 'components-base-control__help' }, 74 89 __( 'Leave the booking type blank to let guests choose - only set it to lock this widget to a single booking type.', 'taybl-connect' ) -
taybl-connect/tags/0.4.0/elementor/class-widget-booking.php
r3667910 r3824892 71 71 ); 72 72 73 $this->add_control( 74 'layout', 75 array( 76 'label' => __( 'Layout', 'taybl-connect' ), 77 'type' => \Elementor\Controls_Manager::SELECT, 78 'options' => Taybl_Render::booking_layouts(), 79 'default' => '', 80 'description' => __( 'The horizontal bar needs a wide space; narrow columns show the compact card.', 'taybl-connect' ), 81 ) 82 ); 83 73 84 $this->end_controls_section(); 85 86 $this->register_style_controls(); 87 } 88 89 public function get_script_depends(): array { 90 return array( 'taybl-booking-widget' ); 91 } 92 93 private function register_style_controls(): void { 94 $style = new Taybl_Style_Controls( $this, 'taybl-booking' ); 95 $box = array( 'typography', 'color', 'background', 'border' ); 96 97 $style->start( 'card', __( 'Widget card', 'taybl-connect' ) ); 98 $style->slider( 99 'card_width', 100 __( 'Width', 'taybl-connect' ), 101 array( 102 $style->host() => 'width: {{SIZE}}{{UNIT}}; max-width: 100%;', 103 $style->part( array( 'card' ) ) => 'width: 100%;', 104 ), 105 1200 106 ); 107 $this->add_control( 108 'card_align', 109 array( 110 'label' => __( 'Alignment', 'taybl-connect' ), 111 'type' => \Elementor\Controls_Manager::CHOOSE, 112 'options' => array( 113 '0 auto 0 0' => array( 'title' => __( 'Left', 'taybl-connect' ), 'icon' => 'eicon-text-align-left' ), 114 '0 auto' => array( 'title' => __( 'Centre', 'taybl-connect' ), 'icon' => 'eicon-text-align-center' ), 115 '0 0 0 auto' => array( 'title' => __( 'Right', 'taybl-connect' ), 'icon' => 'eicon-text-align-right' ), 116 ), 117 'selectors' => array( $style->host() => 'margin: {{VALUE}};' ), 118 ) 119 ); 120 // Font family set here is picked up by everything in the widget that has no font of its own. 121 $style->element( 'card', array( 'card' ), array( 'typography', 'color', 'background', 'border', 'padding', 'shadow' ) ); 122 $style->end(); 123 124 $style->section( 'title', __( 'Headings', 'taybl-connect' ), array( 'title' ), array( 'typography', 'color' ) ); 125 $style->section( 'text', __( 'Body text', 'taybl-connect' ), array( 'text' ), array( 'typography', 'color' ) ); 126 $style->section( 'label', __( 'Field labels', 'taybl-connect' ), array( 'label' ), array( 'typography', 'color' ) ); 127 128 // The selector boxes take variables so one setting also covers their narrow-screen shapes. 129 $style->start( 'field', __( 'Selector boxes (type, guests, date, time)', 'taybl-connect' ) ); 130 $this->add_control( 131 'field_border_style', 132 array( 133 'label' => __( 'Border type', 'taybl-connect' ), 134 'type' => \Elementor\Controls_Manager::SELECT, 135 'options' => array( 136 '' => __( 'Default', 'taybl-connect' ), 137 'none' => __( 'None', 'taybl-connect' ), 138 'solid' => __( 'Solid', 'taybl-connect' ), 139 'dashed' => __( 'Dashed', 'taybl-connect' ), 140 'dotted' => __( 'Dotted', 'taybl-connect' ), 141 'double' => __( 'Double', 'taybl-connect' ), 142 ), 143 'selectors' => array( $style->host() => '--tw-field-border-style: {{VALUE}};' ), 144 ) 145 ); 146 $style->slider( 'field_border_width', __( 'Border width', 'taybl-connect' ), array( $style->host() => '--tw-field-border-width: {{SIZE}}{{UNIT}};' ), 10 ); 147 $style->color( 'field_border_color', __( 'Border colour', 'taybl-connect' ), $style->host(), '--tw-field-border-color' ); 148 $style->slider( 'field_radius', __( 'Border radius', 'taybl-connect' ), array( $style->host() => '--tw-field-radius: {{SIZE}}{{UNIT}};' ) ); 149 $style->color( 'field_background', __( 'Background colour', 'taybl-connect' ), $style->host(), '--tw-field-bg' ); 150 $style->heading( 'value', __( 'Selected value', 'taybl-connect' ) ); 151 $style->element( 'value', array( 'value' ), array( 'typography', 'color' ) ); 152 $style->heading( 'caption', __( 'Caption underneath', 'taybl-connect' ) ); 153 $style->element( 'caption', array( 'caption' ), array( 'typography', 'color' ) ); 154 $style->heading( 'stepper', __( 'Guest + and - buttons', 'taybl-connect' ) ); 155 $style->element( 'stepper', array( 'stepper' ), $box ); 156 $style->end(); 157 158 foreach ( 159 array( 160 'time' => __( 'Time buttons', 'taybl-connect' ), 161 'choice' => __( 'Option buttons (type, area, guest numbers)', 'taybl-connect' ), 162 ) as $part => $label 163 ) { 164 $style->start( $part, $label ); 165 $style->element( $part, array( $part ), array_merge( $box, array( 'padding', 'hover' ) ) ); 166 $style->heading( $part . '_selected', __( 'When selected', 'taybl-connect' ) ); 167 $style->element( $part . '_selected', array( $part . '-selected' ), $box ); 168 $style->end(); 169 } 170 171 $style->start( 'calendar', __( 'Calendar', 'taybl-connect' ) ); 172 $style->heading( 'month', __( 'Month name', 'taybl-connect' ) ); 173 $style->element( 'month', array( 'month' ), array( 'typography', 'color' ) ); 174 $style->heading( 'month_arrow', __( 'Month arrows', 'taybl-connect' ) ); 175 $style->element( 'month_arrow', array( 'month-arrow' ), array( 'color', 'background', 'border' ) ); 176 $style->heading( 'day', __( 'Days', 'taybl-connect' ) ); 177 $style->element( 'day', array( 'day' ), array_merge( $box, array( 'hover' ) ) ); 178 $style->heading( 'day_selected', __( 'Selected day', 'taybl-connect' ) ); 179 $style->element( 'day_selected', array( 'day-selected' ), $box ); 180 $style->heading( 'day_disabled', __( 'Unavailable days', 'taybl-connect' ) ); 181 $style->element( 'day_disabled', array( 'day-disabled' ), array( 'color', 'background' ) ); 182 $style->end(); 183 184 $style->section( 'input', __( 'Form fields', 'taybl-connect' ), array( 'input' ), $box ); 185 $style->section( 'button', __( 'Main button', 'taybl-connect' ), array( 'button' ), array( 'typography', 'color', 'background', 'border', 'padding', 'shadow', 'hover' ) ); 186 187 $style->start( 'popover', __( 'Drop-down menus', 'taybl-connect' ) ); 188 $style->element( 'popover', array( 'popover' ), array( 'background', 'border', 'padding', 'shadow' ) ); 189 $style->heading( 'option', __( 'Options', 'taybl-connect' ) ); 190 $style->element( 'option', array( 'option' ), array_merge( $box, array( 'hover' ) ) ); 191 $style->heading( 'option_selected', __( 'Selected option', 'taybl-connect' ) ); 192 $style->element( 'option_selected', array( 'option-selected' ), $box ); 193 $style->end(); 194 195 $style->section( 'link', __( 'Links and back button', 'taybl-connect' ), array( 'link' ), array( 'typography', 'color' ) ); 196 $style->section( 'notice', __( 'Notices', 'taybl-connect' ), array( 'notice' ), array_merge( $box, array( 'padding' ) ) ); 197 $style->section( 'summary', __( 'Booking summary', 'taybl-connect' ), array( 'summary' ), array( 'background', 'border', 'padding' ) ); 198 199 $style->start( 'powered', __( '"Powered by" line', 'taybl-connect' ) ); 200 $this->add_control( 201 'powered_color', 202 array( 203 'label' => __( 'Colour', 'taybl-connect' ), 204 'type' => \Elementor\Controls_Manager::COLOR, 205 'description' => __( 'Change this if you give the card a dark background.', 'taybl-connect' ), 206 'selectors' => array( 207 $style->part( array( 'powered-by' ) ) => 'color: {{VALUE}};', 208 $style->host() => '--tw-wordmark: {{VALUE}};', 209 ), 210 ) 211 ); 212 $style->end(); 74 213 } 75 214 … … 79 218 $type_id = isset( $settings['booking_type_id'] ) ? sanitize_text_field( $settings['booking_type_id'] ) : ''; 80 219 220 $layout = isset( $settings['layout'] ) ? sanitize_key( $settings['layout'] ) : ''; 221 81 222 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Taybl_Render escapes every attribute it interpolates. 82 echo Taybl_Render::booking( $slug, $type_id );223 echo Taybl_Render::booking( $slug, $type_id, $layout ); 83 224 } 84 225 } -
taybl-connect/tags/0.4.0/elementor/class-widget-menu.php
r3667910 r3824892 57 57 58 58 $this->end_controls_section(); 59 60 $this->register_style_controls(); 61 } 62 63 public function get_script_depends(): array { 64 return array( 'taybl-menu-widget' ); 65 } 66 67 // Anything left blank keeps the colours and fonts set for this menu widget in Taybl. 68 private function register_style_controls(): void { 69 $style = new Taybl_Style_Controls( $this, 'taybl-menu' ); 70 $text = array( 'typography', 'color' ); 71 $box = array( 'typography', 'color', 'background', 'border', 'padding' ); 72 73 $style->start( 'container', __( 'Menu container', 'taybl-connect' ) ); 74 $style->typography( 'container', $style->part( array( 'menu' ) ) ); 75 $style->color( 'container_background', __( 'Background colour', 'taybl-connect' ), $style->host(), 'background-color' ); 76 $style->border( 'container', $style->host() ); 77 $style->dimensions( 'container_radius', __( 'Border radius', 'taybl-connect' ), $style->host(), 'border-radius' ); 78 $style->dimensions( 'container_padding', __( 'Padding', 'taybl-connect' ), $style->part( array( 'menu' ) ), 'padding' ); 79 $style->shadow( 'container', $style->host() ); 80 $style->slider( 'container_width', __( 'Maximum content width', 'taybl-connect' ), array( $style->part( array( 'menu' ) ) => 'max-width: {{SIZE}}{{UNIT}};' ), 1600 ); 81 $style->end(); 82 83 $style->section( 'title', __( 'Venue name', 'taybl-connect' ), array( 'title' ), $text ); 84 $style->section( 'filters', __( 'Filter bar', 'taybl-connect' ), array( 'filters' ), array( 'background', 'border', 'padding' ) ); 85 86 $style->start( 'chip', __( 'Filter buttons', 'taybl-connect' ) ); 87 $style->element( 'chip', array( 'chip' ), array_merge( $box, array( 'hover' ) ) ); 88 $style->heading( 'chip_selected', __( 'When selected', 'taybl-connect' ) ); 89 $style->element( 'chip_selected', array( 'chip-selected' ), array( 'typography', 'color', 'background', 'border' ) ); 90 $style->end(); 91 92 $style->start( 'category', __( 'Category headings', 'taybl-connect' ) ); 93 $style->element( 'category_title', array( 'category-title' ), $box ); 94 $style->heading( 'category', __( 'Category section', 'taybl-connect' ) ); 95 $style->element( 'category', array( 'category' ), array( 'background', 'border', 'padding' ) ); 96 $style->end(); 97 98 $style->start( 'dish', __( 'Dish cards', 'taybl-connect' ) ); 99 $style->element( 'dish', array( 'dish' ), array( 'background', 'border', 'padding', 'shadow' ) ); 100 $style->slider( 'dish_gap', __( 'Space between dishes', 'taybl-connect' ), array( $style->part( array( 'dishes' ) ) => 'gap: {{SIZE}}{{UNIT}};' ) ); 101 $style->end(); 102 103 $style->section( 'photo', __( 'Dish photos', 'taybl-connect' ), array( 'dish-photo' ), array( 'border', 'shadow' ) ); 104 $style->section( 'dish_name', __( 'Dish names', 'taybl-connect' ), array( 'dish-name' ), $text ); 105 $style->section( 'dish_price', __( 'Prices', 'taybl-connect' ), array( 'dish-price' ), $text ); 106 $style->section( 'dish_description', __( 'Descriptions', 'taybl-connect' ), array( 'dish-description' ), $text ); 107 $style->section( 'dish_tags', __( 'Dietary and allergen tags', 'taybl-connect' ), array( 'dish-tags' ), $text ); 108 $style->section( 'message', __( 'Loading and empty messages', 'taybl-connect' ), array( 'message' ), $text ); 59 109 } 60 110 -
taybl-connect/tags/0.4.0/includes/class-taybl-blocks.php
r3667910 r3824892 5 5 6 6 /** 7 * Registers the t woGutenberg blocks and feeds the editor JS the cached7 * Registers the three Gutenberg blocks and feeds the editor JS the cached 8 8 * venue list (see Taybl_Connection::get_venues()) so the block editor's 9 9 * venue picker never has to call the Taybl API directly - it reads … … 24 24 ); 25 25 register_block_type( 26 TAYBL_CONNECT_DIR . 'blocks/functions', 27 array( 'render_callback' => array( __CLASS__, 'render_functions' ) ) 28 ); 29 register_block_type( 26 30 TAYBL_CONNECT_DIR . 'blocks/menu', 27 31 array( 'render_callback' => array( __CLASS__, 'render_menu' ) ) … … 32 36 $slug = isset( $attributes['venueSlug'] ) ? sanitize_title( $attributes['venueSlug'] ) : ''; 33 37 $booking_type = isset( $attributes['bookingTypeId'] ) ? sanitize_text_field( $attributes['bookingTypeId'] ) : ''; 34 return Taybl_Render::booking( $slug, $booking_type ); 38 $layout = isset( $attributes['layout'] ) ? sanitize_key( $attributes['layout'] ) : ''; 39 return Taybl_Render::booking( $slug, $booking_type, $layout ); 40 } 41 42 public static function render_functions( array $attributes ): string { 43 $slug = isset( $attributes['venueSlug'] ) ? sanitize_title( $attributes['venueSlug'] ) : ''; 44 return Taybl_Render::functions( $slug ); 35 45 } 36 46 … … 45 55 $data = array( 'venues' => Taybl_Connection::get_venues() ); 46 56 wp_localize_script( 'taybl-connect-booking-editor-script', 'taybl_connect_editor_data', $data ); 57 wp_localize_script( 'taybl-connect-functions-editor-script', 'taybl_connect_editor_data', $data ); 47 58 wp_localize_script( 'taybl-connect-menu-editor-script', 'taybl_connect_editor_data', $data ); 48 59 } -
taybl-connect/tags/0.4.0/includes/class-taybl-elementor.php
r3667910 r3824892 17 17 add_action( 'elementor/elements/categories_registered', array( __CLASS__, 'register_category' ) ); 18 18 add_action( 'elementor/widgets/register', array( __CLASS__, 'register_widgets' ) ); 19 // So the widgets' get_script_depends() handles exist, including in the editor preview. 20 add_action( 'elementor/frontend/after_register_scripts', array( 'Taybl_Render', 'register_scripts' ) ); 19 21 } 20 22 … … 30 32 31 33 public static function register_widgets( \Elementor\Widgets_Manager $widgets_manager ): void { 34 require_once TAYBL_CONNECT_DIR . 'elementor/class-taybl-style-controls.php'; 32 35 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-booking.php'; 33 36 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-menu.php'; 37 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-functions.php'; 34 38 35 39 $widgets_manager->register( new Taybl_Elementor_Booking_Widget() ); 36 40 $widgets_manager->register( new Taybl_Elementor_Menu_Widget() ); 41 $widgets_manager->register( new Taybl_Elementor_Functions_Widget() ); 37 42 } 38 43 } -
taybl-connect/tags/0.4.0/includes/class-taybl-render.php
r3667910 r3824892 14 14 class Taybl_Render { 15 15 16 public static function booking( string $venue_slug, string $booking_type_id = '' ): string { 16 // The layout names packages/booking-widget understands. '' means "use the layout saved in Taybl". 17 public static function booking_layouts(): array { 18 return array( 19 '' => __( 'Layout saved in Taybl', 'taybl-connect' ), 20 'compact' => __( 'Compact card', 'taybl-connect' ), 21 'calendar' => __( 'Open calendar', 'taybl-connect' ), 22 'steps' => __( 'Step by step', 'taybl-connect' ), 23 'bar' => __( 'Horizontal bar', 'taybl-connect' ), 24 ); 25 } 26 27 public static function booking( string $venue_slug, string $booking_type_id = '', string $layout = '' ): string { 17 28 if ( '' === $venue_slug ) { 18 29 return '<p class="taybl-connect-placeholder">' . … … 26 37 if ( '' !== $booking_type_id ) { 27 38 $markup .= ' booking-type="' . esc_attr( $booking_type_id ) . '"'; 39 } 40 if ( '' !== $layout && array_key_exists( $layout, self::booking_layouts() ) ) { 41 $markup .= ' layout="' . esc_attr( $layout ) . '"'; 28 42 } 29 43 $markup .= '></taybl-booking>'; … … 49 63 } 50 64 65 // The venue's private function enquiry form. The questions are the venue's 66 // own, set in Taybl; the element fetches them from the public API, so this 67 // only needs the venue slug. 68 public static function functions( string $venue_slug ): string { 69 if ( '' === $venue_slug ) { 70 return '<p class="taybl-connect-placeholder">' . 71 esc_html__( 'Select a venue to display the Taybl function enquiry form.', 'taybl-connect' ) . 72 '</p>'; 73 } 74 75 self::enqueue_functions_script(); 76 77 return '<taybl-function-enquiry venue="' . esc_attr( $venue_slug ) . '"></taybl-function-enquiry>'; 78 } 79 80 public static function register_scripts(): void { 81 $base = trailingslashit( apply_filters( 'taybl_connect_api_base', TAYBL_API_BASE ) ); 82 wp_register_script( 'taybl-booking-widget', $base . 'widget/v2/booking-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 83 wp_register_script( 'taybl-menu-widget', $base . 'widget/v1/menu-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 84 wp_register_script( 'taybl-function-widget', $base . 'widget/v2/function-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 85 } 86 87 public static function enqueue_functions_script(): void { 88 wp_enqueue_script( 89 'taybl-function-widget', 90 trailingslashit( apply_filters( 'taybl_connect_api_base', TAYBL_API_BASE ) ) . 'widget/v2/function-widget.js', 91 array(), 92 TAYBL_CONNECT_VERSION, 93 true 94 ); 95 } 96 51 97 public static function enqueue_booking_script(): void { 52 98 wp_enqueue_script( -
taybl-connect/tags/0.4.0/readme.txt
r3669428 r3824892 1 1 === Taybl Connect === 2 2 Contributors: taybl 3 Tags: booking, restaurant, menu, hospitality 3 Tags: booking, restaurant, menu, hospitality, functions 4 4 Requires at least: 6.5 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0. 2.07 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Embed your Taybl booking and menu widgets on your WordPress site, as Gutenberg blocks or Elementor widgets.11 Embed your Taybl booking and menu widgets, and your private function enquiry form, on your WordPress site, as Gutenberg blocks or Elementor widgets. 12 12 13 13 == Description == 14 14 15 Taybl Connect links your WordPress site to your Taybl account so you can drop your booking widget and menu widgetsanywhere on your site - no code, no copy-pasted embed snippets.15 Taybl Connect links your WordPress site to your Taybl account so you can drop your booking widget, menu widgets and function enquiry form anywhere on your site - no code, no copy-pasted embed snippets. 16 16 17 17 * Connect once under Settings → Taybl Connect. 18 * Place the "Taybl Booking" and "Taybl Menu" blocks anywhere in the block editor, or the matching Elementor widgets if you use Elementor.18 * Place the "Taybl Booking", "Taybl Menu" and "Taybl Function Enquiry" blocks anywhere in the block editor, or the matching Elementor widgets if you use Elementor. 19 19 * Pick the venue (and, for chains, which of several venues) per block - one WordPress site can embed widgets from multiple venues. 20 20 … … 29 29 * Disconnect your account when you choose to unlink it. 30 30 31 It also loads the following JavaScript files directly from Taybl's servers, which are required to render the booking and menuwidgets on your site:31 It also loads the following JavaScript files directly from Taybl's servers, which are required to render the booking, menu and function enquiry widgets on your site: 32 32 33 33 * `widget/v2/booking-widget.js` 34 * `widget/v2/function-widget.js` 34 35 * `widget/v1/menu-widget.js` 35 36 … … 44 45 == Changelog == 45 46 47 = 0.4.0 = 48 * Style tab for all three Elementor widgets: fonts, colours, borders, corner radius, spacing and shadows. 49 * Choose a layout for each Taybl Booking block or Elementor widget: compact card, open calendar, step by step or horizontal bar. 50 51 = 0.3.0 = 52 * New "Taybl Function Enquiry" block and Elementor widget: your private function enquiry form, with the questions you set in Taybl. 53 46 54 = 0.2.0 = 47 55 * Activating the plugin now takes you straight to Settings → Taybl Connect to sign in. -
taybl-connect/tags/0.4.0/taybl-connect.php
r3669428 r3824892 2 2 /** 3 3 * Plugin Name: Taybl Connect 4 * Description: Embed your Taybl booking and menu widgets a s WordPress blocks and Elementor widgets.5 * Version: 0. 2.04 * Description: Embed your Taybl booking and menu widgets and private function enquiry form as WordPress blocks and Elementor widgets. 5 * Version: 0.4.0 6 6 * Requires at least: 6.5 7 7 * Requires PHP: 7.4 … … 17 17 } 18 18 19 define( 'TAYBL_CONNECT_VERSION', '0. 2.0' );19 define( 'TAYBL_CONNECT_VERSION', '0.4.0' ); 20 20 define( 'TAYBL_CONNECT_FILE', __FILE__ ); 21 21 define( 'TAYBL_CONNECT_DIR', plugin_dir_path( __FILE__ ) ); -
taybl-connect/trunk/blocks/booking/block.json
r3667910 r3824892 12 12 "venueSlug": { "type": "string", "default": "" }, 13 13 "venueName": { "type": "string", "default": "" }, 14 "bookingTypeId": { "type": "string", "default": "" } 14 "bookingTypeId": { "type": "string", "default": "" }, 15 "layout": { "type": "string", "default": "" } 15 16 }, 16 17 "supports": { -
taybl-connect/trunk/blocks/booking/index.js
r3667910 r3824892 71 71 onChange: onVenueChange, 72 72 } ), 73 el( SelectControl, { 74 label: __( 'Layout', 'taybl-connect' ), 75 help: __( 'The horizontal bar needs a wide space; narrow columns show the compact card.', 'taybl-connect' ), 76 value: attributes.layout, 77 options: [ 78 { label: __( 'Layout saved in Taybl', 'taybl-connect' ), value: '' }, 79 { label: __( 'Compact card', 'taybl-connect' ), value: 'compact' }, 80 { label: __( 'Open calendar', 'taybl-connect' ), value: 'calendar' }, 81 { label: __( 'Step by step', 'taybl-connect' ), value: 'steps' }, 82 { label: __( 'Horizontal bar', 'taybl-connect' ), value: 'bar' }, 83 ], 84 onChange: function ( layout ) { 85 setAttributes( { layout: layout } ); 86 }, 87 } ), 73 88 el( 'p', { className: 'components-base-control__help' }, 74 89 __( 'Leave the booking type blank to let guests choose - only set it to lock this widget to a single booking type.', 'taybl-connect' ) -
taybl-connect/trunk/elementor/class-widget-booking.php
r3667910 r3824892 71 71 ); 72 72 73 $this->add_control( 74 'layout', 75 array( 76 'label' => __( 'Layout', 'taybl-connect' ), 77 'type' => \Elementor\Controls_Manager::SELECT, 78 'options' => Taybl_Render::booking_layouts(), 79 'default' => '', 80 'description' => __( 'The horizontal bar needs a wide space; narrow columns show the compact card.', 'taybl-connect' ), 81 ) 82 ); 83 73 84 $this->end_controls_section(); 85 86 $this->register_style_controls(); 87 } 88 89 public function get_script_depends(): array { 90 return array( 'taybl-booking-widget' ); 91 } 92 93 private function register_style_controls(): void { 94 $style = new Taybl_Style_Controls( $this, 'taybl-booking' ); 95 $box = array( 'typography', 'color', 'background', 'border' ); 96 97 $style->start( 'card', __( 'Widget card', 'taybl-connect' ) ); 98 $style->slider( 99 'card_width', 100 __( 'Width', 'taybl-connect' ), 101 array( 102 $style->host() => 'width: {{SIZE}}{{UNIT}}; max-width: 100%;', 103 $style->part( array( 'card' ) ) => 'width: 100%;', 104 ), 105 1200 106 ); 107 $this->add_control( 108 'card_align', 109 array( 110 'label' => __( 'Alignment', 'taybl-connect' ), 111 'type' => \Elementor\Controls_Manager::CHOOSE, 112 'options' => array( 113 '0 auto 0 0' => array( 'title' => __( 'Left', 'taybl-connect' ), 'icon' => 'eicon-text-align-left' ), 114 '0 auto' => array( 'title' => __( 'Centre', 'taybl-connect' ), 'icon' => 'eicon-text-align-center' ), 115 '0 0 0 auto' => array( 'title' => __( 'Right', 'taybl-connect' ), 'icon' => 'eicon-text-align-right' ), 116 ), 117 'selectors' => array( $style->host() => 'margin: {{VALUE}};' ), 118 ) 119 ); 120 // Font family set here is picked up by everything in the widget that has no font of its own. 121 $style->element( 'card', array( 'card' ), array( 'typography', 'color', 'background', 'border', 'padding', 'shadow' ) ); 122 $style->end(); 123 124 $style->section( 'title', __( 'Headings', 'taybl-connect' ), array( 'title' ), array( 'typography', 'color' ) ); 125 $style->section( 'text', __( 'Body text', 'taybl-connect' ), array( 'text' ), array( 'typography', 'color' ) ); 126 $style->section( 'label', __( 'Field labels', 'taybl-connect' ), array( 'label' ), array( 'typography', 'color' ) ); 127 128 // The selector boxes take variables so one setting also covers their narrow-screen shapes. 129 $style->start( 'field', __( 'Selector boxes (type, guests, date, time)', 'taybl-connect' ) ); 130 $this->add_control( 131 'field_border_style', 132 array( 133 'label' => __( 'Border type', 'taybl-connect' ), 134 'type' => \Elementor\Controls_Manager::SELECT, 135 'options' => array( 136 '' => __( 'Default', 'taybl-connect' ), 137 'none' => __( 'None', 'taybl-connect' ), 138 'solid' => __( 'Solid', 'taybl-connect' ), 139 'dashed' => __( 'Dashed', 'taybl-connect' ), 140 'dotted' => __( 'Dotted', 'taybl-connect' ), 141 'double' => __( 'Double', 'taybl-connect' ), 142 ), 143 'selectors' => array( $style->host() => '--tw-field-border-style: {{VALUE}};' ), 144 ) 145 ); 146 $style->slider( 'field_border_width', __( 'Border width', 'taybl-connect' ), array( $style->host() => '--tw-field-border-width: {{SIZE}}{{UNIT}};' ), 10 ); 147 $style->color( 'field_border_color', __( 'Border colour', 'taybl-connect' ), $style->host(), '--tw-field-border-color' ); 148 $style->slider( 'field_radius', __( 'Border radius', 'taybl-connect' ), array( $style->host() => '--tw-field-radius: {{SIZE}}{{UNIT}};' ) ); 149 $style->color( 'field_background', __( 'Background colour', 'taybl-connect' ), $style->host(), '--tw-field-bg' ); 150 $style->heading( 'value', __( 'Selected value', 'taybl-connect' ) ); 151 $style->element( 'value', array( 'value' ), array( 'typography', 'color' ) ); 152 $style->heading( 'caption', __( 'Caption underneath', 'taybl-connect' ) ); 153 $style->element( 'caption', array( 'caption' ), array( 'typography', 'color' ) ); 154 $style->heading( 'stepper', __( 'Guest + and - buttons', 'taybl-connect' ) ); 155 $style->element( 'stepper', array( 'stepper' ), $box ); 156 $style->end(); 157 158 foreach ( 159 array( 160 'time' => __( 'Time buttons', 'taybl-connect' ), 161 'choice' => __( 'Option buttons (type, area, guest numbers)', 'taybl-connect' ), 162 ) as $part => $label 163 ) { 164 $style->start( $part, $label ); 165 $style->element( $part, array( $part ), array_merge( $box, array( 'padding', 'hover' ) ) ); 166 $style->heading( $part . '_selected', __( 'When selected', 'taybl-connect' ) ); 167 $style->element( $part . '_selected', array( $part . '-selected' ), $box ); 168 $style->end(); 169 } 170 171 $style->start( 'calendar', __( 'Calendar', 'taybl-connect' ) ); 172 $style->heading( 'month', __( 'Month name', 'taybl-connect' ) ); 173 $style->element( 'month', array( 'month' ), array( 'typography', 'color' ) ); 174 $style->heading( 'month_arrow', __( 'Month arrows', 'taybl-connect' ) ); 175 $style->element( 'month_arrow', array( 'month-arrow' ), array( 'color', 'background', 'border' ) ); 176 $style->heading( 'day', __( 'Days', 'taybl-connect' ) ); 177 $style->element( 'day', array( 'day' ), array_merge( $box, array( 'hover' ) ) ); 178 $style->heading( 'day_selected', __( 'Selected day', 'taybl-connect' ) ); 179 $style->element( 'day_selected', array( 'day-selected' ), $box ); 180 $style->heading( 'day_disabled', __( 'Unavailable days', 'taybl-connect' ) ); 181 $style->element( 'day_disabled', array( 'day-disabled' ), array( 'color', 'background' ) ); 182 $style->end(); 183 184 $style->section( 'input', __( 'Form fields', 'taybl-connect' ), array( 'input' ), $box ); 185 $style->section( 'button', __( 'Main button', 'taybl-connect' ), array( 'button' ), array( 'typography', 'color', 'background', 'border', 'padding', 'shadow', 'hover' ) ); 186 187 $style->start( 'popover', __( 'Drop-down menus', 'taybl-connect' ) ); 188 $style->element( 'popover', array( 'popover' ), array( 'background', 'border', 'padding', 'shadow' ) ); 189 $style->heading( 'option', __( 'Options', 'taybl-connect' ) ); 190 $style->element( 'option', array( 'option' ), array_merge( $box, array( 'hover' ) ) ); 191 $style->heading( 'option_selected', __( 'Selected option', 'taybl-connect' ) ); 192 $style->element( 'option_selected', array( 'option-selected' ), $box ); 193 $style->end(); 194 195 $style->section( 'link', __( 'Links and back button', 'taybl-connect' ), array( 'link' ), array( 'typography', 'color' ) ); 196 $style->section( 'notice', __( 'Notices', 'taybl-connect' ), array( 'notice' ), array_merge( $box, array( 'padding' ) ) ); 197 $style->section( 'summary', __( 'Booking summary', 'taybl-connect' ), array( 'summary' ), array( 'background', 'border', 'padding' ) ); 198 199 $style->start( 'powered', __( '"Powered by" line', 'taybl-connect' ) ); 200 $this->add_control( 201 'powered_color', 202 array( 203 'label' => __( 'Colour', 'taybl-connect' ), 204 'type' => \Elementor\Controls_Manager::COLOR, 205 'description' => __( 'Change this if you give the card a dark background.', 'taybl-connect' ), 206 'selectors' => array( 207 $style->part( array( 'powered-by' ) ) => 'color: {{VALUE}};', 208 $style->host() => '--tw-wordmark: {{VALUE}};', 209 ), 210 ) 211 ); 212 $style->end(); 74 213 } 75 214 … … 79 218 $type_id = isset( $settings['booking_type_id'] ) ? sanitize_text_field( $settings['booking_type_id'] ) : ''; 80 219 220 $layout = isset( $settings['layout'] ) ? sanitize_key( $settings['layout'] ) : ''; 221 81 222 // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Taybl_Render escapes every attribute it interpolates. 82 echo Taybl_Render::booking( $slug, $type_id );223 echo Taybl_Render::booking( $slug, $type_id, $layout ); 83 224 } 84 225 } -
taybl-connect/trunk/elementor/class-widget-menu.php
r3667910 r3824892 57 57 58 58 $this->end_controls_section(); 59 60 $this->register_style_controls(); 61 } 62 63 public function get_script_depends(): array { 64 return array( 'taybl-menu-widget' ); 65 } 66 67 // Anything left blank keeps the colours and fonts set for this menu widget in Taybl. 68 private function register_style_controls(): void { 69 $style = new Taybl_Style_Controls( $this, 'taybl-menu' ); 70 $text = array( 'typography', 'color' ); 71 $box = array( 'typography', 'color', 'background', 'border', 'padding' ); 72 73 $style->start( 'container', __( 'Menu container', 'taybl-connect' ) ); 74 $style->typography( 'container', $style->part( array( 'menu' ) ) ); 75 $style->color( 'container_background', __( 'Background colour', 'taybl-connect' ), $style->host(), 'background-color' ); 76 $style->border( 'container', $style->host() ); 77 $style->dimensions( 'container_radius', __( 'Border radius', 'taybl-connect' ), $style->host(), 'border-radius' ); 78 $style->dimensions( 'container_padding', __( 'Padding', 'taybl-connect' ), $style->part( array( 'menu' ) ), 'padding' ); 79 $style->shadow( 'container', $style->host() ); 80 $style->slider( 'container_width', __( 'Maximum content width', 'taybl-connect' ), array( $style->part( array( 'menu' ) ) => 'max-width: {{SIZE}}{{UNIT}};' ), 1600 ); 81 $style->end(); 82 83 $style->section( 'title', __( 'Venue name', 'taybl-connect' ), array( 'title' ), $text ); 84 $style->section( 'filters', __( 'Filter bar', 'taybl-connect' ), array( 'filters' ), array( 'background', 'border', 'padding' ) ); 85 86 $style->start( 'chip', __( 'Filter buttons', 'taybl-connect' ) ); 87 $style->element( 'chip', array( 'chip' ), array_merge( $box, array( 'hover' ) ) ); 88 $style->heading( 'chip_selected', __( 'When selected', 'taybl-connect' ) ); 89 $style->element( 'chip_selected', array( 'chip-selected' ), array( 'typography', 'color', 'background', 'border' ) ); 90 $style->end(); 91 92 $style->start( 'category', __( 'Category headings', 'taybl-connect' ) ); 93 $style->element( 'category_title', array( 'category-title' ), $box ); 94 $style->heading( 'category', __( 'Category section', 'taybl-connect' ) ); 95 $style->element( 'category', array( 'category' ), array( 'background', 'border', 'padding' ) ); 96 $style->end(); 97 98 $style->start( 'dish', __( 'Dish cards', 'taybl-connect' ) ); 99 $style->element( 'dish', array( 'dish' ), array( 'background', 'border', 'padding', 'shadow' ) ); 100 $style->slider( 'dish_gap', __( 'Space between dishes', 'taybl-connect' ), array( $style->part( array( 'dishes' ) ) => 'gap: {{SIZE}}{{UNIT}};' ) ); 101 $style->end(); 102 103 $style->section( 'photo', __( 'Dish photos', 'taybl-connect' ), array( 'dish-photo' ), array( 'border', 'shadow' ) ); 104 $style->section( 'dish_name', __( 'Dish names', 'taybl-connect' ), array( 'dish-name' ), $text ); 105 $style->section( 'dish_price', __( 'Prices', 'taybl-connect' ), array( 'dish-price' ), $text ); 106 $style->section( 'dish_description', __( 'Descriptions', 'taybl-connect' ), array( 'dish-description' ), $text ); 107 $style->section( 'dish_tags', __( 'Dietary and allergen tags', 'taybl-connect' ), array( 'dish-tags' ), $text ); 108 $style->section( 'message', __( 'Loading and empty messages', 'taybl-connect' ), array( 'message' ), $text ); 59 109 } 60 110 -
taybl-connect/trunk/includes/class-taybl-blocks.php
r3667910 r3824892 5 5 6 6 /** 7 * Registers the t woGutenberg blocks and feeds the editor JS the cached7 * Registers the three Gutenberg blocks and feeds the editor JS the cached 8 8 * venue list (see Taybl_Connection::get_venues()) so the block editor's 9 9 * venue picker never has to call the Taybl API directly - it reads … … 24 24 ); 25 25 register_block_type( 26 TAYBL_CONNECT_DIR . 'blocks/functions', 27 array( 'render_callback' => array( __CLASS__, 'render_functions' ) ) 28 ); 29 register_block_type( 26 30 TAYBL_CONNECT_DIR . 'blocks/menu', 27 31 array( 'render_callback' => array( __CLASS__, 'render_menu' ) ) … … 32 36 $slug = isset( $attributes['venueSlug'] ) ? sanitize_title( $attributes['venueSlug'] ) : ''; 33 37 $booking_type = isset( $attributes['bookingTypeId'] ) ? sanitize_text_field( $attributes['bookingTypeId'] ) : ''; 34 return Taybl_Render::booking( $slug, $booking_type ); 38 $layout = isset( $attributes['layout'] ) ? sanitize_key( $attributes['layout'] ) : ''; 39 return Taybl_Render::booking( $slug, $booking_type, $layout ); 40 } 41 42 public static function render_functions( array $attributes ): string { 43 $slug = isset( $attributes['venueSlug'] ) ? sanitize_title( $attributes['venueSlug'] ) : ''; 44 return Taybl_Render::functions( $slug ); 35 45 } 36 46 … … 45 55 $data = array( 'venues' => Taybl_Connection::get_venues() ); 46 56 wp_localize_script( 'taybl-connect-booking-editor-script', 'taybl_connect_editor_data', $data ); 57 wp_localize_script( 'taybl-connect-functions-editor-script', 'taybl_connect_editor_data', $data ); 47 58 wp_localize_script( 'taybl-connect-menu-editor-script', 'taybl_connect_editor_data', $data ); 48 59 } -
taybl-connect/trunk/includes/class-taybl-elementor.php
r3667910 r3824892 17 17 add_action( 'elementor/elements/categories_registered', array( __CLASS__, 'register_category' ) ); 18 18 add_action( 'elementor/widgets/register', array( __CLASS__, 'register_widgets' ) ); 19 // So the widgets' get_script_depends() handles exist, including in the editor preview. 20 add_action( 'elementor/frontend/after_register_scripts', array( 'Taybl_Render', 'register_scripts' ) ); 19 21 } 20 22 … … 30 32 31 33 public static function register_widgets( \Elementor\Widgets_Manager $widgets_manager ): void { 34 require_once TAYBL_CONNECT_DIR . 'elementor/class-taybl-style-controls.php'; 32 35 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-booking.php'; 33 36 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-menu.php'; 37 require_once TAYBL_CONNECT_DIR . 'elementor/class-widget-functions.php'; 34 38 35 39 $widgets_manager->register( new Taybl_Elementor_Booking_Widget() ); 36 40 $widgets_manager->register( new Taybl_Elementor_Menu_Widget() ); 41 $widgets_manager->register( new Taybl_Elementor_Functions_Widget() ); 37 42 } 38 43 } -
taybl-connect/trunk/includes/class-taybl-render.php
r3667910 r3824892 14 14 class Taybl_Render { 15 15 16 public static function booking( string $venue_slug, string $booking_type_id = '' ): string { 16 // The layout names packages/booking-widget understands. '' means "use the layout saved in Taybl". 17 public static function booking_layouts(): array { 18 return array( 19 '' => __( 'Layout saved in Taybl', 'taybl-connect' ), 20 'compact' => __( 'Compact card', 'taybl-connect' ), 21 'calendar' => __( 'Open calendar', 'taybl-connect' ), 22 'steps' => __( 'Step by step', 'taybl-connect' ), 23 'bar' => __( 'Horizontal bar', 'taybl-connect' ), 24 ); 25 } 26 27 public static function booking( string $venue_slug, string $booking_type_id = '', string $layout = '' ): string { 17 28 if ( '' === $venue_slug ) { 18 29 return '<p class="taybl-connect-placeholder">' . … … 26 37 if ( '' !== $booking_type_id ) { 27 38 $markup .= ' booking-type="' . esc_attr( $booking_type_id ) . '"'; 39 } 40 if ( '' !== $layout && array_key_exists( $layout, self::booking_layouts() ) ) { 41 $markup .= ' layout="' . esc_attr( $layout ) . '"'; 28 42 } 29 43 $markup .= '></taybl-booking>'; … … 49 63 } 50 64 65 // The venue's private function enquiry form. The questions are the venue's 66 // own, set in Taybl; the element fetches them from the public API, so this 67 // only needs the venue slug. 68 public static function functions( string $venue_slug ): string { 69 if ( '' === $venue_slug ) { 70 return '<p class="taybl-connect-placeholder">' . 71 esc_html__( 'Select a venue to display the Taybl function enquiry form.', 'taybl-connect' ) . 72 '</p>'; 73 } 74 75 self::enqueue_functions_script(); 76 77 return '<taybl-function-enquiry venue="' . esc_attr( $venue_slug ) . '"></taybl-function-enquiry>'; 78 } 79 80 public static function register_scripts(): void { 81 $base = trailingslashit( apply_filters( 'taybl_connect_api_base', TAYBL_API_BASE ) ); 82 wp_register_script( 'taybl-booking-widget', $base . 'widget/v2/booking-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 83 wp_register_script( 'taybl-menu-widget', $base . 'widget/v1/menu-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 84 wp_register_script( 'taybl-function-widget', $base . 'widget/v2/function-widget.js', array(), TAYBL_CONNECT_VERSION, true ); 85 } 86 87 public static function enqueue_functions_script(): void { 88 wp_enqueue_script( 89 'taybl-function-widget', 90 trailingslashit( apply_filters( 'taybl_connect_api_base', TAYBL_API_BASE ) ) . 'widget/v2/function-widget.js', 91 array(), 92 TAYBL_CONNECT_VERSION, 93 true 94 ); 95 } 96 51 97 public static function enqueue_booking_script(): void { 52 98 wp_enqueue_script( -
taybl-connect/trunk/readme.txt
r3669428 r3824892 1 1 === Taybl Connect === 2 2 Contributors: taybl 3 Tags: booking, restaurant, menu, hospitality 3 Tags: booking, restaurant, menu, hospitality, functions 4 4 Requires at least: 6.5 5 5 Tested up to: 7.1 6 6 Requires PHP: 7.4 7 Stable tag: 0. 2.07 Stable tag: 0.4.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Embed your Taybl booking and menu widgets on your WordPress site, as Gutenberg blocks or Elementor widgets.11 Embed your Taybl booking and menu widgets, and your private function enquiry form, on your WordPress site, as Gutenberg blocks or Elementor widgets. 12 12 13 13 == Description == 14 14 15 Taybl Connect links your WordPress site to your Taybl account so you can drop your booking widget and menu widgetsanywhere on your site - no code, no copy-pasted embed snippets.15 Taybl Connect links your WordPress site to your Taybl account so you can drop your booking widget, menu widgets and function enquiry form anywhere on your site - no code, no copy-pasted embed snippets. 16 16 17 17 * Connect once under Settings → Taybl Connect. 18 * Place the "Taybl Booking" and "Taybl Menu" blocks anywhere in the block editor, or the matching Elementor widgets if you use Elementor.18 * Place the "Taybl Booking", "Taybl Menu" and "Taybl Function Enquiry" blocks anywhere in the block editor, or the matching Elementor widgets if you use Elementor. 19 19 * Pick the venue (and, for chains, which of several venues) per block - one WordPress site can embed widgets from multiple venues. 20 20 … … 29 29 * Disconnect your account when you choose to unlink it. 30 30 31 It also loads the following JavaScript files directly from Taybl's servers, which are required to render the booking and menuwidgets on your site:31 It also loads the following JavaScript files directly from Taybl's servers, which are required to render the booking, menu and function enquiry widgets on your site: 32 32 33 33 * `widget/v2/booking-widget.js` 34 * `widget/v2/function-widget.js` 34 35 * `widget/v1/menu-widget.js` 35 36 … … 44 45 == Changelog == 45 46 47 = 0.4.0 = 48 * Style tab for all three Elementor widgets: fonts, colours, borders, corner radius, spacing and shadows. 49 * Choose a layout for each Taybl Booking block or Elementor widget: compact card, open calendar, step by step or horizontal bar. 50 51 = 0.3.0 = 52 * New "Taybl Function Enquiry" block and Elementor widget: your private function enquiry form, with the questions you set in Taybl. 53 46 54 = 0.2.0 = 47 55 * Activating the plugin now takes you straight to Settings → Taybl Connect to sign in. -
taybl-connect/trunk/taybl-connect.php
r3669428 r3824892 2 2 /** 3 3 * Plugin Name: Taybl Connect 4 * Description: Embed your Taybl booking and menu widgets a s WordPress blocks and Elementor widgets.5 * Version: 0. 2.04 * Description: Embed your Taybl booking and menu widgets and private function enquiry form as WordPress blocks and Elementor widgets. 5 * Version: 0.4.0 6 6 * Requires at least: 6.5 7 7 * Requires PHP: 7.4 … … 17 17 } 18 18 19 define( 'TAYBL_CONNECT_VERSION', '0. 2.0' );19 define( 'TAYBL_CONNECT_VERSION', '0.4.0' ); 20 20 define( 'TAYBL_CONNECT_FILE', __FILE__ ); 21 21 define( 'TAYBL_CONNECT_DIR', plugin_dir_path( __FILE__ ) );
Note:
See TracChangeset
for help on using the changeset viewer.