Plugin Directory

Changeset 3123357


Ignore:
Timestamp:
07/22/2024 03:56:41 PM (19 months ago)
Author:
gbsdeveloper
Message:

files updated

Location:
wp-ride-booking/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-ride-booking/trunk/readme.txt

    r3063626 r3123357  
    1 === WP Ride Booking ===
     1=== WP Ride Booking - Best Taxi Booking Solution for WordPress ===
    22Contributors: gbsdeveloper
    33Author URI : https://wpridebooking.com
    4 Tags: Taxi, Cab, distance & fare calculator, Travel agency, Woocommerce booking, PayPal payments, Travel Booking, Route finder, google map
     4Tags: Taxi, Cab, Distance & fare calculator, Travel agency, Woocommerce booking, PayPal payments
    55Requires at least: 5.0
    66Donate link: https://plugindemo.wpridebooking.com/support-free-taxi-booking-plugin/
    7 Tested up to: 6.5
    8 Stable tag: 2.3
     7Tested up to: 6.6
     8Stable tag: 2.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1313== Description ==
    1414
    15 <h3>WP Ride Booking: Your Ultimate Solution for Ride and Cab Booking</h3>
     15<h3>WP Ride Booking: Streamlined Taxi and Cab Booking for WordPress</h3>
    1616
    17 WP Ride Booking is a versatile WordPress plugin designed for ride booking, travel agencies, and cab booking sites. With seamless integration and robust features, WP Ride Booking enables you to effortlessly manage bookings and accept payments directly through PayPal. With WP Ride Booking, you can create a professional and user-friendly booking platform that meets the needs of your customers and enhance your booking experience. Streamline your booking process, increase customer satisfaction, and grow your business with WP Ride Booking today!
     17WP Ride Booking is an intuitive and powerful taxi booking plugin for WordPress. It is designed to simplify taxi and cab management right from your website. Whether you’re running a taxi service, a travel agency, or a cab booking platform, this free version covers all your basic needs for scheduling rides and managing reservations.
     18
     19With smooth integration and robust support for Google Maps, WP Ride Booking makes your taxi booking process more efficient and user-friendly. Upgrade to the <a href="https://wpridebooking.com/">premium version</a> for even more advanced features and enhanced functionality. Start using WP Ride Booking today and take control of your taxi booking and cab management effortlessly!
    1820
    1921<h4>Plugin Settings:</h4>
     
    4143
    4244== WP Ride Booking Pro version ==
    43 WP Ride Booking Pro is the ultimate solution for managing your transportation services seamlessly on your WordPress website. Whether you run a taxi service, limousine rental, or shuttle business, this plugin empowers you to streamline bookings, manage your fleet, and deliver exceptional service to your customers. Our plugin is WooCommerce compatible, allowing anyone to create their online taxi, cab, bus, van, trucks, or any vehicle booking system in a few moments. The plugin allows payment using the default WooCommerce order system, and orders can be viewed in the admin section with all the information of the booking like source, destination, distance, payment mode, order status, and customer information.
     45WP Ride Booking Pro is the premier taxi booking plugin for WordPress, designed to seamlessly manage your transportation services online. Perfect for taxi services, limousine rentals, shuttle businesses, and more, this plugin simplifies booking management and fleet operations while enhancing customer service. WP Ride Booking Pro integrates flawlessly with WooCommerce, allowing you to quickly set up an online booking system for various types of vehicles, including taxis, cabs, buses, vans, and trucks. Benefit from smooth payment processing through WooCommerce’s default order system, with detailed booking information easily accessible in the admin section. Track essential details such as source, destination, distance, payment mode, order status, and customer information.
     46
     47Elevate your taxi booking system and optimize your transportation management with WP Ride Booking Pro. Experience the convenience and efficiency of a top-tier booking solution today!
    4448
    4549<h4>WP Ride Booking Pro Features at a glance:</h4>
     
    110114
    111115== Changelog ==
     116= 2.4 =
     117- Check for google map api call
     118- Compatible with WordPres 6.6
     119
    112120= 2.3 =
    113121- Updated depreciated funtions and classes
  • wp-ride-booking/trunk/wp-ride-booking.php

    r3063603 r3123357  
    11<?php
    22/*
    3 Plugin Name: WP Ride Booking
     3Plugin Name: WP Ride Booking - Best Taxi Booking Solution for WordPress
    44Plugin URI:
    55Description: WP Ride Booking is a best solution to create a ride booking system in wordpress.
    6 Version: 2.3       
     6Version: 2.4       
    77Author: GBS Developer
    88Author URI: https://profiles.wordpress.org/gbsdeveloper#content-plugins`
     
    1111*/
    1212
    13 define('wprb_VERSION', '2.3');
     13define('wprb_VERSION', '2.4');
    1414define('wprb_FILE', basename(__FILE__));
    1515define('wprb_NAME', str_replace('.php', '', wprb_FILE));
     
    6868}
    6969function wprb_ride_booking_scripts() {
    70     $api_key = get_option('google_map_api');   
    71     wp_enqueue_script( 'jquery' );
    72    
    73     // Construct the URL with async attribute
    74     $script_url = "//maps.googleapis.com/maps/api/js?libraries=places&key=$api_key&loading=async";
    75 
    76     // Enqueue the script with async attribute
    77     wp_enqueue_script(
    78         'google-maps-api',
    79         $script_url,
    80         array(),
    81         null,
    82         false  // Set to 'true' to include the script in the footer
    83     );
    84     wp_enqueue_script( 'ride-jscript', wprb_URL . 'includes/distance.js' );
    85     wp_enqueue_style( 'map-style', wprb_URL . 'css/style.css');
    86    
     70    // Ensure jQuery is enqueued
     71    wp_enqueue_script('jquery');
     72
     73    // Check for transient to see if the Google Maps API has been enqueued
     74    if (false === get_transient('google_maps_api_loaded')) {
     75        $api_key = get_option('google_map_api');
     76        $script_url = "//maps.googleapis.com/maps/api/js?libraries=places&key=$api_key";
     77
     78        // Output the script tag with the async attribute directly
     79        echo '<script async src="' . esc_url($script_url) . '" id="google-maps-api"></script>';
     80       
     81        // Set a transient to remember that the API script has been loaded
     82        set_transient('google_maps_api_loaded', true, 12 * HOUR_IN_SECONDS);
     83    } else {
     84        // If the API is already loaded, directly include the distance.js script
     85        wp_enqueue_script('ride-jscript', wprb_URL . 'includes/distance.js', array('google-maps-api'), null, true);
     86    }
     87
     88    // Enqueue additional styles
     89    wp_enqueue_style('map-style', wprb_URL . 'css/style.css');
    8790}
    8891add_action('wp_enqueue_scripts', 'wprb_ride_booking_scripts');
     92
     93
     94function wprb_clear_google_maps_transient() {
     95    delete_transient('google_maps_api_loaded');
     96}
     97register_deactivation_hook(__FILE__, 'wprb_clear_google_maps_transient');
     98
    8999
    90100function wprb_ride_booking_install() {
Note: See TracChangeset for help on using the changeset viewer.