示例#1
0
 function loadModuleLib($module, $file)
 {
     $f = checkModule($module);
     if (strlen($f) > 0) {
         $f = dirname($f) . "/{$file}.php";
         if (file_exists($f)) {
             include $f;
             return true;
         }
     }
     return false;
 }
示例#2
0
 function loadModuleComponent($component, $module)
 {
     $f = checkModule($module);
     if (strlen($f) > 0) {
         $ff = [dirname($f) . "/api.php" => false, dirname($f) . "/comps/{$component}.php" => false];
         foreach ($ff as $fx) {
             if (file_exists($fx)) {
                 @(include $fx);
                 $ff[$fx] = true;
             }
         }
         return $ff;
     }
     return false;
 }
示例#3
0
 function loadModuleComponent($module, $component, $config = array())
 {
     $f = checkModule($module);
     if (strlen($f) > 0) {
         $ff = [dirname($f) . "/api.php" => false, dirname($f) . "/comps/{$component}.php" => false];
         foreach ($ff as $fx => $status) {
             if (file_exists($fx)) {
                 $module_configs = $config;
                 include $fx;
                 $ff[$fx] = true;
             }
         }
         return $ff;
     }
     return false;
 }
示例#4
0
文件: item.php 项目: mul14/FiyoCMS
</div>
		</div>
	</div>
	<?php 
        }
        ?>
	
	<?php 
    }
    ?>
	<?php 
    loadModule('article-bottom');
    ?>
	
	<?php 
    if ($comment and !checkModule('article-comment')) {
        ?>
	<div id="comment">	
		<?php 
        loadComment();
        ?>
	<?php 
        loadModule('article-comment');
        ?>
	
	</div>		
	<?php 
    }
    ?>
	
</div>
示例#5
0
文件: index.php 项目: mul14/FiyoCMS
    loadModule('right');
    ?>
						</div>
						<?php 
}
?>
						
					</section>

						<div class="cl"></div>
				
				</div>
				<!-- end of main -->
				
				<?php 
if (checkModule('breadchumb')) {
    ?>
	
				<div class="socials">
					<div class="socials-inner">									
							<?php 
    loadModule('breadchumb');
    ?>
						
						<div class="cl"></div>
					</div>
				</div>					
				<?php 
}
?>
	
示例#6
0
文件: index.php 项目: mul14/FiyoCMS
        }
        ?>
					<?php 
        loadModule('right');
        ?>
					  </div> 			  
				<?php 
    }
    ?>
			</div>
			<?php 
}
?>
			
			<?php 
if (checkModule('bottom')) {
    ?>
			<div class="row-fluid">
			  <div class="span12"><?php 
    loadModule('bottom');
    ?>
</div>
			</div>
			<?php 
}
?>
		  </div>
		</div>
	  </div>
	</div>