| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/laragon/www/prensa/wp-content/plugins/wp-smushit/app/pages/ |
Upload File : |
<?php
/**
* Tutorials page
*
* @package Smush\App\Pages
*/
namespace Smush\App\Pages;
use Smush\App\Abstract_Page;
use Smush\App\Interface_Page;
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Class Tutorials
*/
class Tutorials extends Abstract_Page implements Interface_Page {
/**
* Function triggered when the page is loaded before render any content.
*/
public function on_load() {}
/**
* Enqueue scripts.
*
* @since 3.9.0
*
* @param string $hook Hook from where the call is made.
*/
public function enqueue_scripts( $hook ) {
$this->enqueue_tutorials_scripts();
}
/**
* Render page header.
*/
public function render_page_header() {
$tutorials = $this->get_utm_link(
array(
'utm_campaign' => 'smush_tutorials_page',
),
'https://wpmudev.com/blog/tutorials/tutorial-category/smush-pro/'
);
?>
<div class="sui-header">
<h1 class="sui-header-title"><?php echo esc_html( get_admin_page_title() ); ?></h1>
<div class="sui-actions-right">
<?php if ( ! apply_filters( 'wpmudev_branding_hide_doc_link', false ) ) : ?>
<a href="<?php echo esc_url( $tutorials ); ?>" target="_blank" class="sui-button sui-button-ghost">
<span class="sui-icon-open-new-window" aria-hidden="true"></span>
<?php esc_html_e( 'View All', 'wp-smushit' ); ?>
</a>
<?php endif; ?>
</div>
</div>
<?php
}
}