Clever Fox - Version 1.1.3

Version Description

  • Remove Unnecessary Code
Download this release

Release Info

Developer nayrathemes
Plugin Icon 128x128 Clever Fox
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

clever-fox.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
- Version: 1.1.2
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
3
  Plugin Name: Clever Fox
4
  Plugin URI:
5
  Description: The Clever Fox plugin adds sections functionality to the Startkit theme and Others Nayra's Themes. This plugin for only startkit themes. Clever Fox is a plugin build to enhance the functionality of WordPress Theme made by Nayra Themes.
6
+ Version: 1.1.3
7
  Author: nayrathemes
8
  Author URI: https://nayrathemes.com
9
  Text Domain: clever-fox
inc/startkit/features/section-typography.php CHANGED
@@ -1,7 +1,6 @@
1
  <?php
2
  if ( ! function_exists( 'startkit_typography_customizer' ) ) :
3
  function startkit_typography_customizer( $wp_customize ) {
4
- $selective_refresh = isset( $wp_customize->selective_refresh ) ? 'postMessage' : 'refresh';
5
  $wp_customize->add_panel( 'startkit_typography_setting', array(
6
  'priority' => 134,
7
  'capability' => 'edit_theme_options',
@@ -62,7 +61,6 @@ $wp_customize->add_section(
62
  'default' => 'normal',
63
  'capability' => 'edit_theme_options',
64
  'sanitize_callback' => 'sanitize_text_field',
65
- 'transport' => $selective_refresh,
66
  )
67
  );
68
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -80,7 +78,6 @@ $wp_customize->add_section(
80
  array(
81
  'default' => __( '16','startkit' ),
82
  'capability' => 'edit_theme_options',
83
- 'transport' => $selective_refresh,
84
  )
85
  );
86
 
@@ -116,7 +113,6 @@ $wp_customize->add_section(
116
  'default' => 'normal',
117
  'capability' => 'edit_theme_options',
118
  'sanitize_callback' => 'sanitize_text_field',
119
- 'transport' => $selective_refresh,
120
  )
121
  );
122
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -135,8 +131,6 @@ $wp_customize->add_section(
135
  array(
136
  'default' => __( '16','startkit' ),
137
  'capability' => 'edit_theme_options',
138
- 'transport' => $selective_refresh,
139
-
140
  )
141
  );
142
 
@@ -161,7 +155,6 @@ $wp_customize->add_section(
161
  array(
162
  'default' => __( '16','startkit' ),
163
  'capability' => 'edit_theme_options',
164
- 'transport' => $selective_refresh,
165
  )
166
  );
167
 
@@ -199,7 +192,6 @@ $wp_customize->add_section(
199
  'default' => 'normal',
200
  'capability' => 'edit_theme_options',
201
  'sanitize_callback' => 'sanitize_text_field',
202
- 'transport' => $selective_refresh,
203
  )
204
  );
205
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -218,7 +210,6 @@ $wp_customize->add_section(
218
  array(
219
  'default' => '40',
220
  'capability' => 'edit_theme_options',
221
- 'transport' => $selective_refresh,
222
  )
223
  );
224
 
@@ -243,7 +234,6 @@ $wp_customize->add_section(
243
  array(
244
  'default' => __( '50','startkit' ),
245
  'capability' => 'edit_theme_options',
246
- 'transport' => $selective_refresh,
247
  )
248
  );
249
 
@@ -268,7 +258,6 @@ $wp_customize->add_section(
268
  array(
269
  'default' => 'lowercase',
270
  'capability' => 'edit_theme_options',
271
- 'transport' => $selective_refresh,
272
  )
273
  );
274
 
@@ -300,7 +289,6 @@ $wp_customize->add_section(
300
  'default' => 'normal',
301
  'capability' => 'edit_theme_options',
302
  'sanitize_callback' => 'sanitize_text_field',
303
- 'transport' => $selective_refresh,
304
  )
305
  );
306
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -319,7 +307,6 @@ $wp_customize->add_section(
319
  array(
320
  'default' => __( '36','startkit' ),
321
  'capability' => 'edit_theme_options',
322
- 'transport' => $selective_refresh,
323
  )
324
  );
325
 
@@ -344,7 +331,6 @@ $wp_customize->add_section(
344
  array(
345
  'default' => '46',
346
  'capability' => 'edit_theme_options',
347
- 'transport' => $selective_refresh,
348
  )
349
  );
350
 
