Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apex_micro_site
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
apex_micro_site
Commits
9095b064
Commit
9095b064
authored
Jan 19, 2018
by
Ali Arshad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integrated index page of lms
parent
198e0ccf
Pipeline
#179
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
functions.php
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
+2
-1
template.php
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
+5
-3
No files found.
WWW_DATA/wp-content/plugins/apex_global_lms/functions.php
View file @
9095b064
...
...
@@ -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
WWW_DATA/wp-content/plugins/apex_global_lms/template.php
View file @
9095b064
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment