<?php
namespace AIOSEO\Plugin\Addon\Eeat\Ui {
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Registers our UI elements.
*
* @since 1.0.0
*/
class Ui {
/**
* Author Bio class instance.
*
* @since 1.0.0
*
* @var AuthorBio
*/
public $authorBio;
/**
* Author Bio Compact class instance.
*
* @since 1.0.0
*
* @var authorBioCompact
*/
public $authorBioCompact;
/**
* Author Tooltip class instance.
*
* @since 1.0.0
*
* @var AuthorTooltip
*/
public $authorTooltip;
/**
* Reviewer Tooltip class instance.
*
* @since 1.0.0
*
* @var ReviewerTooltip
*/
public $reviewerTooltip;
/**
* Class constructor.
*
* @since 1.0.0
*/
public function __construct() {
$this->authorBio = new AuthorBio();
$this->authorBioCompact = new AuthorBioCompact();
$this->authorTooltip = new AuthorTooltip();
$this->reviewerTooltip = new ReviewerTooltip();
}
}
}
namespace {
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'aioseo_eeat_author_bio' ) ) {
/**
* Global function for the compact author bio block output.
*
* @since 1.0.0
*
* @return void
*/
function aioseo_eeat_author_bio( $compact = true ) {
if ( $compact ) {
aioseoEeat()->ui->authorBioCompact->render();
return;
}
aioseoEeat()->ui->authorBio->render();
}
}
}