@@ -369,7 +355,6 @@ $wp_customize->add_section(
369
  array(
370
  'default' => 'lowercase',
371
  'capability' => 'edit_theme_options',
372
- 'transport' => $selective_refresh,
373
  )
374
  );
375
 
@@ -391,7 +376,6 @@ $wp_customize->add_section(
391
  'title' => __('H3','startkit'),
392
  'panel' => 'startkit_typography_setting',
393
  'priority' => 3,
394
- 'transport' => $selective_refresh,
395
  )
396
  );
397
 
@@ -403,7 +387,6 @@ $wp_customize->add_section(
403
  'default' => 'normal',
404
  'capability' => 'edit_theme_options',
405
  'sanitize_callback' => 'sanitize_text_field',
406
- 'transport' => $selective_refresh,
407
  )
408
  );
409
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -422,8 +405,6 @@ $wp_customize->add_section(
422
  array(
423
  'default' => '24',
424
  'capability' => 'edit_theme_options',
425
- 'transport' => $selective_refresh,
426
-
427
  )
428
  );
429
 
@@ -448,8 +429,6 @@ $wp_customize->add_section(
448
  array(
449
  'default' => '34',
450
  'capability' => 'edit_theme_options',
451
- 'transport' => $selective_refresh,
452
-
453
  )
454
  );
455
 
@@ -474,7 +453,6 @@ $wp_customize->add_section(
474
  array(
475
  'default' => 'lowercase',
476
  'capability' => 'edit_theme_options',
477
- 'transport' => $selective_refresh,
478
  )
479
  );
480
 
@@ -506,7 +484,6 @@ $wp_customize->add_section(
506
  'default' => 'normal',
507
  'capability' => 'edit_theme_options',
508
  'sanitize_callback' => 'sanitize_text_field',
509
- 'transport' => $selective_refresh,
510
  )
511
  );
512
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -525,8 +502,6 @@ $wp_customize->add_section(
525
  array(
526
  'default' => __( '18','startkit' ),
527
  'capability' => 'edit_theme_options',
528
- 'transport' => $selective_refresh,
529
-
530
  )
531
  );
532
 
@@ -551,8 +526,6 @@ $wp_customize->add_section(
551
  array(
552
  'default' => '28',
553
  'capability' => 'edit_theme_options',
554
- 'transport' => $selective_refresh,
555
-
556
  )
557
  );
558
 
@@ -577,7 +550,6 @@ $wp_customize->add_section(
577
  array(
578
  'default' => 'lowercase',
579
  'capability' => 'edit_theme_options',
580
- 'transport' => $selective_refresh,
581
  )
582
  );
583
 
@@ -610,7 +582,6 @@ $wp_customize->add_section(
610
  'default' => 'normal',
611
  'capability' => 'edit_theme_options',
612
  'sanitize_callback' => 'sanitize_text_field',
613
- 'transport' => $selective_refresh,
614
  )
615
  );
616
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -629,8 +600,6 @@ $wp_customize->add_section(
629
  array(
630
  'default' => __( '16','startkit' ),
631
  'capability' => 'edit_theme_options',
632
- 'transport' => $selective_refresh,
633
-
634
  )
635
  );
636
 
@@ -655,8 +624,6 @@ $wp_customize->add_section(
655
  array(
656
  'default' => '15',
657
  'capability' => 'edit_theme_options',
658
- 'transport' => $selective_refresh,
659
-
660
  )
661
  );
662
 
@@ -681,7 +648,6 @@ $wp_customize->add_section(
681
  array(
682
  'default' => 'lowercase',
683
  'capability' => 'edit_theme_options',
684
- 'transport' => $selective_refresh,
685
  )
686
  );
687
 
@@ -714,7 +680,6 @@ $wp_customize->add_section(
714
  'default' => 'normal',
715
  'capability' => 'edit_theme_options',
716
  'sanitize_callback' => 'sanitize_text_field',
717
- 'transport' => $selective_refresh,
718
  )
719
  );
720
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -733,8 +698,6 @@ $wp_customize->add_section(
733
  array(
734
  'default' => __( '16','startkit' ),
735
  'capability' => 'edit_theme_options',
736
- 'transport' => $selective_refresh,
737
-
738
  )
739
  );
740
 
@@ -758,9 +721,7 @@ $wp_customize->add_section(
758
  'h6_line_height' ,
759
  array(
760
  'default' => '26',
761
- 'capability' => 'edit_theme_options',
762
- 'transport' => $selective_refresh,
763
-
764
  )
765
  );
766
 
