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

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

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

class Softech_Page_Title extends Tag{
    
    public function get_name(){
        return 'softech-page-title';
    }
    
    public function get_title(){
        return esc_html__('Page Title' , 'softech-addons-for-elementor');
    }
    
    public function get_group(){
        return Softech_Site_Group::get_name();
    }
    
    public function get_categories(){
        return [ Module::TEXT_CATEGORY ];
    }
    
    public function render(){
      echo wp_kses_post( the_title() );
        // echo wp_kses_post( get_the_title() );
    }
    
}


?>