function register_bsf_core_styles($hook) { global $bsf_core_path; $bsf_core_url = bsf_convert_core_path_to_relative($bsf_core_path); $frosty_script_path = $bsf_core_url . '/assets/js/frosty.js'; $frosty_style_path = $bsf_core_url . '/assets/css/frosty.css'; // Register Frosty script and style wp_register_script('bsf-core-frosty', $frosty_script_path); wp_register_style('bsf-core-frosty-style', $frosty_style_path); }
function print_bsf_styles() { global $bsf_core_path; $bsf_core_url = bsf_convert_core_path_to_relative($bsf_core_path); $path = $bsf_core_url . '/assets/fonts'; echo "<style>\n\t\t\t\t@font-face {\n\t\t\t\t\tfont-family: 'brainstorm';\n\t\t\t\t\tsrc:url('" . $path . "/brainstorm.eot');\n\t\t\t\t\tsrc:url('" . $path . "/brainstorm.eot') format('embedded-opentype'),\n\t\t\t\t\t\turl('" . $path . "/brainstorm.woff') format('woff'),\n\t\t\t\t\t\turl('" . $path . "/brainstorm.ttf') format('truetype'),\n\t\t\t\t\t\turl('" . $path . "/brainstorm.svg') format('svg');\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t}\n\t\t\t\t.toplevel_page_bsf-registration > div.wp-menu-image:before {\n\t\t\t\t\tcontent: \"\\e603\" !important;\n\t\t\t\t\tfont-family: 'brainstorm' !important;\n\t\t\t\t\tspeak: none;\n\t\t\t\t\tfont-style: normal;\n\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\ttext-transform: none;\n\t\t\t\t\tline-height: 1;\n\t\t\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\t\t\t-moz-osx-font-smoothing: grayscale;\n\t\t\t\t}\n\t\t\t</style>"; }