示例#1
0
/**
 * Register styles.
 *
 * Checks the styles option and hooks the required filter.
 *
 * @since 1.0
 * @return void
 */
function give_register_styles()
{
    if (give_get_option('disable_css', false)) {
        return;
    }
    wp_register_style('give-styles', give_get_stylesheet_uri(), array(), GIVE_VERSION, 'all');
    wp_enqueue_style('give-styles');
}
示例#2
0
/**
 * Give Receipt Head Content
 *
 * @since 1.6
 * @return string
 */
function give_receipt_head_content()
{
    //Title.
    $output = '<title>' . esc_html__('Donation Receipt', 'give') . '</title>';
    //Meta.
    $output .= '<meta charset="utf-8"/>
		<!-- Further disallowing of caching of this page -->
		<meta charset="utf-8"/>
		<meta http-equiv="cache-control" content="max-age=0"/>
		<meta http-equiv="cache-control" content="no-cache"/>
		<meta http-equiv="expires" content="0"/>
		<meta http-equiv="expires" content="Tue, 23 Oct 1977 05:00:00 PST"/>
		<meta http-equiv="pragma" content="no-cache"/>
		<meta name="robots" content="noindex, nofollow"/>';
    //CSS
    $output .= '<link rel="stylesheet" href="' . give_get_stylesheet_uri() . '?ver=' . GIVE_VERSION . '">';
    echo apply_filters('give_receipt_head_content', $output);
}