Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » New Versions, & Updating »

RFE: allow selectable document mode for IE


  #1  
Old Feb 6, 2011, 10:51 AM
mdmower's Avatar
mdmower
 
76 posts · Jul 2010
Missouri, USA
RFE: allow selectable document mode for IE

I usually manually set <meta http-equiv="X-UA-Compatible" content="IE=8" />

I see this is now an option under "STYLE & configure LAYOUT" to disable EmulateIE7. When I visit my site pagsa.missouri.edu with IE9 beta, the documents mode is still IE7 (I have refreshed). I agree that the EmulateIE7 header line no longer exists, but how can I force IE8 documents mode?

EDIT

Nevermind, I see that I just need to add
Code:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
outside of the following block:
Code:
<?php if  ( isset($bfa_ata['EmulateIE7']) ) { if ( $bfa_ata['EmulateIE7'] == "Yes" ) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php }}; ?>
and leave the option for EmulateIE7 set to No.

FEATURE REQUEST

Now that the code is in place on your end, it would be great to make the option a selectable list of document types so this doesn't have to be manually set with every update.

Last edited by mdmower; Feb 6, 2011 at 11:40 AM.
  #2  
Old Feb 6, 2011, 12:15 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Added this as an RFE for 3.6.5
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Feb 7, 2011, 09:34 AM
mdmower's Avatar
mdmower
 
76 posts · Jul 2010
Missouri, USA
I have made the necessary changes for my feature request. Hopefully they can be incorporated into 3.6.5. Editing version 3.6.4, the changes are as follows:

header.php: lines 9-10
Remove these lines:
Code:
<?php if  ( isset($bfa_ata['EmulateIE7']) ) { if ( $bfa_ata['EmulateIE7'] == "Yes" ) { ?><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php }}; ?>
Replace with these lines at same location:
Code:
<?php if ( isset($bfa_ata['IEDocType']) ) { 
switch ( $bfa_ata['IEDocType'] ) { 
	case "None":
		break;
	case "EmulateIE7":
		echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE7\" />";
		break;
	case "EmulateIE8":
		echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=EmulateIE8\" />";
		break;
	case "IE8":
		echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=8\" />";
		break;
	case "IE9":
		echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=9\" />";
		break;
	case "Edge":
		echo "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\" />";
		break;
	default:
		break;
}} ?>
functions/bfa_theme_options.php: lines 446-453
Remove these lines:
Code:
	array(    "name" => "Emulate IE7",
    	    "category" => "layout",
            "id" => "EmulateIE7",
            "type" => "select",
            "std" => "No",
            "options" => array("No", "Yes"),
            "lastoption" => "yes", 
            "info" => "Set this option to YES if you would like to set IE7 compatibility mode on."),
Replace with these lines at same location
Code:
	array(    "name" => "IE Document Type",
    	    "category" => "layout",
            "id" => "IEDocType",
            "type" => "select",
            "std" => "None",
            "options" => array("None", "EmulateIE7", "EmulateIE8", "IE8", "IE9", "Edge"),
            "lastoption" => "yes", 
            "info" => "Set this option to force Internet Explorer to use a particular rendering mode (supported by Internet Explorer 8 and newer)"),

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
RFE: Flash as a header image option acooley New Versions, & Updating 0 Jan 11, 2011 01:24 AM
Is there a plugin to auto-send a document to people who sign up for my newsletter? jstein Plugins & Atahualpa 0 Jan 2, 2011 10:29 AM
Developed a new Category Error when in Excerpt Mode pennyb46 Page & Category Menu Bars 1 May 31, 2010 11:27 AM
Display Image/Document First kpkes@yahoo.com Header configuration & styling 0 Apr 13, 2010 01:20 PM
RFE: add Only Include Pages option for Page Menu Bar Henry64 Page & Category Menu Bars 4 Jan 1, 2010 09:38 AM


All times are GMT -6. The time now is 12:00 PM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.