// get aside content /* $body_content['aside'] = insert_aside($aside_content); */ if (file_exists($theme_content_folder . '/_aside.php')) { ob_start(); include $theme_content_folder . '/_aside.php'; $body_content['aside'] = ob_get_contents(); ob_end_clean(); } // buffer main content and insert into a variable ob_start(); include $content_partial; $body_content['main'] = ob_get_contents(); ob_end_clean(); /* with a builder file we can use a different html structure */ if (file_exists($theme_content_folder . '/builder.php')) { include $theme_content_folder . '/builder.php'; } else { // output default head section $head_content = ''; show_head($head_content, $config); // output default body section show_body($body_content, $config); } } // end checking for $_GET['page_name'] // close caching routine - create file if (!empty($config['cache']['caching_on'])) { end_caching($cache_fp, $start); }
// tablet styles if (file_exists(WW_ROOT . $theme_folder . '/tablet.css')) { $css .= "\n\n" . '@media only screen and (max-width : 980px) {'; $css .= "\n\n" . '/***************************' . "\n"; $css .= "\t" . 'tablet styles' . "\n"; $css .= '****************************/' . "\n\n"; $css .= file_get_contents(WW_ROOT . $theme_folder . '/tablet.css'); $css .= "\n\n" . '}'; } // tablet portrait styles if (file_exists(WW_ROOT . $theme_folder . '/portrait.css')) { $css .= "\n\n" . '@media only screen and (max-width : 768px) {'; $css .= "\n\n" . '/***************************' . "\n"; $css .= "\t" . 'portrait styles' . "\n"; $css .= '****************************/' . "\n\n"; $css .= file_get_contents(WW_ROOT . $theme_folder . '/portrait.css'); $css .= "\n\n" . '}'; } // mobile styles if (file_exists(WW_ROOT . $theme_folder . '/mobile.css')) { $css .= "\n\n" . '@media only screen and (max-width : 480px) {'; $css .= "\n\n" . '/***************************' . "\n"; $css .= "\t" . 'mobile styles' . "\n"; $css .= '****************************/' . "\n\n"; $css .= file_get_contents(WW_ROOT . $theme_folder . '/mobile.css'); $css .= "\n\n" . '}'; } echo $css; if (!empty($config['cache']['caching_on'])) { end_caching($cache_css); }