Example #1
0
<?php

Import::current("global/js/biz/Left.php");
Import::cssUtils("BoxSizing.php");
Import::modules("itemMenu/ItemMenu_v0_4_1.php");
Import::modules("itemMenu/ItemMenu_v0_anim_0.php");
Import::modules("commentSystem/CommentSystem_v0.php");
?>
<!--===============================================================-->
<script id="Biz" type="text/x-jQuery-tmpl">
	<div class = "biz">
		<div class = "biz_right"></div>
		<div class = "biz_middle"></div>
	</div>
</script>
<!--===============================================================-->
<style>
	/*------------------------------------------------------------*/
	#content {
		background-color:#fff;
		<?php 
BoxSizing::go();
?>
	}
	/*------------------------------------------------------------*/
	.biz {
		padding:20px;
		position:relative;
		min-height:500px;
	}
	/*------------------------------------------------------------*/
Example #2
0
 public static function compile_css($txt)
 {
     preg_match_all('/-werm-(.*?);/s', $txt, $werm);
     if (sizeof($werm[0]) > 0) {
         $string = $werm[1][0];
         preg_match_all('/(.*?)\\:\\:/s', $string, $class);
         Import::cssUtils($class[1][0] . ".php");
         $txt = str_replace($werm[0][0], eval("return {$string};"), $txt);
         $bool = true;
     } else {
         $bool = false;
     }
     return array("bool" => $bool, "content" => $txt);
 }