- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
708 B
PHP
Executable File
34 lines
708 B
PHP
Executable File
<?php
|
|
/**
|
|
* File: Extension_Swarmify_Core.php
|
|
*
|
|
* @package W3TC
|
|
*/
|
|
|
|
namespace W3TC;
|
|
|
|
/**
|
|
* Class Extension_Swarmify_Page
|
|
*/
|
|
class Extension_Swarmify_Page {
|
|
/**
|
|
* Renders the content of the Swarmify page.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function render_content() {
|
|
$config = Dispatcher::config();
|
|
|
|
$api_key = $config->get_string( array( 'swarmify', 'api_key' ) );
|
|
$authorized = ! empty( $api_key );
|
|
|
|
$email = get_bloginfo( 'admin_email' );
|
|
$u = wp_get_current_user();
|
|
$name = $u->first_name . ( empty( $u->first_name ) ? '' : ' ' ) . $u->last_name;
|
|
|
|
$swarmify_signup_url = Extension_Swarmify_Core::signup_url();
|
|
|
|
include W3TC_DIR . '/Extension_Swarmify_Page_View.php';
|
|
}
|
|
}
|