Plugin Directory

Changeset 3107292


Ignore:
Timestamp:
06/25/2024 09:04:20 AM (21 months ago)
Author:
Happy Coders
Message:

Comments Like Dislike - Released new version

Location:
comments-like-dislike
Files:
72 added
5 edited

Legend:

Unmodified
Added
Removed
  • comments-like-dislike/trunk/comments-like-dislike.php

    r3043317 r3107292  
    66  Plugin Name: Comments Like Dislike
    77  Description: A simple plugin to add like dislike for your comments
    8   Version:     1.2.3
     8  Version:     1.2.4
    99  Author:      WP Happy Coders
    1010  Author URI:  http://wphappycoders.com
     
    5151            defined('CLD_CSS_DIR') or define('CLD_CSS_DIR', plugin_dir_url(__FILE__) . 'css');
    5252            defined('CLD_JS_DIR') or define('CLD_JS_DIR', plugin_dir_url(__FILE__) . 'js');
    53             defined('CLD_VERSION') or define('CLD_VERSION', '1.2.3');
     53            defined('CLD_VERSION') or define('CLD_VERSION', '1.2.4');
    5454            defined('CLD_TD') or define('CLD_TD', 'comments-like-dislike');
    5555            defined('CLD_BASENAME') or define('CLD_BASENAME', plugin_basename(__FILE__));
  • comments-like-dislike/trunk/inc/classes/cld-enqueue.php

    r2871836 r3107292  
    1111         */
    1212        function __construct() {
    13             add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets'));
     13            add_action('comment_form', array($this, 'register_frontend_assets'));
    1414            add_action('admin_enqueue_scripts', array($this, 'register_backend_assets'));
    1515        }
  • comments-like-dislike/trunk/inc/cores/cld-functions.php

    r2498497 r3107292  
    1111     */
    1212    function comments_like_dislike($comment_id) {
     13        $custom_function = true;
    1314        include(CLD_PATH . '/inc/views/frontend/like-dislike-html.php');
    1415    }
    15 
    1616}
  • comments-like-dislike/trunk/inc/views/frontend/like-dislike-html.php

    r2884060 r3107292  
    11<?php
    22$cld_settings = get_option('cld_settings');
     3if (!empty($custom_function)) {
     4    $cld_settings['basic_settings']['status'] = 1;
     5}
    36if ($cld_settings['basic_settings']['status'] != 1) {
    47    // if comments like dislike is disabled from backend
  • comments-like-dislike/trunk/readme.txt

    r3063175 r3107292  
    55Requires at least: 5.5
    66Tested up to: 6.5
    7 Stable tag: 1.2.3
     7Stable tag: 1.2.4
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616<strong>Comments Like Dislike</strong> increases the interaction with the WordPress native comments by enabling likes and dislikes buttons along with the count.
    1717
    18 = See full features list below: =
     18= Comments Like Dislike features =
    1919* Status
    2020    - Enable or Disable Comments Like Dislike for comments
     
    4444* Comment Like Dislike edit from comment edit section
    4545
    46 = Custom Function =
     46= Comments Like Dislike Custom Function =
    4747`<?php comments_like_dislike($comment_id);?>`
    4848$comment_id is the ID of the comment for which you want to display the like dislike button.
     
    7373
    7474
     75
    7576== Screenshots ==
    7677
    77 1. Like Dislike Icon Template 1
    78 2. Like Dislike Icon Template 2
    79 3. Like Dislike Icon Template 3
    80 4. Like Dislike Icon Template 4
    81 5. Like Dislike Icon Custom Template
    82 6. Like Dislike Basic Settings
    83 7. Like Dislike Design Settings
     781. Comments Like Dislike Icon Template 1
     792. Comments Like Dislike Icon Template 2
     803. Comments Like Dislike Icon Template 3
     814. Comments Like Dislike Icon Template 4
     825. Comments Like Dislike Icon Custom Template
     836. Comments Like Dislike Basic Settings
     847. Comments Like Dislike Design Settings
    8485
    8586== Changelog ==
     87= 1.2.4 =
     88* Status enable for custom function by default
     89
    8690= 1.2.3 =
    8791* Fixed User IP security issue
Note: See TracChangeset for help on using the changeset viewer.