@@ -785,7 +746,6 @@ $wp_customize->add_section(
785
  array(
786
  'default' => 'lowercase',
787
  'capability' => 'edit_theme_options',
788
- 'transport' => $selective_refresh,
789
  )
790
  );
791
 
@@ -816,7 +776,6 @@ $wp_customize->add_section(
816
  'default' => 'normal',
817
  'capability' => 'edit_theme_options',
818
  'sanitize_callback' => 'sanitize_text_field',
819
- 'transport' => $selective_refresh,
820
  )
821
  );
822
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -836,7 +795,6 @@ $wp_customize->add_section(
836
  array(
837
  'default' => __('15','startkit'),
838
  'capability' => 'edit_theme_options',
839
- 'transport' => $selective_refresh,
840
 
841
  )
842
  );
@@ -893,7 +851,6 @@ $wp_customize->add_section(
893
  'default' => 'normal',
894
  'capability' => 'edit_theme_options',
895
  'sanitize_callback' => 'sanitize_text_field',
896
- 'transport' => $selective_refresh,
897
  )
898
  );
899
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -913,7 +870,6 @@ $wp_customize->add_section(
913
  array(
914
  'default' => '36',
915
  'capability' => 'edit_theme_options',
916
- 'transport' => $selective_refresh,
917
 
918
  )
919
  );
@@ -940,7 +896,6 @@ $wp_customize->add_section(
940
  'default' => 'normal',
941
  'capability' => 'edit_theme_options',
942
  'sanitize_callback' => 'sanitize_text_field',
943
- 'transport' => $selective_refresh,
944
  )
945
  );
946
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
@@ -960,7 +915,6 @@ $wp_customize->add_section(
960
  array(
961
  'default' => __( '16','startkit' ),
962
  'capability' => 'edit_theme_options',
963
- 'transport' => $selective_refresh,
964
 
965
  )
966
  );
@@ -982,434 +936,5 @@ $wp_customize->add_section(
982
 
983
  }
984
  add_action( 'customize_register', 'startkit_typography_customizer' );
