| @@ -137,26 +137,8 @@ | ||
| 137 | 137 | else |
| 138 | 138 | return false; // no binds, don't check. |
| 139 | 139 | } |
| 140 | 140 | |
| 141 | - // When MB PRO is configured to output CSS via file. | |
| 142 | - static function outputFileCSS() | |
| 143 | - { | |
| 144 | - $collection_id = intval($_GET['id']); | |
| 145 | - $doc_id = intval($_GET['doc']); | |
| 146 | - $collection = new collection($collection_id); | |
| 147 | - $css = $collection->getDisplayCSS($doc_id); | |
| 148 | - header( "Content-type: text/css; charset: UTF-8" ); | |
| 149 | - | |
| 150 | - if ($css) | |
| 151 | - { | |
| 152 | - header( "Content-type: text/css; charset: UTF-8" ); | |
| 153 | - echo $css; | |
| 154 | - } | |
| 155 | - exit(); | |
| 156 | - | |
| 157 | - } | |
| 158 | - | |
| 159 | 141 | /* Try to find the current place we are at in the site ( front / blog / page etc ) .*/ |
| 160 | 142 | protected static function getCurrentHook() |
| 161 | 143 | { |
| 162 | 144 | $hook = ''; |
| @@ -193,9 +175,9 @@ | ||
| 193 | 175 | $hook = 'display_' . $this_post_type; |
| 194 | 176 | } |
| 195 | 177 | |
| 196 | 178 | } |
| 197 | - | |
| 179 | + | |
| 198 | 180 | |
| 199 | 181 | return $hook; |
| 200 | 182 | } |
| 201 | 183 | |