* * @version 1.0.0 * @package HFG */ namespace HFG\Core\Builder; use HFG\Core\Settings; use HFG\Main; /** * Class Footer * * @package HFG\Core\Builder */ class Footer extends Abstract_Builder { /** * Builder name. */ const BUILDER_NAME = 'footer'; /** * Footer constructor. * * @since 1.0.0 * @access public */ public function init() { $this->set_property( 'title', __( 'Footer', 'neve' ) ); $this->devices = [ 'desktop' => __( 'Footer', 'neve' ), ]; } /** * Method called via hook. * * @since 1.0.0 * @access public */ public function load_template() { Main::get_instance()->load( 'footer-wrapper' ); } /** * Render builder row. * * @param string $device_id The device id. * @param string $row_id The row id. * @param array $row_details Row data. */ public function render_row( $device_id, $row_id, $row_details ) { Main::get_instance()->load( 'footer-row-wrapper' ); } /** * Get builder id. * * @return string Builder id. */ public function get_id() { return self::BUILDER_NAME; } /** * Overrides parent method to limit rows. * * @return array * @since 1.0.0 * @access protected */ protected function get_rows() { return [ 'top' => __( 'Footer Top', 'neve' ), 'bottom' => __( 'Footer Bottom', 'neve' ), ]; } }