985
-
986
-
987
- // header selective refresh
988
- function startkit_home_typography_partials( $wp_customize ){
989
- // h1_font_size
990
- $wp_customize->selective_refresh->add_partial( 'h1_font_size', array(
991
- //'selector' => '#header-top .header-social',
992
- 'settings' => 'h1_font_size',
993
- 'render_callback' => 'startkit_home_h1_typography_render_callback',
994
-
995
- ) );
996
-
997
- // h1_font_weight
998
- $wp_customize->selective_refresh->add_partial( 'h1_font_weight', array(
999
- 'settings' => 'h1_font_weight',
1000
- 'render_callback' => 'startkit_home_h1_font_weight_render_callback',
1001
-
1002
- ) );
1003
-
1004
- // h1_line_height
1005
- $wp_customize->selective_refresh->add_partial( 'h1_line_height', array(
1006
- 'settings' => 'h1_line_height',
1007
- 'render_callback' => 'startkit_home_h1_line_height_render_callback',
1008
-
1009
- ) );
1010
-
1011
- // h1_text_transform
1012
- $wp_customize->selective_refresh->add_partial( 'h1_text_transform', array(
1013
- 'settings' => 'h1_text_transform',
1014
- 'render_callback' => 'startkit_home_h1_text_transform_render_callback',
1015
-
1016
- ) );
1017
-
1018
- // h2_font_size
1019
- $wp_customize->selective_refresh->add_partial( 'h2_font_size', array(
1020
- //'selector' => '#header-top .header-social',
1021
- 'settings' => 'h2_font_size',
1022
- 'render_callback' => 'startkit_home_typography_render_callback',
1023
-
1024
- ) );
1025
-
1026
- // h2_font_weight
1027
- $wp_customize->selective_refresh->add_partial( 'h2_font_weight', array(
1028
- 'settings' => 'h2_font_weight',
1029
- 'render_callback' => 'startkit_home_h2_font_weight_render_callback',
1030
-
1031
- ) );
1032
-
1033
- // h2_line_height
1034
- $wp_customize->selective_refresh->add_partial( 'h2_line_height', array(
1035
- 'settings' => 'h2_line_height',
1036
- 'render_callback' => 'startkit_home_h2_line_height_render_callback',
1037
-
1038
- ) );
1039
-
1040
- // h2_text_transform
1041
- $wp_customize->selective_refresh->add_partial( 'h2_text_transform', array(
1042
- 'settings' => 'h2_text_transform',
1043
- 'render_callback' => 'startkit_home_h2_text_transform_render_callback',
1044
-
1045
- ) );
1046
-
1047
- // h3_font_size
1048
- $wp_customize->selective_refresh->add_partial( 'h3_font_size', array(
1049
- //'selector' => '#header-top .header-social',
1050
- 'settings' => 'h3_font_size',
1051
- 'render_callback' => 'startkit_home_h3_typography_render_callback',
1052
-
1053
- ) );
1054
-
1055
- // h3_font_weight
1056
- $wp_customize->selective_refresh->add_partial( 'h3_font_weight', array(
1057
- 'settings' => 'h3_font_weight',
1058
- 'render_callback' => 'startkit_home_h3_font_weight_render_callback',
1059
-
1060
- ) );
1061
-
1062
- // h3_line_height
1063
- $wp_customize->selective_refresh->add_partial( 'h3_line_height', array(
1064
- 'settings' => 'h3_line_height',
1065
- 'render_callback' => 'startkit_home_h3_line_height_render_callback',
1066
-
1067
- ) );
1068
-
1069
- // h3_text_transform
1070
- $wp_customize->selective_refresh->add_partial( 'h3_text_transform', array(
1071
- 'settings' => 'h3_text_transform',
1072
- 'render_callback' => 'startkit_home_h3_text_transform_render_callback',
1073
-
1074
- ) );
1075
-
1076
- // h4_font_size
1077
- $wp_customize->selective_refresh->add_partial( 'h4_font_size', array(
1078
- //'selector' => '#header-top .header-social',
1079
- 'settings' => 'h4_font_size',
1080
- 'render_callback' => 'startkit_home_h4_typography_render_callback',
1081
-
1082
- ) );
1083
-
1084
- // h4_font_weight
1085
- $wp_customize->selective_refresh->add_partial( 'h4_font_weight', array(
1086
- 'settings' => 'h4_font_weight',
1087
- 'render_callback' => 'startkit_home_h4_font_weight_render_callback',
1088
-
1089
- ) );
1090
-
1091
- // h4_line_height
1092
- $wp_customize->selective_refresh->add_partial( 'h4_line_height', array(
1093
- 'settings' => 'h4_line_height',
1094
- 'render_callback' => 'startkit_home_h4_line_height_render_callback',
1095
-
1096
- ) );
1097
-
1098
- // h4_text_transform
1099
- $wp_customize->selective_refresh->add_partial( 'h4_text_transform', array(
1100
- 'settings' => 'h4_text_transform',
1101
- 'render_callback' => 'startkit_home_h4_text_transform_render_callback',
1102
-
1103
- ) );
1104
-
1105
- // h5_font_size
1106
- $wp_customize->selective_refresh->add_partial( 'h5_font_size', array(
1107
- 'settings' => 'h5_font_size',
1108
- 'render_callback' => 'startkit_home_h5_typography_render_callback',
1109
- ) );
1110
-
1111
- // h5_font_weight
1112
- $wp_customize->selective_refresh->add_partial( 'h5_font_weight', array(
1113
- 'settings' => 'h5_font_weight',
1114
- 'render_callback' => 'startkit_home_h5_font_weight_render_callback',
1115
-
1116
- ) );
1117
-
1118
- // h5_line_height
1119
- $wp_customize->selective_refresh->add_partial( 'h5_line_height', array(
1120
- 'settings' => 'h5_line_height',
1121
- 'render_callback' => 'startkit_home_h5_line_height_render_callback',
1122
-
1123
- ) );
1124
-
1125
- // h5_text_transform
1126
- $wp_customize->selective_refresh->add_partial( 'h5_text_transform', array(
1127
- 'settings' => 'h5_text_transform',
1128
- 'render_callback' => 'startkit_home_h5_text_transform_render_callback',
1129
-
1130
- ) );
1131
-
1132
- // h6_font_size
1133
- $wp_customize->selective_refresh->add_partial( 'h6_font_size', array(
1134
- //'selector' => '#header-top .header-social',
1135
- 'settings' => 'h6_font_size',
1136
- 'render_callback' => 'startkit_home_h6_typography_render_callback',
1137
-
1138
- ) );
1139
-
1140
- // h6_font_weight
1141
- $wp_customize->selective_refresh->add_partial( 'h6_font_weight', array(
1142
- 'settings' => 'h6_font_weight',
1143
- 'render_callback' => 'startkit_home_h6_font_weight_render_callback',
1144
-
1145
- ) );
1146
-
1147
- // h6_line_height
1148
- $wp_customize->selective_refresh->add_partial( 'h6_line_height', array(
1149
- 'settings' => 'h6_line_height',
1150
- 'render_callback' => 'startkit_home_h6_line_height_render_callback',
1151
-
1152
- ) );
1153
-
1154
- // h6_text_transform
1155
- $wp_customize->selective_refresh->add_partial( 'h6_text_transform', array(
1156
- 'settings' => 'h6_text_transform',
1157
- 'render_callback' => 'startkit_home_h6_text_transform_render_callback',
1158
-
1159
- ) );
1160
-
1161
- // para_font_weight
1162
- $wp_customize->selective_refresh->add_partial( 'para_font_weight', array(
1163
- 'settings' => 'para_font_weight',
1164
- 'render_callback' => 'startkit_home_para_font_weight_render_callback',
1165
-
1166
- ) );
1167
-
1168
- // paragraph_font_size
1169
- $wp_customize->selective_refresh->add_partial( 'paragraph_font_size', array(
1170
- 'settings' => 'paragraph_font_size',
1171
- 'render_callback' => 'startkit_home_paragraph_font_size_render_callback',
1172
-
1173
- ) );
1174
-
1175
- // paragraph_line_height
1176
- $wp_customize->selective_refresh->add_partial( 'paragraph_line_height', array(
1177
- 'settings' => 'paragraph_line_height',
1178
- 'render_callback' => 'startkit_home_paragraph_line_height_render_callback',
1179
-
1180
- ) );
1181
-
1182
- // menu_font_weight
1183
- $wp_customize->selective_refresh->add_partial( 'menu_font_weight', array(
1184
- 'settings' => 'menu_font_weight',
1185
- 'render_callback' => 'startkit_home_menu_font_weight_render_callback',
1186
-
1187
- ) );
1188
-
1189
- // menu_font_size
1190
- $wp_customize->selective_refresh->add_partial( 'menu_font_size', array(
1191
- 'settings' => 'menu_font_size',
1192
- //'selector' => '.main-menu ul',
1193
- 'render_callback' => 'startkit_home_menu_font_size_render_callback',
1194
-
1195
- ) );
1196
-
1197
- // section_des_font_weight
1198
- $wp_customize->selective_refresh->add_partial( 'section_des_font_weight', array(
1199
- 'settings' => 'section_des_font_weight',
1200
- 'render_callback' => 'startkit_home_section_des_font_weight_render_callback',
1201
-
1202
- ) );
1203
-
1204
- // section_desc_font_size
1205
- $wp_customize->selective_refresh->add_partial( 'section_desc_font_size', array(
1206
- 'settings' => 'section_desc_font_size',
1207
- 'render_callback' => 'startkit_home_section_desc_font_size_render_callback',
1208
-
1209
- ) );
1210
- // section_tit_font_weight
1211
- $wp_customize->selective_refresh->add_partial( 'section_tit_font_weight', array(
1212
- 'settings' => 'section_tit_font_weight',
1213
- 'render_callback' => 'startkit_home_section_section_tit_font_weight_render_callback',
1214
-
1215
- ) );
1216
-
1217
- // section_tit_font_size
1218
- $wp_customize->selective_refresh->add_partial( 'section_tit_font_size', array(
1219
- 'settings' => 'section_tit_font_size',
1220
- 'render_callback' => 'startkit_home_section_section_tit_font_size_render_callback',
1221
-
1222
- ) );
1223
- // body_font_size
1224
- $wp_customize->selective_refresh->add_partial( 'body_font_size', array(
1225
- 'settings' => 'body_font_size',
1226
- 'render_callback' => 'startkit_home_section_body_font_size_render_callback',
1227
-
1228
- ) );
1229
-
1230
- // body_typography_font_weight
1231
- $wp_customize->selective_refresh->add_partial( 'body_typography_font_weight', array(
1232
- 'settings' => 'body_typography_font_weight',
1233
- 'render_callback' => 'startkit_home_section_body_typography_font_weight_render_callback',
1234
-
1235
- ) );
1236
- // widget_font_weight
1237
- $wp_customize->selective_refresh->add_partial( 'widget_font_weight', array(
1238
- 'settings' => 'widget_font_weight',
1239
- 'render_callback' => 'startkit_home_widget_font_weight_size_render_callback',
1240
-
1241
- ) );
1242
-
1243
- // widget_font_size
1244
- $wp_customize->selective_refresh->add_partial( 'widget_font_size', array(
1245
- 'settings' => 'widget_font_size',
1246
- 'render_callback' => 'startkit_home_widget_font_size_render_callback',
1247
-
1248
- ) );
1249
-
1250
-
1251
- }
1252
-
1253
- add_action( 'customize_register', 'startkit_home_typography_partials' );
1254
  endif;
