Exemple #1
0
 */
require_once get_template_directory() . '/inc/structure/hooks.php';
require_once get_template_directory() . '/inc/structure/post.php';
require_once get_template_directory() . '/inc/structure/page.php';
require_once get_template_directory() . '/inc/structure/header.php';
require_once get_template_directory() . '/inc/structure/footer.php';
require_once get_template_directory() . '/inc/structure/comments.php';
require_once get_template_directory() . '/inc/structure/template-tags.php';
/**
 * Custom functions that act independently of the theme templates.
 */
require_once get_template_directory() . '/inc/functions/extras.php';
/**
 * Customizer additions.
 */
if (is_eighteen_tags_customizer_enabled()) {
    require_once get_template_directory() . '/inc/customizer/hooks.php';
    require_once get_template_directory() . '/inc/customizer/controls.php';
    require_once get_template_directory() . '/inc/customizer/display.php';
    require_once get_template_directory() . '/inc/customizer/functions.php';
    require_once get_template_directory() . '/inc/customizer/custom-header.php';
}
/**
 * Load Jetpack compatibility file.
 */
require_once get_template_directory() . '/inc/jetpack/jetpack.php';
/**
 * Welcome screen
 */
if (is_admin()) {
    require_once get_template_directory() . '/inc/admin/welcome-screen/welcome-screen.php';
Exemple #2
0
    function eighteen_tags_add_integrations_customizer_css()
    {
        if (is_eighteen_tags_customizer_enabled()) {
            $accent_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_accent_color', apply_filters('eighteen_tags_default_accent_color', '#428bca')));
            $header_text_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_header_text_color', apply_filters('eighteen_tags_default_header_text_color', '#9aa0a7')));
            $header_background_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_header_background_color', apply_filters('eighteen_tags_default_header_background_color', '#ffffff')));
            $text_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_text_color', apply_filters('eighteen_tags_default_text_color', '#60646c')));
            $button_background_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_button_background_color', apply_filters('eighteen_tags_default_button_background_color', '#60646c')));
            $button_text_color = eighteen_tags_sanitize_hex_color(get_theme_mod('eighteen_tags_button_text_color', apply_filters('eighteen_tags_default_button_text_color', '#ffffff')));
            $woocommerce_style = '';
            if (is_woocommerce_extension_activated('WC_Bookings')) {
                $woocommerce_style .= '
				#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a,
				#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.bookable a:hover,
				#wc-bookings-booking-form .block-picker li a:hover,
				#wc-bookings-booking-form .block-picker li a.selected {
					background-color: ' . $accent_color . ' !important;
				}

				#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker td.ui-state-disabled .ui-state-default,
				#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker th {
					color:' . $text_color . ';
				}

				#wc-bookings-booking-form .wc-bookings-date-picker .ui-datepicker-header {
					background-color: ' . $header_background_color . ';
					color: ' . $header_text_color . ';
				}';
            }
            if (is_woocommerce_extension_activated('WC_Product_Reviews_Pro')) {
                $woocommerce_style .= '
				.woocommerce #reviews .product-rating .product-rating-details table td.rating-graph .bar,
				.woocommerce-page #reviews .product-rating .product-rating-details table td.rating-graph .bar {
					background-color: ' . $text_color . ' !important;
				}

				.woocommerce #reviews .contribution-actions .feedback,
				.woocommerce-page #reviews .contribution-actions .feedback,
				.star-rating-selector:not(:checked) label.checkbox {
					color: ' . $text_color . ';
				}

				.woocommerce #reviews #comments ol.commentlist li .contribution-actions a,
				.woocommerce-page #reviews #comments ol.commentlist li .contribution-actions a,
				.star-rating-selector:not(:checked) input:checked ~ label.checkbox,
				.star-rating-selector:not(:checked) label.checkbox:hover ~ label.checkbox,
				.star-rating-selector:not(:checked) label.checkbox:hover,
				.woocommerce #reviews #comments ol.commentlist li .contribution-actions a,
				.woocommerce-page #reviews #comments ol.commentlist li .contribution-actions a,
				.woocommerce #reviews .form-contribution .attachment-type:not(:checked) label.checkbox:before,
				.woocommerce-page #reviews .form-contribution .attachment-type:not(:checked) label.checkbox:before {
					color: ' . $accent_color . ' !important;
				}';
            }
            if (is_woocommerce_extension_activated('WC_Smart_Coupons')) {
                $woocommerce_style .= '
				.coupon-container {
					background-color: ' . $button_background_color . ' !important;
				}

				.coupon-content {
					border-color: ' . $button_text_color . ' !important;
					color: ' . $button_text_color . ';
				}

				.sd-buttons-transparent.woocommerce .coupon-content,
				.sd-buttons-transparent.woocommerce-page .coupon-content {
					border-color: ' . $button_background_color . ' !important;
				}';
            }
            wp_add_inline_style('eighteen-tags-style', $woocommerce_style);
        }
    }