-
Notifications
You must be signed in to change notification settings - Fork 0
/
pro-demo.php
95 lines (93 loc) · 2.91 KB
/
pro-demo.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
/*add new shortcodes demo*/
function smpro_new_shortcode_items( $items ) {
$items['button_group'] = array(
'section' => 'Content',
'label' => __( 'Button Group (Pro)', 'sm' ),
'pro' => true
);
$items['card'] = array(
'section' => 'Content',
'label' => __( 'Card (Pro)', 'sm' ),
'pro' => true
);
$items['card_group'] = array(
'section' => 'Content',
'label' => __( 'Card Group (Pro)', 'sm' ),
'pro' => true
);
$items['jumbotron'] = array(
'section' => 'Content',
'label' => __( 'Jumbotron (Pro)', 'sm' ),
'pro' => true
);
$items['list_group'] = array(
'section' => 'Content',
'label' => __( 'List Group (Pro)', 'sm' ),
'pro' => true
);
$items['carousel'] = array(
'section' => 'Content',
'label' => __( 'Carousel (Pro)', 'sm' ),
'pro' => true
);
return $items;
}
add_filter( 'smps_shortcode_items', 'smpro_new_shortcode_items' );
/*tabs*/
add_action( 'sm_bottom_settings_button_group', function () {
?>
<p class="alert alert-danger"><?php _e( 'Pro Features', 'sm' ); ?></p>
<div class="form-group">
<label><?php _e( 'Layout Type', 'sm' ); ?></label>
<select class="form-control" disabled>
<option><?php _e( 'Select Layout Type', 'sm' ); ?></option>
</select>
</div>
<?php
});
/*tabs*/
add_action( 'sm_bottom_settings_tabs', function () {
?>
<p class="alert alert-danger"><?php _e( 'Pro Features', 'sm' ); ?></p>
<div class="form-group">
<label><?php _e( 'Layout Type', 'sm' ); ?></label>
<select class="form-control" disabled>
<option><?php _e( 'Select Layout Type', 'sm' ); ?></option>
</select>
</div>
<?php
});
/*alert*/
add_action( 'sm_bottom_settings_alert', function() {
?>
<p class="alert alert-danger"><?php _e( 'Pro Features', 'sm' ); ?></p>
<div class="form-group">
<div class="mb10">
<label><?php _e( 'Heading Text', 'sm' ); ?></label>
<input type="text" class="form-control" disabled>
</div>
<div class="mb10">
<label><?php _e( 'Footer Text', 'sm' ); ?></label>
<input type="text" class="form-control" disabled>
</div>
</div>
<?php
});
/*button*/
add_action( 'sm_bottom_settings_button', function() {
?>
<div class="form-group">
<p class="alert alert-danger"><?php _e( 'Pro Features', 'sm' ); ?></p>
<div class="mb10">
<label><input disabled type="checkbox"><?php _e( 'Is Outlined ?', 'sm' ); ?></label>
</div>
<div class="mb10">
<label><input disabled type="checkbox"><?php _e( 'Is Active ?', 'sm' ); ?></label>
</div>
<div class="mb10">
<label><input disabled type="checkbox"><?php _e( 'Is Disabled ?', 'sm' ); ?></label>
</div>
</div>
<?php
});