/home/tuzdhajd/ablacktime.com/wp-content/themes/Ablacktime/library/app.php
<?php

/**
 * Theme settings
 *
 * @param array $settings
 * @return array
 */
function theme_app_settings($settings) {
    return json_decode(<<<JSON
    {
    "colorScheme": {
        "bodyColors": [
            "#111111",
            "#ffffff"
        ],
        "bgColor": "#ffffff",
        "colors": [
            "#acaeb0",
            "#b0afaf",
            "#000000",
            "#000000",
            "#b9c1cc"
        ],
        "shadingContrast": "body-alt-color",
        "whiteContrast": "body-color",
        "bgContrast": "body-color",
        "name": "u13"
    },
    "fontScheme": {
        "name": "Oswald-OpenSans",
        "isDefault": true,
        "fonts": {
            "heading": "Oswald, sans-serif",
            "text": "Open Sans, sans-serif",
            "accent": "Arial, sans-serif",
            "headingTitle": "Oswald",
            "textTitle": "Open Sans"
        }
    },
    "typography": {
        "name": "custom-page-typography-10",
        "title": {
            "font-size": 6,
            "line-height": "1_1",
            "margin-top": 20,
            "margin-bottom": 20,
            "LG": {
                "font-size": 4.5
            },
            "SM": {
                "font-size": 3.75
            },
            "XS": {
                "font-size": 3
            },
            "font-weight": "500"
        },
        "subtitle": {
            "font-size": 3,
            "line-height": "1_1",
            "margin-top": 20,
            "margin-bottom": 20,
            "SM": {
                "font-size": 2.25
            },
            "XS": {
                "font-size": 1.875
            },
            "font-weight": "500"
        },
        "h1": {
            "font-size": 4.5,
            "line-height": "1_1",
            "margin-top": 20,
            "margin-bottom": 20,
            "LG": {
                "font-size": 3.75
            },
            "SM": {
                "font-size": 3
            },
            "XS": {
                "font-size": 2.25
            },
            "font-weight": "500"
        },
        "h2": {
            "font-size": 3,
            "line-height": "1_1",
            "margin-top": 20,
            "margin-bottom": 20,
            "SM": {
                "font-size": 2.25
            },
            "XS": {
                "font-size": 1.875
            },
            "font-weight": "500"
        },
        "h3": {
            "font-size": 2.25,
            "line-height": "1_2",
            "margin-top": 20,
            "margin-bottom": 20,
            "SM": {
                "font-size": 1.875
            },
            "XS": {
                "font-size": 1.5
            },
            "font-weight": "500"
        },
        "h4": {
            "font-size": 1.5,
            "line-height": "1_2",
            "margin-top": 20,
            "margin-bottom": 20,
            "font-weight": "500"
        },
        "h5": {
            "font-size": 1.25,
            "line-height": "1_2",
            "margin-top": 20,
            "margin-bottom": 20,
            "font-weight": "500"
        },
        "h6": {
            "font-size": 1.125,
            "line-height": "1_2",
            "margin-top": 20,
            "margin-bottom": 20,
            "font-weight": "500"
        },
        "largeText": {
            "font-size": 1.5,
            "margin-top": 20,
            "margin-bottom": 20
        },
        "smallText": {
            "font-size": 0.875,
            "margin-top": 20,
            "margin-bottom": 20
        },
        "text": {
            "font-size": 1.125,
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "hyperlink": {
            "font-size": 1.125,
            "text-color": "palette-1-base",
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "link": {},
        "button": {
            "color": "white",
            "margin-top": 20,
            "margin-bottom": 20,
            "border-top-style": "none",
            "border-left-style": "none",
            "border-right-style": "none",
            "border-bottom-style": "none"
        },
        "blockquote": {
            "font-size": 1.125,
            "font-style": "italic",
            "indent": 20,
            "border": 4,
            "border-color": "palette-1-base",
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "metadata": {
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6"
        },
        "list": {
            "font-size": 1.125,
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "orderedlist": {
            "font-size": 1.125,
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "postContent": {
            "font-size": 1.125,
            "margin-top": 20,
            "margin-bottom": 20,
            "line-height": "1_6",
            "SM": {
                "font-size": 1
            }
        },
        "theme": {
            "gradient": "",
            "image": "",
            "sheet-width-xl": 1140,
            "sheet-width-lg": 940,
            "sheet-width-md": 720,
            "sheet-width-sm": 540,
            "sheet-width-xs": 340
        },
        "htmlBaseSize": 16,
        "form-input": {
            "border": 1,
            "border-color": "grey-30",
            "borders": "top right bottom left",
            "color": "white",
            "text-color": "black"
        }
    }
}
JSON
, true);
}
add_filter('np_theme_settings', 'theme_app_settings');

function theme_analytics() {
?>
    <?php $GLOBALS['googleAnalyticsMarker'] = false; ?>
<?php
}
add_action('wp_head', 'theme_analytics', 0);


function theme_intlTelInputMeta() {
    $GLOBALS['meta_tel_input'] = true; ?>
    <meta data-intl-tel-input-cdn-path="<?php echo get_template_directory_uri(); ?>/intlTelInput/" />
    <?php
}
add_action('wp_head', 'theme_intlTelInputMeta', 0);

function theme_favicon() {
    $custom_favicon_id = get_theme_mod('custom_favicon');
    @list($favicon_src, ,) = wp_get_attachment_image_src($custom_favicon_id, 'full');
    if (!$favicon_src) {
        $favicon_src = "";
        if ($favicon_src) {
            $favicon_src = get_template_directory_uri() . '/images/' . $favicon_src;
        }
    }

    if ($favicon_src) {
        echo "<link rel=\"icon\" href=\"$favicon_src\">";
    }
}
add_action('wp_head', 'theme_favicon');

function theme_gtm_header() {
    ?>
    <?php $GLOBALS['gtmMarker'] = false; ?>
    <?php
}
add_action('wp_head', 'theme_gtm_header', 0);

function theme_gtm_body() {
    ob_start(); ?>
    
    <?php $gtmCodeNoScript = ob_get_clean(); ?>
    <script>
        jQuery(document).ready(function () {
            jQuery(document).find('body').prepend(`<?php echo $gtmCodeNoScript; ?>`)
        });
    </script>
    <?php
}
add_action('wp_footer', 'theme_gtm_body');