<?php if(! defined('ABSPATH')){ return; }
/*
 Name: Page content
 Description: Create and display the current page content
 Class: TH_PageContent
 Category: content
 Level: 3
*/

/**
 * Class TH_PageContent
 *
 * Create and display the current page content
 *
 * @package  Kallyas
 * @category Page Builder
 * @author   Team Hogash
 * @since    4.0.0
 */
class TH_PageContent extends ZnElements
{
    public static function getName(){
        return __( "Page content", 'zn_framework' );
    }

    /**
     * This method is used to display the output of the element.
     * @return void
     */
    function element()
    {

        echo '<div class="zn_page_content_elemenent '.$this->data['uid'].'">';
            get_template_part( 'inc/page', 'content-view-page.inc' );
        echo '</div>';
    }

    /**
     * This method is used to display the output of the element.
     * @return void
     */
    function element_edit()
    {
        echo '<div class="zn-pb-notification">This element will be rendered only in View Page Mode and not in PageBuilder Edit Mode.</div>';
    }

    /**
     * This method is used to retrieve the configurable options of the element.
     * @return array The list of options that compose the element and then passed as the argument for the render() function
     */
    function options()
    {
    }
}
