Plugin Directory

Changeset 2691393


Ignore:
Timestamp:
03/09/2022 11:25:57 AM (4 years ago)
Author:
vuukle
Message:

5.0.9 trunk release

Location:
free-comments-for-wordpress-vuukle/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • free-comments-for-wordpress-vuukle/trunk/README.txt

    r2627343 r2691393  
    44Requires at least: 2.0.2
    55Tested up to: 5.8
    6 Stable tag: 5.0.8
     6Stable tag: 5.0.9
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    172172== Changelog ==
    173173
     174= 5.0.9 =
     175
     176* Added native comments section hide logic 
     177
    174178= 5.0.8 =
    175179
  • free-comments-for-wordpress-vuukle/trunk/free-comments-for-wordpress-vuukle.php

    r2627343 r2691393  
    1919 * Plugin URI:        https://vuukle.com
    2020 * Description:       Vuukle is the smartest commenting platform that offers AI-powered commenting, Unique Sharing tool bar, Emoji reaction widget and real time analytics with just one click. Customize all you want, make your pages load faster and experience user engagement like never before!
    21  * Version:           5.0.8
     21 * Version:           5.0.9
    2222 * Author:            Vuukle
    2323 * Author URI:        https://vuukle.com
     
    7171 */
    7272function Run_Free_Comments_For_Wordpress_vuukle() {
    73     $plugin = new Free_Comments_For_Wordpress_Vuukle( '5.0.8', plugin_dir_path( __FILE__ ), plugin_dir_url( __FILE__ ), plugin_basename( __FILE__ ) );
     73    $plugin = new Free_Comments_For_Wordpress_Vuukle( '5.0.9', plugin_dir_path( __FILE__ ), plugin_dir_url( __FILE__ ), plugin_basename( __FILE__ ) );
    7474    $plugin->run();
    7575}
  • free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle.php

    r2603146 r2691393  
    239239        $this->loader->add_action( 'wp_head', $plugin_public, 'addDns' );
    240240        // Comments related filters
    241         $this->loader->add_filter( 'comments_open', $plugin_public, 'comments_open', 20, 2 );
    242         $this->loader->add_filter( 'pings_open', $plugin_public, 'pings_open', 20, 2 );
     241        $this->loader->add_filter( 'comments_open', $plugin_public, 'commentsOpen', 20, 2 );
     242        // This won't disable the section. For example the navigation will still present here
     243//      $this->loader->add_filter( 'wp_list_comments_args', $plugin_public, 'listCommentsArgs', 20 );
     244        $this->loader->add_action( 'wp_head', $plugin_public, 'hideComments' );
     245        $this->loader->add_filter( 'pings_open', $plugin_public, 'pingsOpen', 20, 2 );
    243246        $this->loader->add_filter( 'the_content', $plugin_public, 'commentBox', 300 );
    244247        // Create platform
  • free-comments-for-wordpress-vuukle/trunk/public/class-free-comments-for-wordpress-vuukle-public.php

    r2623385 r2691393  
    149149     * @return false
    150150     */
    151     public function comments_open( $open ) {
     151    public function commentsOpen( $open ) {
    152152        if ( $this->settings['enabled_comments'] == 'true') {
    153153            return false;
     
    158158
    159159    /**
     160     * Disable comments list ( this won't disable the section. For example the navigation will still present here )
     161     *
     162     * @param array $parsed_args
     163     *
     164     * @return array
     165     */
     166    public function listCommentsArgs( $parsed_args ) {
     167        if ( $this->settings['enabled_comments'] == 'true') {
     168            $parsed_args['echo'] = false;
     169        }
     170
     171        return $parsed_args;
     172    }
     173
     174    /**
    160175     * @param $open
    161176     *
    162177     * @return false
    163178     */
    164     public function pings_open( $open ) {
     179    public function pingsOpen( $open ) {
    165180        if ( $this->settings['enabled_comments'] == 'true' ) {
    166181            return false;
     
    168183
    169184        return $open;
     185    }
     186
     187    /**
     188     * Hide comments section
     189     */
     190    public function hideComments() {
     191        if ( $this->settings['enabled_comments'] == 'true') {
     192            ?>
     193            <style>
     194                #comments {
     195                    display: none !important;
     196                }
     197            </style>
     198            <?php
     199        }
    170200    }
    171201
  • free-comments-for-wordpress-vuukle/trunk/public/partials/free-comments-for-wordpress-vuukle-public-comment-box.php

    r2627343 r2691393  
    1515    ?>
    1616    <div id="sharing"></div>
    17     <div id="respond"></div>
     17    <div id="respond" style="background: transparent;padding:0;margin:0"></div>
    1818    <div id="vuukle-comments" class="commentBoxDiv"></div>
    1919    <?php
Note: See TracChangeset for help on using the changeset viewer.