'postMessage' instead of the default 'transport' * => 'refresh' * * Used by hook: 'customize_preview_init' * * @see add_action('customize_preview_init',$func) * @since MyTheme 1.0 */ public static function LivePreview() { /*TO DO - Implement Live Preview using Javascript and postMessage Transport*/ //wp_enqueue_script( 'quest-customizer-preview', get_template_directory_uri() . '/inc/customizer/assets/js/customizer-preview.js', array( 'jquery' ), '', true ); } public static function PrintPBCss() { global $post; if ( !quest_is_pb_template() ) { return; } do_action( 'quest_pb_header_css' ); $css = "\n/* Hover Icons */\n"; $sections = PT_PageBuilder_Helper::decode_pb_section_metadata( get_post_meta( $post->ID, 'pt_pb_sections', true ) ); foreach ( $sections as $key => $section ) { $css .= self::BuildSectionCss( $section ); if ( ! is_numeric( $key ) || ! array_key_exists( 'row', $section ) || empty( $section['row'] ) ) { continue; } foreach ( $section['row'] as $j => $row ) { if ( ! is_numeric( $j ) || ! array_key_exists( 'col', $row ) || empty( $row['col'] ) ) { continue; } foreach ( $row['col'] as $k => $col ) { if ( ! is_numeric( $k ) || ! array_key_exists( 'module', $col ) || empty( $col['module'] ) ) { continue; } if ( is_array( $col['module'] ) && ! array_key_exists( 'id', $col['module'] ) ) { foreach ( $col['module'] as $l => $module ) { if ( $module['type'] === 'hovericon' ) { $css .= self::BuildHoverIconCss( $module ); } $css .= apply_filters( "pt_pb_css_module_{$module['type']}", '', $module ); } } elseif ( isset( $col['module']['type'] ) ) { if ( $col['module']['type'] === 'hovericon' ) { $css .= self::BuildHoverIconCss( $col['module'] ); } $css .= apply_filters( "pt_pb_css_module_{$col['module']['type']}", '', $col['module'] ); } } } } echo $css; } public static function BodyClasses( $classes ) { global $post; if ( quest_is_pb_template() && quest_get_meta( array(), '_quest_pb_header' ) === 'transparent' ) { $classes[] = 'transparent-header'; } return $classes; } public static function PBHeaderCss() { $color = quest_get_meta( array(), '_quest_pb_menu' ); $hover_color = quest_get_meta( array(), '_quest_pb_menu_hover' ); ?> @media (min-width: 768px) { .transparent-header .main-header, .transparent-header .main-header a, .transparent-header .main-header .main-navigation .nav > li > a { color: ; } .transparent-header .main-header a:hover, .transparent-header .main-header .main-navigation .nav > li > a:hover, .transparent-header .main-header .main-navigation .nav > li.current-menu-item > a, .transparent-header .main-header .main-navigation .nav > li.current-menu-parent > a { color: ; } .transparent-header .main-header .navbar-toggle a:hover{ color: !important; } .transparent-header .main-header .navbar-toggle a:hover.fa{ color: !important; } .transparent-header .main-navigation .nav > li.current-menu-item, .main-navigation .nav > li.current-menu-parent{ border-color: !important; } } quest_get_mod( 'typography_global_font_family' ), 'typography_global_font_variant' => quest_get_mod( 'typography_global_font_variant' ), 'typography_heading_h1_font_family' => quest_get_mod( 'typography_heading_h1_font_family' ), 'typography_heading_h1_font_variant' => quest_get_mod( 'typography_heading_h1_font_variant' ), 'typography_heading_h2_font_family' => quest_get_mod( 'typography_heading_h2_font_family' ), 'typography_heading_h2_font_variant' => quest_get_mod( 'typography_heading_h2_font_variant' ), 'typography_heading_h3_font_family' => quest_get_mod( 'typography_heading_h3_font_family' ), 'typography_heading_h3_font_variant' => quest_get_mod( 'typography_heading_h3_font_variant' ), 'typography_heading_h4_font_family' => quest_get_mod( 'typography_heading_h4_font_family' ), 'typography_heading_h4_font_variant' => quest_get_mod( 'typography_heading_h4_font_variant' ), 'typography_heading_h5_font_family' => quest_get_mod( 'typography_heading_h5_font_family' ), 'typography_heading_h5_font_variant' => quest_get_mod( 'typography_heading_h5_font_variant' ), 'typography_heading_h6_font_family' => quest_get_mod( 'typography_heading_h6_font_family' ), 'typography_heading_h6_font_variant' => quest_get_mod( 'typography_heading_h6_font_variant' ), 'typography_menu_font_family' => quest_get_mod( 'typography_menu_font_family' ), 'typography_menu_font_variant' => quest_get_mod( 'typography_menu_font_variant' ), 'typography_menu_sub_font_family' => quest_get_mod( 'typography_menu_sub_font_family' ), 'typography_menu_sub_font_variant' => quest_get_mod( 'typography_menu_sub_font_variant' ), 'typography_site_title_font_family' => quest_get_mod( 'typography_site_title_font_family' ), 'typography_site_title_font_variant' => quest_get_mod( 'typography_site_title_font_variant' ), 'typography_site_tagline_font_family' => quest_get_mod( 'typography_site_tagline_font_family' ), 'typography_site_tagline_font_variant' => quest_get_mod( 'typography_site_tagline_font_variant' ), 'typography_sidebar_title_font_family' => quest_get_mod( 'typography_sidebar_title_font_family' ), 'typography_sidebar_title_font_variant' => quest_get_mod( 'typography_sidebar_title_font_variant' ), 'typography_sidebar_body_font_family' => quest_get_mod( 'typography_sidebar_body_font_family' ), 'typography_sidebar_body_font_variant' => quest_get_mod( 'typography_sidebar_body_font_variant' ), 'typography_footer_title_font_family' => quest_get_mod( 'typography_footer_title_font_family' ), 'typography_footer_title_font_variant' => quest_get_mod( 'typography_footer_title_font_variant' ), 'typography_footer_body_font_family' => quest_get_mod( 'typography_footer_body_font_family' ), 'typography_footer_body_font_variant' => quest_get_mod( 'typography_footer_body_font_variant' ), 'typography_footer_text_font_family' => quest_get_mod( 'typography_footer_text_font_family' ), 'typography_footer_text_font_variant' => quest_get_mod( 'typography_footer_text_font_variant' ) ); $used_fonts = array(); $defaults = array_keys( quest_get_standard_fonts() ); foreach ( $fonts as $key => $value ) { if ( quest_string_ends_with( $key, '_family' ) && trim( $value ) !== "" && ! in_array( $value, $defaults ) ) { $variant = quest_get_default_mod( str_replace( '_family', '_variant', $key ), $fonts ); $used_fonts[ $value ] = array_key_exists( $value, $used_fonts ) ? ( strpos( $used_fonts[ $value ], $variant ) !== false ) ? $used_fonts[ $value ] : "$used_fonts[$value],$variant" : "$value:$variant"; } } $protocol = is_ssl() ? 'https' : 'http'; $query_args = array( 'family' => str_replace( " ", "+", implode( '|', array_values( $used_fonts ) ) ), 'subset' => implode( ',', quest_get_mod( 'typography_options_subsets' ) ) ); wp_enqueue_style( 'google-fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null ); } public static function PrintCss() { global $post; $is_pagebuilder = false; if ( null !== $post && get_page_template_slug( $post->ID ) === 'page-builder.php' ) { $is_pagebuilder = true; } $accent_color = quest_get_mod( 'colors_global_accent' ); $accent_shade_color = quest_get_mod( 'colors_global_accent_shade' ); $border_color = quest_get_mod( 'colors_global_border' ); $title_text = quest_get_mod( 'colors_title_text' ); $footer_text = quest_get_mod( 'colors_footer_text' ); ?> /* Theme/Text Colors */ .entry-content blockquote,.action-icon.normal,.action, .pagination>.active>a, .pagination .current, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus, .main-navigation .nav > li.current-menu-item, .main-navigation .nav > li.current-menu-parent { border-color: ; } .button, input[type="submit"],#submit,.wpcf7-submit,.action-icon.normal:after,.action-icon.normal:hover,.social-icon-container .social-icon:hover,.main-footer a.tag:hover,.pagination .current,.pagination>.active>a, .pagination>.active>span, .pagination>.active>a:hover, .pagination>.active>span:hover, .pagination>.active>a:focus, .pagination>.active>span:focus, .quest-gallery .quest-gallery-thumb .fa, .sticky-post-label,.cd-top { background-color: ; } span a, p a,a,a.tag,.pagination a,.action-icon.normal, .pagination>li>a, .pagination>li>span, .main-navigation .nav > li.current-menu-item > a, .main-navigation .nav > li.current-menu-parent > a { color: ; } span a:hover,h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover,p a:hover,a:hover,a.tag:hover,.pagination a,.pagination.post-pagination a:hover,.action-icon.normal, .pagination>li>a:hover, .pagination>li>span:hover, .pagination>li>a:focus, .pagination>li>span:focus { color: ; } .button:hover, input[type="submit"]:hover, input[type="submit"]:active, #submit:hover, .wpcf7-submit:hover, #submit:active, .wpcf7-submit:active, .button-:active { -webkit-box-shadow: 0 0 5px ; box-shadow: 0 0 5px ; background: ; } #content textarea, .wpcf7 textarea, #content select, .wpcf7 select, #content input[type="text"], .wpcf7 input[type="text"], #content input[type="password"], .wpcf7 input[type="password"], #content input[type="datetime"], .wpcf7 input[type="datetime"], #content input[type="datetime-local"], .wpcf7 input[type="datetime-local"], #content input[type="date"], .wpcf7 input[type="date"], #content input[type="month"], .wpcf7 input[type="month"], #content input[type="time"], .wpcf7 input[type="time"], #content input[type="week"], .wpcf7 input[type="week"], #content input[type="number"], .wpcf7 input[type="number"], #content input[type="email"], .wpcf7 input[type="email"], #content input[type="url"], .wpcf7 input[type="url"], #content input[type="search"], .wpcf7 input[type="search"], #content input[type="tel"], .wpcf7 input[type="tel"], #content input[type="color"], .wpcf7 input[type="color"], .entry-content blockquote, .action, a .action-icon, .action-icon, .post-grid, .recent-post, #comments .post-comments-form textarea, #comments .post-comments-form input[type=text], #comments #post-comments-form textarea, #comments #post-comments-form input[type=text], #content article.error404 .search input, #menu-item-search form input, .main-sidebar .search input { background-color: ; } #content textarea, .wpcf7 textarea, #content select, .wpcf7 select, #content input[type="text"], .wpcf7 input[type="text"], #content input[type="password"], .wpcf7 input[type="password"], #content input[type="datetime"], .wpcf7 input[type="datetime"], #content input[type="datetime-local"], .wpcf7 input[type="datetime-local"], #content input[type="date"], .wpcf7 input[type="date"], #content input[type="month"], .wpcf7 input[type="month"], #content input[type="time"], .wpcf7 input[type="time"], #content input[type="week"], .wpcf7 input[type="week"], #content input[type="number"], .wpcf7 input[type="number"], #content input[type="email"], .wpcf7 input[type="email"], #content input[type="url"], .wpcf7 input[type="url"], #content input[type="search"], .wpcf7 input[type="search"], #content input[type="tel"], .wpcf7 input[type="tel"], #content input[type="color"], .wpcf7 input[type="color"], .entry-content blockquote, .action, a .action-icon, .action-icon, .post-grid, .recent-post, #comments .post-comments-form textarea, #comments .post-comments-form input[type=text], #comments #post-comments-form textarea, #comments #post-comments-form input[type=text], #content article.error404 .search input, #menu-item-search form input, .main-sidebar .search input { color: ; } #content textarea, .wpcf7 textarea, #content select, .wpcf7 select, #content input[type="text"], .wpcf7 input[type="text"], #content input[type="password"], .wpcf7 input[type="password"], #content input[type="datetime"], .wpcf7 input[type="datetime"], #content input[type="datetime-local"], .wpcf7 input[type="datetime-local"], #content input[type="date"], .wpcf7 input[type="date"], #content input[type="month"], .wpcf7 input[type="month"], #content input[type="time"], .wpcf7 input[type="time"], #content input[type="week"], .wpcf7 input[type="week"], #content input[type="number"], .wpcf7 input[type="number"], #content input[type="email"], .wpcf7 input[type="email"], #content input[type="url"], .wpcf7 input[type="url"], #content input[type="search"], .wpcf7 input[type="search"], #content input[type="tel"], .wpcf7 input[type="tel"], #content input[type="color"], .wpcf7 input[type="color"],article.post-normal .post-image-dummy, article.page .post-image-dummy, .post .post-image-dummy, .post-half .post-image-dummy,.post-grid, .recent-post,#comments .post-comments-form textarea, #comments .post-comments-form input[type=text], #comments #post-comments-form textarea, #comments #post-comments-form input[type=text],.entry-content table,h2.section-head,article.post-normal,hr.fancy,#content article.error404 .search input,.main-header,.main-header.mobile .main-navigation .nav li:hover a,.main-header.mobile .main-navigation .nav a,.main-header.mobile .main-navigation .navbar-collapse.collapse,.main-navigation ul > li ul,#menu-item-search .dropdown-menu,#title-container,.post-image .empty-image,.pagination.post-pagination,#comments #reply-title,#comments li,#comments li li,#comments .post-comments-heading h3,#about-author,.main-sidebar .widget_nav_menu li,.main-sidebar .widget_nav_menu li ul.children,.main-sidebar .widget_categories li,.main-sidebar .widget_archive li,.main-sidebar .widget_archive li ul.children,.main-sidebar .widget_pages li,.main-sidebar .widget_pages li ul.children,.main-sidebar .widget_meta li,.main-sidebar .widget_meta li ul.children,.main-sidebar .widget_recent_comments li,.main-sidebar .widget_recent_comments li ul.children,.main-sidebar .widget_rss li,.main-sidebar .widget_rss li ul.children,.main-sidebar .widget_recent_entries li,.main-sidebar .widget_recent_entries li ul.children,.portfolio-grid-alt-bg,.pagination.post-pagination .previous,.gallery-container .gallery-item, #menu-item-search form input{ border-color: ;} #menu-item-search form .arrow-up:before { border-bottom-color: } .fancy{ background-image: linear-gradient(left, white, , white); } @media (max-width: 767px) { .main-navigation .nav{ border-color: ; }} h1,h2,h3,h4,h5,h6, h1 a,h2 a,h3 a,h4 a,h5 a,h6 a, .pagination.post-pagination a { color: ; } body {color: ; } .post-categories:before, .post-tags:before, article.post-normal .entry-meta, article.page .entry-meta, .post .entry-meta, .post-half .entry-meta, .post-date, .main-sidebar .widget_nav_menu li:before, .main-sidebar .widget_categories li:before, .main-sidebar .widget_archive li:before, .main-sidebar .widget_pages li:before, .main-sidebar .widget_meta li:before, .main-sidebar .widget_recent_comments li:before, .main-sidebar .widget_rss li:before, .main-sidebar .widget_recent_entries li:before, .comment-meta .fa { color: ; } .boxed { background-color: ; } #content { background-color: ; } .main-header{ background-color: ; border-color: ; } .main-header, .main-header a{ color: ; } .secondary-header{ color: ; background-color: ; border-top-color: ; border-bottom-color: ; } .secondary-header .social-icon-container .social-icon { color: ; } .secondary-header .social-icon-container .social-icon:hover { color: ; background-color: ;} .main-navigation .nav > li > a, .main-navigation .navbar-toggle { color: ; } .main-navigation .nav > li:hover > a { color: ; } .main-navigation .nav .dropdown-menu a { color: ; } .main-navigation .nav .dropdown-menu li:hover > a { color: ; } .main-navigation .nav .dropdown-menu { border-color: ; background-color: ; } .main-navigation .nav .dropdown-menu li:hover > a, .main-navigation .nav .dropdown-menu li:focus > a, .main-navigation .nav .dropdown-menu li.current-menu-item a, .main-navigation .nav .dropdown-menu li.current-menu-ancestor > a { background-color: ; color: ; } @media (max-width: 767px) { .main-header .main-navigation .navbar-collapse{ background-color: !important; } .main-header .main-navigation .nav li a { color: !important; } .main-header .main-navigation .nav li a:hover, .main-navigation .nav .dropdown-menu li:hover > a, .main-navigation .nav .dropdown-menu li:focus > a, .main-navigation .nav .dropdown-menu li.current-menu-item a, .main-navigation .nav .dropdown-menu li.current-menu-ancestor > a { color: !important; background-color: transparent !important; } .main-navigation .nav > li.current-menu-item, .main-navigation .nav > li.current-menu-parent{ border-color: transparent !important; } .main-navigation .nav .dropdown-menu{ background-color: transparent !important; } } #title-container { background-color: ; color: ; border-color: ; } #title-container h3 { color: ; } .main-footer{ background-color: ; color: ; } .main-footer h1 { color: ;} .main-footer p, .main-footer li { color: ; } .main-footer, .main-footer li, .main-footer li:last-child { border-color: ; } .copyright{ background-color: ; color: ; } .copyright .social-icon-container .social-icon { color: ; } .copyright .social-icon-container .social-icon:hover { color: ; background-color: ;} /* Typography */ body, .tooltip { } h1 { } h2 { } h3 { } h4 { } h5 { } h6 { } .main-navigation .nav > li > a { } .main-navigation .nav .dropdown-menu li a { } .site-title { } .site-description { } #title-container ul li{ line-height: px; } .main-sidebar .sidebar-widget { } .main-sidebar .sidebar-widget .widget-title { } .main-sidebar { } .main-footer h1, .main-footer h2, .main-footer h3 { } .copyright { } /* Background Images */ .boxed{ background-image: url(); } #title-container{ background-image: url(); } .single-post .post-normal,.single-post .post-normal h1,.single-post .post-normal h2,.single-post .post-normal h3,.single-post .post-normal h4,.single-post .post-normal h5,.single-post .post-normal h6{ text-align: center; } .single-post .post-normal .post-image{ margin-left: auto; margin-right: auto; } .single-post .post-normal #about-author .avatar{ float: none; } .single-post .post-normal,.single-post .post-normal h1,.single-post .post-normal h2,.single-post .post-normal h3,.single-post .post-normal h4,.single-post .post-normal h5,.single-post .post-normal h6{ text-align: right; } .single-post .post-normal .entry-header:after{ content: ""; display: table; clear: both; } .single-post .post-normal .entry-header > *{ float: right; clear: both; } .single-post .post-normal #about-author .avatar{ float: right; } .single-post .post-normal #about-author .author-content{ margin-left: 0; margin-right: 85px; } .page .type-page,.page .type-page h1,.page .type-page h2,.page .type-page h3,.page .type-page h4,.page .type-page h5,.page .type-page h6{ text-align: center; } .page .type-page .post-image{ margin-left: auto; margin-right: auto; } .page .type-page,.page .type-page h1,.page .type-page h2,.page .type-page h3,.page .type-page h4,.page .type-page h5,.page .type-page h6{ text-align: right; } .page .type-page .entry-header:after{ content: ""; display: table; clear: both; } .page .type-page .entry-header > *{ float: right; clear: both; }