REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.42 KB
Close
/home/certprox/test.certproxywizard.com/wp-content/plugins/elementskit-lite/widgets/post-list/post-list-handler.php
Text
Base64
<?php namespace Elementor; class ElementsKit_Widget_Post_List_Handler extends \ElementsKit_Lite\Core\Handler_Widget{ public function wp_init(){ // post view count based on single page visit add_action( 'wp_head', array($this, 'ekit_track_post_views')); } public function ekit_track_post_views ($post_id) { if ( !is_single() ) return; if ( empty ( $post_id) ) { global $post; $post_id = $post->ID; } $this->ekit_set_post_views($post_id); } public function ekit_set_post_views($postID) { $count_key = 'ekit_post_views_count'; $count = get_post_meta($postID, $count_key, true); if($count==''){ $count = 1; delete_post_meta($postID, $count_key); add_post_meta($postID, $count_key, '1'); }else{ $count++; update_post_meta($postID, $count_key, $count); } } static function get_name() { return 'elementskit-post-list'; } static function get_title() { return esc_html__( 'Post List', 'elementskit-lite' ); } static function get_icon() { return 'ekit ekit-widget-icon ekit-post-list'; } static function get_keywords() { return ['ekit', 'list', 'post list', 'post', 'elementskit post list']; } static function get_categories() { return [ 'elementskit' ]; } static function get_dir() { return \ElementsKit_Lite::widget_dir() . 'post-list/'; } static function get_url() { return \ElementsKit_Lite::widget_url() . 'post-list/'; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 2
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
post-list-handler.php
1.42 KB
lrw-r--r--
2026-03-10 10:31:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
post-list.php
43.54 KB
lrw-r--r--
2026-03-10 10:31:07
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).