', $logo, get_bloginfo( 'name' ) );
} else {
return '
' . get_bloginfo( 'name' ) . '
';
}
}
// get uc logo
public function uc_favicon() {
$uc_option = self::get_uc_option();
if ( isset( $uc_option['uc_favicon'] ) && strlen( $uc_option['uc_favicon'] ) ) {
$uc_favicon_url = $uc_option['uc_favicon'];
return sprintf( '', $uc_favicon_url );
} else {
return null;
}
}
// get custom css
public function uc_custom_css() {
$uc_option = self::get_uc_option();
$uc_custom_css = isset( $uc_option['uc_custom_css'] ) ? $uc_option['uc_custom_css'] : '';
return esc_html( $uc_custom_css );
}
// get analytics script
public function uc_scripts() {
$uc_option = self::get_uc_option();
$uc_scripts = isset( $uc_option['uc_scripts'] ) ? $uc_option['uc_scripts'] : '';
return $uc_scripts;
}
// get footer analytics script
public function uc_footer_scripts() {
$uc_option = self::get_uc_option();
$uc_footer_scripts = isset( $uc_option['uc_footer_scripts'] ) ? $uc_option['uc_footer_scripts'] : '';
return $uc_footer_scripts;
}
// get timer module view
public function uc_timer() {
include_once ONECOM_UC_PLUGIN_URL . '/inc/modules/timer.php';
if ( isset( $html ) && strlen( $html ) ) {
return $html;
} else {
return '';
}
}
// get social icons
public function uc_social_icons() {
include_once ONECOM_UC_PLUGIN_URL . 'inc/classes/class-ocuc-social-icons.php';
$uc_option = self::get_uc_option();
$social_icons = new OCUC_Social_Icons();
return $social_icons->uc_get_social_icons( $uc_option );
}
}
// load views
$html = new OCUC_Render_Views();