Plugin Directory

Changeset 3486648


Ignore:
Timestamp:
03/19/2026 03:58:52 PM (2 weeks ago)
Author:
binsaifullah
Message:

Update to version 1.2.2 from GitHub

Location:
gmap-block
Files:
168 added
2 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gmap-block/tags/1.2.2/gmap-block.php

    r3432394 r3486648  
    44 * Description: A custom Gutenberg block to display google map in Gutenberg editor.
    55 * Author: Zakaria Binsaifullah
    6  * Version: 1.2.1
     6 * Version: 1.2.2
    77 * Text Domain: gmap-block
    88 * Domain Path: /languages
     
    2828
    2929        // Plugin Version
    30         const VERSION = '1.2.1';
     30        const VERSION = '1.2.2';
    3131
    3232        /**
     
    4545        private function __construct() {
    4646            $this->constants();
    47             $this->init();
    4847            $this->includes();
    4948        }
     
    5655         */
    5756        public function constants() {
    58             $this->define_constant( 'GMAP_VERSION', self::VERSION );
    59             $this->define_constant( 'GMAP__FILE__', __FILE__ );
    60             $this->define_constant( 'GMAP_URL_FILE', plugin_dir_url( __FILE__ ) );
    61             $this->define_constant( 'GMAP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    62             $this->define_constant( 'GMAP_URL', plugins_url( '/', plugin_dir_path( __FILE__ ) ) );
    63         }
    64 
    65         private function define_constant( $name, $value ) {
    66             if ( ! defined( $name ) ) {
    67                 define( $name, $value );
    68             }
    69         }
    70 
    71         /**
    72          * Gmap Blocks Init
    73          *
    74          * @since 1.0.0
    75          * @return void
    76          */
    77         public function init() {
    78             add_action( 'init', array( $this, 'load_textdomain' ) );
    79         }
    80 
    81         /**
    82          * Gmap Blocks Load Text Domain
    83          *
    84          * @since 1.0.0
    85          * @return void
    86          */
    87         public function load_textdomain() {
    88             load_plugin_textdomain( 'gmap-block', false, basename( GMAP_PLUGIN_DIR ) . '/languages' );
     57            define( 'GMAP_VERSION', self::VERSION );
     58            define( 'GMAP__FILE__', __FILE__ );
     59            define( 'GMAP_URL_FILE', plugin_dir_url( __FILE__ ) );
     60            define( 'GMAP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     61            define( 'GMAP_URL', plugins_url( '/', plugin_dir_path( __FILE__ ) ) );
    8962        }
    9063
     
    11083         */
    11184        private function includes() {
    112             require_once trailingslashit( GMAP_PLUGIN_DIR ) . 'sdk/sdk.php';
    11385            require_once trailingslashit( GMAP_PLUGIN_DIR ) . 'inc/gmap-block-loader.php';
    11486        }
  • gmap-block/tags/1.2.2/inc/classes/dynamic-style.php

    r3339529 r3486648  
    8484                wp_register_style( $handle, false, array(), GMAP_VERSION, 'all' );
    8585                wp_enqueue_style( $handle, false, array(), GMAP_VERSION, 'all' );
    86                 wp_add_inline_style( $handle, $style );
     86                wp_add_inline_style( $handle, wp_strip_all_tags( $style ) );
    8787            }
    8888        }
  • gmap-block/tags/1.2.2/inc/gmap-block-loader.php

    r3150537 r3486648  
    4242            require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/classes/enqueue-assets.php';
    4343            require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/classes/dynamic-style.php';
    44 
    45             // Gmap Admin
    46             // if( is_admin() ) {
    47             // require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/admin/admin.php';
    48             // }
    4944        }
    5045    }
  • gmap-block/tags/1.2.2/readme.txt

    r3432394 r3486648  
    1 === Gmap - Google Map Gutenberg Block ===
     1=== Gmap Block ===
    22Contributors: binsaifullah
    33Tags: google map, map, map block, gmap block, gutenberg
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 1.2.1
     6Stable tag: 1.2.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    3434
    3535== Changelog ==
     36= 1.2.2 =
     37* Minor bug fixes
     38
    3639= 1.2.1 =
    3740* Missing banner added
  • gmap-block/trunk/gmap-block.php

    r3432394 r3486648  
    44 * Description: A custom Gutenberg block to display google map in Gutenberg editor.
    55 * Author: Zakaria Binsaifullah
    6  * Version: 1.2.1
     6 * Version: 1.2.2
    77 * Text Domain: gmap-block
    88 * Domain Path: /languages
     
    2828
    2929        // Plugin Version
    30         const VERSION = '1.2.1';
     30        const VERSION = '1.2.2';
    3131
    3232        /**
     
    4545        private function __construct() {
    4646            $this->constants();
    47             $this->init();
    4847            $this->includes();
    4948        }
     
    5655         */
    5756        public function constants() {
    58             $this->define_constant( 'GMAP_VERSION', self::VERSION );
    59             $this->define_constant( 'GMAP__FILE__', __FILE__ );
    60             $this->define_constant( 'GMAP_URL_FILE', plugin_dir_url( __FILE__ ) );
    61             $this->define_constant( 'GMAP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
    62             $this->define_constant( 'GMAP_URL', plugins_url( '/', plugin_dir_path( __FILE__ ) ) );
    63         }
    64 
    65         private function define_constant( $name, $value ) {
    66             if ( ! defined( $name ) ) {
    67                 define( $name, $value );
    68             }
    69         }
    70 
    71         /**
    72          * Gmap Blocks Init
    73          *
    74          * @since 1.0.0
    75          * @return void
    76          */
    77         public function init() {
    78             add_action( 'init', array( $this, 'load_textdomain' ) );
    79         }
    80 
    81         /**
    82          * Gmap Blocks Load Text Domain
    83          *
    84          * @since 1.0.0
    85          * @return void
    86          */
    87         public function load_textdomain() {
    88             load_plugin_textdomain( 'gmap-block', false, basename( GMAP_PLUGIN_DIR ) . '/languages' );
     57            define( 'GMAP_VERSION', self::VERSION );
     58            define( 'GMAP__FILE__', __FILE__ );
     59            define( 'GMAP_URL_FILE', plugin_dir_url( __FILE__ ) );
     60            define( 'GMAP_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     61            define( 'GMAP_URL', plugins_url( '/', plugin_dir_path( __FILE__ ) ) );
    8962        }
    9063
     
    11083         */
    11184        private function includes() {
    112             require_once trailingslashit( GMAP_PLUGIN_DIR ) . 'sdk/sdk.php';
    11385            require_once trailingslashit( GMAP_PLUGIN_DIR ) . 'inc/gmap-block-loader.php';
    11486        }
  • gmap-block/trunk/inc/classes/dynamic-style.php

    r3339529 r3486648  
    8484                wp_register_style( $handle, false, array(), GMAP_VERSION, 'all' );
    8585                wp_enqueue_style( $handle, false, array(), GMAP_VERSION, 'all' );
    86                 wp_add_inline_style( $handle, $style );
     86                wp_add_inline_style( $handle, wp_strip_all_tags( $style ) );
    8787            }
    8888        }
  • gmap-block/trunk/inc/gmap-block-loader.php

    r3150537 r3486648  
    4242            require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/classes/enqueue-assets.php';
    4343            require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/classes/dynamic-style.php';
    44 
    45             // Gmap Admin
    46             // if( is_admin() ) {
    47             // require_once trailingslashit( GMAP_PLUGIN_DIR ) . '/inc/admin/admin.php';
    48             // }
    4944        }
    5045    }
  • gmap-block/trunk/readme.txt

    r3432394 r3486648  
    1 === Gmap - Google Map Gutenberg Block ===
     1=== Gmap Block ===
    22Contributors: binsaifullah
    33Tags: google map, map, map block, gmap block, gutenberg
    44Requires at least: 6.0
    55Tested up to: 6.9
    6 Stable tag: 1.2.1
     6Stable tag: 1.2.2
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    3434
    3535== Changelog ==
     36= 1.2.2 =
     37* Minor bug fixes
     38
    3639= 1.2.1 =
    3740* Missing banner added
Note: See TracChangeset for help on using the changeset viewer.