WordPress.org

Plugin Directory

Changeset 1514522


Ignore:
Timestamp:
10/14/16 07:39:18 (17 months ago)
Author:
moz667
Message:
  • fix permission issue
  • fix cache issue
  • check google-maps js is registered
  • resize iframes public forms new bootstrap
Location:
restaurant-bookings/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • restaurant-bookings/trunk/inc/ae-api/ae-api.php

    r1436302 r1514522  
    11031103 
    11041104    private function get_cache_key( $method, $args=array() ) { 
    1105         return md5(self::VERSION . "->" . $method . "(" . http_build_query($args) . ")"); 
     1105        return md5($_SERVER['SERVER_NAME'] . "->" . self::VERSION . "->" . $method . "(" . http_build_query($args) . ")"); 
    11061106    } 
    11071107 
  • restaurant-bookings/trunk/languages/td-rbk-en_US.po

    r1436302 r1514522  
    55"Project-Id-Version: Restaurant Bookings New (aka rbk) 2.0.0\n" 
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/restaurant-" 
    7 "bookings\n" 
     7"bookings-new\n" 
    88"POT-Creation-Date: 2016-03-17 12:42+0100\n" 
    99"PO-Revision-Date: 2016-03-17 19:19+0100\n" 
  • restaurant-bookings/trunk/listae-register.php

    r1436497 r1514522  
    102102     
    103103    public function add_registration_page() { 
    104         add_options_page("Listae", "Listae", "install", RestaurantBooking::PAGE_OPTIONS, array($this, 'registration_page')); 
     104        add_options_page("Listae", "Listae", "delete_others_pages", RestaurantBooking::PAGE_OPTIONS, array($this, 'registration_page')); 
    105105    } 
    106106     
  • restaurant-bookings/trunk/option-page.php

    r1436497 r1514522  
    99     
    1010    public function admin_menu() { 
    11         add_options_page("Listae", "Listae", "install", RestaurantBooking::PAGE_OPTIONS, array($this, 'option_page')); 
     11        add_options_page("Listae", "Listae", "delete_others_pages", RestaurantBooking::PAGE_OPTIONS, array($this, 'option_page')); 
    1212    } 
    1313     
  • restaurant-bookings/trunk/readme.txt

    r1436497 r1514522  
    134134== Changelog == 
    135135 
     136= 2.0.2 = 
     137* fix permission issue 
     138* fix cache issue 
     139* check google-maps js is registered 
     140* resize iframes public forms new bootstrap 
     141 
    136142= 2.0.1 = 
    137143* php-curl requeriments and error msg 
  • restaurant-bookings/trunk/restaurant-bookings.php

    r1436497 r1514522  
    11<?php  
    22/* 
    3 Plugin Name: Restaurant Bookings 
     3Plugin Name: Restaurant Bookings New (aka rbk) 
    44Plugin URI: https://wordpress.org/extend/plugins/restaurant-bookings/ 
    55Description:  
    6 Version: 2.0.1 
     6Version: 2.0.2 
    77Author: listae 
    88Author URI: https://listae.com/ 
     
    5050class RestaurantBooking { 
    5151    // Nombre de la carpeta del plugin 
    52     const PLUGIN_SLUG = "restaurant-bookings"; 
     52    const PLUGIN_SLUG = "restaurant-bookings-new"; 
    5353 
    5454    // Nombre de la pagina de opciones 
     
    9292 
    9393    public function wp_enqueue_scripts() { 
    94         wp_register_script("google-maps", "http://maps.google.com/maps/api/js?version=4.3&language=" . AEI18n::get_cur_lang()); 
     94        if (!wp_script_is( "google-maps", 'registered' )) { 
     95            wp_register_script("google-maps", "http://maps.google.com/maps/api/js?version=4.3&language=" . AEI18n::get_cur_lang()); 
     96        } 
     97         
    9598        wp_register_script("rbk-map", self::plugin_url("js/rbk-map.js"), array("jquery",  "google-maps")); 
    9699        wp_enqueue_style("restaurant-bookings", self::plugin_url("css/restaurant-booking.css")); 
     
    108111 
    109112    public static function plugin_url($path = "") { 
    110         return WP_PLUGIN_URL . "/" . self::PLUGIN_SLUG . "/" . $path; 
     113        return plugins_url($path, __FILE__); 
     114        // return WP_PLUGIN_URL . "/" . self::PLUGIN_SLUG . "/" . $path; 
    111115    } 
    112116     
  • restaurant-bookings/trunk/shortcodes.php

    r1436302 r1514522  
    858858        $args = wp_parse_args( $atts, apply_filters("ae_sc_booking_form_defaults", array( 
    859859            "id" => null, 
    860             "height" => "830px", 
     860            "height" => "1100px", 
    861861            "width" => "100%", 
    862862            "date" => isset($_GET["date"]) ? $_GET["date"] : null, 
     
    11341134        $args = wp_parse_args( $atts, apply_filters("ae_sc_contact_form_defaults", array( 
    11351135            "id" => null, 
    1136             "height" => "900px", 
     1136            "height" => "1200px", 
    11371137            "width" => "100%", 
    11381138        )) ); 
     
    11531153        $args = wp_parse_args( $atts, apply_filters("ae_sc_group_form_defaults", array( 
    11541154            "id" => null, 
    1155             "height" => "850px", 
     1155            "height" => "1100px", 
    11561156            "width" => "100%", 
    11571157        )) ); 
     
    11721172        $args = wp_parse_args( $atts, apply_filters("ae_sc_review_form_defaults", array( 
    11731173            "id" => null, 
    1174             "height" => "730px", 
     1174            "height" => "950px", 
    11751175            "width" => "100%", 
    11761176        )) ); 
     
    15091509                    $map_url = esc_url("https://www.google.com/maps?q=" . $this->get_short_address($address)); 
    15101510                } 
     1511                 
     1512                // Filtro para poder aniadirle la clave 
     1513                $img_map = apply_filters("ae_google_maps_img_url", "http://maps.google.com/maps/api/staticmap?center=$lat,$lng&zoom=$zoom&size=" . $args["img_width"] . "x" . $args["img_height"] . "&sensor=false&markers=$lat,$lng"); 
     1514                 
    15111515                ?> 
    15121516                <p class="biz-image-map"> 
    15131517                    <a href="<?php echo esc_attr($map_url); ?>" title="<? _e("Ver mapa de situación", "td-rbk"); ?>"> 
    1514                         <img src="<?php echo esc_attr("http://maps.google.com/maps/api/staticmap?center=$lat,$lng&zoom=$zoom&size=" . $args["img_width"] . "x" . $args["img_height"] . "&sensor=false&markers=$lat,$lng"); ?>" style="width: 100%;" /> 
     1518                        <img src="<?php echo esc_attr($img_map); ?>" style="width: 100%;" /> 
    15151519                    </a> 
    15161520                </p> 
Note: See TracChangeset for help on using the changeset viewer.