-
Notifications
You must be signed in to change notification settings - Fork 0
/
amp_vc_shortcode_styles.php
63 lines (63 loc) · 2.09 KB
/
amp_vc_shortcode_styles.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
global $amp_vc_elements_atts;
foreach ( $amp_vc_elements_atts as $slug => $atts) {
switch ($slug) {
case 'vc_column_text':
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_tta_tabs':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-tabs.css';
break;
case 'vc_tta_accordion':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-accordion.css';
break;
case 'vc_btn':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-button.css';
//echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_hoverbox':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-hoverbox.css';
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_cta':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-cta.css';
//echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_icon':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-icon.css';
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_message':
//include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-message.css';
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_separator':
//include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-separator.css';
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_text_separator':
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
case 'vc_toggle':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-toggle.css';
break;
case 'vc_single_image':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-single-image.css';
break;
case 'vc_video':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-video.css';
break;
case 'vc_gmaps':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-gmaps.css';
break;
case 'vc_basic_grid':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-posts-grid.css';
break;
case 'vc_progress_bar':
include_once AMP_WPBAKERY_PLUGIN_DIR.'assets/css/amp-vc-progress-bar.css';
echo amp_vc_shortcode_inline_css( $slug, $atts );
break;
default:
break;
}
}