コード例 #1
0
ファイル: styles.php プロジェクト: wpsitecare/carelib
/**
 * Register front-end stylesheets for the library.
 *
 * @since  1.0.0
 * @access public
 * @return void
 */
function carelib_register_styles()
{
    wp_register_style("{$GLOBALS['carelib_prefix']}-parent", carelib_get_parent_stylesheet_uri(), array(), carelib_get_parent_version());
    wp_register_style("{$GLOBALS['carelib_prefix']}-style", get_stylesheet_uri(), array(), carelib_get_theme_version());
}
コード例 #2
0
ファイル: theme.php プロジェクト: wpsitecare/carelib
/**
 * Return the version number of the current theme.
 *
 * @since  1.0.0
 * @access public
 * @return string The current theme's version number.
 */
function carelib_get_theme_version()
{
    return defined('CHILD_THEME_VERSION') ? CHILD_THEME_VERSION : carelib_get_parent_version();
}