Commit 9095b064 by Ali Arshad

integrated index page of lms

parent 198e0ccf
Pipeline #179 passed with stage
in 0 seconds
......@@ -100,6 +100,6 @@ function vq_render_short_banner_shortcode_metabox() {
}
function vq_add_lms_navigation($items, $args) {
$items .= '<li id="menu-item-786" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-786"><a href="">E-Learning</a></li>';
$items .= '<li id="menu-item-786" class="menu-item menu-item-type-post_type menu-item-object-page menu-item-786"><a href="'.site_url('lms').'">E-Learning</a></li>';
return $items;
}
\ No newline at end of file
......@@ -6,13 +6,15 @@ add_filter('template_include', 'use_lms_template', 99);
function enqueue_admin_css()
{
global $lmsVersion;
wp_enqueue_style("lms-bootstrap", plugin_dir_url(__FILE__) . "template/css/bootstrap.min.css", array(),
$lmsVersion, 'all');
wp_enqueue_style("lms-bootstrap", plugin_dir_url(__FILE__) . "template/css/bootstrap.min.css", array(), $lmsVersion, 'all');
wp_enqueue_style("lms-styles", plugin_dir_url(__FILE__) . "template/css/lms.css", array(), $lmsVersion, 'all');
}
function use_lms_template($data)
{
// return __DIR__ . "/template/learner-detail.php";
if(is_page('lms')){
return __DIR__ . "/template/e-learning.php";
}
return $data;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment