for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace EmailLog\Core\UI\Component;
defined( 'ABSPATH' ) || exit; // Exit if accessed directly
/**
* Enhance Plugin List UI.
*
* @since 2.0
* @package EmailLog\Core\UI
*/
class AddonController {
* @var string Plugin basename.
protected $plugin_dir_url;
* Initialize the plugin.
public function __construct( $file ) {
$this->plugin_dir_url = plugin_dir_url( $file );
}
* Renders the HTML for the Addons page.
public function render_page() {
// Enqueue the required styles
wp_enqueue_style( 'el_addon_adm_pg', $this->plugin_dir_url . 'assets/css/AddonController.css', array(), false, 'all' )
?>
<p>
<?php _e( 'These extensions <em><strong>add functionality</strong></em> to your existing Email logs.', 'email-log' ); ?>
</p>
<div class="el-container">
<?php for( $i = 0; $i < 4; $i++ ) { ?>
<div class="el-addon">
<h3 class="el-addon-title">Resend Email</h3>
<a href="#" title="Starter Package">
<img src="https://8333-presscdn-0-98-pagely.netdna-ssl.com/wp-content/themes/edd-v2/images/starter-package.png" class="attachment-showcase wp-post-image" alt="Alternate Title" title="Some Good Title" />
</a>
<p>This addon will emerge of our Sun bursts and will do this.</p>
<a href="#" class="button-secondary">Gear up!</a>
</div> <!-- .el-addon -->
<?php } ?>
<div class="clear"></div>
</div> <!-- .el-container -->
<?php