Plugin Directory

Changeset 3445660


Ignore:
Timestamp:
01/23/2026 03:16:21 PM (2 months ago)
Author:
creavi
Message:

Added a default service placeholder image when no service image is uploaded.
Improved calendar styling

Location:
creavi-booking-service
Files:
40 added
6 edited

Legend:

Unmodified
Added
Removed
  • creavi-booking-service/trunk/assets/css/style.css

    r3352052 r3445660  
     1.creavibc-booking-wrapper span,
     2.creavibc-booking-wrapper p,
     3.creavibc-booking-wrapper label
     4{
     5  font-size: 1rem;
     6}
     7
     8.creavibc-summary span{
     9  font-size: 0.89rem;
     10}
     11
     12.creavibc-booking-wrapper strong{
     13  font-weight: bold;
     14}
     15
     16.creavibc-form-heading{
     17  margin-bottom: 20px;
     18}
     19
    120/* === Overlay === */
    221.creavibc-popup-overlay {
     
    4261
    4362/* === Close Button === */
    44 
     63/*
    4564.creavibc-close {
    4665  position: absolute;
    4766  top: 20px;
    4867  right: 30px;
    49   font-size: 24px;
     68  font-size: 24px !important;
    5069  font-weight: bold;
    5170  color: #999;
    5271  cursor: pointer;
    5372  z-index: 2;
    54 }
     73}*/
     74
     75.creavibc-close {
     76    position: absolute;
     77    top: 18px;
     78    right: 20px;
     79
     80    width: 32px;
     81    height: 32px;
     82    line-height: 32px;
     83
     84    display: flex;
     85    align-items: center;
     86    justify-content: center;
     87
     88    font-size: 30px !important;
     89    font-weight: 100; /* thin */
     90    color: #888;
     91
     92    border-radius: 50%;
     93    cursor: pointer;
     94
     95    transition:
     96        color 0.2s ease,
     97        background-color 0.2s ease,
     98        transform 0.2s ease;
     99}
     100
     101/* Hover effect */
     102.creavibc-close:hover {
     103    color: #111;   
     104    transform: rotate(90deg);
     105}
     106
     107/* Optional: subtle active press */
     108.creavibc-close:active {
     109    transform: rotate(90deg) scale(0.95);
     110}
     111
    55112
    56113.creavibc-inline-wrapper .creavibc-close-final{
     
    62119.creavibc-two-columns {
    63120  display: flex;
    64   gap: 40px;
    65   flex-wrap: wrap;
     121  gap: 40px; 
    66122}
    67123
     
    184240.creavibc-inline-wrapper.creavibc-booking-wrapper{
    185241  width: 100%;
    186   max-width: fit-content;
     242  max-width: 900px;
    187243}
    188244
     
    443499.creavibc-step-2 .dark select,
    444500.creavibc-step-2 .dark textarea {
    445   width: 100%;
     501  width: 96%;
    446502  padding: 8px;
    447503  font-size: 14px;
  • creavi-booking-service/trunk/assets/js/booking.js

    r3442505 r3445660  
    401401
    402402        const form = CREAVIBC_INSTANCES[serviceId].FORM_FIELDS;
    403         let html = '<p><strong>Enter your details:</strong></p>';
     403        let html = '<p class="creavibc-form-heading"><strong>Enter your details:</strong></p>';
    404404
    405405        if (form.name) {
  • creavi-booking-service/trunk/creavi-booking-service.php

    r3442505 r3445660  
    44 * Description: A simple service booking system with popup UI.
    55 * Text Domain: creavi-booking-service
    6  * Version: 1.1.4
     6 * Version: 1.1.5
    77 * Author: Creavi
    88 * License: GPL2
     
    1111if ( ! defined( 'ABSPATH' ) ) exit;
    1212
     13define( 'CREAVIBC_PLUGIN_FILE', __FILE__ );
    1314define('CREAVIBC_PLUGIN_DIR', plugin_dir_path(__FILE__));
    1415define('CREAVIBC_PLUGIN_URL', plugin_dir_url(__FILE__));
    1516define('CREAVIBC_PLUGIN_PATH', plugin_dir_path(__FILE__));
    16 define('CREAVIBC_VERSION', '1.1.4');
     17define('CREAVIBC_VERSION', '1.1.5');
     18
     19require_once CREAVIBC_PLUGIN_DIR . 'includes/deactivation-feedback.php';
    1720
    1821require_once CREAVIBC_PLUGIN_DIR . 'includes/cbs-gcal-remote.php';
     
    2730require_once CREAVIBC_PLUGIN_DIR . 'includes/ajax-handlers.php';
    2831require_once CREAVIBC_PLUGIN_DIR . 'includes/reminders.php';
     32require_once CREAVIBC_PLUGIN_DIR . 'includes/placeholders.php';
     33
     34register_activation_hook( CREAVIBC_PLUGIN_FILE, 'creavibc_setup_placeholder_attachment' );
    2935
    3036
  • creavi-booking-service/trunk/includes/functions.php

    r3442505 r3445660  
    118118                    <div class="creavibc-step creavibc-step-1">
    119119                        <div class="creavibc-calendar-wrap">
    120                             <label><strong><?php esc_html_e('Select date:', 'creavi-booking-service'); ?></strong></label>
     120                            <span><strong><?php esc_html_e('Select date:', 'creavi-booking-service'); ?></strong></span>
    121121                            <div class="creavibc-datepicker-inline" data-service-id="<?php echo esc_attr($post->ID); ?>"></div>
    122122                        </div>                                         
     
    126126                            <div class="creavibc-time-header">
    127127
    128                                  <label>
    129                                     <strong><?php esc_html_e('Select time:', 'creavi-booking-service'); ?></strong>
     128                                <div>
     129                                    <span><strong><?php esc_html_e('Select time:', 'creavi-booking-service'); ?></strong></span>
    130130
    131131                                    <div class="creavibc-timezone-icon-wrapper">
     
    141141                                    </div>
    142142                                   
    143                                 </label>
     143                                </div>
    144144
    145145                                <span class="creavibc-duration-info"><?php echo esc_html__('Duration:', 'creavi-booking-service') . ' ' . esc_html((int)$duration); ?> min</span>
  • creavi-booking-service/trunk/includes/render-booking-inline.php

    r3439801 r3445660  
    104104                    <div class="creavibc-step creavibc-step-1">
    105105                        <div class="creavibc-calendar-wrap">
    106                             <label><strong><?php esc_html_e('Select date:', 'creavi-booking-service'); ?></strong></label>
     106                            <span><strong><?php esc_html_e('Select date:', 'creavi-booking-service'); ?></strong></span>
    107107                            <div class="creavibc-datepicker-inline" data-service-id="<?php echo esc_attr($post->ID); ?>"></div>
    108108                        </div>
     
    110110                        <div class="creavibc-time-wrap">
    111111                            <div class="creavibc-time-header">
    112                                 <label>
    113                                     <strong><?php esc_html_e('Select time:', 'creavi-booking-service'); ?></strong>
     112                                <div>
     113                                    <span><strong><?php esc_html_e('Select time:', 'creavi-booking-service'); ?></strong></span>
    114114                                    <div class="creavibc-timezone-icon-wrapper">
    115115                                        <svg class="creavibc-timezone-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" aria-hidden="true">
     
    123123                                        <div class="creavibc-tooltip"><span class="creavibc-timezone-notice"></span></div>
    124124                                    </div>
    125                                 </label>
     125                                </div>
    126126                                <span class="creavibc-duration-info"><?php echo esc_html__('Duration:', 'creavi-booking-service') . ' ' . esc_html($duration); ?> min</span>
    127127                            </div>
  • creavi-booking-service/trunk/readme.txt

    r3442505 r3445660  
    55Tested up to: 6.8 
    66Requires PHP: 7.4 
    7 Stable tag: 1.1.4
     7Stable tag: 1.1.5
    88License: GPLv2 or later 
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    8686
    8787== Changelog ==
     88
     89= 1.1.5 =
     90* Added a default service placeholder image when no service image is uploaded.
     91* Improved calendar styling for a cleaner and more consistent booking experience.
    8892
    8993= 1.1.4 =
Note: See TracChangeset for help on using the changeset viewer.