PluginProbe
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages / 3.4.3
Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages v3.4.3
3.4.3 3.4.2 3.4.1 3.4.0 3.3.9 3.3.8 3.3.7 3.3.6 3.3.5 3.3.4 3.3.3 3.3.2 3.3.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9 2.3.0 2.3.1 All 196 releases
convertkit / includes / integrations / class-convertkit-impeka.php

class-convertkit-impeka.php in Kit (formerly ConvertKit) – Email Newsletter, Email Marketing, Membership, Subscribers and Landing Pages 3.4.3, at includes/integrations/class-convertkit-impeka.php

51 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * ConvertKit Impeka Theme Integration.
4 *
5 * @package ConvertKit
6 * @author ConvertKit
7 */
8
9 /**
10 * Adds compatibility with the Impeka theme by adding a CSS class
11 * to the Restrict Content container if the Impeka theme is active.
12 *
13 * @since 3.1.4
14 */
15 class ConvertKit_Impeka {
16
17 /**
18 * Constructor.
19 *
20 * @since 3.1.4
21 */
22 public function __construct() {
23
24 add_filter( 'convertkit_output_restrict_content_container_css_classes', array( $this, 'maybe_add_restrict_content_container_css_classes' ) );
25
26 }
27
28 /**
29 * Adds a CSS class to the Restrict Content container if the Impeka theme is active.
30 *
31 * @since 3.1.4
32 *
33 * @param array $css_classes CSS classes for Restrict Content container.
34 * @return array
35 */
36 public function maybe_add_restrict_content_container_css_classes( $css_classes ) {
37
38 // Don't add a CSS class if the Impeka theme is not active.
39 if ( ! convertkit_is_theme_active( 'Impeka' ) ) {
40 return $css_classes;
41 }
42
43 $css_classes[] = 'grve-container';
44 return $css_classes;
45
46 }
47
48 }
49
50 new ConvertKit_Impeka();
51