<?php
namespace Softech_Addons_for_Elementor\Includes\Dynamic_Tags\Tags\Post_Tags;

use Elementor\Core\DynamicTags\Tag;
use Elementor\Modules\DynamicTags\Module;
use Softech_Addons_for_Elementor\Includes\Dynamic_Tags\Groups\Softech_Post_Group;

if ( ! defined( 'ABSPATH' ) ) exit;

class Softech_Post_Id extends Tag {
    
    public function get_name() {
        return 'softech-post-id';
    }
    
    public function get_title() {
        return esc_html__( 'Post ID', 'softech-addons-for-elementor' );
    }
    
    public function get_group() {
        return Softech_Post_Group::get_name();
    }
    
    public function get_categories() {
        return [ Module::TEXT_CATEGORY, Module::NUMBER_CATEGORY ];
    }
    
    public function render() {
        echo esc_html( get_the_ID() );
    }
}