Created
September 14, 2016 20:44
-
-
Save barrykooij/49cee5ce7fbb002c52a8c96a591a25aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?php | |
global $wp_query, $dlm_download, $dlm_page_addon; | |
echo apply_filters( 'dlm_widget_downloads_list_start', '<ul class="dlm-downloads">' ); | |
if ( count( $downloads ) ) { | |
foreach ( $downloads as $download ) { | |
$dlm_download = new DLM_Download( $download->ID ); | |
echo apply_filters( 'dlm_widget_downloads_list_item_start', '<li>' ); | |
$template_handler = new DLM_Template_Handler(); | |
$template_handler->get_template_part( 'content-download', $format, $dlm_page_addon->plugin_path() . 'templates/' ); | |
echo apply_filters( 'dlm_widget_downloads_list_item_end', '</li>' ); | |
} | |
} | |
echo apply_filters( 'dlm_widget_downloads_list_end', '</ul>' ); | |
0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment