| 1 |
<?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?> |
| 2 |
<td class="logo"> |
| 3 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=groups&id=<?php echo $module->id ?>"> |
| 4 |
<?php if( $module->type == 'apache' ) : ?> |
| 5 |
<img src="<?php echo $this->url() ?>/images/modules/apache.png" width="55" height="56" alt="Apache"/> |
| 6 |
<?php elseif( $module->type == 'wp' ) : ?> |
| 7 |
<img src="<?php echo $this->url() ?>/images/modules/wordpress.png" width="64" height="64" alt="Wordpress"/> |
| 8 |
<?php elseif( $module->type == '404' ) : ?> |
| 9 |
<img src="<?php echo $this->url() ?>/images/modules/404.png" width="64" height="64" alt="Wordpress"/> |
| 10 |
<?php endif; ?> |
| 11 |
</a> |
| 12 |
</td> |
| 13 |
|
| 14 |
<td valign="top"> |
| 15 |
<h4> |
| 16 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=groups&id=<?php echo $module->id ?>"><?php echo esc_html( $module->name ); ?></a> |
| 17 |
</h4> |
| 18 |
|
| 19 |
<?php $module->options(); ?> |
| 20 |
|
| 21 |
<?php if ( $module->is_valid() ) : ?> |
| 22 |
<div class="toolbar"> |
| 23 |
<strong><?php _e( 'View as', 'redirection' ); ?>:</strong> |
| 24 |
|
| 25 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=csv&module=<?php echo $module->id ?>&token=<?php echo $token ?>"><?php _e( 'CSV', 'redirection' ); ?></a> |
| 26 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=xml&module=<?php echo $module->id ?>&token=<?php echo $token ?>"><?php _e( 'XML', 'redirection' ); ?></a> |
| 27 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=apache&module=<?php echo $module->id ?>&token=<?php echo $token ?>"><?php _e( 'Apache', 'redirection' ); ?></a> |
| 28 |
<a href="<?php echo $this->base(); ?>?page=redirection.php&sub=rss&module=<?php echo $module->id ?>&token=<?php echo $token ?>"><?php _e( 'RSS', 'redirection' ); ?></a> |
| 29 |
</div> |
| 30 |
<?php endif; ?> |
| 31 |
</td> |
| 32 |
|
| 33 |
<td class="center"><a href="<?php echo $this->base(); ?>?page=redirection.php&sub=groups&id=<?php echo $module->id ?>"><?php echo $module->groups(); ?></a></td> |
| 34 |
<td class="center"><?php echo $module->redirects(); ?></td> |
| 35 |
<td class="center"><a href="<?php echo $this->base(); ?>?page=redirection.php&sub=log&module=<?php echo $module->id ?>"><?php echo number_format_i18n( $module->hits() ); ?></a></td> |
| 36 |
|
| 37 |
<?php $nonce = wp_create_nonce( 'redirection-module_manage-'.$module->id ); ?> |
| 38 |
|
| 39 |
<td id="info_<?php echo $module->id ?>" class="operations"> |
| 40 |
<div> |
| 41 |
<a class="edit" href="<?php echo admin_url( 'admin-ajax.php' ); ?>?action=red_module_edit&id=<?php echo $module->id; ?>&_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id ); ?>"><?php _e( 'edit', 'redirection' ); ?></a> |
| 42 |
| |
| 43 |
<a class="rdelete" href="<?php echo admin_url( 'admin-ajax.php' ); ?>?action=red_module_delete&id=<?php echo $module->id; ?>&_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id ); ?>"><?php _e( 'delete', 'redirection' ); ?></a> |
| 44 |
| |
| 45 |
<a class="reset" href="<?php echo admin_url( 'admin-ajax.php' ); ?>?action=red_module_reset&id=<?php echo $module->id; ?>&_ajax_nonce=<?php echo wp_create_nonce( 'redirection-module_'.$module->id ); ?>"><?php _e( 'reset', 'redirection' ); ?></a> |
| 46 |
</div> |
| 47 |
|
| 48 |
<img class="loader" src="<?php echo $this->url(); ?>/images/progress.gif" alt="loading" width="50" height="16" style="display: none"/> |
| 49 |
</td> |
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|