Current Path : /storage/v11800/affypharma/public_html/wp-content/plugins/wp-tag-groups/views/admin/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/affypharma/public_html/wp-content/plugins/wp-tag-groups/views/admin/settings_troubleshooting_system.view.php |
<div class="tg_settings_tabs_content">
<div class="tg_admin_accordion" >
<h3><?php _e( 'Server', 'tag-groups' ) ?></h3>
<table class="widefat fixed">
<tr><td>PHP Version</td><td><?php echo $phpversion ?>
<?php if ( $php_upgrade_recommendation ) : ?>
<?php printf( ' <a href="%s" target="_blank">%s</a>', 'https://wordpress.org/support/upgrade-php/', '<span class="dashicons dashicons-warning"></span>' ) ?>
<?php endif; ?>
</td></tr>
<tr><td>PHP Memory Limit</td><td><?php echo ini_get('memory_limit') ?></td></tr>
<tr><td>PHP Max Execution Time</td><td><?php echo ini_get('max_execution_time') ?> secs</td></tr>
<tr><td>PHP Post Max Size</td><td><?php echo ini_get('post_max_size') ?></td></tr>
</table>
</div>
<div class="tg_admin_accordion" >
<h3>WordPress</h3>
<table class="widefat fixed">
<tr><td>WordPress Version</td><td><?php echo get_bloginfo('version') ?></td></tr>
<tr><td>Site URL</td><td><?php echo site_url() ?></td></tr>
<tr><td>Home URL</td><td><?php echo home_url() ?></td></tr>
<tr><td>Active Theme</td><td><?php echo $active_theme->get( 'Name' ) ?> (Version <?php echo $active_theme->get( 'Version' ) ?>)</td></tr>
<tr><td>Ajax Test</td><td>
<span id="ajax_test_field"><?php _e( 'Checking...', 'tag-groups' ) ?></span>
<input type="button" id="chatty-mango-help-button-ajax" class="button button-primary chatty-mango-help-icon" style="display: none; float: right;" value="<?php _e( 'Show the Response', 'tag-groups' ) ?>" data-topic="ajax">
<div id="ajax_error_field" class="chatty-mango-help-container chatty-mango-help-container-ajax" style="display: none;"></div>
</td></tr>
<?php if ( defined( 'ICL_SITEPRESS_VERSION' ) ) : ?>
<tr><td>WPML Version</td><td><?php echo ICL_SITEPRESS_VERSION ?></td></tr>
<?php endif; ?>
<?php if ( function_exists( 'pll_the_languages' ) ) : ?>
<!-- TODO: Can we get the version? -->
<tr><td>Polylang detected</td><td></td></tr>
<?php endif; ?>
</table>
</div>
<script>
jQuery(document).ready(function(){
jQuery.ajax({
url: "<?php echo $ajax_test_url ?>",
data: {
action: "tg_ajax_manage_groups",
task: "test"
},
method: "post",
})
.done(function(){
jQuery("#ajax_test_field").html("<span class=\"dashicons dashicons-yes\" style=\"color:green;\" title=\"<?php _e( 'passed', 'tag-groups' ) ?>\"></span>");
})
.fail(function(response){
jQuery("#ajax_error_field").text(response.responseText);
jQuery("#chatty-mango-help-button-ajax").show();
let learnHowToFixLink = " <a href=\"https://documentation.chattymango.com/documentation/tag-groups-premium/maintenance-and-troubleshooting/debugging-a-wordpress-ajax-error/?pk_campaign=tg&pk_kwd=ajax-failure\" target=\”_blank\">Learn more</a>";
jQuery("#ajax_test_field").html("<span class=\"dashicons dashicons-no\" style=\"color:red;\" title=\"<?php _e( 'failed', 'tag-groups' ) ?>\"></span> " + learnHowToFixLink);
});
});
</script>
<div class="tg_admin_accordion" >
<h3><?php _e( 'Constants', 'tag-groups' ) ?></h3>
<table class="widefat fixed">
<?php foreach ( $wp_constants as $wp_constant ) : ?>
<?php if ( isset( $constants[ $wp_constant ] ) ) : ?>
<tr><td><?php echo $wp_constant ?></td><td><?php echo $constants[ $wp_constant ] ?></td></tr>
<?php else: ?>
<tr><td><?php echo $wp_constant ?></td><td>not set</td></tr>
<?php endif; ?>
<?php endforeach; ?>
<?php foreach ( $constants as $key => $value ) : ?>
<?php if ( preg_match( "/^TAG_GROUPS_/", $key ) == 1 ) : ?>
<tr><td><?php echo $key ?></td><td><?php echo $value ?></td></tr>
<?php endif; ?>
<?php endforeach; ?>
</table>
</div>
</div>