LLMS_Twenty_Twenty::add_inline_styles()
Generate inline CSS using colors from the TwenyTwenty Theme settings.
Contents
Return Return
(void)
Source Source
File: includes/theme-support/class-llms-twenty-twenty.php
public static function add_inline_styles() { global $post_type; $accent = sanitize_hex_color( twentytwenty_get_color_for_area( 'content', 'accent' ) ); ?> <style id="llms-twentytweny-style"> .llms-access-plan.featured .llms-access-plan-content, .llms-access-plan.featured .llms-access-plan-footer { border-left-color: <?php echo $accent; ?>; border-right-color: <?php echo $accent; ?>; } .llms-access-plan.featured .llms-access-plan-footer { border-bottom-color: <?php echo $accent; ?>; } .llms-form-field.type-radio input[type=radio]:checked+label:before { background-image: -webkit-radial-gradient(center,ellipse,<?php echo $accent; ?> 0,<?php echo $accent; ?> 40%,#fafafa 45%); background-image: radial-gradient(ellipse at center,<?php echo $accent; ?> 0,<?php echo $accent; ?> 40%,#fafafa 45%); } .llms-checkout-section, .llms-lesson-preview section.llms-main { padding-bottom: 0; padding-top: 0; } .llms-lesson-link .llms-pre-text, .llms-access-plan .llms-access-plan-title { margin-top: 0; } .llms-donut svg path { stroke: <?php echo $accent; ?>; } .llms-notification, .llms-instructor-info .llms-instructors .llms-author { border-top-color: <?php echo $accent; ?>; } .llms-pagination ul li:first-of-type, .llms-pagination ul { margin-left: 0; margin-right: 0; } .course .llms-meta-info { margin-left: auto; margin-right: auto; } <?php if ( 'llms_my_certificate' === $post_type || 'llms_certificate' === $post_type ) : ?> body { background-color: #fff; background-image: none; } #site-header, #site-footer { display: none; } <?php endif; ?> </style> <?php }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.37.3 | Hide site header and footer, and set a white body background in single certificates. |
3.37.1 | Fixed course information block misalignment. |
3.37.0 | Introduced. |