08-04-2010, 15:07
|
|
|
חבר מתאריך: 23.09.07
הודעות: 108
|
|
מנסה להכניס <!--[if lte IE 7]> לאתר דינאמי
היי, יש לי אתר דינאמי שמושך את הקובץ CSS שלו לפי מה שהלקוח בוחר בפאנל הניהול.
אני רוצה לשלב פקודה שאומרת לו לבחור קובץ עיצוב מיוחד עבור אקספלורר 7 בכל מקרה- לא משנה מה הגולש בוחר.
ניסיתי כמה דברים ללא הצלחה, אשמח לעזרה.
הקוד PHP:
קוד PHP:
function wpsc_list_product_themes($theme_name = null) {
global $wpdb, $wpsc_theme_path;
$selected_theme = get_option('wpsc_selected_theme');
if($selected_theme == '') {
$selected_theme = 'default';
}
$theme_path = $wpsc_theme_path;
$theme_list = wpsc_list_dir($theme_path);
foreach($theme_list as $theme_file) {
if(is_dir($theme_path.$theme_file) && is_file($theme_path.$theme_file."/".$theme_file.".css")) {
$theme[$theme_file] = get_theme_data($theme_path.$theme_file."/".$theme_file.".css");
}
}
אני רוצה שהקישור לקובץ CSS יהיה יחסי ולא קישור מלא..
קוד PHP:
<!--[if lte IE 7]>
<link rel="stylesheet" href="/ie.css" type="text/css" media="screen" />
<![endif]-->
|