59 lines
3.0 KiB
PHP
59 lines
3.0 KiB
PHP
<?php
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
function upstudy_import_files()
|
|
{
|
|
|
|
$specific_path = 'up-57731263/';
|
|
$ocdi_repo = upstudy_ocdi_plugin_repo();
|
|
$ocdi_dif_main = '/dtf/main/';
|
|
$repo_path = $ocdi_repo . $ocdi_dif_main;
|
|
$author_site_link = 'https://thepixelcurve.com/wp/upstudy/';
|
|
$main_url = 'https://raw.githubusercontent.com/';
|
|
|
|
$get_demos = array();
|
|
|
|
$get_demos[] = array(
|
|
'import_file_name' => 'Tutor LMS',
|
|
'categories' => array('Tutor'),
|
|
'import_file_url' => $main_url . $repo_path . $specific_path . 'content.xml',
|
|
'import_widget_file_url' => $main_url . $repo_path . $specific_path . 'widget_data.wie',
|
|
'import_customizer_file_url' => $main_url . $repo_path . $specific_path . 'customizer.dat',
|
|
'import_preview_image_url' => UPSTUDY_URI . 'admin/demo/images/license.jpg',
|
|
'preview_url' => $author_site_link . 'tut',
|
|
);
|
|
|
|
$get_demos[] = array(
|
|
'import_file_name' => 'LearnPress LMS',
|
|
'categories' => array('LearnPress'),
|
|
'import_file_url' => $main_url . $repo_path . $specific_path . 'lp/content.xml',
|
|
'import_widget_file_url' => $main_url . $repo_path . $specific_path . 'lp/widget_data.wie',
|
|
'import_customizer_file_url' => $main_url . $repo_path . $specific_path . 'lp/customizer.dat',
|
|
'import_preview_image_url' => UPSTUDY_URI . 'admin/demo/images/license.jpg',
|
|
'preview_url' => $author_site_link . 'lp',
|
|
);
|
|
|
|
$get_demos[] = array(
|
|
'import_file_name' => 'LearnDash LMS',
|
|
'categories' => array('LearnDash'),
|
|
'import_file_url' => $main_url . $repo_path . $specific_path . 'ld/content.xml',
|
|
'import_widget_file_url' => $main_url . $repo_path . $specific_path . 'ld/widget_data.wie',
|
|
'import_customizer_file_url' => $main_url . $repo_path . $specific_path . 'ld/customizer.dat',
|
|
'import_preview_image_url' => UPSTUDY_URI . 'admin/demo/images/license.jpg',
|
|
'preview_url' => $author_site_link . 'ld',
|
|
);
|
|
|
|
$get_demos[] = array(
|
|
'import_file_name' => 'RTL Language',
|
|
'categories' => array('RTL'),
|
|
'import_file_url' => $main_url . $repo_path . $specific_path . 'rtl/content.xml',
|
|
'import_widget_file_url' => $main_url . $repo_path . $specific_path . 'rtl/widget_data.wie',
|
|
'import_customizer_file_url' => $main_url . $repo_path . $specific_path . 'rtl/customizer.dat',
|
|
'import_preview_image_url' => UPSTUDY_URI . 'admin/demo/images/license.jpg',
|
|
'preview_url' => $author_site_link . 'rtl',
|
|
);
|
|
|
|
|
|
return apply_filters( 'upstudy_ocdi_demo_files_args', $get_demos );
|
|
}
|