-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #504 from MultinetInteractive/master
v4.0.0
- Loading branch information
Showing
11 changed files
with
110 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
081e6567affebd04ee2bd149100373bf | ||
f225964c4ebc0fdc2db8e51049e166ae |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,48 @@ | ||
<?php | ||
ob_start(); | ||
$show_headers = EDU()->is_checked( 'eduadmin-showDetailHeaders', true ); | ||
?> | ||
<div class="eduadmin" data-courseid="<?php echo esc_attr( $programme['ProgrammeId'] ); ?>" | ||
data-eventid="<?php echo( isset( $_REQUEST['id'] ) ? esc_attr( sanitize_text_field( $_REQUEST['id'] ) ) : '' ); ?>"> | ||
<?php if ( ! empty( $programme['ImageUrl'] ) ) : ?> | ||
<img src="<?php echo esc_url( $programme['ImageUrl'] ); ?>" class="courseImage" /> | ||
<?php endif; ?> | ||
<h1 class="courseTitle"><?php echo esc_html( $programme['ProgrammeName'] ); ?></h1> | ||
<?php if ( ! empty( $programme['Description'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Description', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['Description'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['Prerequisites'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Prerequisites', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['Prerequisites'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['TargetGroup'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Target Group', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['TargetGroup'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['Courses'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Modules', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?> | ||
<ul> | ||
<?php | ||
foreach ( $programme['Courses'] as $module ) { | ||
// TODO: Add link to course template page | ||
echo '<li>' . esc_html( $module['CourseName'] ) . '</li>'; | ||
} | ||
?> | ||
</ul> | ||
<?php | ||
endif; | ||
?> | ||
<h2><?php echo esc_html_x( 'Programme starts', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php | ||
if ( ! empty( $programme['ProgrammeStarts'] ) ) { | ||
include_once 'template/detail-list.php'; | ||
} else { | ||
echo '<i>' . esc_html_x( 'No programme starts available', 'frontend', 'eduadmin-booking' ) . '</i>'; | ||
} | ||
<div class="eduadmin" data-courseid="<?php echo esc_attr( $programme['ProgrammeId'] ); ?>" | ||
data-eventid="<?php echo( isset( $_REQUEST['id'] ) ? esc_attr( sanitize_text_field( $_REQUEST['id'] ) ) : '' ); ?>"> | ||
<?php if ( ! empty( $programme['ImageUrl'] ) ) : ?> | ||
<img src="<?php echo esc_url( $programme['ImageUrl'] ); ?>" class="courseImage" /> | ||
<?php endif; ?> | ||
<h1 class="courseTitle"><?php echo esc_html( $programme['ProgrammeName'] ); ?></h1> | ||
<?php if ( ! empty( $programme['Description'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Description', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['Description'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['Prerequisites'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Prerequisites', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['Prerequisites'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['TargetGroup'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Target Group', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?><?php echo wp_kses_post( $programme['TargetGroup'] ); ?><?php endif; ?> | ||
<?php if ( ! empty( $programme['Courses'] ) ) : ?><?php if ( $show_headers ) { ?> | ||
<h2><?php echo esc_html_x( 'Modules', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php } ?> | ||
<ul> | ||
<?php | ||
foreach ( $programme['Courses'] as $module ) { | ||
// TODO: Add link to course template page | ||
echo '<li>' . esc_html( $module['CourseName'] ) . '</li>'; | ||
} | ||
?> | ||
</ul> | ||
<?php | ||
endif; | ||
?> | ||
<h2><?php echo esc_html_x( 'Programme starts', 'frontend', 'eduadmin-booking' ); ?></h2> | ||
<?php | ||
if ( ! empty( $programme['ProgrammeStarts'] ) ) { | ||
include_once 'template/detail-list.php'; | ||
} else { | ||
echo '<i>' . esc_html_x( 'No programme starts available', 'frontend', 'eduadmin-booking' ) . '</i>'; | ||
} | ||
|
||
do_action( 'eduadmin-programme-detail-view', $programme ); | ||
?> | ||
</div> | ||
do_action( 'eduadmin-programme-detail-view', $programme ); | ||
?> | ||
</div> | ||
<?php | ||
$out = ob_get_clean(); | ||
|
||
return $out; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "eduadmin-wordpress-plugin", | ||
"private": true, | ||
"version": "3.11.1", | ||
"version": "4.0.0", | ||
"repository": "https://github.com/MultinetInteractive/EduAdmin-WordPress.git", | ||
"author": "Chris Gårdenberg <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters