* * @package WordPress * @subpackage Beautiful * @since Beautiful 1.0 */ if( !class_exists("beautiful_header") ) : class beautiful_header { private $beautiful_logo = "text"; /** * set default values */ function __construct() { // get logo state, text or image $this->beautiful_logo = get_theme_mod("beautiful_logo"); } /** * if logo is image, image logo * @return image */ public function logo_image() { if( $this->beautiful_logo == "image" ) echo "background-image: url('" . get_theme_mod("beautiful_logo_image") . "');"; } /** * if logo is image, image logo on the hover * @return image */ public function logo_image_hover() { if( $this->beautiful_logo == "image" ) echo "background-image: url('" . get_theme_mod("beautiful_logo_image_hover") . "');"; } /** * * @return text site title */ public function logo_text() { if( $this->beautiful_logo == "text" ) echo bloginfo('name'); } /** * logo animation * @return logo animation */ public function logo_animation() { echo "-webkit-animation-name: " . get_theme_mod("beautiful_logo_animation") . ";"; echo "animation-name: " . get_theme_mod("beautiful_logo_animation") . ";"; } /** * if logo is text, this will return color of it on the hover[mousein] * @return logo color on hover */ public function logo_color_hover() { echo "color: " . get_theme_mod("beautiful_logo_color_hover") . " !important;"; } /** * if logo is text, this will return color of it * @return logo color */ public function logo_color() { echo "color: " . get_theme_mod("beautiful_logo_color") . " !important;"; } /** * bootstrap navar defaults * @return navbar */ public function navbar() { if( get_theme_mod("beautiful_navbar_visibilty") == "hide" ) return; /** * Primary navigation with bootstarp */ ?>