File "shortcodes.php"
Full Path: /home/elegucvf/public_html/video/wp-content/wp-includes/wp-content/plugins/atlas-core/functions/shortcodes.php
File size: 967 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
/**
* Shortcodes
*
* @package Atlas Core
*/
/**
* Exit if accessed directly.
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
class TH90_Shortcode {
/**
* Constructor.
*/
public function __construct() {
add_shortcode( 'th90_current_year', [ $this, 'display_current_year' ] );
add_shortcode( 'th90_site_title', [ $this, 'display_site_title' ] );
}
/**
* Get the hfe_current_year Details.
*
* @return array $hfe_current_year Get Current Year Details.
*/
public function display_current_year() {
$hfe_current_year = gmdate( 'Y' );
$hfe_current_year = do_shortcode( shortcode_unautop( $hfe_current_year ) );
if ( ! empty( $hfe_current_year ) ) {
return $hfe_current_year;
}
}
/**
* Get site title of Site.
*
* @return string.
*/
public function display_site_title() {
$hfe_site_title = get_bloginfo( 'name' );
if ( ! empty( $hfe_site_title ) ) {
return $hfe_site_title;
}
}
}
new TH90_Shortcode();