function sp_forum_header()
{
    global $wp_query, $spGlobals, $spVars, $spStatus, $spMobile, $spDevice;
    do_action('sph_head_start');
    # So - check if it needs to be upgraded...
    if ($spStatus != 'ok') {
        return;
    }
    while ($x = has_filter('the_content', 'wpautop')) {
        remove_filter('the_content', 'wpautop', $x);
    }
    remove_filter('the_content', 'convert_smilies');
    # do meta stuff
    sp_setup_meta_tags();
    # any custom CSS to be in inserted?
    $theme = $spGlobals['theme']['theme'];
    if (!empty($spGlobals['css'][$theme])) {
        ?>
		<style type="text/css">
		<?php 
        echo $spGlobals['css'][$theme];
        ?>
		</style>
		<?php 
    }
    do_action('sph_head_end');
}
Ejemplo n.º 2
0
function sp_forum_header()
{
    global $wp_query, $spGlobals, $spVars, $spStatus, $spMobile, $spDevice;
    do_action('sph_head_start');
    # So - check if it needs to be upgraded...
    if ($spStatus != 'ok') {
        return;
    }
    while ($x = has_filter('the_content', 'wpautop')) {
        remove_filter('the_content', 'wpautop', $x);
    }
    remove_filter('the_content', 'convert_smilies');
    # do meta stuff
    sp_setup_meta_tags();
    do_action('sph_head_end');
}
function sp_forum_header()
{
    global $wp_query, $spGlobals, $spVars, $spStatus, $spMobile, $spDevice;
    do_action('sph_head_start');
    # So - check if it needs to be upgraded...
    if ($spStatus != 'ok') {
        return;
    }
    while ($x = has_filter('the_content', 'wpautop')) {
        remove_filter('the_content', 'wpautop', $x);
    }
    remove_filter('the_content', 'convert_smilies');
    # do meta stuff
    sp_setup_meta_tags();
    # load page specific css
    if ($spVars['pageview'] == 'topic' || $spVars['pageview'] == 'forum') {
        # if setting for post content width apply word-wrap
        if ($spVars['postwidth'] > 0) {
            ?>
			<style type="text/css">
			.spPostContent, .spPostContent p, .spPostContent pre, .spPostContent blockquote, .spPostContent table, .spPostContent img {
				max-width: <?php 
            echo $spVars['postwidth'];
            ?>
px !important;
				word-wrap: break-word; }
			<?php 
            do_action('sph_textwrap_css');
            ?>
			</style>
			<?php 
        }
    }
    do_action('sph_head_end');
}