Plugin Directory

Changeset 3097917


Ignore:
Timestamp:
06/05/2024 11:22:50 AM (22 months ago)
Author:
starkinfo
Message:

Updating my plugin to newer version 3.1

Location:
wp-testimonial-widget/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-testimonial-widget/trunk/category.php

    r1396579 r3097917  
    227227
    228228                $('.category_type').on('change' , function(){
    229                     var src = '<?php echo CHILD_IMG; ?>category';
     229                    var src = '<?php if(defined('CHILD_IMG') && CHILD_IMG !== ''){ echo CHILD_IMG; } ?>category';
    230230                    var category = $('.category_key').val();
    231231                    $('.category_img').attr("src", src+category+'.png');
  • wp-testimonial-widget/trunk/functions.php

    r1746365 r3097917  
    9191
    9292//Enable the widget of the plugin.
    93 add_action('widgets_init', create_function('', 'return register_widget("SWP_Testimonial_Widget");'));
     93//add_action('widgets_init', create_function('', 'return register_widget("SWP_Testimonial_Widget");'));
     94
     95
     96add_action ( 'widgets_init', 'SWP_Testimonial_Widget' );
     97function SWP_Testimonial_Widget() {
     98return register_widget('SWP_Testimonial_Widget');
     99}
     100
    94101
    95102/**
  • wp-testimonial-widget/trunk/readme.txt

    r1746366 r3097917  
    44Requires at least: 4.0
    55Requires PHP : 5.5
    6 Tested up to: 4.8
    7 Stable tag: 3.0
     6Tested up to: 6.5
     7Stable tag: 3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6565== Changelog ==
    6666
     67= 3.1 =
     68* Compatibility:
     69* Compatible with WordPress latest version 6.5.3
     70* Bug Fixes
     71
    6772= 3.0 =
    6873* Replaced old slider with 'slick' slider.
  • wp-testimonial-widget/trunk/swp-testimonial.php

    r1746365 r3097917  
    55Description: This plugin is for creating testimonials and display using Widget & Shortcodes on front end.
    66Author: Stark Digital
    7 Version: 3.0
     7Version: 3.1
    88Company: Stark Digital
    99Author URI: http://www.starkdigital.net
  • wp-testimonial-widget/trunk/testimonial_widget.php

    r1746365 r3097917  
    55class SWP_Testimonial_Widget extends WP_Widget {
    66
    7     function SWP_Testimonial_Widget() {
     7    // public function SWP_Testimonial_Widget() {
     8    //  parent::__construct(false,$name="Testimonial Widget",array('description'=>'Display Testimonials'));
     9    // }
     10    function __construct() {
     11        // Instantiate the parent object.
    812        parent::__construct(false,$name="Testimonial Widget",array('description'=>'Display Testimonials'));
    913    }
     
    124128            $category = 'all';
    125129        }
    126 
     130       
    127131        if(!empty($new_instance['fields'])) {
    128132            $fields = implode(",",$new_instance['fields']);
Note: See TracChangeset for help on using the changeset viewer.