'ffffff', ); add_theme_support( 'custom-background', $custombg ); } add_action( 'after_setup_theme', 'apprise_setup' ); /** * Function to change excerpt more string */ function apprise_custom_excerpt_more( $more ) { return '...'; } add_filter( 'excerpt_more', 'apprise_custom_excerpt_more' ); /** * Sets up theme defaults CSS rules */ function apprise_custom_styling() { /** * General Settings */ $google_font_logo = of_get_option('google_font_logo'); $logo_uppercase = of_get_option('logo_uppercase'); $tagline_uppercase = of_get_option('tagline_uppercase'); $logo_font_weight = of_get_option('logo_font_weight'); $text_logo_color = of_get_option('text_logo_color'); $logo_font_size = of_get_option('logo_font_size'); $google_font_body = of_get_option('google_font_body'); $body_font_size = of_get_option('body_font_size'); $body_font_color = of_get_option('body_font_color'); $tagline_color = of_get_option('tagline_color'); $tagline_font_size = of_get_option('tagline_font_size'); $logo_width = of_get_option('logo_width'); $logo_height = of_get_option('logo_height'); $logo_top_margin = of_get_option('logo_top_margin'); $logo_left_margin = of_get_option('logo_left_margin'); $logo_bottom_margin = of_get_option('logo_bottom_margin'); $logo_right_margin = of_get_option('logo_right_margin'); $scrollup_color = of_get_option('scrollup_color'); $scrollup_hover_color = of_get_option('scrollup_hover_color'); /** * Header Settings */ $header_social_color = of_get_option('header_social_color'); /** * Home Page Settings */ $tagline_bg_color = of_get_option('tagline_bg_color'); $tagline_text_color = of_get_option('tagline_text_color'); $content_box_bg_color = of_get_option('content_box_bg_color'); $column_header_color = of_get_option('column_header_color'); /** * Navigation Menu */ $google_font_menu = of_get_option('google_font_menu'); $nav_font_size = of_get_option('nav_font_size'); $nav_font_color = of_get_option('nav_font_color'); $nav_bg_color = of_get_option('nav_bg_color'); $nav_hover_font_color = of_get_option('nav_hover_font_color'); $nav_bg_hover_color = of_get_option('nav_bg_hover_color'); $nav_cur_item_color = of_get_option('nav_cur_item_color'); $menu_uppercase = of_get_option('menu_uppercase'); /** * Footer Settings */ $footer_bg_color = of_get_option('footer_bg_color'); $copyright_bg_color = of_get_option('copyright_bg_color'); $footer_widget_title_color = of_get_option('footer_widget_title_color'); $footer_widget_title_border_color = of_get_option('footer_widget_title_border_color'); $footer_widget_text_color = of_get_option('footer_widget_text_color'); $footer_widget_text_border_color = of_get_option('footer_widget_text_border_color'); $footer_social_color = of_get_option('footer_social_color'); /** * Sidebar Settings */ $archives_widget_bg_color = of_get_option('archives_widget_bg_color'); $archives_widget_font_color = of_get_option('archives_widget_font_color'); $archives_widget_title_color = of_get_option('archives_widget_title_color'); $categories_widget_bg_color = of_get_option('categories_widget_bg_color'); $categories_widget_font_color = of_get_option('categories_widget_font_color'); $categories_widget_title_color = of_get_option('categories_widget_title_color'); $calendar_widget_bg_color = of_get_option('calendar_widget_bg_color'); $calendar_widget_font_color = of_get_option('calendar_widget_font_color'); $calendar_widget_title_color = of_get_option('calendar_widget_title_color'); $custom_menu_widget_bg_color = of_get_option('custom_menu_widget_bg_color'); $custom_menu_widget_font_color = of_get_option('custom_menu_widget_font_color'); $custom_menu_widget_title_color = of_get_option('custom_menu_widget_title_color'); $links_widget_bg_color = of_get_option('links_widget_bg_color'); $links_widget_font_color = of_get_option('links_widget_font_color'); $links_widget_title_color = of_get_option('links_widget_title_color'); $meta_widget_bg_color = of_get_option('meta_widget_bg_color'); $meta_widget_font_color = of_get_option('meta_widget_font_color'); $meta_widget_title_color = of_get_option('meta_widget_title_color'); $pages_widget_bg_color = of_get_option('pages_widget_bg_color'); $pages_widget_font_color = of_get_option('pages_widget_font_color'); $pages_widget_title_color = of_get_option('pages_widget_title_color'); $recent_comments_widget_bg_color = of_get_option('recent_comments_widget_bg_color'); $recent_comments_widget_font_color = of_get_option('recent_comments_widget_font_color'); $recent_comments_widget_title_color = of_get_option('recent_comments_widget_title_color'); $recent_posts_widget_bg_color = of_get_option('recent_posts_widget_bg_color'); $recent_posts_widget_font_color = of_get_option('recent_posts_widget_font_color'); $recent_posts_widget_title_color = of_get_option('recent_posts_widget_title_color'); $rss_widget_bg_color = of_get_option('rss_widget_bg_color'); $rss_widget_font_color = of_get_option('rss_widget_font_color'); $rss_widget_title_color = of_get_option('rss_widget_title_color'); $search_widget_bg_color = of_get_option('search_widget_bg_color'); $search_widget_font_color = of_get_option('search_widget_font_color'); $search_widget_title_color = of_get_option('search_widget_title_color'); $tag_cloud_widget_bg_color = of_get_option('tag_cloud_widget_bg_color'); $tag_cloud_widget_font_color = of_get_option('tag_cloud_widget_font_color'); $tag_cloud_widget_title_color = of_get_option('tag_cloud_widget_title_color'); $text_widget_bg_color = of_get_option('text_widget_bg_color'); $text_widget_font_color = of_get_option('text_widget_font_color'); $text_widget_title_color = of_get_option('text_widget_title_color'); $other_widget_bg_color = of_get_option('other_widget_bg_color'); $other_widget_font_color = of_get_option('other_widget_font_color'); $other_widget_title_color = of_get_option('other_widget_title_color'); $post_info_widget_bg_color = of_get_option('post_info_widget_bg_color'); $post_info_widget_font_color = of_get_option('post_info_widget_font_color'); $post_info_widget_title_color = of_get_option('post_info_widget_title_color'); $output = ''; /** * Sidebar Settings */ /* Post Info */ if ( $post_info_widget_title_color ) $output .= '.widget_post_info .widget-title h4 { color:' . $post_info_widget_title_color . ' !important;}' . "\n"; $output .= '.widget_post_info .widget-title { border-bottom: 3px solid ' . $post_info_widget_title_color . ' !important; }' . "\n"; if ( $post_info_widget_font_color ) $output .= '.widget_post_info, .widget_post_info a { color:' . $post_info_widget_font_color . ' !important;}' . "\n"; $output .= '.widget_post_info ul li { border-bottom: 1px solid ' . $post_info_widget_font_color . ' !important;}' . "\n"; if ( $post_info_widget_bg_color ) $output .= '.widget_post_info { background-color:' . $post_info_widget_bg_color . ' !important;}' . "\n"; /* Other widgets */ if ( $other_widget_title_color ) $output .= '.sidebar .widget .widget-title h4, .post-sidebar .widget .widget-title h4 { color:' . $other_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget .widget-title, .post-sidebar .widget .widget-title { border-bottom: 3px solid ' . $other_widget_title_color . '}' . "\n"; if ( $other_widget_font_color ) $output .= '.sidebar .widget, .sidebar .widget a, .post-sidebar .widget, .post-sidebar .widget a { color:' . $other_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget ul li, .post-sidebar .widget ul li { border-bottom: 1px solid ' . $other_widget_font_color . '}' . "\n"; if ( $other_widget_bg_color ) $output .= '.sidebar .widget, .post-sidebar .widget { background-color:' . $other_widget_bg_color . '}' . "\n"; /* Text widget */ if ( $text_widget_title_color ) $output .= '.sidebar .widget_text .widget-title h4, .post-sidebar .widget_text .widget-title h4 { color:' . $text_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_text .widget-title, .post-sidebar .widget_text .widget-title { border-bottom: 3px solid ' . $text_widget_title_color . '}' . "\n"; if ( $text_widget_font_color ) $output .= '.sidebar .widget_text, .sidebar .widget_text a, .post-sidebar .widget_text, .post-sidebar .widget_text a { color:' . $text_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_text ul li, .post-sidebar .widget_text ul li { border-bottom: 1px solid ' . $text_widget_font_color . '}' . "\n"; if ( $text_widget_bg_color ) $output .= '.sidebar .widget_text, .post-sidebar .widget_text { background-color:' . $text_widget_bg_color . '}' . "\n"; /* Tag Cloud widget */ if ( $tag_cloud_widget_title_color ) $output .= '.sidebar .widget_tag_cloud .widget-title h4, .post-sidebar .widget_tag_cloud .widget-title h4 { color:' . $tag_cloud_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_tag_cloud .widget-title, .post-sidebar .widget_tag_cloud .widget-title { border-bottom: 3px solid ' . $tag_cloud_widget_title_color . '}' . "\n"; if ( $tag_cloud_widget_font_color ) $output .= '.sidebar .widget_tag_cloud, .sidebar .widget_tag_cloud a, .post-sidebar .short-info .single-meta .tags-list a, .post-sidebar .short-info .single-meta .tagcloud a { color:' . $tag_cloud_widget_font_color . ' !important;}' . "\n"; $output .= '.sidebar .widget_tag_cloud ul li, .post-sidebar .widget_tag_cloud ul li { border-bottom: 1px solid ' . $tag_cloud_widget_font_color . '}' . "\n"; if ( $tag_cloud_widget_bg_color ) $output .= '.sidebar .widget_tag_cloud, .post-sidebar .widget_tag_cloud { background-color:' . $tag_cloud_widget_bg_color . '}' . "\n"; /* Search widget */ if ( $search_widget_title_color ) $output .= '.sidebar .widget_search .widget-title h4, .post-sidebar .widget_search .widget-title h4 { color:' . $search_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_search .widget-title, .post-sidebar .widget_search .widget-title { border-bottom: 3px solid ' . $search_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget .searchform input#s, .post-sidebar .widget .searchform input#s { border: 1px solid ' . $search_widget_title_color . '}' . "\n"; if ( $search_widget_font_color ) $output .= '.sidebar .widget_search, .sidebar .widget_search a, .sidebar .searchform input#s, .post-sidebar .widget_search, .post-sidebar .widget_search a, .post-sidebar .searchform input#s { color:' . $search_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_search ul li, .post-sidebar .widget_search ul li { border-bottom: 1px solid ' . $search_widget_font_color . '}' . "\n"; if ( $search_widget_bg_color ) $output .= '.sidebar .widget_search, .post-sidebar .widget_search { background-color:' . $search_widget_bg_color . '}' . "\n"; /* RSS widget */ if ( $rss_widget_title_color ) $output .= '.sidebar .widget_rss .widget-title h4 a, .post-sidebar .widget_rss .widget-title h4 a { color:' . $rss_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_rss .widget-title, .post-sidebar .widget_rss .widget-title { border-bottom: 3px solid ' . $rss_widget_title_color . '}' . "\n"; if ( $rss_widget_font_color ) $output .= '.sidebar .widget_rss, .sidebar .widget_rss a, .post-sidebar .widget_rss, .post-sidebar .widget_rss a { color:' . $rss_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_rss ul li, .post-sidebar .widget_rss ul li { border-bottom: 1px solid ' . $rss_widget_font_color . '}' . "\n"; if ( $rss_widget_bg_color ) $output .= '.sidebar .widget_rss, .post-sidebar .widget_rss { background-color:' . $rss_widget_bg_color . '}' . "\n"; /* Recent Posts widget */ if ( $recent_posts_widget_title_color ) $output .= '.sidebar .widget_recent_entries .widget-title h4, .post-sidebar .widget_recent_entries .widget-title h4 { color:' . $recent_posts_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_recent_entries .widget-title, .post-sidebar .widget_recent_entries .widget-title { border-bottom: 3px solid ' . $recent_posts_widget_title_color . '}' . "\n"; if ( $recent_posts_widget_font_color ) $output .= '.sidebar .widget_recent_entries, .sidebar .widget_recent_entries a, .post-sidebar .widget_recent_entries, .post-sidebar .widget_recent_entries a { color:' . $recent_posts_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_recent_entries ul li, .post-sidebar .widget_recent_entries ul li { border-bottom: 1px solid ' . $recent_posts_widget_font_color . '}' . "\n"; if ( $recent_posts_widget_bg_color ) $output .= '.sidebar .widget_recent_entries, .post-sidebar .widget_recent_entries { background-color:' . $recent_posts_widget_bg_color . '}' . "\n"; /* Recent Comments widget */ if ( $recent_comments_widget_title_color ) $output .= '.sidebar .widget_recent_comments .widget-title h4, .post-sidebar .widget_recent_comments .widget-title h4 { color:' . $recent_comments_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_recent_comments .widget-title, .post-sidebar .widget_recent_comments .widget-title { border-bottom: 3px solid ' . $recent_comments_widget_title_color . '}' . "\n"; if ( $recent_comments_widget_font_color ) $output .= '.sidebar .widget_recent_comments, .sidebar .widget_recent_comments a, .post-sidebar .widget_recent_comments, .post-sidebar .widget_recent_comments a { color:' . $recent_comments_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_recent_comments ul li, .post-sidebar .widget_recent_comments ul li { border-bottom: 1px solid ' . $recent_comments_widget_font_color . '}' . "\n"; if ( $recent_comments_widget_bg_color ) $output .= '.sidebar .widget_recent_comments, .post-sidebar .widget_recent_comments { background-color:' . $recent_comments_widget_bg_color . '}' . "\n"; /* Pages widget */ if ( $pages_widget_title_color ) $output .= '.sidebar .widget_pages .widget-title h4, .post-sidebar .widget_pages .widget-title h4 { color:' . $pages_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_pages .widget-title, .post-sidebar .widget_pages .widget-title { border-bottom: 3px solid ' . $pages_widget_title_color . '}' . "\n"; if ( $pages_widget_font_color ) $output .= '.sidebar .widget_pages, .sidebar .widget_pages a, .post-sidebar .widget_pages, .post-sidebar .widget_pages a { color:' . $pages_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_pages ul li, .post-sidebar .widget_pages ul li { border-bottom: 1px solid ' . $pages_widget_font_color . '}' . "\n"; if ( $pages_widget_bg_color ) $output .= '.sidebar .widget_pages, .post-sidebar .widget_pages { background-color:' . $pages_widget_bg_color . '}' . "\n"; /* Meta widget */ if ( $meta_widget_title_color ) $output .= '.sidebar .widget_meta .widget-title h4, .post-sidebar .widget_meta .widget-title h4 { color:' . $meta_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_meta .widget-title, .post-sidebar .widget_meta .widget-title { border-bottom: 3px solid ' . $meta_widget_title_color . '}' . "\n"; if ( $meta_widget_font_color ) $output .= '.sidebar .widget_meta, .sidebar .widget_meta a, .post-sidebar .widget_meta, .post-sidebar .widget_meta a { color:' . $meta_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_meta ul li, .post-sidebar .widget_meta ul li { border-bottom: 1px solid ' . $meta_widget_font_color . '}' . "\n"; if ( $meta_widget_bg_color ) $output .= '.sidebar .widget_meta, .post-sidebar .widget_meta { background-color:' . $meta_widget_bg_color . '}' . "\n"; /* Links widget */ if ( $links_widget_title_color ) $output .= '.sidebar .widget_links .widget-title h4, .post-sidebar .widget_links .widget-title h4 { color:' . $links_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_links .widget-title, .post-sidebar .widget_links .widget-title { border-bottom: 3px solid ' . $links_widget_title_color . '}' . "\n"; if ( $links_widget_font_color ) $output .= '.sidebar .widget_links, .sidebar .widget_links a, .post-sidebar .widget_links, .post-sidebar .widget_links a { color:' . $links_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_links ul li, .post-sidebar .widget_links ul li { border-bottom: 1px solid ' . $links_widget_font_color . '}' . "\n"; if ( $links_widget_bg_color ) $output .= '.sidebar .widget_links, .post-sidebar .widget_links { background-color:' . $links_widget_bg_color . '}' . "\n"; /* Custom Menu widget */ if ( $custom_menu_widget_title_color ) $output .= '.sidebar .widget_nav_menu .widget-title h4, .post-sidebar .widget_nav_menu .widget-title h4 { color:' . $custom_menu_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_nav_menu .widget-title, .post-sidebar .widget_nav_menu .widget-title { border-bottom: 3px solid ' . $custom_menu_widget_title_color . '}' . "\n"; if ( $custom_menu_widget_font_color ) $output .= '.sidebar .widget_nav_menu, .sidebar .widget_nav_menu a, .post-sidebar .widget_nav_menu, .post-sidebar .widget_nav_menu a { color:' . $custom_menu_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_nav_menu ul li, .sidebar .widget_nav_menu ul li ul li a, .post-sidebar .widget_nav_menu ul li, .post-sidebar .widget_nav_menu ul li ul li a { border-bottom: 1px solid ' . $custom_menu_widget_font_color . '}' . "\n"; if ( $custom_menu_widget_bg_color ) $output .= '.sidebar .widget_nav_menu, .post-sidebar .widget_nav_menu { background-color:' . $custom_menu_widget_bg_color . '}' . "\n"; /* Calendar widget */ if ( $calendar_widget_title_color ) $output .= '.sidebar .widget_calendar .widget-title h4, .post-sidebar .widget_calendar .widget-title h4 { color:' . $calendar_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_calendar .widget-title, .post-sidebar .widget_calendar .widget-title { border-bottom: 3px solid ' . $calendar_widget_title_color . '}' . "\n"; if ( $calendar_widget_font_color ) $output .= '.sidebar .widget_calendar, .sidebar .widget_calendar a, .post-sidebar .widget_calendar, .post-sidebar .widget_calendar a { color:' . $calendar_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_calendar ul li, .post-sidebar .widget_calendar ul li { border-bottom: 1px solid ' . $calendar_widget_font_color . '}' . "\n"; if ( $calendar_widget_bg_color ) $output .= '.sidebar .widget_calendar, .post-sidebar .widget_calendar { background-color:' . $calendar_widget_bg_color . '}' . "\n"; /* Categories widget */ if ( $categories_widget_title_color ) $output .= '.sidebar .widget_categories .widget-title h4, .post-sidebar .widget_categories .widget-title h4 { color:' . $categories_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_categories .widget-title, .post-sidebar .widget_categories .widget-title { border-bottom: 3px solid ' . $categories_widget_title_color . '}' . "\n"; if ( $categories_widget_font_color ) $output .= '.sidebar .widget_categories, .sidebar .widget_categories a, .post-sidebar .widget_categories, .post-sidebar .widget_categories a { color:' . $categories_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_categories ul li, .post-sidebar .widget_categories ul li { border-bottom: 1px solid ' . $categories_widget_font_color . '}' . "\n"; if ( $categories_widget_bg_color ) $output .= '.sidebar .widget_categories, .post-sidebar .widget_categories { background-color:' . $categories_widget_bg_color . '}' . "\n"; /* Archives widget */ if ( $archives_widget_title_color ) $output .= '.sidebar .widget_archive .widget-title h4, .post-sidebar .widget_archive .widget-title h4 { color:' . $archives_widget_title_color . '}' . "\n"; $output .= '.sidebar .widget_archive .widget-title, .post-sidebar .widget_archive .widget-title { border-bottom: 3px solid ' . $archives_widget_title_color . '}' . "\n"; if ( $archives_widget_font_color ) $output .= '.sidebar .widget_archive, .sidebar .widget_archive a, .post-sidebar .widget_archive, .post-sidebar .widget_archive a { color:' . $archives_widget_font_color . '}' . "\n"; $output .= '.sidebar .widget_archive ul li, .post-sidebar .widget_archive ul li { border-bottom: 1px solid ' . $archives_widget_font_color . '}' . "\n"; if ( $archives_widget_bg_color ) $output .= '.sidebar .widget_archive, .post-sidebar .widget_archive { background-color:' . $archives_widget_bg_color . '}' . "\n"; /** * Footer Settings */ if ( $footer_bg_color ) $output .= '#footer { background-color:' . $footer_bg_color . '}' . "\n"; if ( $copyright_bg_color ) $output .= '#copyright { background-color:' . $copyright_bg_color . '}' . "\n"; if ( $footer_widget_title_color ) $output .= '.footer-widget-col h4 { color:' . $footer_widget_title_color . '}' . "\n"; if ( $footer_widget_title_border_color ) $output .= '.footer-widget-col h4 { border-bottom: 2px solid ' . $footer_widget_title_border_color . '}' . "\n"; if ( $footer_widget_text_color ) $output .= '.footer-widget-col a, .footer-widget-col { color:' . $footer_widget_text_color . '}' . "\n"; if ( $footer_widget_text_border_color ) $output .= '.footer-widget-col ul li { border-bottom: 1px solid ' . $footer_widget_text_border_color . '}' . "\n"; if ( $footer_social_color ) $output .= '#social-bar-footer ul li a i { color:' . $footer_social_color . '}' . "\n"; /** * Navigation Menu */ if ( $google_font_menu ) $output .= '#site-navigation ul li a {font-family:' . $google_font_menu . '}' . "\n"; if ( $nav_font_size ) $output .= '#site-navigation ul li a {font-size:' . $nav_font_size . 'px}' . "\n"; if ( $nav_font_color ) $output .= '#site-navigation ul li a {color:' . $nav_font_color . '}' . "\n"; if ( $nav_bg_color ) $output .= '#header-layout {background-color:' . $nav_bg_color . '}' . "\n"; if ( $nav_hover_font_color ) $output .= '#site-navigation ul li a:hover {color:' . $nav_hover_font_color . '}' . "\n"; if ( $nav_bg_hover_color ) $output .= '#menu-main-navigation li a:hover, #menu-main-navigation li:hover a, #menu-main-navigation li ul.sub-menu { background:' . $nav_bg_hover_color . '}' . "\n"; if ( $nav_cur_item_color ) $output .= '#menu-main-navigation .current-menu-item a { color:' . $nav_cur_item_color . '}' . "\n"; if ( $menu_uppercase == '1' ) $output .= '#site-navigation ul li a {text-transform: uppercase;}' . "\n"; /** * Header Settings */ if ( $header_social_color ) $output .= '#logo-layout #social-bar ul li a { color:' . $header_social_color . '}' . "\n"; /** * General Settings */ if ( $logo_top_margin ) $output .= '#logo { margin-top:' . $logo_top_margin . 'px }' . "\n"; if ( $logo_bottom_margin ) $output .= '#logo { margin-bottom:' . $logo_bottom_margin . 'px }' . "\n"; if ( $logo_left_margin ) $output .= '#logo { margin-left:' . $logo_left_margin . 'px }' . "\n"; if ( $logo_right_margin ) $output .= '#logo { margin-right:' . $logo_right_margin . 'px }' . "\n"; if ( $logo_height ) $output .= '#logo {height:' . $logo_height . 'px }' . "\n"; if ( $logo_width ) $output .= '#logo {width:' . $logo_width . 'px }' . "\n"; if ( $logo_font_weight ) $output .= '#logo {font-weight:' . $logo_font_weight . '}' . "\n"; if ( $tagline_uppercase == '0' ) $output .= '#logo .site-description {text-transform: none}' . "\n"; if ( $tagline_uppercase == '1' ) $output .= '#logo .site-description {text-transform: uppercase}' . "\n"; if ( $tagline_font_size ) $output .= '#logo h5.site-description {font-size:' . $tagline_font_size . 'px }' . "\n"; if ( $logo_uppercase == '1' ) $output .= '#logo {text-transform: uppercase }' . "\n"; if ( $google_font_logo ) $output .= '#logo {font-family:' . $google_font_logo . '}' . "\n"; if ( $text_logo_color ) $output .= '#logo a {color:' . $text_logo_color . '}' . "\n"; if ( $tagline_color ) $output .= '#logo .site-description {color:' . $tagline_color . '}' . "\n"; if ( $logo_font_size ) $output .= '#logo {font-size:' . $logo_font_size . 'px }' . "\n"; if ( $google_font_body != 'None' ) $output .= 'body {font-family:' . $google_font_body . ' !important}' . "\n"; if ( $body_font_size ) $output .= 'body {font-size:' . $body_font_size . 'px !important}' . "\n"; if ( $body_font_color ) $output .= 'body {color:' . $body_font_color . '}' . "\n"; if ( $scrollup_color ) $output .= '.back-to-top {color:' . $scrollup_color . '}' . "\n"; if ( $scrollup_hover_color ) $output .= '.back-to-top i.fa:hover {color:' . $scrollup_hover_color . '}' . "\n"; // Output styles if ( isset( $output ) && $output != '' ) { $output = strip_tags( $output ); $output = "\n\n"; echo $output; } } add_action('wp_head','apprise_custom_styling'); /** * Creates a nicely formatted and more specific title element text * for output in head of document, based on current view. * */ function apprise_wp_title( $title, $sep ) { global $paged, $page; if ( is_feed() ) return $title; // Add the site name. $title .= get_bloginfo( 'name' ); // Add the site description for the home/front page. $site_description = get_bloginfo( 'description', 'display' ); if ( $site_description && ( is_home() || is_front_page() ) ) $title = "$title $sep $site_description"; // Add a page number if necessary. if ( $paged >= 2 || $page >= 2 ) $title = "$title $sep " . sprintf( __( 'Page %s', 'apprise' ), max( $paged, $page ) ); return $title; } add_filter( 'wp_title', 'apprise_wp_title', 10, 2 ); /** * Add scripts function */ function apprise_add_script_function() { /** * Enqueue css */ wp_enqueue_style('apprise', get_stylesheet_uri()); if (of_get_option('responsive_design') == '1'): wp_enqueue_style ('responsive', get_template_directory_uri() . '/css/responsive.css'); endif; wp_enqueue_style ('font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css'); if( of_get_option('google_font_body') !=""): wp_enqueue_style ('body-font', '//fonts.googleapis.com/css?family='. urlencode(of_get_option('google_font_body')) .':400,400italic,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese'); endif; if( of_get_option('google_font_menu') != ""): wp_enqueue_style ('menu-font', '//fonts.googleapis.com/css?family='. urlencode(of_get_option('google_font_menu')) .':400,400italic,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese'); endif; if( of_get_option('google_font_logo') != ""): wp_enqueue_style ('logo-font', '//fonts.googleapis.com/css?family='. urlencode(of_get_option('google_font_logo')) .':400,400italic,700,700italic&subset=latin,greek-ext,cyrillic,latin-ext,greek,cyrillic-ext,vietnamese'); endif; /** * Enqueue javascripts */ wp_enqueue_script('superfish', get_template_directory_uri() . '/js/superfish.js', array( 'jquery' ),'', false); wp_enqueue_script('supersubs', get_template_directory_uri() . '/js/supersubs.js', array( 'jquery' ),'', false); wp_enqueue_script( 'flexslider', get_template_directory_uri() . '/js/jquery.flexslider.js', array( 'jquery' ),'', false ); wp_enqueue_script('custom', get_template_directory_uri() . '/js/custom.js', array( 'jquery' ),'', true); wp_enqueue_script('tinynav', get_template_directory_uri() . '/js/tinynav.min.js', array( 'jquery' ),'', false); wp_enqueue_script('refineslide', get_template_directory_uri() . '/js/jquery.refineslide.js', array( 'jquery' ),'', false); wp_enqueue_script('imgLiquid-min', get_template_directory_uri() . '/js/imgLiquid-min.js', array( 'jquery' ),'', false); if ( of_get_option('enable_scrollup') == 1) { wp_enqueue_script('scroll-on', get_template_directory_uri() . '/js/scrollup.js', array( 'jquery' ),'', true); } } add_action('wp_enqueue_scripts','apprise_add_script_function'); /** * Register widgetized locations */ function apprise_widgets_init() { register_sidebar(array( 'name' => __( 'Main Sidebar', 'apprise' ), 'before_widget' => '
', 'before_title' => '', )); register_sidebar(array( 'name' => __( 'Secondary Sidebar', 'apprise' ), 'id' => 'secondary-sidebar', 'description' => '', 'before_widget' => '', 'before_title' => '', )); register_sidebar(array( 'name' => __( 'Footer Widget 1', 'apprise' ), 'id' => 'footer-widget-1', 'before_widget' => '', 'before_title' => '', '' ); ?>