Plugin Directory

Changeset 3317020


Ignore:
Timestamp:
06/24/2025 01:16:59 PM (9 months ago)
Author:
dmimag
Message:

Including JS and CSS only when loading plugin shortcode. Fixed minor bugs

Location:
dmimag-liveblog
Files:
28 added
4 edited

Legend:

Unmodified
Added
Removed
  • dmimag-liveblog/trunk/dmimag-liveblog.php

    r3316498 r3317020  
    1717 * Plugin URI:        https://dmimag.site
    1818 * Description:       Create an unlimited of Live broadcast that easily fit into your website design.
    19  * Version:           1.2.2
     19 * Version:           1.2.3
    2020 * Author:            dmimag
    2121 * Author URI:        https://dmimag.site/
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define( 'DMIMAG_LIVEBLOG_VERSION', '1.2.2' );
     37define( 'DMIMAG_LIVEBLOG_VERSION', '1.2.3' );
    3838
    3939/**
  • dmimag-liveblog/trunk/includes/class-dmimag-liveblog.php

    r3316498 r3317020  
    7272            $this->version = DMIMAG_LIVEBLOG_VERSION;
    7373        } else {
    74             $this->version = '1.2.2';
     74            $this->version = '1.2.3';
    7575        }
    7676
     
    214214        $plugin_public = new Dmimag_Liveblog_Public( $this->dmimag_liveblog_get_plugin_name(), $this->dmimag_liveblog_get_version() );
    215215
    216         $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dmimag_liveblog_public_wp_enqueue_style' );
    217 
    218         $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dmimag_liveblog_public_wp_enqueue_script' );
     216        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dmimag_liveblog_public_wp_register_style' ); // dmimag_liveblog_public_wp_enqueue_style
     217
     218        $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'dmimag_liveblog_public_wp_register_script' ); // dmimag_liveblog_public_wp_enqueue_script
    219219
    220220        /**
  • dmimag-liveblog/trunk/public/class-dmimag-liveblog-public.php

    r3316498 r3317020  
    6060     * @since    1.0.0
    6161     */
    62     public function dmimag_liveblog_public_wp_enqueue_style() {
     62    public function dmimag_liveblog_public_wp_register_style() { // dmimag_liveblog_public_wp_enqueue_style
    6363
    6464        /**
     
    7373         * class.
    7474         */
    75         wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dmimag-liveblog-public.css', array(), $this->version, 'all' ); //
     75        wp_register_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/dmimag-liveblog-public.css', array(), $this->version, 'all' ); // wp_enqueue_style
    7676
    7777    }
     
    8282     * @since    1.0.0
    8383     */
    84     public function dmimag_liveblog_public_wp_enqueue_script() {
     84    public function  dmimag_liveblog_public_wp_register_script() { //dmimag_liveblog_public_wp_enqueue_script
    8585
    8686        /**
     
    9696         */
    9797
    98         wp_enqueue_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dmimag-liveblog-public.js', array( 'jquery' ), $this->version, array( 'in_footer' => true, 'strategy'  => 'async' ) ); //wp_register_script
     98        wp_register_script( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'js/dmimag-liveblog-public.js', array( 'jquery' ), $this->version, array( 'in_footer' => true, 'strategy'  => 'async' ) ); //wp_register_script
    9999       
    100100        wp_add_inline_script(
     
    256256
    257257            }
     258
     259            /**
     260             * Including JS and CSS only when loading shortcode
     261             *
     262             */           
     263            wp_enqueue_style( $this->plugin_name );
     264            wp_enqueue_script( $this->plugin_name );
    258265           
    259266            ob_start();
  • dmimag-liveblog/trunk/readme.txt

    r3316498 r3317020  
    22Contributors: dmimag
    33Donate link: https://dmimag.site
    4 Tags: liveblog plugin, live broadcast plugin, wordpress liveblog, wordpress live broadcast, live broadcast
     4Tags: liveblog, livebroadcast, live blog, wordpress liveblog, live broadcast
    55Requires at least: 6.0
    66Tested up to: 6.8
    77Requires PHP: 7.4
    8 Stable tag: 1.2.2
     8Stable tag: 1.2.3
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
     
    1515
    1616Live text broadcasts on your site while you're in the thick of things.
    17 Breaking news, concerts, sporting events, etc.
     17Breaking news, concerts, sporting events, conference, etc.
    1818Keep your readers up to date.
    1919
     
    4444== Changelog ==
    4545
     46= 1.2.3 =
     47- Including JS and CSS only when loading plugin shortcode
     48- Fixed minor bugs
     49
    4650= 1.2.2 =
    4751- Fixed minor bugs
Note: See TracChangeset for help on using the changeset viewer.