| Server IP : 10.19.1.101 / Your IP : 216.73.216.158 Web Server : Apache System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64 User : schererimoveisrs ( 170628) PHP Version : 7.4.33 Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/schererimoveisrs/www/wp-content/plugins/akismet/views/ |
Upload File : |
<?php
/** @var array|WP_Error $compatible_plugins */
$bypass_cache = ! empty( $_GET['akismet_refresh_compatible_plugins'] );
$compatible_plugins = Akismet_Compatible_Plugins::get_installed_compatible_plugins( $bypass_cache );
if ( is_array( $compatible_plugins ) ) :
$compatible_plugin_count = count( $compatible_plugins );
?>
<div class="akismet-card akismet-compatible-plugins">
<div class="akismet-section-header">
<h2 class="akismet-section-header__label akismet-compatible-plugins__section-header-label">
<?php esc_html_e( 'Compatible plugins', 'akismet' ); ?>
</h2>
</div>
<div class="akismet-compatible-plugins__content">
<?php
echo '<p>';
echo esc_html( __( 'Akismet works with other plugins to keep spam away.', 'akismet' ) );
echo '</p>';
echo '<p>';
if ( 0 === $compatible_plugin_count ) {
echo '<a class="akismet-external-link" href="https://akismet.com/developers/plugins-and-libraries/?utm_source=akismet_plugin&utm_campaign=plugin_static_link&utm_medium=in_plugin&utm_content=compatible_plugins">';
echo esc_html( __( 'See supported integrations', 'akismet' ) );
echo '</a>';
} else {
echo esc_html(
_n(
"This plugin you've installed is compatible. Follow the documentation link to get started.",
"These plugins you've installed are compatible. Follow the documentation links to get started.",
$compatible_plugin_count,
'akismet'
)
);
}
echo '</p>';
?>
<?php if ( ! empty( $compatible_plugins ) ) : ?>
<ul class="akismet-compatible-plugins__list" id="akismet-compatible-plugins__list">
<?php
foreach ( $compatible_plugins as $compatible_plugin ) :
if ( empty( $compatible_plugin['help_url'] ) ) {
continue;
}
?>
<li class="akismet-compatible-plugins__card">
<?php if ( strlen( $compatible_plugin['logo'] ) > 0 ) : ?>
<?php
$logo_alt = sprintf(
/* translators: The placeholder is the name of a plugin, like "Jetpack" . */
__( '%s logo', 'akismet' ),
$compatible_plugin['name']
);
?>
<img
src="<?php echo esc_url( $compatible_plugin['logo'] ); ?>"
alt="<?php echo esc_attr( $logo_alt ); ?>"
class="akismet-compatible-plugins__card-logo"
width="36"
height="36"
/>
<?php endif ?>
<div class="akismet-compatible-plugins__card-detail">
<h3 class="akismet-compatible-plugins__card-title"><?php echo esc_html( $compatible_plugin['name'] ); ?></h3>
<div class="akismet-compatible-plugins__docs">
<a
class="akismet-external-link"
href="<?php echo esc_url( $compatible_plugin['help_url'] ); ?>"
aria-label="
<?php
echo esc_attr(
sprintf(
/* translators: The placeholder is the name of a plugin, like "Jetpack" . */
__( 'Documentation for %s', 'akismet' ),
$compatible_plugin['name']
)
);
?>
"><?php esc_html_e( 'View documentation', 'akismet' ); ?></a>
</div>
</div>
</li>
<?php endforeach; ?>
</ul>
<?php if ( $compatible_plugin_count > Akismet_Compatible_Plugins::DEFAULT_VISIBLE_PLUGIN_COUNT ) : ?>
<button class="akismet-compatible-plugins__show-more"
aria-expanded="false"
aria-controls="akismet-compatible-plugins__list"
data-label-closed="
<?php
/* translators: %d: number of compatible plugins, which is guaranteed to be more than 1. */
echo esc_attr( sprintf( __( 'Show all %d plugins', 'akismet' ), $compatible_plugin_count ) );
?>
"
data-label-open="<?php echo esc_attr( __( 'Show less', 'akismet' ) ); ?>">
<?php
/* translators: %d: number of compatible plugins, which is guaranteed to be more than 1. */
echo esc_html( sprintf( __( 'Show all %d plugins', 'akismet' ), $compatible_plugin_count ) );
?>
</button>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php
endif;