Changeset 2691393
- Timestamp:
- 03/09/2022 11:25:57 AM (4 years ago)
- Location:
- free-comments-for-wordpress-vuukle/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
free-comments-for-wordpress-vuukle.php (modified) (2 diffs)
-
includes/class-free-comments-for-wordpress-vuukle.php (modified) (1 diff)
-
public/class-free-comments-for-wordpress-vuukle-public.php (modified) (3 diffs)
-
public/partials/free-comments-for-wordpress-vuukle-public-comment-box.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
free-comments-for-wordpress-vuukle/trunk/README.txt
r2627343 r2691393 4 4 Requires at least: 2.0.2 5 5 Tested up to: 5.8 6 Stable tag: 5.0. 86 Stable tag: 5.0.9 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 172 172 == Changelog == 173 173 174 = 5.0.9 = 175 176 * Added native comments section hide logic 177 174 178 = 5.0.8 = 175 179 -
free-comments-for-wordpress-vuukle/trunk/free-comments-for-wordpress-vuukle.php
r2627343 r2691393 19 19 * Plugin URI: https://vuukle.com 20 20 * 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. 821 * Version: 5.0.9 22 22 * Author: Vuukle 23 23 * Author URI: https://vuukle.com … … 71 71 */ 72 72 function 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__ ) ); 74 74 $plugin->run(); 75 75 } -
free-comments-for-wordpress-vuukle/trunk/includes/class-free-comments-for-wordpress-vuukle.php
r2603146 r2691393 239 239 $this->loader->add_action( 'wp_head', $plugin_public, 'addDns' ); 240 240 // 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 ); 243 246 $this->loader->add_filter( 'the_content', $plugin_public, 'commentBox', 300 ); 244 247 // Create platform -
free-comments-for-wordpress-vuukle/trunk/public/class-free-comments-for-wordpress-vuukle-public.php
r2623385 r2691393 149 149 * @return false 150 150 */ 151 public function comments _open( $open ) {151 public function commentsOpen( $open ) { 152 152 if ( $this->settings['enabled_comments'] == 'true') { 153 153 return false; … … 158 158 159 159 /** 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 /** 160 175 * @param $open 161 176 * 162 177 * @return false 163 178 */ 164 public function pings _open( $open ) {179 public function pingsOpen( $open ) { 165 180 if ( $this->settings['enabled_comments'] == 'true' ) { 166 181 return false; … … 168 183 169 184 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 } 170 200 } 171 201 -
free-comments-for-wordpress-vuukle/trunk/public/partials/free-comments-for-wordpress-vuukle-public-comment-box.php
r2627343 r2691393 15 15 ?> 16 16 <div id="sharing"></div> 17 <div id="respond" ></div>17 <div id="respond" style="background: transparent;padding:0;margin:0"></div> 18 18 <div id="vuukle-comments" class="commentBoxDiv"></div> 19 19 <?php
Note: See TracChangeset
for help on using the changeset viewer.