1255
- // h1_font_size
1256
- function startkit_home_h1_typography_render_callback() {
1257
- return get_theme_mod( 'h1_font_size' );
1258
- }
1259
-
1260
- // h1_font_weight
1261
- function startkit_home_h1_font_weight_render_callback() {
1262
- return get_theme_mod( 'h1_font_weight' );
1263
- }
1264
- // h1_line_height
1265
- function startkit_home_h1_line_height_render_callback() {
1266
- return get_theme_mod( 'h1_line_height' );
1267
- }
1268
- // h1_text_transform
1269
- function startkit_home_h1_text_transform_render_callback() {
1270
- return get_theme_mod( 'h1_text_transform' );
1271
- }
1272
-
1273
- // h2_font_size
1274
- function startkit_home_typography_render_callback() {
1275
- return get_theme_mod( 'h2_font_size' );
1276
- }
1277
-
1278
- // h2_font_weight
1279
- function startkit_home_h2_font_weight_render_callback() {
1280
- return get_theme_mod( 'h2_font_weight' );
1281
- }
1282
- // h2_line_height
1283
- function startkit_home_h2_line_height_render_callback() {
1284
- return get_theme_mod( 'h2_line_height' );
1285
- }
1286
- // h2_text_transform
1287
- function startkit_home_h2_text_transform_render_callback() {
1288
- return get_theme_mod( 'h2_text_transform' );
1289
- }
1290
-
1291
- // h3_font_size
1292
- function startkit_home_h3_typography_render_callback() {
1293
- return get_theme_mod( 'h3_font_size' );
1294
- }
1295
-
1296
- // h3_font_weight
1297
- function startkit_home_h3_font_weight_render_callback() {
1298
- return get_theme_mod( 'h3_font_weight' );
1299
- }
1300
- // h3_line_height
1301
- function startkit_home_h3_line_height_render_callback() {
1302
- return get_theme_mod( 'h3_line_height' );
1303
- }
1304
- // h3_text_transform
1305
- function startkit_home_h3_text_transform_render_callback() {
1306
- return get_theme_mod( 'h3_text_transform' );
1307
- }
1308
-
1309
- // h4_font_size
1310
- function startkit_home_h4_typography_render_callback() {
1311
- return get_theme_mod( 'h4_font_size' );
1312
- }
1313
-
1314
- // h4_font_weight
1315
- function startkit_home_h4_font_weight_render_callback() {
1316
- return get_theme_mod( 'h4_font_weight' );
1317
- }
1318
- // h3_line_height
1319
- function startkit_home_h4_line_height_render_callback() {
1320
- return get_theme_mod( 'h4_line_height' );
1321
- }
1322
- // h3_text_transform
1323
- function startkit_home_h4_text_transform_render_callback() {
1324
- return get_theme_mod( 'h4_text_transform' );
1325
- }
1326
-
1327
- // h5_font_size
1328
- function startkit_home_h5_typography_render_callback() {
1329
- return get_theme_mod( 'h5_font_size' );
1330
- }
1331
-
1332
- // h5_font_weight
1333
- function startkit_home_h5_font_weight_render_callback() {
1334
- return get_theme_mod( 'h5_font_weight' );
1335
- }
1336
- // h5_line_height
1337
- function startkit_home_h5_line_height_render_callback() {
1338
- return get_theme_mod( 'h5_line_height' );
1339
- }
1340
- // h5_text_transform
1341
- function startkit_home_h5_text_transform_render_callback() {
1342
- return get_theme_mod( 'h5_text_transform' );
1343
- }
1344
-
1345
- // h6_font_size
1346
- function startkit_home_h6_typography_render_callback() {
1347
- return get_theme_mod( 'h6_font_size' );
1348
- }
1349
-
1350
- // h6_font_weight
1351
- function startkit_home_h6_font_weight_render_callback() {
1352
- return get_theme_mod( 'h6_font_weight' );
1353
- }
1354
- // h6_line_height
1355
- function startkit_home_h6_line_height_render_callback() {
1356
- return get_theme_mod( 'h6_line_height' );
1357
- }
1358
- // h6_text_transform
1359
- function startkit_home_h6_text_transform_render_callback() {
1360
- return get_theme_mod( 'h6_text_transform' );
1361
- }
1362
-
1363
- // para_font_weight
1364
- function startkit_home_para_font_weight_render_callback() {
1365
- return get_theme_mod( 'para_font_weight' );
1366
- }
1367
- // paragraph_font_size
1368
- function startkit_home_paragraph_font_size_render_callback() {
1369
- return get_theme_mod( 'paragraph_font_size' );
1370
- }
1371
- // paragraph_line_height
1372
- function startkit_home_paragraph_line_height_render_callback() {
1373
- return get_theme_mod( 'paragraph_line_height' );
1374
- }
1375
- // menu_font_weight
1376
- function startkit_home_menu_font_weight_render_callback() {
1377
- return get_theme_mod( 'menu_font_weight' );
1378
- }
1379
- // menu_font_size
1380
- function startkit_home_menu_font_size_render_callback() {
1381
- return get_theme_mod( 'menu_font_size' );
1382
- }
1383
- // section_des_font_weight
1384
- function startkit_home_section_des_font_weight_render_callback() {
1385
- return get_theme_mod( 'section_des_font_weight' );
1386
- }
1387
- // section_desc_font_size
1388
- function startkit_home_section_desc_font_size_render_callback() {
1389
- return get_theme_mod( 'section_desc_font_size' );
1390
- }
1391
- // section_tit_font_weight
1392
- function startkit_home_section_section_tit_font_weight_render_callback() {
1393
- return get_theme_mod( 'section_tit_font_weight' );
1394
- }
1395
- // section_tit_font_size
1396
- function startkit_home_section_section_tit_font_size_render_callback() {
1397
- return get_theme_mod( 'section_tit_font_size' );
1398
- }
1399
- // body_font_size
1400
- function startkit_home_section_body_font_size_render_callback() {
1401
- return get_theme_mod( 'body_font_size' );
1402
- }
1403
- // body_typography_font_weight
1404
- function startkit_home_section_body_typography_font_weight_render_callback() {
1405
- return get_theme_mod( 'body_typography_font_weight' );
1406
- }
1407
- // widget_font_weight
1408
- function startkit_home_widget_font_weight_size_render_callback() {
1409
- return get_theme_mod( 'widget_font_weight' );
1410
- }
1411
- // widget_font_size
1412
- function startkit_home_widget_font_size_render_callback() {
1413
- return get_theme_mod( 'widget_font_size' );
1414
- }
1415
  ?>
