LLMS_Elementor_Migrate::get_elementor_data_template()

Retrieve the elementor data template.


Return Return

(array)


Top ↑

Source Source

File: includes/class-llms-elementor-migrate.php

	public function get_elementor_data_template() {
		$content = array();

		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(
						'content_width' => 'full',
						'html'          => '<h2>' . esc_attr__( 'Course Information', 'lifterlms' ) . '</h2>',
					),
					'elements'   => array(),
					'widgetType' => 'html',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_course_meta_information_widget',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_course_instructors_widget',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_pricing_table_widget',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_course_progress_widget',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_course_continue_button_widget',
				),
			),
			'isInner'  => false,
		);
		$content[] = array(
			'id'       => uniqid(),
			'elType'   => 'container',
			'settings' => array(),
			'elements' => array(
				array(
					'id'         => uniqid(),
					'elType'     => 'widget',
					'settings'   => array(),
					'elements'   => array(),
					'widgetType' => 'llms_course_syllabus_widget',
				),
			),
			'isInner'  => false,
		);

		return $content;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
7.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.