Changeset 561 for trunk/xpressme_integration_kit/include/xpress_render.php
- Timestamp:
- Mar 23, 2010, 11:42:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/include/xpress_render.php
r560 r561 100 100 } 101 101 102 if ($xpess_config->is_theme_sidebar_disp){ 103 $xpress_class = 'xpress-body'; 104 } else { 105 $xpress_class = 'xpress-body onecolumn'; 106 } 107 102 108 $pattern = '<body\s*([^>]*)>'; 103 $body_class = 'class=" xpress"';109 $body_class = 'class="' . $xpress_class . '"'; 104 110 if(preg_match("/".$pattern."/s", $contents, $body_matches)){ 105 111 $body_tag_option = $body_matches[1]; … … 108 114 if(preg_match("/".$pattern."/", $body_tag_option, $class_matches)){ 109 115 $class_value = $class_matches[1]; 110 $reprace = 'xpress'. $class_value;116 $reprace = $xpress_class . ' '. $class_value; 111 117 $body_class = preg_replace("/".$class_value."/", $reprace, $body_tag_option); 112 118 } else { 113 $body_class = 'class=" xpress" ' . $body_tag_option;119 $body_class = 'class="' . $xpress_class . '" ' . $body_tag_option; 114 120 } 115 121 }
Note: See TracChangeset
for help on using the changeset viewer.