18 lines
539 B
PHP
18 lines
539 B
PHP
<?php
|
|
|
|
defined('ABSPATH') || exit();
|
|
|
|
use \Upstudy\Filter;
|
|
|
|
// Ensure $args is an array if not already set
|
|
$args = isset($args) ? $args : array();
|
|
|
|
// Get the default options from the Upstudy_LD_LMS_Controls method
|
|
$default_data = Filter::Upstudy_LD_LMS_Controls();
|
|
|
|
// Merge the provided options with the default options
|
|
$args = wp_parse_args($args, $default_data);
|
|
|
|
// Get the template part with the specified style from the options
|
|
get_template_part('learndash/tpl-part/course/el-layout-' . $args['style'], '', $args);
|