@@ -96,6 +96,20 @@ function decode_sidebar_is_enabled() {
96
96
}
97
97
}
98
98
99
+ function decode_has_site_icon () {
100
+ if ( function_exists ( 'has_site_icon ' ) ) {
101
+ if ( has_site_icon () ) {
102
+ return true ;
103
+ }
104
+ else {
105
+ return false ;
106
+ }
107
+ }
108
+ else {
109
+ return false ;
110
+ }
111
+ }
112
+
99
113
function decode_social_icons_are_enabled () {
100
114
if ( get_theme_mod ( 'show_header_social_icons ' , false ) == true || get_theme_mod ( 'show_footer_social_icons ' , false ) == true ) {
101
115
return true ;
@@ -730,7 +744,7 @@ public static function decode_customize_register( $wp_customize ) {
730
744
'section ' => 'decode_social_options ' ,
731
745
'active_callback ' => 'decode_social_icons_are_enabled ' ,
732
746
'type ' => 'text ' ,
733
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
747
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
734
748
'priority ' => 15 ,
735
749
) );
736
750
@@ -819,7 +833,7 @@ public static function decode_customize_register( $wp_customize ) {
819
833
'section ' => 'decode_social_options ' ,
820
834
'active_callback ' => 'decode_social_icons_are_enabled ' ,
821
835
'type ' => 'text ' ,
822
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
836
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
823
837
'priority ' => 26 ,
824
838
) );
825
839
@@ -836,7 +850,7 @@ public static function decode_customize_register( $wp_customize ) {
836
850
'section ' => 'decode_social_options ' ,
837
851
'active_callback ' => 'decode_social_icons_are_enabled ' ,
838
852
'type ' => 'text ' ,
839
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
853
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
840
854
'priority ' => 28 ,
841
855
) );
842
856
@@ -893,7 +907,7 @@ public static function decode_customize_register( $wp_customize ) {
893
907
'section ' => 'decode_social_options ' ,
894
908
'active_callback ' => 'decode_social_icons_are_enabled ' ,
895
909
'type ' => 'text ' ,
896
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
910
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
897
911
'priority ' => 35 ,
898
912
) );
899
913
@@ -918,7 +932,7 @@ public static function decode_customize_register( $wp_customize ) {
918
932
'section ' => 'decode_social_options ' ,
919
933
'active_callback ' => 'decode_social_icons_are_enabled ' ,
920
934
'type ' => 'text ' ,
921
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
935
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
922
936
'priority ' => 38 ,
923
937
) );
924
938
@@ -944,7 +958,7 @@ public static function decode_customize_register( $wp_customize ) {
944
958
'section ' => 'decode_social_options ' ,
945
959
'active_callback ' => 'decode_social_icons_are_enabled ' ,
946
960
'type ' => 'text ' ,
947
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
961
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
948
962
'priority ' => 41 ,
949
963
) );
950
964
@@ -1082,7 +1096,7 @@ public static function decode_customize_register( $wp_customize ) {
1082
1096
'section ' => 'decode_social_options ' ,
1083
1097
'active_callback ' => 'decode_social_icons_are_enabled ' ,
1084
1098
'type ' => 'text ' ,
1085
- //'type' => 'email', /* Uncomment for WP >= 4.4 */
1099
+ //'type' => 'email', /* Uncomment for WP >= 4.4 */
1086
1100
'priority ' => 58 ,
1087
1101
) );
1088
1102
@@ -1091,7 +1105,7 @@ public static function decode_customize_register( $wp_customize ) {
1091
1105
'section ' => 'decode_social_options ' ,
1092
1106
'active_callback ' => 'decode_social_icons_are_enabled ' ,
1093
1107
'type ' => 'text ' ,
1094
- //'type' => 'url', /* Uncomment for WP >= 4.4 */
1108
+ //'type' => 'url', /* Uncomment for WP >= 4.4 */
1095
1109
'priority ' => 59 ,
1096
1110
) );
1097
1111
@@ -1312,7 +1326,7 @@ public static function decode_customize_register( $wp_customize ) {
1312
1326
*/
1313
1327
1314
1328
$ wp_customize ->add_section ( 'decode_other_options ' , array (
1315
- 'title ' => __ ( 'Other Options ' , 'decode ' ),
1329
+ 'title ' => __ ( 'Other Options ' , 'decode ' ),
1316
1330
'description ' => __ ( 'Custom CSS is longer recommended. This feature may be removed in a future update. To continue using your tweaks, copy and paste your CSS into a custom CSS plugin such as <a href="http://jetpack.me/install/">Jetpack</a>. Get help <a href="http://jetpack.me/support/custom-css/">here</a>. ' , 'decode ' ),
1317
1331
'priority ' => 38 ,
1318
1332
) );
0 commit comments