/** * Load the registered theme supported scripts. * * Get the theme supported core scripts and scripts needed for the framework and tell WordPress to * load them using the wp_enqueue_script() function. The function checks if the script is * registered before loading it. * * @access private * @return void * @since 1.2 */ function momtaz_enqueue_core_scripts() { // Get the theme-supported scripts. $scripts = momtaz_get_supported_core_scripts(); if (!empty($scripts)) { foreach ($scripts as $script) { if (wp_script_is($script, 'registered')) { wp_enqueue_script($script); } } } if (is_singular() && get_option('thread_comments') && comments_open()) { wp_enqueue_script('comment-reply'); } if (momtaz_is_style_debug()) { wp_enqueue_script('less'); } }
/** * Get the localized stylesheet URI. * * @return string * @since 1.1 */ function momtaz_get_locale_stylesheet_uri() { $stylesheet_uri = get_locale_stylesheet_uri(); if (momtaz_is_style_debug()) { $stylesheet_uri = momtaz_get_dev_stylesheet_uri($stylesheet_uri); } $stylesheet_uri = apply_filters('momtaz_get_locale_stylesheet_uri', $stylesheet_uri); return $stylesheet_uri; }