File manager - Edit - /home/theblueo/questionnaire/wp-content/plugins/learndash-propanel/templates/ld-propanel-activity-pagination.php
Back
<?php /** * Activity Pagination * global vars - * $post_args array This is the filtered version of the _$GET vars passed in from AJAX * $activity_query_args array Another array build from the $post_args. Used to call the LD reporting functions to query activty. * $activities array query results. Contains elements 'results', 'pager, etc. */ if ( $activities['pager']['total_items'] > 0 ) { if ( $activities['pager']['current_page'] == 1 ) $pager_left_disabled = ' disabled="disabled" '; else $pager_left_disabled = ''; if ( $activities['pager']['current_page'] == $activities['pager']['total_pages'] ) $pager_right_disabled = ' disabled="disabled" '; else $pager_right_disabled = ''; ?> <p class="ld-propanel-reporting-pager-info"> <button class="button button-simple first" data-page="1" title="<?php esc_attr_e( 'First Page', 'ld_propanel' ); ?>" <?php echo $pager_left_disabled; ?> >«</button> <button class="button button-simple prev" data-page="<?php echo ( $activities['pager']['current_page'] > 1 ) ? $activities['pager']['current_page'] - 1 : 1; ?>" title="<?php esc_attr_e( 'Previous Page', 'ld_propanel' ); ?>" <?php echo $pager_left_disabled; ?> >‹</button> <span><?php _e('page', 'ld_propanel') ?> <span class="pagedisplay"><span class="current_page"><?php echo $activities['pager']['current_page'] ?></span> / <span class="total_pages"><?php echo $activities['pager']['total_pages'] ?></span> (<span class="total_items"><?php echo $activities['pager']['total_items']; ?></span>)</span></span> <button class="button button-simple next" data-page="<?php echo ( $activities['pager']['current_page'] < $activities['pager']['total_pages']) ? $activities['pager']['current_page'] + 1 : $activities['pager']['total_pages']; ?>" title="<?php esc_attr_e( 'Next Page', 'ld_propanel' ); ?>" <?php echo $pager_right_disabled; ?> >›</button> <button class="button button-simple last" data-page="<?php echo $activities['pager']['total_pages'] ?>" title="<?php esc_attr_e( 'Last Page', 'ld_propanel' ); ?>" <?php echo $pager_right_disabled; ?> >»</button> </p> <?php }
| ver. 1.4 |
Github
|
.
| PHP 7.0.33 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings