| 1 |
<?php |
| 2 |
/** |
| 3 |
* Old logs template |
| 4 |
* |
| 5 |
* Template file for backward compatibility for GamiPress installs without upgrade 1.2.8 |
| 6 |
* |
| 7 |
* This template can be overridden by copying it to yourtheme/gamipress/logs-old.php |
| 8 |
*/ |
| 9 |
global $gamipress_template_args; |
| 10 |
|
| 11 |
// Shorthand |
| 12 |
$a = $gamipress_template_args; |
| 13 |
|
| 14 |
?> |
| 15 |
|
| 16 |
<div class="gamipress-logs"> |
| 17 |
|
| 18 |
<?php |
| 19 |
/** |
| 20 |
* Before render logs list |
| 21 |
* |
| 22 |
* @param $template_args array Template received arguments |
| 23 |
*/ |
| 24 |
do_action( 'gamipress_before_render_logs_list', $a ); ?> |
| 25 |
|
| 26 |
<?php while( $a['query']->have_posts() ) : |
| 27 |
$a['query']->the_post(); ?> |
| 28 |
|
| 29 |
<?php |
| 30 |
/** |
| 31 |
* Before render log |
| 32 |
* |
| 33 |
* @param $log_id integer The Log ID |
| 34 |
* @param $template_args array Template received arguments |
| 35 |
*/ |
| 36 |
do_action( 'gamipress_before_render_log', get_the_ID(), $a ); ?> |
| 37 |
|
| 38 |
<div id="gamipress-log-<?php the_ID(); ?>" class="gamipress-log"><?php the_title(); ?></div> |
| 39 |
|
| 40 |
<?php |
| 41 |
/** |
| 42 |
* After render log |
| 43 |
* |
| 44 |
* @param $log_id integer The Log ID |
| 45 |
* @param $template_args array Template received arguments |
| 46 |
*/ |
| 47 |
do_action( 'gamipress_after_render_log', get_the_ID(), $a ); ?> |
| 48 |
|
| 49 |
<?php endwhile; |
| 50 |
wp_reset_postdata();?> |
| 51 |
|
| 52 |
<?php |
| 53 |
/** |
| 54 |
* After render logs list |
| 55 |
* |
| 56 |
* @param $template_args array Template received arguments |
| 57 |
*/ |
| 58 |
do_action( 'gamipress_after_render_logs_list', $a ); ?> |
| 59 |
|
| 60 |
</div> |
| 61 |
|