1
  <?php
2
  if ( ! function_exists( 'startkit_typography_customizer' ) ) :
3
  function startkit_typography_customizer( $wp_customize ) {
 
4
  $wp_customize->add_panel( 'startkit_typography_setting', array(
5
  'priority' => 134,
6
  'capability' => 'edit_theme_options',
61
  'default' => 'normal',
62
  'capability' => 'edit_theme_options',
63
  'sanitize_callback' => 'sanitize_text_field',
 
64
  )
65
  );
66
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
78
  array(
79
  'default' => __( '16','startkit' ),
80
  'capability' => 'edit_theme_options',
 
81
  )
82
  );
83
 
113
  'default' => 'normal',
114
  'capability' => 'edit_theme_options',
115
  'sanitize_callback' => 'sanitize_text_field',
 
116
  )
117
  );
118
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
131
  array(
132
  'default' => __( '16','startkit' ),
133
  'capability' => 'edit_theme_options',
 
 
134
  )
135
  );
136
 
155
  array(
156
  'default' => __( '16','startkit' ),
157
  'capability' => 'edit_theme_options',
 
158
  )
159
  );
160
 
192
  'default' => 'normal',
193
  'capability' => 'edit_theme_options',
194
  'sanitize_callback' => 'sanitize_text_field',
 
