Commit 4f5ea278 by nadeem.qasmi

download all, https pdf file

parent 17c9b9df
Pipeline #517 passed with stage
in 0 seconds
...@@ -46,10 +46,14 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] ) ...@@ -46,10 +46,14 @@ if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] )
$courseName[] = '<a href = "'.$link.'">'.$cat->name.'</a>'; $courseName[] = '<a href = "'.$link.'">'.$cat->name.'</a>';
} }
} }
if ($catx == 'all') {
$postContent .= '<br><strong>All Courses List: '. $listUrl .' </strong>';
}
} }
$postContent .= '<strong>Download Courses: [' . implode( ', ', $courseName ) . '] </strong>';
$postContent .= '<br><strong>Courses List File: '. $listUrl .' </strong>'; $postContent .= '<strong>Download Courses: [' . implode( ', ', $courseName ) . '] </strong>';
$newDownloadRequest = array( $newDownloadRequest = array(
'post_title' => $fname . ' ' . $lname, 'post_title' => $fname . ' ' . $lname,
...@@ -436,7 +440,11 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1; ...@@ -436,7 +440,11 @@ $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
echo ' selected'; echo ' selected';
} ?>><?php echo $term->name; ?></option> } ?>><?php echo $term->name; ?></option>
<?php <?php
} } } } ?>
<option value="all">Download All Courses</option>
<?php
$page = get_page_by_path( 'download-all' ); $page = get_page_by_path( 'download-all' );
?> ?>
</select> </select>
......
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