| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/astra/inc/customizer/ |
Upload File : |
<?php
/**
* Customizer Partial.
*
* @package Astra
* @author Astra
* @copyright Copyright (c) 2019, Astra
* @link https://wpastra.com/
* @since Astra 1.0.0
*/
// No direct access, please.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Customizer Partials
*
* @since 1.0.0
*/
if ( ! class_exists( 'Astra_Customizer_Partials' ) ) {
/**
* Customizer Partials initial setup
*/
class Astra_Customizer_Partials {
/**
* Instance
*
* @access private
* @var object
*/
private static $instance;
/**
* Initiator
*/
public static function get_instance() {
if ( ! isset( self::$instance ) ) {
self::$instance = new self;
}
return self::$instance;
}
/**
* Constructor
*/
public function __construct() { }
/**
* Render Partial Blog Name
*/
function _render_partial_blogname() {
bloginfo( 'name' );
}
/**
* Render Partial Blog Description
*/
function _render_partial_blogdescription() {
bloginfo( 'description' );
}
/**
* Render Partial Site Tagline
*/
static function _render_partial_site_tagline() {
$site_tagline = astra_get_option( 'display-site-tagline' );
if ( true == $site_tagline ) {
return get_bloginfo( 'description', 'display' );
}
}
/**
* Render Partial Site Tagline
*/
static function _render_partial_site_title() {
$site_title = astra_get_option( 'display-site-title' );
if ( true == $site_title ) {
return get_bloginfo( 'name', 'display' );
}
}
/**
* Render Partial Header Right Section HTML
*/
static function _render_header_main_rt_section_html() {
$right_section_html = astra_get_option( 'header-main-rt-section-html' );
return do_shortcode( $right_section_html );
}
/**
* Render Partial Text Custom Menu Item
*/
static function _render_header_main_rt_section_button_text() {
$custom_button_text = astra_get_option( 'header-main-rt-section-button-text' );
return do_shortcode( $custom_button_text );
}
/**
* Render Partial Footer Section 1 Credit
*/
static function _render_footer_sml_section_1_credit() {
$output = astra_get_small_footer_custom_text( 'footer-sml-section-1-credit' );
return do_shortcode( $output );
}
/**
* Render Partial Footer Section 2 Credit
*/
static function _render_footer_sml_section_2_credit() {
$output = astra_get_small_footer_custom_text( 'footer-sml-section-2-credit' );
return do_shortcode( $output );
}
}
}
/**
* Kicking this off by calling 'get_instance()' method
*/
Astra_Customizer_Partials::get_instance();