195
  )
196
  );
197
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
210
  array(
211
  'default' => '40',
212
  'capability' => 'edit_theme_options',
 
213
  )
214
  );
215
 
234
  array(
235
  'default' => __( '50','startkit' ),
236
  'capability' => 'edit_theme_options',
 
237
  )
238
  );
239
 
258
  array(
259
  'default' => 'lowercase',
260
  'capability' => 'edit_theme_options',
 
261
  )
262
  );
263
 
289
  'default' => 'normal',
290
  'capability' => 'edit_theme_options',
291
  'sanitize_callback' => 'sanitize_text_field',
 
292
  )
293
  );
294
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
307
  array(
308
  'default' => __( '36','startkit' ),
309
  'capability' => 'edit_theme_options',
 
310
  )
311
  );
312
 
331
  array(
332
  'default' => '46',
333
  'capability' => 'edit_theme_options',
 
334
  )
335
  );
336
 
355
  array(
356
  'default' => 'lowercase',
357
  'capability' => 'edit_theme_options',
 
358
  )
359
  );
360
 
376
  'title' => __('H3','startkit'),
377
  'panel' => 'startkit_typography_setting',
378
  'priority' => 3,
 
379
  )
380
  );
381
 
387
  'default' => 'normal',
388
  'capability' => 'edit_theme_options',
