���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/dr.rickard.co/wp-content/themes/caster/include/functions/theme-options-css.php
���ѧ٧ѧ�
<?php /** * Theme Options CSS * */ /** * Generate the CSS for the theme options. */ if ( ! function_exists( 'caster_theme_options_css' ) ) { function caster_theme_options_css() { $accent_color = caster_get_option( 'accent-color' ); $body_background = caster_get_option( 'body-background-color' ); $body_font = caster_get_option( 'body-font' ); $heading_font = caster_get_option( 'heading-font' ); $h1_font = caster_get_option( 'h1-font' ); $h2_font = caster_get_option( 'h2-font' ); $h3_font = caster_get_option( 'h3-font' ); $h4_font = caster_get_option( 'h4-font' ); $h5_font = caster_get_option( 'h5-font' ); $h6_font = caster_get_option( 'h6-font' ); $p_font = caster_get_option( 'p-font' ); $theme_options_css = ' a:hover, .post .entry-header .entry-meta span a:hover time, .post .entry-header .entry-meta span a:hover, .attachment .entry-header .entry-meta span a:hover time, .attachment .entry-header .entry-meta span a:hover, .post .entry-footer .footer-links .tags-links a:hover, .attachment .entry-footer .footer-links .tags-links a:hover, .post .entry-footer .socials-share-links ul li a:hover, .attachment .entry-footer .socials-share-links ul li a:hover, .comment-body .reply .comment-reply-link:hover, .widget_rss li .rsswidget:hover, .widget a:hover, .page-links a:hover span, .comment-metadata .comment-edit-link:hover, .wp-block-tag-cloud a:hover, .caster-portfolio-wrap .cbp-l-filters-text .cbp-filter-item.cbp-filter-item-active, .caster-portfolio-wrap .cbp-l-subfilters .cbp-filter-item.cbp-filter-item-active, .caster-portfolio-wrap .cbp-l-filters-text .cbp-filter-item:hover, .caster-portfolio-wrap .cbp-l-subfilters .cbp-filter-item:hover, .accent-color, .cta a:hover, .single-portfolio .portfolio .entry-meta .meta-entries ul li a:hover, .single-portfolio .portfolio .entry-meta .meta-entries ul li.portfolio-social-share-links a:hover, .portfolio-navigation-wrap .portfolio-navigation .portfolio-navigation-title a:hover h3, .page-links > a:hover { color:' . esc_html( $accent_color ) . '; } .wp-block-button__link, .wp-block-file .wp-block-file__button, .wp-block-search .wp-block-search__button, #masthead.site-header.standard #site-navigation .menu > li > a:after, .cbp.cbp-caption-custom-effect .view-project:after, .site-footer .social-links-menu li:after, h2.widget-title:after { background-color: ' . esc_html( $accent_color ) . '; } .wp-block-search .wp-block-search__button { background: ' . esc_html( $accent_color ) . '; } body.light a:hover, body.light .post .entry-footer .socials-share-links ul li a:hover, body.light .attachment .entry-footer .socials-share-links ul li a:hover, body.light .post .entry-header .entry-meta span a:hover, body.light .attachment .entry-header .entry-meta span a:hover, body.light .post .entry-header .entry-meta span a:hover time, body.light .widget_rss li .rsswidget:hover, body.light .wp-tag-cloud li a:hover, body.light .widget ul li a:hover, body.light.single-portfolio .portfolio .entry-meta .meta-entries ul li a:hover{ color:' . esc_html( $accent_color ) . '; } body.light .wp-block-button__link, body.light .wp-block-file .wp-block-file__button, body.light .wp-block-search .wp-block-search__button, body.light .post .entry-content .link-more .more-link, body.light .attachment .entry-content .link-more .more-link, body.light .post .entry-content .link-more .more-link:hover, body.light .attachment .entry-content .link-more .more-link:hover, body.light #masthead.site-header.standard #site-navigation .menu > li > a:after, body.light .cbp.cbp-caption-custom-effect .view-project:after, h2.widget-title:after, body.light .portfolio-split-slider .btn-container a, body.light input[type="button"], body.light input[type="submit"] { background-color:' . esc_html( $accent_color ) . '; } body.light .caster-swiper-slider-wrap .swiper-pagination-bullet-active, body.light .caster-swiper-container .swiper-pagination-bullet-active { background:' . esc_html( $accent_color ) . '; } @media (max-width:991px){ #masthead.site-header #site-navigation .menu > li:hover > a, #masthead.site-header #site-navigation .menu > li.current-menu-item > a, #masthead.site-header #site-navigation .menu > li.current-menu-ancestor > a, #masthead.site-header #site-navigation .menu > li:hover > a, #masthead.site-header #site-navigation .menu > li ul > li:hover > a { color: ' . esc_html( $accent_color ) . '; } } @media (max-width:1199px){ #masthead.site-header.left-sidebar-menu #site-navigation .menu > li:hover > a, #masthead.site-header.left-sidebar-menu #site-navigation .menu > li.current-menu-item > a, #masthead.site-header.left-sidebar-menu #site-navigation .menu > li.current-menu-ancestor > a, #masthead.site-header.left-sidebar-menu #site-navigation .menu > li:hover > a, #masthead.site-header.left-sidebar-menu #site-navigation .menu > li ul > li:hover > a { color: ' . esc_html( $accent_color ) . '; } } body { background-color: ' . esc_html( $body_background[ 'background-color' ] ) . '; background-image: url( ' . esc_url( isset( $body_background[ 'background-image' ] ) ? $body_background[ 'background-image' ] : '' ) . '); background-repeat: ' . esc_html( $body_background[ 'background-repeat' ] ) . '; background-position: ' . esc_html( $body_background[ 'background-position' ] ) . '; background-size: ' . esc_html( $body_background[ 'background-size' ] ) . '; background-attachment: ' . esc_html( $body_background[ 'background-attachment' ] ) . '; } .portfolio-listing-wrap.listing-zigzag .pl-media:after, .portfolio-listing-wrap.listing-zigzag .cbp-caption-defaultWrap:after, .portfolio-listing-wrap.listing-vertical-alt .pl-media:after, .portfolio-listing-wrap.listing-vertical-alt .cbp-caption-defaultWrap:after, .portfolio-listing-wide .pl-media:after, .portfolio-listing-wrap.listing-vertical .pl-media:after, .portfolio-listing-wide .cbp-caption-defaultWrap:after{ border-color: ' . esc_html( $body_background[ 'background-color' ] ) . '; } .swiper-container.single-project:before, .caster-swiper-container.single-project:before { background-color: ' . esc_html( $body_background[ 'background-color' ] ) . '; } body, .caster-portfolio-wrap .cbp-l-grid-agency-desc, .caster-portfolio-wrap .cbp-l-caption-desc, input, textarea, select, .caster-portfolio-wrap .cbp-l-filters-text .cbp-filter-item, .caster-portfolio-wrap .cbp-l-subfilters .cbp-filter-item, .page-links a, .page-links span, .tags-links a, button, input[type="button"], input[type="submit"], .wp-block-button__link, .wp-block-file .wp-block-file__button, .load-more a, .link-more .more-link { font-family: ' . esc_html( $body_font[ 'font-family' ] ) . '; } h1, h2, h3, h4, h5, h6, .post .entry-footer .footer-links .tags-links, .attachment .entry-footer .footer-links .tags-links, .comment-author, .comment-author .fn, .widget_rss li .rsswidget, dt, blockquote, .wp-block-latest-comments .wp-block-latest-comments__comment-meta a, .wp-block-latest-posts.wp-block-latest-posts__list > li > a, .single-portfolio .portfolio .entry-header .entry-title, .testimonials .tml-content p, .cta .cta-background-text, .cta a, .vertical-text p, .caster-portfolio-wrap .cbp-l-grid-agency-title, .caster-portfolio-wrap .cbp-l-caption-title, .elementor-slideshow__title, .elementor-widget-progress .elementor-title, #masthead.site-header.left-sidebar-menu .contact-info, #masthead.site-header.left-sidebar-menu .contact-info *, .page-links { font-family: ' . esc_html( $heading_font[ 'font-family' ] ) . '; } h1 { font-size: '. esc_html( $h1_font[ 'font-size' ] ) .'; } h2 { font-size: '. esc_html( $h2_font[ 'font-size' ] ) .'; } h3 { font-size: '. esc_html( $h3_font[ 'font-size' ] ) .'; } h4 { font-size: '. esc_html( $h4_font[ 'font-size' ] ) .'; } h5 { font-size: '. esc_html( $h5_font[ 'font-size' ] ) .'; } h6 { font-size: '. esc_html( $h6_font[ 'font-size' ] ) .'; } p { font-size: '. esc_html( $p_font[ 'font-size' ] ) .'; } '; wp_add_inline_style( 'caster-style', caster_minify_css( $theme_options_css ) ); } } add_action( 'wp_enqueue_scripts', 'caster_theme_options_css' );
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