389
  'sanitize_callback' => 'sanitize_text_field',
 
390
  )
391
  );
392
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
405
  array(
406
  'default' => '24',
407
  'capability' => 'edit_theme_options',
 
 
408
  )
409
  );
410
 
429
  array(
430
  'default' => '34',
431
  'capability' => 'edit_theme_options',
 
 
432
  )
433
  );
434
 
453
  array(
454
  'default' => 'lowercase',
455
  'capability' => 'edit_theme_options',
 
456
  )
457
  );
458
 
484
  'default' => 'normal',
485
  'capability' => 'edit_theme_options',
486
  'sanitize_callback' => 'sanitize_text_field',
 
487
  )
488
  );
489
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
502
  array(
503
  'default' => __( '18','startkit' ),
504
  'capability' => 'edit_theme_options',
 
 
505
  )
506
  );
507
 
526
  array(
527
  'default' => '28',
528
  'capability' => 'edit_theme_options',
 
 
529
  )
530
  );
531
 
550
  array(
551
  'default' => 'lowercase',
552
  'capability' => 'edit_theme_options',
 
553
  )
554
  );
555
 
582
  'default' => 'normal',
583
  'capability' => 'edit_theme_options',
584
  'sanitize_callback' => 'sanitize_text_field',
 
585
  )
586
  );
587
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
600
  array(
601
  'default' => __( '16','startkit' ),
602
  'capability' => 'edit_theme_options',
 
 
603
  )
604
  );
605
 
624
  array(
625
  'default' => '15',
626
  'capability' => 'edit_theme_options',
 
 
627
  )
628
  );
629
 
648
  array(
649
  'default' => 'lowercase',
650
  'capability' => 'edit_theme_options',
 
651
  )
652
  );
653
 
680
  'default' => 'normal',
681
  'capability' => 'edit_theme_options',
682
  'sanitize_callback' => 'sanitize_text_field',
 
683
  )
684
  );
685
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
698
  array(
699
  'default' => __( '16','startkit' ),
700
  'capability' => 'edit_theme_options',
 
 
701
  )
702
  );
703
 
721
  'h6_line_height' ,
722
  array(
723
  'default' => '26',
724
+ 'capability' => 'edit_theme_options',
 
 
725
  )
726
  );
727
 
746
  array(
747
  'default' => 'lowercase',
748
  'capability' => 'edit_theme_options',
 
749
  )
750
  );
751
 
776
  'default' => 'normal',
777
  'capability' => 'edit_theme_options',
778
  'sanitize_callback' => 'sanitize_text_field',
 
779
  )
780
  );
781
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
795
  array(
796
  'default' => __('15','startkit'),
797
  'capability' => 'edit_theme_options',
 
798
 
799
  )
800
  );
851
  'default' => 'normal',
852
  'capability' => 'edit_theme_options',
853
  'sanitize_callback' => 'sanitize_text_field',
 
854
  )
855
  );
856
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
870
  array(
871
  'default' => '36',
872
  'capability' => 'edit_theme_options',
 
873
 
874
  )
875
  );
896
  'default' => 'normal',
897
  'capability' => 'edit_theme_options',
898
  'sanitize_callback' => 'sanitize_text_field',
 
899
  )
900
  );
901
  $wp_customize->add_control(new Startkit_Customizer_Select_Control($wp_customize,
915
  array(
916
  'default' => __( '16','startkit' ),
917
  'capability' => 'edit_theme_options',
 
918
 
919
  )
920
  );
936
 
937
  }
938
  add_action( 'customize_register', 'startkit_typography_customizer' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
939
  endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
  ?>
readme.txt CHANGED
@@ -31,6 +31,9 @@ Clever Fox WordPress plugin is licensed under the GPL3 (https://www.gnu.org/lice
31
 
32
 
33
  == Changelog ==
 
 
 
34
  = 1.1.2 =
35
  * Fixed Debug Error
36
 
31
 
32
 
33
  == Changelog ==
34
+ = 1.1.3 =
35
+ * Remove Unnecessary Code
36
+
37
  = 1.1.2 =
38
  * Fixed Debug Error
39